LongR:通过密集效用奖励的强化学习释放长上下文推理能力

·

研究论文 · 2026/10/14

强化学习(RL)已成为大语言模型推理的关键驱动力。这一能力在长上下文场景(如长对话理解和结构化数据分析)中同样至关重要,其挑战不仅在于处理大量token,更在于进行严谨的推理。现有工作多聚焦于数据合成或架构改进,而近期研究指出,仅依赖稀疏的、仅基于结果的奖励收益有限,因为这种粗粒度信号往往不足以有效引导复杂的长上下文推理。为此,我们提出LongR,一个统一框架,通过整合动态的“思考与阅读”机制(将推理与文档查阅交替进行)以及基于相对信息增益的上下文密度奖励(无需证据标注即可量化相关文档的效用),来提升长上下文性能。实验上,LongR在LongBench v2上取得超过9%的提升,并在RULER和InfiniteBench上获得持续改进,展现出在广泛上下文中导航的稳健效率。此外,LongR在多种RL算法(如DAPO、GSPO)上均能持续提升性能。最后,我们进行了深入分析,探究推理链长度对效率的影响以及模型对干扰项的鲁棒性。

该研究针对长上下文推理中稀疏奖励信号不足的问题,提出了创新的密集效用奖励框架,并在多个基准和RL算法上验证了有效性,对提升大语言模型的长上下文推理能力具有重要参考价值。

Reinforcement Learning (RL) has emerged as a key driver for LLM reasoning. This capability is equally pivotal in long-context scenarios---such as long-dialogue understanding and structured data analysis---where the challenge extends beyond consuming tokens to performing rigorous deduction. While existing efforts focus on data synthesis or architectural changes, recent work points out that relying solely on sparse, outcome-only rewards yields limited gains, as such coarse signals are often insufficient to effectively guide the complex long-context reasoning. To address this, we propose LongR, a unified framework that enhances long-context performance by integrating a dynamic ``Think-and-Read'' mechanism---which interleaves reasoning with document consultation---with a contextual density reward based on relative information gain to quantify the utility of the relevant documents, without evidence annotations. Empirically, LongR achieves a gain of over 9\% on LongBench v2 and consistent improvements on RULER and InfiniteBench, demonstrating robust efficiency in navigating extensive contexts. Furthermore, LongR consistently enhances performance across diverse RL algorithms (e.g., DAPO, GSPO). Finally, we conduct in-depth analyses to investigate the impact of reasoning chain length on efficiency and the model's robustness against distractors.

阅读原文

参与讨论