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

ProgAgent:通过程序化训练学习工具编排

ProgAgent: Learning Tool Orchestration through Programmatic Training

Hong Kong University of Science and Technology(香港科技大学);Beijing University of Posts and Telecommunications(北京邮电大学);Nanyang Technological University(南洋理工大学)

Hao Li, Keqing He, Longtao Zheng, Junlong Li, Weihao Zeng, Qian Liu, Yuzhen Huang

AI总结:

本研究提出ProgAgent,一个完整的程序化工具调用训练栈,仅用215个任务训练后,在四个基准测试中优于可比规模基线,在LOCA-bench中表现尤为突出,且PTC训练的模型性能优于DTC训练的模型。

摘要:

大型语言模型(LLM)越来越被期望在长周期任务中编排各类工具。现有智能体通常采用直接工具调用(DTC),即模型按顺序调用工具,工具响应会累积在模型上下文中,这可能导致上下文损坏和编排失败。相比之下,程序化工具调用(PTC)通过可执行代码调用工具,并将中间结果存储在运行时变量中,而非附加到上下文。先前工作主要将PTC作为推理时优化,但其对智能体训练的益处仍不明确,且缺乏合适的可验证训练任务。本研究引入ProgAgent,一个完整的PTC训练栈,包含合成可验证长周期任务的流水线、轻量级PTC运行时以及两阶段训练方案。仅使用在四个环境规模下实例化的215个任务,ProgAgent在四个基准测试中,达到了可比规模评估基线更高的通过率。在LOCA-bench中,ProgAgent-14B在64k token环境状态下达到30.7%的通过率,而这些基线得分为零。跨框架实验显示,经PTC训练的模型在两种评估接口下均优于经DTC训练的模型,表明PTC训练的益处超出了接口本身。

英文摘要:

Large language models (LLMs) are increasingly expected to orchestrate diverse tools over long-horizon tasks. Existing agents typically use Direct Tool Calling (DTC), where the model invokes tools sequentially, and tool responses accumulate in the model context, which can lead to context rot and orchestration breakdown. In contrast, Programmatic Tool Calling (PTC) invokes tools through executable code and stores intermediate results in runtime variables rather than appending them to the context. Prior work has explored PTC mainly as an inference-time optimization, but its benefits for agentic training remain unclear, and suitable verifiable training tasks are scarce. In this work, we introduce ProgAgent, a full PTC training stack, comprising a pipeline for synthesizing verifiable long-horizon tasks, a lightweight PTC runtime, and a two-stage training recipe. Using only 215 tasks instantiated at four environment scales, ProgAgent yields higher pass rates than the evaluated baselines of comparable size across four benchmarks. On LOCA-bench, ProgAgent-14B achieves a 30.7% pass rate at a 64k-token environment state, where these baselines score zero. Cross-harness experiments show that PTC-trained models outperform DTC-trained models under both evaluation interfaces, suggesting that the benefits of PTC training extend beyond the interface.

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

↑