arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.01347cs.CLcs.LG
收藏

负强化在LLM推理中的惊人有效性

The Surprising Effectiveness of Negative Reinforcement in LLM Reasoning

Computer Science Department, University of Virginia(弗吉尼亚大学计算机科学系);Princeton Language and Intelligence (PLI), Princeton University(普林斯顿大学语言与智能研究所)

Xinyu Zhu, Mengzhou Xia, Zhepei Wei, Wei-Lin Chen, Danqi Chen, Yu Meng

AI总结:

本研究分解强化学习信号,发现仅用负样本训练(惩罚错误响应)即可有效提升LLM推理性能,优于或匹敌PPO/GRPO,并提出加权NSR的简单变体进一步改进Pass@k。

摘要:

基于可验证奖励的强化学习(RLVR)是训练语言模型(LMs)在引发涌现式长思维链(CoTs)的推理任务上的一种有前景的方法。与监督学习不同,它通过策略梯度同时使用正确和错误的样本更新模型。为了更好地理解其机制,我们将学习信号分解为强化正确响应和惩罚错误响应,分别称为正样本强化(PSR)和负样本强化(NSR)。我们在数学推理数据集上训练了Qwen2.5-Math-7B、Qwen3-4B和Llama-3.1-8B-Instruct,并发现了一个令人惊讶的结果:仅使用负样本训练——不强化正确响应——可能非常有效:它在整个Pass@$k$谱($k$高达256)上持续优于基础模型,通常匹配或超越PPO和GRPO。相比之下,仅强化正确响应提高了Pass@1,但由于多样性降低,在更高的$k$值下性能下降。这些推理扩展趋势表明,仅惩罚错误响应可能比之前认识到的贡献更大。通过梯度分析,我们表明NSR通过抑制错误生成并将概率质量重新分配到其他合理候选者(由模型的先验信念引导)来工作。它优化了模型现有的知识,而不是引入全新的行为。基于这一见解,我们提出了一个简单的RL目标变体,该变体对NSR进行加权,并表明它在MATH、AIME 2025和AMC23上持续提高了整体Pass@$k$性能。我们的代码可在https://github.com/TianHongZXY/RLVR-Decomposed获取。

英文摘要:

Reinforcement learning with verifiable rewards (RLVR) is a promising approach for training language models (LMs) on reasoning tasks that elicit emergent long chains of thought (CoTs). Unlike supervised learning, it updates the model using both correct and incorrect samples via policy gradients. To better understand its mechanism, we decompose the learning signal into reinforcing correct responses and penalizing incorrect ones, referred to as Positive and Negative Sample Reinforcement (PSR and NSR), respectively. We train Qwen2.5-Math-7B, Qwen3-4B and Llama-3.1-8B-Instruct on a mathematical reasoning dataset and uncover a surprising result: training with only negative samples -- without reinforcing correct responses -- can be highly effective: it consistently improves performance over the base model across the entire Pass@$k$ spectrum $k$ up to 256), often matching or surpassing PPO and GRPO. In contrast, reinforcing only correct responses improves Pass@1 but degrades performance at higher $k$, due to reduced diversity. These inference-scaling trends highlight that solely penalizing incorrect responses may contribute more to performance than previously recognized. Through gradient analysis, we show that NSR works by suppressing incorrect generations and redistributing probability mass toward other plausible candidates, guided by the model's prior beliefs. It refines the model's existing knowledge rather than introducing entirely new behaviors. Building on this insight, we propose a simple variant of the RL objective that upweights NSR, and show that it consistently improves overall Pass@$k$ performance on MATH, AIME 2025, and AMC23. Our code is available at https://github.com/TianHongZXY/RLVR-Decomposed.

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

↑