SkillGate:在长时程智能体中训练策略内技能选择

·

研究论文 · 2026/08/20

Agent框架越来越多地将程序性知识打包为技能:指令文件供Agent按需读取,公共库中已有数千个技能。因此,读取哪个技能成为策略在回合中途做出的决策,但现有信号并未对此进行训练。我们表明,默认的补救措施——对候选技能列表进行结果奖励的强化学习——无法教会这一点,原因在于我们识别并命名为“选择器信用饥饿”的结构性问题:在广播式、序列级优势下,命名所选技能的少数token承担了损失中极小一部分,且随着轨迹变长,它们继承的信用错误符号越来越严重。正确的选择在后续执行失败时受到惩罚,尽管该选择本身是轨迹中最有价值的决策之一。对已完成运行训练产物的审计证实了这三个性质,且每个性质都随视野单调恶化。SkillGate通过构造消除了该失败:它将token支持划分为两个不相交的信用通道,结果信用仅到达执行token,而独立的动作局部优势恰好到达技能命名token,仅在轨迹中单次读取为正确时为正。在五个Agent基准测试中,在16个候选技能下,SkillGate将9B策略的试验成功率从40.8%提升至53.2%,远超将相同预算用于结果奖励的效果,同时将误导性候选的暴露减少三分之二,并读取更少的技能。

该论文识别了Agent技能选择训练中的一个关键缺陷(信用饥饿),并提出了一个优雅的解决方案(SkillGate),在多个基准上显著提升性能。对于研究Agent决策和强化学习的研究者,本文提供了重要的理论洞见和实用方法。

Agent frameworks increasingly package procedural knowledge as skills: instruction files an agent reads on demand, while public libraries now hold thousands of them. Which skill to read has thus become a decision the policy itself makes in the middle of an episode, yet no existing signal trains it. We show that the default remedy, outcome-rewarded RL over the candidate slate, cannot teach it, for a structural reason we identify and name selector credit starvation: under a broadcast, sequence-level advantage, the few tokens that name the chosen skill carry a vanishing share of the loss, and the credit they inherit is increasingly wrong-signed as trajectories lengthen. A correct choice is punished whenever the execution after it fails, even though the choice itself is among the most valuable decisions in the trajectory. Auditing a completed run's own training artifacts confirms all three properties, each worsening monotonically with horizon. SkillGate removes the failure by construction: it partitions the token support into two disjoint credit channels, outcome credit reaching only execution tokens, and a separate action-local advantage reaching exactly the skill-naming tokens, positive only when a trajectory's single read is the correct one. On five agentic benchmarks under a 16-candidate slate, SkillGate lifts a 9B policy from 40.8% to 53.2% trial success, well ahead of the identical budget spent on outcome reward alone, while cutting exposure to misleading candidates by two thirds and reading fewer skills.

阅读原文

参与讨论