arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.09803cs.LG
收藏

好的推理产生好的示范:通过上下文强化学习进行隐式推理质量监督

Good Reasoning Makes Good Demonstrations: Implicit Reasoning Quality Supervision via In-Context Reinforcement Learning

School of Data Science, Fudan University(复旦大学数据科学学院);University of Chinese Academy of Sciences(中国科学院大学);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学院)

Tiehua Mei, Minxuan Lv, Leiyu Pan, Zhenpeng Su, Hongru Hou, Hengrui Chen, Ao Xu, Deqing Yang

AI总结:

提出In-Context RLVR方法,利用策略模型自身的上下文学习能力衡量示范效用(Demonstration Utility),通过隐式奖励加权提升推理质量和准确性。

摘要:

可验证奖励强化学习(RLVR)改进了大型语言模型的推理能力,但将所有正确解决方案同等对待,可能强化偶然得到正确答案的有缺陷的轨迹。我们观察到,\emph{更好的推理产生更好的示范}:高质量的解决方案比低质量的解决方案作为上下文示例更有效。我们将这种教学能力称为 extbf{示范效用},并表明策略模型自身的上下文学习能力提供了一种有效衡量它的方法,产生一个称为 extbf{证据增益}的质量信号。为了在训练中利用这一信号,我们引入了 extbf{上下文RLVR},在每次轨迹采样前添加示范。理论上,我们证明这种简单的输入修改隐式地以近似与证据增益成比例的因子重新加权奖励,为高质量轨迹分配更高的权重,而无需昂贵的计算。在数学推理基准上的实验表明,与标准RLVR基线相比,在准确性和推理质量上均有一致的改进。我们的代码和数据集可在 https://github.com/Mithas-114/IC-DAPO 获取。

英文摘要:

Reinforcement Learning with Verifiable Rewards (RLVR) improves reasoning in large language models but treats all correct solutions equally, potentially reinforcing flawed traces that arrive at correct answers by chance. We observe that \emph{better reasoning makes better demonstrations}: high-quality solutions serve as more effective in-context examples than low-quality ones. We term this teaching ability \textbf{Demonstration Utility}, and show that the policy model's own in-context learning ability provides an efficient way to measure it, yielding a quality signal termed \textbf{Evidence Gain}. To leverage this signal during training, we introduce \textbf{In-Context RLVR}, which prepends demonstrations before each rollout. Theoretically, we prove that this simple input modification implicitly reweights rewards by a factor approximately proportional to Evidence Gain, assigning higher weights to high-quality traces without requiring costly computation. Experiments on mathematical reasoning benchmarks demonstrate consistent improvements in both accuracy and reasoning quality over standard RLVR baselines. Our codes and datasets are available at https://github.com/Mithas-114/IC-DAPO.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑