LongR: Unleashing Long-Context Reasoning via Reinforcement Learning with Dense Utility Rewards
cs.CL
Submitted: 2026-02-05
Updated: 2026-10-12
Comments: 18 pages, 11 figures, 14 tables, including appendices
Code: https://github.com/hiyouga/LLaMA-Factory3https:
License: http://creativecommons.org/licenses/by/4.0/
The gist: Reinforcement Learning (RL) has emerged as a key driver for LLM reasoning.
Terminology
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.
Sources
- RM-R1: Reward Modeling as Reasoning
- SeerAttention-R: Sparse Attention Adaptation for Long Reasoning
- Evidence-Augmented Policy Optimization with Reward Co-Evolution for Long-Context Reasoning
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Reward Reasoning Model
- RULER: What's the Real Context Size of Your Long-Context Language Models?
- DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Models
- Reward Design with Language Models
- Generalist Reward Models: Found Inside Large Language Models
- MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention
- QwenLong-L1.5: Post-Training Recipe for Long-Context Reasoning and Memory Management
- Kimi K2: Open Agentic Intelligence
- Kimi Linear: An Expressive, Efficient Attention Architecture
- MiniCPM4: Ultra-Efficient LLMs on End Devices
- LoongRL: Reinforcement Learning for Advanced Reasoning over Long Contexts
- Qwen3 Technical Report
- MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agent
- DAPO: An Open-Source LLM Reinforcement Learning System at Scale
- RewardAnything: Generalizable Principle-Following Reward Models
- GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Models
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering