SLCA-GRPO:解决工具调用强化学习中的跨段信用错配

·

研究论文 · 2026/09/28

工具调用智能体产生异构输出,将结构化工具调用与面向用户的自然语言摘要交织在一起。这种输出异构性在标准同策略强化学习(RL)中呈现结构性失效模式:GRPO 等算法不加区分地将同质的轨迹级标量优势广播到所有 token,导致摘要生成的梯度噪声泄漏到工具决策 token,造成跨段信用误归因和脆弱的优化。本文提出 SLCA-GRPO,一个包含段锁定信用分配(SLCA)的框架。为在无昂贵真实 API 的情况下实现可扩展探索和稳定训练,作者首先构建模式引导 LLM 模拟器(SGLS)作为基础训练设施。在此基础上,SLCA 在单组 rollout 内于结构段级别解耦优势估计,无需从中间状态额外 rollout。在分层奖励(HierR)支持下,SLCA 将执行优势路由到工具 token,将偏好优势路由到摘要 token,从而在每次策略更新中消除优势污染(主要的跨段信用误归因渠道)。在 7B 骨干模型上,相同训练预算下,SLCA-GRPO 加速收敛并优于标准 GRPO、ToolPO 和 RLTR:域内评估 +2.53 个百分点,Berkeley Function-Calling Leaderboard(BFCL)+1.36 个百分点,τ^2-Bench +9.15 个百分点,以更低的工具冗余和成本实现更高准确率。

该工作精准定位了工具调用强化学习中因输出异构导致的信用分配错误,提出的 SLCA-GRPO 在无需额外 rollout 的情况下解耦优势估计,并在多个基准上以更低成本取得显著提升,对构建高效稳定的工具调用智能体具有直接参考价值。

Tool-calling agents produce heterogeneous outputs, interleaving structured tool invocations with user-facing natural language summaries. This output heterogeneity presents a structural failure mode in standard on-policy Reinforcement Learning (RL): algorithms like GRPO indiscriminately broadcast a homogeneous trajectory-level scalar advantage to all tokens. Consequently, gradient noise from summary generation leaks into tool-decision tokens, causing cross-segment credit misattribution and brittle optimization. In this work, we propose SLCA-GRPO, a framework incorporating Segment-Locked Credit Assignment (SLCA). To enable scalable exploration without costly real APIs and stable training, we first construct the Schema-Guided LLM Simulator (SGLS) as foundational training infrastructure. Building on this, SLCA decouples advantage estimation at the structural segment level within a single group of rollouts, without requiring additional rollouts from intermediate states. Supported by Hierarchical Rewards (HierR), SLCA routes execution advantages to tool tokens and preference advantages to summary tokens, eliminating advantage contamination (the dominant cross-segment credit misattribution channel) within each policy update. On a 7B backbone, SLCA-GRPO accelerates convergence and outperforms standard GRPO, ToolPO, and RLTR by +2.53 pp on in-domain evaluation, +1.36 pp on the Berkeley Function-Calling Leaderboard (BFCL), and +9.15 pp on τ^2-Bench under the same training budgets, achieving higher accuracy with reduced tool redundancy and costs.

阅读原文

参与讨论