让大模型从失败轨迹中学习反思,提升推理能力
ReflectRL: Learning from Golden Negative Trajectories via Reflective-to-Direct Reasoning

- 从专家模型失败的轨迹中提取反思信号,而非直接模仿
- 在9个基准上均提升推理性能,计算开销极小
- 适合需要强化推理能力的LLM优化场景
在线策略训练已成为提升大语言模型推理能力的有效后训练范式,常借助更强专家模型提供的优质轨迹进行增强。然而当专家在难题上失败时,现有轨迹引导方法失去主要监督信号,这些失败轨迹通常被丢弃为负样本。我们提出,此类失败轨迹(称作黄金负轨迹)若不作为需模仿的示范,而作为需反思的错误路径,仍能提供宝贵推理线索。我们发现:对难题而言,反思一个错误轨迹比从零直接求解更易且更有效。受此启发,我们提出ReflectRL——一种轻量级、可即插即用的框架,在在线策略训练中学习黄金负轨迹。该框架先利用负轨迹激发反思推理,再通过反思到直接策略的转换,将习得的推理行为回传至直接推理。在9个基准、4种大模型主干与4种在线训练方法下实验表明,ReflectRL始终显著提升推理表现,且开销极低。
原文摘要 · Abstract (English)
On-policy training has emerged as a powerful post-training paradigm for improving the reasoning capabilities of large language models, and is often enhanced by golden trajectories from stronger expert models. However, when the expert fails on harder problems, existing trajectory-guided methods lose their main source of supervision, and these failed trajectories are typically discarded as negative samples. We argue that such failures, which we call Golden Negative Trajectories, can still provide valuable reasoning signals when treated not as demonstrations to imitate, but as flawed trajectories to reflect upon. We identify a Reflection Advantage: for hard problems, reflecting on a flawed trajectory can be easier and more effective than solving the problem directly from scratch. Motivated by this, we propose ReflectRL, a lightweight plug-and-play framework that learns from Golden Negative Trajectories during on-policy training. ReflectRL first uses these trajectories to elicit Reflective Reasoning, then applies Reflective-to-Direct Policy Transition to transfer the acquired reasoning behavior back to Direct Reasoning. Experiments across 9 benchmarks, 4 LLM backbones, and 4 on-policy training methods show that ReflectRL consistently improves reasoning performance with minimal overhead.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。