QwenLong-L1: Towards Long-Context Large Reasoning Models with Reinforcement Learning

Fanqi Wan, Weizhou Shen, Shengyi Liao, Yingcheng Shi, Chenliang Li +5 more
5/23/2025
cs.CL

No official code found. Best implementation: Tongyi-Zhiwen/Qwen-Doc (558 stars, last commit 2026-02-04).

Abstract

Recent large reasoning models (LRMs) have demonstrated strong reasoning capabilities through reinforcement learning (RL). These improvements have primarily been observed within the short-context reasoning tasks. In contrast, extending LRMs to effectively process and reason on long-context inputs via RL remains a critical unsolved challenge. To bridge this gap, we first formalize the paradigm of long-context reasoning RL, and identify key challenges in suboptimal training efficiency and unstable optimization process. To address these issues, we propose QwenLong-L1, a framework that adapts short-context LRMs to long-context scenarios via progressive context scaling. Specifically, we utilize a warm-up supervised fine-tuning (SFT) stage to establish a robust initial policy, followed by a curriculum-guided phased RL technique to stabilize the policy evolution, and enhanced with a difficulty-aware retrospective sampling strategy to incentivize the policy exploration. Experiments on seven long-context document question-answering benchmarks demonstrate that QwenLong-L1-32B outperforms flagship LRMs like OpenAI-o3-mini and Qwen3-235B-A22B, achieving performance on par with Claude-3.7-Sonnet-Thinking, demonstrating leading performance among state-of-the-art LRMs. This work advances the development of practical long-context LRMs capable of robust reasoning across information-intensive environments.

View on arXivView PDF

Code Implementations(1)

55826Shell, PythonMay 23, 20258 months ago

Similar Papers

Cite this paper

@article{wan2025qwenlongl,
  title  = {QwenLong-L1: Towards Long-Context Large Reasoning Models with Reinforcement Learning},
  author = {Fanqi Wan and Weizhou Shen and Shengyi Liao and Yingcheng Shi and Chenliang Li and Ziyi Yang and Ji Zhang and Fei Huang and Jingren Zhou and Ming Yan},
  year   = {2025},
  eprint = {2505.17667},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.17667v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.17667.svg)](https://codeofpaper.com/paper/2505.17667)

Discussion