LongR: Unleashing Long-Context Reasoning via Reinforcement Learning with Dense Utility Rewards
Abstract
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.
Community
š§ Long context ā effective reasoning. We introduce LongR, an RL framework that teaches LLMs to āThink-and-Readāāinterleaving reasoning with document consultation, guided by more than just final-answer correctness. Our key idea is a dense contextual reward based on relative information gain, encouraging models to extract informative, document-grounded evidence without evidence annotations or rigid document chunking. A progressive curriculum helps this behavior emerge through RL, without handcrafted long-context reasoning demonstrations. arXiv š On LongBench v2, LongR improves Qwen3-4B by 9.79 percentage points over SFT and 5.03 points over outcome-only DAPO, alongside improvements on RULER and InfiniteBench. The takeaway: better long-context reasoning is not just about processing more tokensāit is about learning to use the evidence within them. arXiv Weād love to hear your thoughts! š
Get this paper in your agent:
hf papers read 2602.05758 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper