# LoongRL: Reinforcement Learning for Advanced Reasoning over Long Contexts

- **ID:** 930
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2510.19363
- **Authors:** Wang, Siyuan, Zhang, Gaokai, Li Lyna, Shang, Ning, Yang, Fan, Chen, Dongyao, Mao
- **Venue:** arXiv 2510.19363
- **Publisher:** arXiv 2510.19363
- **Published:** 2025
- **Source:** arxiv
- **Access:** open arXiv PDF/abs
- **Tags:** arxiv, 2510-19363, reasoning-rl, ocr-vision-language, linkedin-thread
- **Topics:** reasoning / RL; OCR / vision-language
- **Added:** 2026-09-15
- **Verified:** 2026-09-15
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/930

## Summary

Reasoning over long contexts is essential for large language models. While reinforcement learning (RL) enhances short-context reasoning by inducing "Aha" moments in chain-of-thought, the advanced thinking patterns required for long-context reasoning remain largely unexplored, and high-difficulty RL data are scarce. In …

## Attributes

- **Purpose:** LoongRL: Reinforcement Learning for Advanced Reasoning over Long Contexts
- **Domain:** reasoning / RL; OCR / vision-language
- **Used for:** LLM research reference
- **Time period:** arXiv 2025/10/22; Discord LinkedIn mid harvested 2026-09-15
- **Author type:** academic/industry (see abs)

## From the source (fetched 2026-10-03)

- **Published:** Oct 22, 2025 (arXiv)
- **Last revised:** Oct 27, 2025 (arXiv)
- **arXiv categories:** cs.CL (arXiv)
- **Citations:** 28 (5 influential) (Semantic Scholar)
- **References:** 38 (Semantic Scholar)

## Abstract

Reasoning over long contexts is essential for large language models. While reinforcement learning (RL) enhances short-context reasoning by inducing "Aha" moments in chain-of-thought, the advanced thinking patterns required for long-context reasoning remain largely unexplored, and high-difficulty RL data are scarce. In this paper, we introduce LoongRL, a data-driven RL method for advanced long-context reasoning. Central to LoongRL is KeyChain, a synthesis approach that transforms short multi-hop QA into high-difficulty long-context tasks by inserting UUID chains that hide the true question among large collections of distracting documents. Solving these tasks requires the model to trace the correct chain step-by-step, identify the true question, retrieve relevant facts and reason over them to answer correctly. RL training on KeyChain data induces an emergent plan-retrieve-reason-recheck reasoning pattern that generalizes far beyond training length. Models trained at 16K effectively solve 128K tasks without prohibitive full-length RL rollout costs. On Qwen2.5-7B and 14B, LoongRL substantially improves long-context multi-hop QA accuracy by +23.5% and +21.1% absolute gains. The resulting LoongRL-14B reaches a score of 74.2, rivaling much larger frontier models such as o3-mini (74.5) and DeepSeek-R1 (74.9). It also improves long-context retrieval, passes all 128K needle-in-a-haystack stress tests, and preserves short-context reasoning capabilities.

## Research notes

- From LinkedIn thread (Discord mid 1303849791200956487). Primary: https://www.linkedin.com/posts/philipp-schmid-a6a2bb196_how-are-anthropic-s-model-so-good-at-coding-activity-7259889642571751425-UF4s?utm_source=share&utm_medium=member_desktop.

## Similar entries

- [From $f(x)$ and $g(x)$ to $f(g(x))$: LLMs Learn New Skills in RL by Composing Old Ones](https://papers.projxon.ai/entries/937) (paper, #937)
- [Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models](https://papers.projxon.ai/entries/947) (paper, #947)
- [Scalable In-context Ranking with Generative Models](https://papers.projxon.ai/entries/958) (paper, #958)
- [DeepSeek-OCR: Contexts Optical Compression](https://papers.projxon.ai/entries/940) (paper, #940)
- [Token-Efficient RL for LLM Reasoning](https://papers.projxon.ai/entries/964) (paper, #964)
- [TROLL: Trust Regions improve Reinforcement Learning for Large Language Models](https://papers.projxon.ai/entries/931) (paper, #931)
