arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.21357cs.AIcs.CL
收藏

AgentHER: 用于LLM代理轨迹重标记的回溯经验回放

AgentHER: Hindsight Experience Replay for LLM Agent Trajectory Relabeling

The University of Sydney(悉尼大学)

Liang Ding

AI总结:

AgentHER通过四阶段流程将废弃轨迹转化为SFT、DPO和ShareGPT训练数据,在WebArena和ToolBench上提升性能并提高样本效率,同时降低标签噪声。

摘要:

LLM代理训练流程通常丢弃失败轨迹,尽管GPT-4o在WebArena上仅达到14-20%的性能,而专门系统在ToolBench上也低于55%的pass@1。我们引入AgentHER,通过将回溯经验回放(HER)适应到自然语言代理轨迹中,将失败目标A的轨迹转化为可实现的替代目标B的正确示范。AgentHER通过四阶段流程(失败分类、结果提取、LLM引导的重标记与置信度门控、数据打包)将废弃失败转化为SFT、DPO和ShareGPT训练数据。在WebArena和ToolBench上,AgentHER在四个模型家族(GPT-4o、Qwen2.5-72B/7B、LLaMA-3.1-8B)中比仅成功SFT提升7.6-11.4%,达到2倍的样本效率,并超越最强经验中心基线(Agent Workflow Memory)3.0-6.2%。两种稳健机制,失败严重性加权和跨模型多判验证(gpt-4o-mini配以Qwen2.5-72B-Instruct),将标签噪声从5.9%降至2.9%,并将WebArena和ToolBench的人类评分重标记精度分别提升到97.1%和96.0%。完整的系统成本审计显示,整个重标记流程处理3,000条轨迹的成本为2.98和26小时钟分钟,即每接受对1.4 x 10^-3。代码:https://github.com/alphadl/AgentHER

英文摘要:

LLM-agent training pipelines routinely discard failed trajectories even though GPT-4o achieves only 14-20% on WebArena and below 55% pass@1 on ToolBench; even specialised systems at 50-65% leave the majority of trajectories unused. We introduce AgentHER, which recovers this lost signal by adapting Hindsight Experience Replay (HER) to natural-language agent trajectories: a trajectory that fails goal A is often a correct demonstration for an achievable alternative goal B. AgentHER realises this through a four-stage pipeline (failure classification, outcome extraction, LLM-guided relabeling with confidence gating, and data packaging) that converts discarded failures into SFT, DPO, and ShareGPT training data. On WebArena and ToolBench under a strict task-disjoint held-out protocol, AgentHER improves over success-only SFT by +7.6-11.4% across four model families (GPT-4o, Qwen2.5-72B/7B, LLaMA-3.1-8B), achieves 2x sample efficiency, and beats the strongest experience-centric baseline (Agent Workflow Memory) by +3.0-6.2%. Two robustness mechanisms, failure-severity weighting and cross-model multi-judge verification (gpt-4o-mini paired with Qwen2.5-72B-Instruct), reduce label noise from 5.9% to 2.9% and raise human-rated relabeling precision to 97.1% on WebArena and 96.0% on ToolBench. A full system-cost audit shows the entire relabeling pipeline costs 2.98 and 26 wall-clock minutes for 3,000 trajectories, i.e. 1.4 x 10^-3 per accepted pair. Code: https://github.com/alphadl/AgentHER

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

↑