Reinforcement Learning for Chain of Thought Compression with One-Domain-to-All Generalization
Hanyu Li, Jiangshan Duo, Bofei Gao, Hailin Zhang, Sujian Li, Xiaotie Deng, Liang Zhao
TL;DR
This paper tackles the inefficiency and latency of long chain-of-thought reasoning in large language models by introducing a sample-level, gated soft compression mechanism that activates only after the model has mastered a problem. By using a mastery gate and per-sample safe-length targets, it penalizes only unnecessary verbosity without truncating unmastered solutions, and it combines this with a dynamic mixture-based training regime within a GRPO-style reinforcement learning framework. The approach yields 20–40% reductions in average response length while maintaining or improving accuracy, and exhibits strong cross-domain generalization from math to tasks like code, instruction following, and general knowledge QA. A stable accuracy→compression→accuracy curriculum with early stopping (pre-collapse optimum) provides a practical, repeatable post-training phase to make reasoning more efficient and generalizable.
Abstract
Chain-of-thought reasoning in large language models often creates an "overthinking trap," leading to excessive computational cost and latency for unreliable accuracy gains. Prior work has typically relied on global, static controls that risk penalizing necessary reasoning. We introduce a sample-level, soft reinforcement learning compression method that penalizes inefficiently long rollouts, but only on problems where the model has already mastered and already produced a more concise rollout. Our experiments show that this method reduces average response length by 20-40% with comparable or higher accuracy. Crucially, the compression exhibits strong cross-domain generalization; a model trained on math spontaneously shortens responses on unseen tasks like code, instruction following, and general knowledge QA, with stable or improved accuracy. We demonstrate a stable post-training curriculum (accuracy-compression-accuracy) that can ultimately produce models that are more accurate and reason more concisely, arguing that such compression method should be a standard phase in developing efficient reasoning models.
