Abstract
Modern reasoning Large Language Models (LLMs) like DeepSeek-R1 and OpenAI-o1 achieve high accuracy through verbose "chain-of-thought" (CoT) traces. While effective, this verbosity incurs significant costs in inference latency and compute. TokenSqueeze is a novel framework that compresses these traces by up to 50% without sacrificing logical depth. By treating conciseness as a linguistic preference rather than a logical reduction, TokenSqueeze maintains or even improves performance on complex mathematical and coding benchmarks.
Introduction: The Verbosity Tax
Reasoning models achieve state-of-the-art results by "thinking out loud," but this process results in extremely long token sequences. Previous "Long2Short" methods often fall into the reasoning oversimplification dilemma: forcing a model to be shorter often causes it to skip critical logical steps, leading to a sharp drop in accuracy. TokenSqueeze addresses this by distinguishing between reasoning depth (the underlying logic) and linguistic expression (the words used to describe it).
Methodology: The Three-Stage Pipeline
TokenSqueeze utilizes a three-stage pipeline that relies entirely on self-generated data, removing the need for expensive human-curated short-answer datasets.
1. Adaptive Reasoning Depth Selection
A "one-size-fits-all" approach to compression is detrimental because harder problems fundamentally require more tokens to solve. TokenSqueeze employs a dynamic quantile mechanism to select the appropriate reasoning depth. For simpler problems (indicated by a high correctness rate), the system favors shorter chains. For more complex problems, it retains longer, more detailed chains to ensure essential logical steps are preserved.
2. Intra-Step Linguistic Refinement
This stage focuses on "squeezing" the language within individual reasoning steps. The model resamples multiple variants of a step and selects the shortest one that satisfies a Kullback-Leibler (KL) divergence constraint. This constraint ensures that the refined step does not significantly alter the model's internal probability distribution for subsequent tokens, effectively preserving the logical flow while removing linguistic "fluff."
3. Composite Optimization (DPO-L)
The final stage involves fine-tuning the model using a combination of Supervised Fine-Tuning (SFT) and a modified Direct Preference Optimization (DPO) loss. This "DPO-L" objective incorporates a logarithmic length-aware margin that explicitly rewards the model for choosing more concise correct answers when comparing pairs of varying lengths.
Key Insights and Qualitative Analysis
The core innovation of TokenSqueeze is treating conciseness as a preference alignment task. The model already possesses the necessary reasoning capabilities; it simply needs to be taught to express them more efficiently.
As shown in the example above, the refined CoT trace maintains the same mathematical logic and final result as the original but uses significantly fewer tokens by streamlining the explanation. The KL divergence "safety net" is crucial here, preventing the model from becoming "confused" by overly aggressive compression that might otherwise break the chain of thought.
Experimental Results
The authors evaluated TokenSqueeze using DeepSeek-R1-Distill-Qwen models (7B and 1.5B) across several challenging benchmarks:
- MATH500: The 7B model achieved a 51.2% reduction in total response length while maintaining 92.4% accuracy (nearly identical to the 92.8% baseline).
- AIME24: Performance actually improved from 55.5% to 57.5% despite a 30% reduction in token usage, suggesting that concise reasoning can sometimes reduce noise.
- Token Budget Superiority: When restricted to low token budgets (e.g., 1k-3k tokens), TokenSqueeze significantly outperforms the baseline, demonstrating that it uses its "token budget" much more effectively.
Conclusion
TokenSqueeze demonstrates that reasoning LLMs can be made significantly more efficient by aligning their linguistic expression with a preference for conciseness. By preserving reasoning depth while refining linguistic style, the framework achieves substantial token savings without the accuracy trade-offs typical of previous compression methods.
Summary updated