DFPO:面向 AI 编程智能体的单轨迹强化学习算法
Direct Feedback Policy Optimization for AI Coding Agents
做智能体训练的工程师可以看看这篇:DFPO 只用一条轨迹就能训练,不用像 GSPO 那样每个任务反复采样,代码智能体的任务解决率还更高。训练成本敏感的团队会直接受益。
arXiv 新论文提出 Direct Feedback Policy Optimization(DFPO),一种可直接从单条轨迹训练的强化学习算法,针对 AI 编程智能体的多轮代码生成、修改与验证场景。
论文指出,现有方法通常依赖稀疏的终端奖励,难以评估中间决策对任务结果的影响,而 GSPO 等 group-relative 方法还需要对每个任务进行重复采样,训练成本高。DFPO 通过在单条轨迹内构造反馈信号,绕开了重复采样和终端奖励稀疏这两个瓶颈。
在相同基座模型与相同执行框架(execution harness)的对比实验中,DFPO 取得了高于 GSPO 的任务解决率。对做智能体训练的团队来说,这意味着可以用更少的采样开销完成 RL 微调。
Direct Feedback Policy Optimization for AI Coding Agents
AI coding agents generate, modify, and validate code through multi-turn interactions. Existing reinforcement learning methods often rely on sparse terminal rewards, making it difficult to assess how intermediate decisions affect task outcomes, and group-relative methods also require repeated sampling for each task. We propose Direct Feedback Policy Optimization (DFPO), a single-trajectory reinforcement learning algorithm that trains directly from a single trajectory. DFPO achieves higher task resolution rates than GSPO under matched base models and execution harnesses.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include DFPO, GSPO, agents, reinforcement learning.
Source attribution: curated from arXiv cs.AI (@Fei Ding).