Reinforcement Learning for Chain of Thought Compression with One-Domain-to-All Generalization

Hanyu Li, Jiangshan Duo, Bofei Gao, Hailin Zhang, Sujian Li +2 more
12/19/2025
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Chain-of-thought reasoning in large language models can trigger an "overthinking trap": longer rollouts raise cost and latency yet often yield unreliable accuracy gains. Existing methods use global, static controls that may suppress needed reasoning. We propose mastery-gated, sample-level, soft reinforcement learning compression that penalizes long rollouts only when the model already solves the problem and has produced a shorter rollout. Across benchmarks, it cuts response length by 20-40% with comparable or higher accuracy and generalizes across domains: a model trained on math spontaneously shortens unseen tasks (code, instruction following, general-knowledge QA) without hurting accuracy. We further show two-way transfer between non-agent CoT and tool-use agents: non-agent training reduces SWE-Bench Verified rounds by 13%, while compressing a thinking agent cuts SWE trajectories by 67% tokens and 52% rounds and shortens non-agent outputs by up to 44%. Compression is thus not cosmetic brevity, but an inherent computation policy -- what to keep, and what to forget.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025reinforcement,
  title  = {Reinforcement Learning for Chain of Thought Compression with One-Domain-to-All Generalization},
  author = {Hanyu Li and Jiangshan Duo and Bofei Gao and Hailin Zhang and Sujian Li and Xiaotie Deng and Liang Zhao},
  year   = {2025},
  eprint = {2601.06052},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.06052v2}
}

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

Discussion