自省蒸馏:将事后经验转化为事前预见
研究论文 · 2026/10/09
带有可验证奖励的强化学习(RLVR)主要通过交互后的标量结果奖励将智能体经验转化为学习信号。然而,对于组相对目标,当所有 rollout 获得相同奖励时,该信号会消失,尽管其轨迹可能揭示有关任务要求及智能体失败方式的有用信息。我们提出一个互补问题:事后经验能否教会智能体在行动前本可预见的内容?我们引入前瞻性学习,利用事后经验监督来自交互前视角的预见预测,并以自回溯蒸馏(SRD)实例化。直观上,一条完成的轨迹揭示了本应有用且应避免的知识与陷阱;SRD 将这种特权事后经验蒸馏为同一策略的轨迹盲预见。预见仅作为训练目标,无需在推理时显式生成。在 10 个工具集成推理和长时程智能体任务中,SRD 补充了 RLVR 和自蒸馏基线,增益高达 24.2 个百分点。其优势在奖励对比稀缺时尤为明显:当 37--98% 的 rollout 组在不同模型规模下奖励均匀时,SRD 仍能从采样轨迹中利用学习信号。在 2B 设置中,98% 的组全部失败,RLVR 训练最终成功率为 0.0%,而加入 SRD 后在相同 rollout 预算下达到 60.6%。我们的结果表明,事后智能体经验不仅有助于评估或改进行为,还有助于在可用交互前塑造预测表征。
该工作针对 RLVR 在奖励均匀时信号消失的问题,提出利用事后经验进行前瞻性学习,并在多个任务上显著提升性能,尤其在奖励对比稀缺时效果突出,为智能体学习提供了新思路。
Reinforcement learning with verifiable rewards (RLVR) turns agent experience into learning signals primarily through scalar outcome rewards after interaction. For group-relative objectives, however, this signal vanishes when all rollouts receive the same reward, even though their trajectories may reveal useful information about what the task requires and how the agent fails. We ask a complementary question: can hindsight teach an agent what it could have anticipated before acting? We introduce prospective learning, which uses post-hoc experience to supervise foresight predictions from the pre-interaction view, and instantiate it with Self-Retrospection Distillation (SRD). Intuitively, a completed trajectory reveals knowledge that would have been useful and pitfalls that should be avoided; SRD distills this privileged hindsight into trajectory-blind foresight of the same policy. Foresight serves only as a training target and need not be explicitly generated at inference time. Across 10 tool-integrated reasoning and long-horizon agentic tasks, SRD complements RLVR and self-distillation baselines with gains of up to 24.2 pp. Its advantage is especially pronounced when reward contrast is scarce: when 37--98% of rollout groups are reward-uniform across model scales, yet SRD can still exploit learning signal from sampled trajectories. In the 2B setting, where 98% of groups are all-failure, the RLVR training ends up at 0.0% success, while adding SRD reaches 60.6% under the same rollout budget. Our results suggest that post-hoc agent experience is useful not only for evaluating or improving behavior, but also for shaping predictive representations before available interaction.