arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.05336cs.AI
收藏

TRACE: 面向能力的代理训练

TRACE: Capability-Targeted Agentic Training

Stanford University(斯坦福大学)

Hangoo Kang, Tarun Suresh, Jon Saad-Falcon, Azalia Mirhoseini

AI总结:

TRACE通过对比成功与失败轨迹自动识别能力缺失,合成针对性训练环境并利用RL训练适配器,提升代理在不同环境中的表现。

摘要:

大型语言模型(LLMs)在代理环境中必须执行多种能力以解决不同任务实例,其中能力是指在轨迹中执行一个或多个动作以成功解决环境中的子任务。现有方法要么依赖非针对性合成训练数据,要么直接在目标环境中训练,需隐式学习能力。我们引入TRACE(将代理失败转化为能力针对性训练环境),一种端到端的环境特定代理自我改进系统。TRACE通过对比成功与失败轨迹自动识别缺失能力,为每个能力合成针对性训练环境,奖励是否行使该能力,并在每个合成环境中通过RL训练LoRA适配器,在推理时路由到相关适配器。实验证明,TRACE在不同环境中泛化能力强,比基础代理在τ²-bench(客户服务)上提升+14.1点,在ToolSandbox(工具使用)上获得+7个完美分数,优于最强基线+7.4点和+4个完美分数。在相同数量的rollouts下,TRACE比基线更高效,比GRPO和GEPA在τ²-bench上分别高出+9.2和+7.4点。

英文摘要:

Models often fail to complete agentic tasks because they lack core capabilities required by the target environment. However, mainstream approaches for addressing these failures typically either fine-tune directly on target environments or generate synthetic data that is not targeted to the model's actual capability deficits, resulting in low sample efficiency and limited generalization. We introduce TRACE (Turning Recurrent Agent failures into Capability-targeted training Environments), an end-to-end system for environment-specific agent self-improvement. TRACE contrasts successful and failed trajectories to automatically identify missing capabilities, synthesizes a targeted training environment for each capability that rewards whether the capability is exercised, trains a LoRA adapter via reinforcement learning on each synthetic environment, and then trains a mixture-of-experts model over the capability adapters. TRACE can be effectively applied across different environments, improving over the base agent by +15.3 points on $τ^2$-Bench, a customer-service agent benchmark, and by +15.0 points Pass@1 on SWE-Bench Verified, a software-engineering benchmark. TRACE outperforms the strongest external baselines, GEPA and SWE-RL, by +8.6 points and +8.4 points, respectively. In addition, TRACE is more sample-efficient than strong fine-tuning baselines: using fewer than one-fourth the number of rollouts, TRACE outperforms the best-performing baselines, GRPO and GEPA, and achieves higher final accuracy by +10.4 and +8.6 points on $τ^2$-Bench.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑