arXiv:2606.23104 · 中英对照阅读
ReNIO:重新加权大语言模型 on-policy 蒸馏中的负向轨迹重要性
ReNIO: Reweighting Negative Trajectory Importance for LLM On-Policy Distillation
中文速览
在按自身生成的推理过程训练大模型时,常见做法是把每条过程同等对待,但研究发现,错误过程有时比正确过程更能帮助模型进步。为此,作者提出 ReNIO:比较学生模型和教师模型对每个生成词的概率,找出学生特别偏好、教师却不认同的关键选择,再据此提高相关推理过程的训练权重,不必等到最终答案就能判断哪些过程值得多学。实验显示,这种方法在数学推理和代码生成任务上都能提升训练效果,数学基准上的代表性相对提升最高达 8.90% 和 10.00%。这说明,模型的错误尝试也藏着有价值的纠错线索,而利用这些线索可以在不增加完整生成成本的情况下,让推理训练更有效。
摘要
on-policy 蒸馏(OPD)通过使用学生模型自身生成的输出训练学生模型,提升大语言模型(LLM)的推理能力,但标准 OPD 会一视同仁地对待所有学生生成输出(SGO),不考虑其信息量。我们在受控的筛选实验中观察到一种稳定的不对称性:在 OPD 和 on-policy 自蒸馏(OPSD)中,仅用错误的 SGO 训练都优于仅用正确的 SGO 训练。进一步分析表明,仅用正确的 SGO 训练的模型往往会生成更短的推理过程,并表现出较弱的反思行为;而错误的 SGO 则能更好地保留模型能力边界附近的探索式推理。为利用这一信号而无需生成包含完整答案的推演,我们提出 ReNIO,即针对大语言模型 on-policy 蒸馏对负向轨迹重要性进行重加权的方法。ReNIO 利用学生与教师概率比,识别导致错误推理轨迹的关键词元,并将其信息汇总为归一化的样本权重,从而无需观察最终答案是否正确,便能自然地为可能的负向轨迹赋予更大的权重。由于 ReNIO 仅使用前缀条件化词元概率,因此保留了 OPD 相较于完整推演强化学习的前缀训练优势。在数学推理和代码生成任务中,ReNIO 均能提升 OPD 和 OPSD;在数学推理基准测试中,Qwen3-1.7B 和 R1-Distill-Qwen-7B 的代表性相对提升最高分别达 $8.90\%$ 和 $10.00\%$。代码仓库:https://github.com/BDML-lab/ReNIO。
On-policy distillation (OPD) improves LLM reasoning by training a student model on its own generated outputs, but standard OPD treats all student-generated outputs (SGOs) equally regardless of their informativeness. We observe a consistent asymmetry in controlled filtering experiments: in both OPD and on-policy self distillation (OPSD), training only on incorrect SGOs outperforms training only on correct ones. Our further analysis suggests that models trained on correct-only SGOs tend to generate shorter reasoning traces and show weaker reflection behavior, while incorrect SGOs better preserve exploratory reasoning near the model’s capability boundary. To exploit this signal without requiring full answer-containing rollouts, we introduce ReNIO, which Reweights Negative trajectory Importance for LLM On-policy distillation. By using the student-to-teacher probability ratio, ReNIO identifies pivotal tokens leading to wrong reasoning traces and aggregates their information into a normalized sample weight, inherently assigning larger weights to likely negative trajectories without observing the correctness of final-answer. Since ReNIO only uses prefix-conditioned token probabilities, it preserves OPD’s prefix training advantage over full-rollout reinforcement learning. Across both mathematical reasoning and code generation tasks, ReNIO improves both OPD and OPSD, with representative relative gains of up to $8.90\%$ for Qwen3-1.7B and $10.00\%$ for R1-Distill-Qwen-7B on mathematical reasoning benchmarks. Code repo: https://github.com/BDML-lab/ReNIO.
术语表
- on-policy distillation (OPD)
- on-policy 蒸馏
- on-policy self distillation (OPSD)
- on-policy 自蒸馏
- large language model (LLM)
- 大语言模型
- student model
- 学生模型
- teacher model
- 教师模型
- student-generated outputs (SGOs)
- 学生生成输出
- reinforcement learning (RL)
- 强化学习
- reasoning trajectory
- 推理轨迹
- prefix-conditioned token probabilities
- 前缀条件化词元概率
- token-level distributions
- 词元级分布
- sparse sequence-level rewards
- 稀疏的序列级奖励
- credit assignment
- 信用分配
- negative-trajectory asymmetry
- 负向轨迹不对称性
- incorrect-only training
- 仅用错误样本训练
- correct-only training
- 仅用正确样本训练
- exploratory reasoning
- 探索式推理
- reflection behavior
- 反思行为
- pivotal tokens
- 关键词元
- student-to-teacher probability ratio
- 学生与教师概率比
- sample-level reweighting
- 样本级重加权
- ReNIO
- ReNIO
- geometric mean
- 几何平均数
- mathematical reasoning
- 数学推理
- code generation
- 代码生成
- AIME24
- AIME24
- AIME25
- AIME25
- HMMT25
- HMMT25
- Qwen3-1.7B
- Qwen3-1.7B
- R1-Distill-Qwen-7B
- R1-Distill-Qwen-7B