Chain-of-thought prompting significantly improves the reasoning capabilities of large language models (LLMs) but incurs high inference costs due to lengthy autoregressive decoding. While previous efficiency approaches reduce costs by discarding tokens or utilizing continuous latent representations, these lossy methods fundamentally sacrifice interpretability and auditability. In this work, we introduce a novel compression framework for intermediate reasoning. We apply Byte-Pair Encoding (BPE) to reasoning corpora to learn a compressed vocabulary of Private Use Area (PUA) tokens, each representing frequent semantic spans. After expanding the LLM's vocabulary, we fine-tune the model via strictly 1:1, our method is lossless. We evaluate our approach on Llama-3.1-8B, Qwen2.5-14B, and Qwen2.5-32B across four diverse benchmarks. Our method reduces total generated tokens by 14.7% on average with reasoning trace lengths dropping by up to 27.1%, while incurring a negligible average accuracy cost of 1.6 percentage points. Crucially, this approach is orthogonal to existing lossy methods, allowing practitioners to stack lossless and irreversible compression techniques. We demonstrate that a compressed intermediate language provides a highly efficient computational resource that accelerates inference while fully preserving the transparency of LLM reasoning.
Figures & tables
Figure 1: Example of raw vs. compressed reasoning on a GSM8K problem. Concept tokens (e.g., [U+E103] = “she sold”) each replace 2 to 3 words or punctuation marks and can recur across a trace, while the numeric answer is left in plain text so the two versions are graded identically. Here compression reduces the full sequence from 71 to 54 tokens ( −24% ).
Model
Lang
GSM8K
CommonsenseQA
StrategyQA
MATH
acc. tok.
acc. tok.
acc. tok.
acc. tok.
Qwen-14B
EN
91.7% 227.5
82.3% 216.3
76.2% 209.4
69.2% 575.0
ZH
91.0% 195.5
75.8% 197.9
73.8% 165.8
62.8% 516.4
Qwen-32B
EN
90.8% 202.5
86.5% 158.8
79.4% 160.4
65.4% 445.1
ZH
93.5% 198.0
79.0% 222.4
75.0% 190.5
66.2% 454.8
Llama-8B
EN
82.0% 218.5
77.7% 141.0
68.8% 195.3
39.4% 724.1
Table 1: Baseline accuracy and mean generated tokens on raw English (EN) and Chinese (ZH) prompts.
Dataset
Train
Eval
Answer
Question Type
GSM8K
7,473
1,319
#\N
grade-school arithmetic word problems (multi-step numeric)
MATH
12,000
500
\boxed{}
competition math (algebra, geometry, number theory)
StrategyQA
1,443
160
yes/no
multi-hop yes/no needing implicit strategy
CommonsenseQA †
9,741
1,221
5-way choice
multiple-choice commonsense (answer-only, no CoT)
Table 2: Reasoning datasets used. GSM8K, MATH and StrategyQA carry genuine chain-of-thought and are used for the self-distillation fine-tune; each also has a parallel Chinese (ZH) eval set of identical size. † CommonsenseQA is answer-only, so it is dropped from the Stage-3 self-distill build and kept for raw-arm evaluation only.
Dataset
Model
Base
Comp.
Red.%
GSM8K
LLaMA-3.1-8B
1,160,879
943,294
18.74
Qwen2.5
1,338,791
1,121,890
16.20
CommonsenseQA
LLaMA-3.1-8B
230,115
197,000
14.39
Qwen2.5
230,229
197,389
14.26
StrategyQA
LLaMA-3.1-8B
73,941
66,042
10.68
Qwen2.5
76,515
68,637
10.30
Table 3: Per-dataset compression of the English training corpus under each model’s concept codec. base : base-tokenizer tokens; comp : compressed units; red.% =100(1−comp/base) . GSM8K compresses most; StrategyQA least.
Concept Tokens
LLaMA-3.1-8B
Qwen2.5
GSM8K
1,616
1,593
CommonsenseQA
857
841
StrategyQA
717
707
MATH
2,794
2,773
distinct EN
2,944
2,919
base vocab.
128,256
151,665
Table 4: English concept (PUA) tokens added to the vocabulary. The first four rows are the number of distinct concept tokens occurring in each dataset’s English corpus; these overlap across datasets, so they exceed the distinct EN total. MATH alone exercises ∼ 95% of the learned codec. “ext. vocab. (EN)” = base vocab. + distinct EN concepts.
Dataset
Key
Acc. (%)
Both Correct
Total (All Problems)
n
Gen
Total
Prompt
Gen.
Total
Gen. PUA%
Qwen2.5-14B-Instruct
GSM8K
Raw Compressed % token saved
90.2% 89.4%
1128
213.2 164.9 22.7%
374.9 306.1 18.3%
163.3 142.7 12.6%
221.4 172.1 22.3%
384.7 314.7 18.2%
0.0% 22.9%
MATH
Raw Compressed % token saved
67.8% 67.4%
311
444.4 373.5 16.0%
593.6 507.4 14.5%
166.2 149.3 10.2%
548.5 457.5 16.6%
714.6 606.8 15.1%
0.0% 13.1%
StrategyQA
Raw Compressed % token saved
78.7% 78.7%
120
187.1 158.9 15.1%
301.2 265.3 11.9%
114.4 106.7 6.7%
199.4 167.0 16.3%
313.8 273.7 12.8%
0.0% 13.6%
CommonsenseQA
Raw Compressed % token saved
82.5% 81.6%
937
228.2 176.9 22.4%
367.5 303.4 17.5%
139.5 126.5 9.3%
233.6 183.9 21.3%
373.1 310.4 16.8%
0.0% 12.7%
Table 5: Comparison across models: raw vs. compressed accuracy, the matched both-correct subset, and full totals across all problems. Each dataset is a single row; the key column repeats the stacking order used by every token-count cell ( raw on top, compressed in bold below, % tokens saved on the bottom line). Accuracy and genPUA% cells stack only raw/compressed, with no % line. Bold marks the better value in each pair: for accuracy, the higher percentage wins; for token counts, the lower count wins.
Large Reasoning Models (LRMs) excel on complex tasks through long chain-of-thought (CoT) reasoning, but their lengthy intermediate steps cause severe overthinking that inflates inference cost. KV-cache compression is a common solution, yet existing reasoning-oriented methods apply a uniform policy across the trajectory and judge compression only by what it removes from the cache. Two observations point the other way. First, a reasoning state's tolerance to context loss varies along the trajectory, and process reward tracks it: deleting tokens at high-reward steps preserves accuracy far better than deleting the same budget at random. Second, compression is not free on the generation side, since a smaller cache leads the model to generate more tokens, partly canceling the saving. Together these motivate coordinating both sides under a single process reward. We propose ReCo (Reward-Coordinated Compression), a step-wise framework in which a lightweight process-reward estimator scores each completed step and drives three components: (1) reward-adaptive KV-cache compression that shrinks the retained cache harder at high-reward steps and less at low-reward ones, (2) a reward-banded penalty on reflection tokens that curbs redundant generation, and (3) confidence-based early stopping that triggers when the reasoning is reliable. Across three reasoning models and six benchmarks, ReCo reduces generated tokens by 37%-65% and end-to-end latency by 2.08x-2.35x over Full CoT, all while largely preserving accuracy.
Reasoning in Large Language Models incurs significant inference-time compute, yet the token-level information structure of reasoning traces remains underexplored. We observe that reasoning tokens split into two functional types: low-entropy structural tokens (recurring phrases that scaffold the reasoning process) and higher-entropy organic tokens (problem-specific content that drives toward a solution). This asymmetry motivates a simple, model-agnostic compression pipeline: apply cross-word BPE merges on a model's own reasoning traces to derive supertokens that capture frequent structural patterns, then teach the model to adopt them via supervised fine-tuning. Across three model families and five mathematical reasoning benchmarks, our approach shortens reasoning traces by 8.1% on average with no statistically significant accuracy loss on any model--benchmark pair. Beyond compression, supertokens act as interpretable reasoning-move annotations (backtracking, verification, strategy shifts), exposing the model's high-level strategy at a glance. Analyzing transitions between structural categories reveals systematic differences between correct and incorrect traces: correct traces show productive recovery (backtracking followed by strategy shifts and verification), while incorrect traces are dominated by confusion cycles (repeated hedging and unresolved contradictions). These diagnostic signals suggest applications in reward shaping and early stopping for RL-based reasoning training.
Explicit chain-of-thought (CoT) reasoning substantially improves the reasoning ability of large language models (LLMs), but incurs high inference cost due to lengthy autoregressive traces. Existing latent reasoning methods offer a promis- ing alternative, yet they often treat reasoning as uniformly compressible, causing precision-critical intermediate steps to be overly compressed and thereby degrading reasoning accuracy. In this work, we propose Selective Latent Thinking (SLT), a reasoning paradigm that selectively compresses redundant reasoning spans into latent representations while preserving precision-critical spans as explicit CoT within the same reasoning trajectory. Our primary instantiation uses a lightweight decoder to anticipate a short upcoming reasoning span and applies confidence- based gating to determine the longest span that can be reliably compressed; the resulting selective compression policy is further optimized with trajectory-level reinforcement learning to balance answer correctness against reasoning cost. Ex- periments across four mathematical reasoning benchmarks show that which spans are compressed is critical: with the same compressor, compressing arbitrary spans reduces the GSM-Hard accuracy of Qwen3-4B from 54.7% to 17.3%, whereas keeping numerical tokens explicit retains 51.8%. SLT reduces explicit reasoning length by 58.4% with only a 2.8-point accuracy drop compared to explicit CoT on Llama-3.2-1B. Notably, the principle extends beyond this design: instantiated within existing latent reasoning models via a learned compression gate, it improves accuracy at equal reasoning length (+2.6 points over Latent-SFT) and at shorter length (+5.6 points over Latent-GRPO with 13% fewer tokens).
Hui Xie, Jie Liu, Ziyue Qiao +1
Eindhoven University of Technology, Netherlands · School of Computing and Information Technology, Great Bay University, China