数据湖分析中编码智能体的无监督工具进化
Unsupervised Tool Evolution for Coding Agents in Data-Lake Analytics
AI总结:
本文提出无监督工具进化方法TEAL及合成问题生成模块TEAL-Q,在KramaBench、LakeQA上验证其可提升编码智能体性能,无需标签即可进化出有用工具。
摘要:
编码智能体可通过发现、清洗和关联相关数据来回答数据湖的分析问题,但每次问题处理后会丢弃该工作,下一个问题需从头重做。工具进化可跨任务自动构建和优化可复用工具,适配这种重复场景。由于数据湖问题的真实标签需专家先解决,本文采用无监督设置,提出TEAL(数据湖分析工具进化),为给定Worker智能体进化工具库及使用技能,无需标签。两个智能体从互补证据提出工具:Explorer从数据湖本身提出,Critic从Worker轨迹提出;仅当Worker在重新运行时采用该工具且无额外步骤,且任何修改后的答案有轨迹证据支持时,保留提出的变更。还引入TEAL-Q,在无真实问题时生成合成问题用于工具进化。在KramaBench和LakeQA上用四个Worker大语言模型(LLM)在步骤预算(限制每个问题Worker可采取的步骤数)下评估:在10或15步的严格预算下,TEAL提升了两个基准上所有Worker的性能,15步时Sonnet-5在KramaBench上提升9.3个百分点,在LakeQA上提升21.7个百分点;更严格的预算也为进化提供更好反馈,例如Sonnet-5在20步进化的LakeQA工具库,在30步未修改部署时得分为68.3,高于基线(59.6)和直接在30步进化的工具库(64.2);此外,在合成问题上进化的工具库与在真实问题上进化的性能相当。这些结果表明无需标签即可进化出有用工具,有望推动未来关于无监督智能体进化中进化内容及反馈获取方式的研究。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。