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

长上下文强化学习需要可验证的上下文奖励

LongRLVR: Long-Context Reinforcement Learning Requires Verifiable Context Rewards

National University of Singapore(国立新加坡大学);MiroMind AI;absolute AI

Guanzheng Chen, Michael Qizhe Shieh, Lidong Bing

AI总结:

LongRLVR通过引入可验证的上下文奖励,解决长上下文强化学习中因稀疏奖励导致的梯度消失问题,显著提升大语言模型的推理能力。

摘要:

可验证奖励的强化学习(RLVR)通过优化模型以事实结果为依据,显著提升了大语言模型(LLMs)的推理能力。然而,这种范式在长上下文场景中表现不佳,因为其依赖于内部参数知识,不适合需要上下文接地的任务——即找到并推理外部提供的信息。我们发现这种失败的关键原因在于仅基于最终答案的奖励过于稀疏,无法有效引导模型识别相关证据。我们正式证明,仅基于结果的奖励会导致上下文接地过程中的显著梯度消失,使学习变得不可行。为克服这一瓶颈,我们引入LongRLVR,通过在稀疏答案奖励中加入密集且可验证的上下文奖励来增强。这种辅助信号直接激励模型选择正确的接地信息,提供了一种稳健的学习梯度,解决了底层优化挑战。我们通过使用Qwen和LLaMA模型在具有挑战性的长上下文基准上验证了我们的方法。LongRLVR在所有模型和基准上都显著优于标准RLVR,例如,将14B模型在RULER-QA上的分数从73.17提升到88.90,在LongBench v2上的分数从39.8提升到46.5。我们的工作证明,显式奖励接地过程是解锁LLMs在长上下文应用中完整推理潜力的关键且有效策略。我们的代码可在https://github.com/real-absolute-AI/LongRLVR上获得。

英文摘要:

Reinforcement Learning with Verifiable Rewards (RLVR) has significantly advanced the reasoning capabilities of Large Language Models (LLMs) by optimizing them against factual outcomes. However, this paradigm falters in long-context scenarios, as its reliance on internal parametric knowledge is ill-suited for tasks requiring contextual grounding--the ability to find and reason over externally provided information. We identify a key reason for this failure: a reward based solely on the final answer is too sparse to effectively guide the model for identifying relevant evidence. We formally prove that the outcome-only reward leads to significant vanishing gradients for the context grounding process, rendering learning intractable. To overcome this bottleneck, we introduce LongRLVR to augment the sparse answer reward with a dense and verifiable context reward. This auxiliary signal directly incentivizes the model for selecting the correct grounding information, providing a robust learning gradient that solves the underlying optimization challenge. We validate our method on challenging long-context benchmarks using Qwen and LLaMA models. LongRLVR consistently and significantly outperforms the standard RLVR across all models and benchmarks, e.g., boosting a 14B model's scores on RULER-QA from 73.17 to 88.90 and on LongBench v2 from 39.8 to 46.5. Our work demonstrates that explicitly rewarding the grounding process is a critical and effective strategy for unlocking the full reasoning potential of LLMs in long-context applications. Our code is available at https://github.com/real-absolute-AI/LongRLVR.

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

↑