arXiv:2610.17679cs.LGOct 2026

Manuscript Offprint

arXiv:2610.17679

Dynamic K-Head: Difficulty-Supervised Budget Selection for Continuous Latent Reasoning

Ying Li, Yuqi Chen, Sixuan Li, Yunfeng Cai

Ying Li 1,2^{1,2}, Yuqi Chen 3(⊗)^{3(\otimes)}, Sixuan Li 4^{4}, and Yunfeng Cai 1(⊗)^{1(\otimes)}

1^{1} Beijing Institute of Mathematical Sciences and Applications, Beijing, China

caiyunfeng@bimsa.cn

2^{2} Tsinghua University, Beijing, China

liying0928@tsinghua.edu.cn

3^{3} The University of Hong Kong, Hong Kong, China

chenyuqi@hku.hk

4^{4} Peking University, Beijing, China

sxli@pku.edu.cn

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 K. 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-K = 6 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.

Keywords: Latent reasoning · Continuous chain-of-thought · Adaptive computation · Efficient reasoning · Knowledge distillation

1 Introduction

Chain-of-thought (CoT) reasoning improves language-model performance by making intermediate computation explicit [1,2,3,4], but the resulting rationales can dominate decoding cost. Recent latent-reasoning methods instead feed hidden states back into the model as continuous thoughts. Coconut trains models to

Y. Li et al.

(a) Sweep k for fixed-K = 6 CoDI

Figure

(b) Recovered errors

Fig. 1. Fixed-budget accuracy is non-monotonic and conceals instance-level recoveries. Panel (a) sweeps inference budget k for CoDI trained with fixed K = 6. Panel (b) partitions the 155 K = 6 errors recovered by another swept budget: 125 are recovered only below six, 17 only above six, and 13 on both sides. Thus the smaller- and larger-budget recovery totals are 138 and 30, respectively, with the 13 “both sides” problems included in each.

reason in a continuous latent space [5], while CoDI jointly trains explicit and implicit paths through self-distillation [6]. These methods reduce verbal output, yet most expose a fixed inference hyperparameter: the number K of latent updates.

Figure 1 illustrates why a single K is an awkward resource-allocation scheme. Easy questions may need little additional computation, whereas hard questions may benefit from more. More importantly, recurrent latent computation is not guaranteed to improve predictions monotonically. A later hidden state can overwrite a useful partial solution, amplify a shortcut, or move the final decoder into a less favorable region. With Llama 3.2 1B CoDI, K = 6 solves 690 of 1,319 GSM8K test problems. Sweeping K = 0, ..., 12 with the same checkpoint shows that 845 problems are solved by at least one budget. Of the 629 questions missed at K = 6, 138 are recovered by some smaller budget and 30 by some larger budget; these recovery sets overlap. Thus adaptive budget selection is not merely a rule of “more steps for harder questions.” It requires an instance-conditioned choice among a non-monotonic family of computations.

Our Dynamic K-Head attaches a linear head to the pre-rollout question representation and selects the number of latent states actually executed, jointly exposing the K-head and reasoner to variable computation. The contrastive objective implementing difficulty supervision pulls together budget representations of questions with similar difficulty and separates dissimilar ones. Training begins with a fixed-budget warm-up and gradually transfers budget selection to the K-head; inference chooses its highest-scoring budget. The interface requires only a controllable recurrent rollout and is instantiated with CoDI in our experiments.

Relative to CoDI, Dynamic K-Head improves accuracy while reducing reasoning/output token cost. With λK=0.01\lambda_K = 0.01, it reaches 54.51% test accuracy at 13.33 average tokens, a 2.20-point accuracy gain with 12.4% fewer tokens than CoDI's 52.31% accuracy at 15.21 tokens. With λK=0.03\lambda_K = 0.03, it reaches 54.44% accuracy at 12.03 tokens, retaining a 2.12-point gain while reducing token cost by 20.9%.

Our contributions are fourfold:

– We show that fixed latent budgets conceal non-monotonic instance-level variation: problems missed at one budget can be recovered by either smaller or larger budgets, motivating adaptive budget selection beyond a “more computation for harder questions” rule.

– We show that latent-token count alone can provide an imprecise estimate of end-to-end cost: a shorter latent rollout can shift reasoning into a longer explicit continuation. Our end-to-end accounting includes latent updates, implementation-specific special tokens, and all subsequently decoded text, and is applied uniformly to enable fair token-cost comparisons across different experimental settings.

– We introduce Dynamic K-Head, a pre-rollout, question-conditioned budget selector for recurrent latent reasoners, jointly trained under selected budgets with difficulty supervision, without direct budget labels or a monotonic difficulty-to-budget mapping.

– Dynamic K-Head improves CoDI by 2.12 accuracy points while reducing reasoning/output token cost by 20.9%; without difficulty supervision, budget selection is less accurate and more expensive.

References (34)