面向数据湖分析中编码代理的无监督工具进化
研究论文 · 2026/10/21
编码智能体在数据湖分析中每次回答问题时都从头开始,重复发现、清洗和连接数据的工作。TEAL(面向数据湖分析的工具进化)在无监督设置下,通过两个智能体(Explorer从数据湖本身、Critic从Worker轨迹)提出工具,仅当Worker在重跑中无需额外步骤即采用工具且答案变化有轨迹证据支持时才保留变更,从而进化出工具库和使用技能。TEAL-Q可在缺乏真实问题时生成合成问题用于工具进化。在KramaBench和LakeQA上,使用四个Worker LLM并在步骤预算限制下评估,TEAL在紧张预算(10或15步)下提升了所有Worker,例如Sonnet-5在15步时KramaBench提升9.3分、LakeQA提升21.7分。更紧的预算为进化提供更好反馈:Sonnet-5的LakeQA工具库在20步进化、30步部署不变时得分为68.3,高于基线(59.6)和直接在30步进化的工具库(64.2)。合成问题进化的工具库与真实问题进化的性能相当。结果表明无需标签即可进化出有用工具。
该研究解决了编码智能体在数据湖分析中重复劳动的关键问题,提出无需标签的工具进化方法,实验证明其能显著提升多个LLM在紧张步骤预算下的性能,且合成问题进化有效,为无监督智能体进化提供了新思路。
Coding agents can answer analytical questions over a data lake by discovering, cleaning, and joining the relevant data. However, they discard this work after each question and redo it from scratch for the next one. Tool evolution, which automatically builds and refines reusable tools across tasks, is a natural fit for this repetition. Since a ground-truth label for a data-lake question requires an expert to solve it first, we consider the unsupervised setting. We propose TEAL (Tool Evolution for Analytics over data Lakes), which evolves a library of tools and usage skills for a given Worker agent without labels. Two agents propose tools from complementary evidence, an Explorer from the data lake itself and a Critic from Worker trajectories. A proposed change is kept only if the Worker adopts the tool on a rerun without extra steps and any changed answer is supported by trajectory evidence. We also introduce TEAL-Q, which generates synthetic questions for tool evolution when real ones are unavailable. We evaluate on KramaBench and LakeQA with four Worker LLMs under step budgets, which cap the number of steps the Worker may take per question. With a tight budget of 10 or 15 steps, TEAL improves every Worker on both benchmarks, lifting Sonnet-5 at 15 steps by 9.3 points on KramaBench and 21.7 points on LakeQA. A tighter budget also yields better feedback for evolution. For example, Sonnet-5's LakeQA library evolved at 20 steps and deployed unchanged at 30 steps scores 68.3, above both the baseline (59.6) and a library evolved directly at 30 steps (64.2). Additionally, a library evolved on synthetic questions performs comparably to one evolved on real questions. These results show that useful tools can be evolved without labels, and hopefully inspire future work on what to evolve and how to obtain feedback in unsupervised agent evolution.