Dynamic K-Head: Difficulty-Supervised Budget Selection for Continuous Latent Reasoning
Organizations: Beijing Institute of Mathematical Sciences and Applications, Beijing, China · Tsinghua University, Beijing, China · The University of Hong Kong, Hong Kong, China · Peking University, Beijing, China
Abstract
Chain-of-thought (CoT) improves reasoning but incurs substantial autoregressive rationale cost. Continuous CoT moves intermediate computation into recurrent hidden states, yet typically uses a fixed number of updates even though the best budget varies across questions and accuracy need not improve monotonically with . We introduce Dynamic K-Head, a question-conditioned, pre-rollout budget selector. It is jointly trained with the reasoner under selected budgets, using difficulty supervision based on scores assigned from the question alone. We also show that latent-update count can misrepresent end-to-end cost because a short latent rollout can shift computation into a longer explicit continuation. We therefore count latent updates, implementation-specific special tokens, and all decoded text. Instantiated with CoDI on Llama 3.2 1B and GSM8K, Dynamic K-Head reaches 54.44% exact-match accuracy at 12.03 average reasoning/output tokens, compared with 52.31% at 15.21 tokens for fixed- CoDI---a 2.12-point gain with 20.9% lower token cost. Across three out-of-distribution arithmetic datasets, it reduces cost by 19.3--25.7% while improving accuracy by 0.30--2.22 points. These results demonstrate that difficulty-supervised budget selection can improve both accuracy and efficiency, while stable budget selection remains a central challenge.
Figures & tables
| GSM8K | GSM8K-NL | |||
| Method | Accuracy (%) | Avg. token cost | Accuracy (%) | Avg. token cost |
| GPT-2 | ||||
| No-CoT SFT | 14.25 | 6.34 | 14.25 | 6.34 |
| CoT SFT | 48.90 | 32.27 | 33.59 | 67.60 |
| Coconut | 33.13 | 11.21 | – | – |
| CoDI | 39.80 | 14.24 | 37.38 | 14.26 |
| Method | Accuracy (%) | Avg. token cost |
|---|---|---|
| GPT-2 | ||
| CoDI | 39.80 | 14.24 |
| Dynamic K-Head (NLL) | 38.29 | 14.37 |
| Dynamic K-Head (difficulty) | 37.68 | 11.56 |
| Llama 3.2 1B | ||
| CoDI | 52.31 | 15.21 |
| Accuracy (%) | Avg. cost | ||||
|---|---|---|---|---|---|
| 0.00 | 50.87 | 13.11 | 1.781 | 1.715 | 0.066 |
| 0.01 | 54.51 | 13.33 | 0.441 | 0.131 | 0.310 |
| 0.03 | 54.44 | 12.03 | 0.540 | 0.097 | 0.443 |
| 0.05 | 52.62 | 10.27 | 0.122 | 0.006 | 0.115 |
| 0.10 | 49.05 | 10.89 | 0.724 | 0.300 | 0.424 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Efficient Language Model Reasoning
Efficient language model reasoning studies how to improve problem-solving accuracy while reducing inference, memory, latency, and training costs.
See all 371 papers