R1-Compress: Long Chain-of-Thought Compression via Chunk Compression and Search

Yibo Wang, Haotian Luo, Huanjin Yao, Tiansheng Huang, Haiying He +6 more
5/22/2025
cs.CL

Official code: w-yibo/R1-Compress (17 stars, last commit 2026-01-24). 1 more implementation below.

Abstract

Chain-of-Thought (CoT) reasoning enhances large language models (LLMs) by enabling step-by-step problem-solving, yet its extension to Long-CoT introduces substantial computational overhead due to increased token length. Existing compression approaches -- instance-level and token-level -- either sacrifice essential local reasoning signals like reflection or yield incoherent outputs. To address these limitations, we propose R1-Compress, a two-stage chunk-level compression framework that preserves both local information and coherence. Our method segments Long-CoT into manageable chunks, applies LLM-driven inner-chunk compression, and employs an inter-chunk search mechanism to select the short and coherent sequence. Experiments on Qwen2.5-Instruct models across MATH500, AIME24, and GPQA-Diamond demonstrate that R1-Compress significantly reduces token usage while maintaining comparable reasoning accuracy. On MATH500, R1-Compress achieves an accuracy of 92.4%, with only a 0.6% drop compared to the Long-CoT baseline, while reducing token usage by about 20%. Source code will be available at https://github.com/w-yibo/R1-Compress

View on arXivView PDF

Code Implementations(2)

w-yibo/R1-CompressOfficial100%

[NeurIPS 2025@FoRLM] R1-Compress: Long Chain-of-Thought Compression via Chunk Compression and Search

170May 21, 20259 months ago

Unofficial implement: R1-Compress: Long Chain-of-Thought Compression via Chunk Compression and Search

10PythonJun 16, 20251 years ago

Similar Papers

Cite this paper

@article{wang2025rcompress,
  title  = {R1-Compress: Long Chain-of-Thought Compression via Chunk Compression and Search},
  author = {Yibo Wang and Haotian Luo and Huanjin Yao and Tiansheng Huang and Haiying He and Rui Liu and Naiqiang Tan and Jiaxing Huang and Xiaochun Cao and Dacheng Tao and Li Shen},
  year   = {2025},
  eprint = {2505.16838},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.16838v2}
}

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.16838.svg)](https://codeofpaper.com/paper/2505.16838)

Discussion