Manuscript Offprint

arXiv:2610.22788

Next Token or Vector? Learning How Far to Decode

Sai Sreenivas Chintha, Chidera Biringa, Rishab Sharma, Anusha Agrawal, Prachi Badarayani, Gemma Zhang, Nigel Boachie Kumankumah, Marco Ayala, Sulaiman Vesal

Abstract

Standard autoregressive decoding advances one token at a time, even when several upcoming tokens can be predicted together. We propose CADENCE (Context-Adaptive DEcoding), a generation method that learns both what to draft and how far to draft. Gaussian prediction heads represent future spans as continuous latent vectors, and a shared decoder converts the selected vector into token predictions in parallel. A learned router selects the prediction length from the model's own hidden states and predicted Gaussian parameters, adapting generation granularity to the current context with single-token generation as a fallback. The backbone verifies each proposed continuation and retains the prefix that matches its greedy predictions. Experiments with Llama-3.1-8B-Instruct on Alpaca, GSM8K, and HumanEval show that router-selected positions yield higher draft acceptance than applying the corresponding prediction length everywhere. CADENCE achieves up to 1.3×1.3\times higher generation throughput than standard greedy decoding.

1 Introduction

Large language models generate text autoregressively, predicting one token at a time from the preceding context. This sequential process makes decoding latency grow with response length, increasing user wait time and limiting the number of requests a serving system can process with fixed computational resources. Faster inference can therefore improve both responsiveness and serving capacity. However, accelerating generation remains difficult because every accepted token must remain consistent with the preceding context. Token predictability also varies substantially across a sequence. Context strongly constrains common phrases and copied spans, while other continuations require recall or computation. For example,

a=1a=1 a=2a=2 a=3a=3

What is the square root of 7?

The square root of 7 is a non - integer value,

approximately equal to 2. 645 751 311.

Figure 1: Variable-length generation for “What is the square root of 7?”. Here, ‘a’ is the acceptance length under verification. The opening and “root of 7 is a” are multi-token accepts; the digits of the approximation fall back to one token at a time.

in “What is the square root of 7? The square root of 7 is 2.646,” the repeated context makes the second occurrence of “7” easy to predict, whereas producing “2.646” requires recalling or computing the value (Leviathan et al., 2024). Standard decoding applies the same backbone computation in both cases. Adaptive decoding can instead take short steps when uncertainty is high and longer steps when the context supports several upcoming tokens.

Existing methods accelerate generation by drafting multiple tokens for parallel verification or by changing the representation used during generation. They construct drafts from auxiliary token heads, internal model features, diffusion blocks, or compressed latent representations (Leviathan et al., 2023; Cai et al., 2024; Li et al., 2024, 2025; Chen et al., 2026; Shao et al., 2025; Tan et al., 2025). These approaches show that models can advance by more than one token per decoding step, but the chosen representation also determines what kinds of length-control decisions the model can make.

Adaptive methods already control draft length through learned stopping and dynamic tree construction (Huang et al., 2024; Liu et al., 2026; Wang et al., 2026). Recent serving work further shows that indiscriminately verifying long drafts can waste target-model batch capacity when acceptance decays, particularly under high concur-

∗^{*}Equal contribution

†^{\dagger}Corresponding authors: {schintha, cbiringa}@microsoft.com

Table 1: Prediction forms and length-control mechanisms.

MethodPredictionLength control
CALMChunk vectorFixed chunk size
CoLaRReasoning latentPrompted compression
MEDUSAToken treeConfigured tree
EAGLE-3Token treeConfidence-based tree selection
DFlashToken blockConfigured block size
SpecDec++Token chainLearned stopping
AdaEDLToken chainEntropy-based stopping
TALONToken treeConfidence-gated expansion
Re-SpSToken treeLearned tree configuration
CADENCESpan latentLearned span selection

rency (Cheng et al., 2026). Adaptive verification addresses this cost by pruning low-value draft suffixes before target verification. We ask whether the model can move this decision earlier by selecting among latent representations of different candidate span lengths before decoding the proposed span.

We propose CADENCE, which learns how far to draft from horizon-specific Gaussian representations of candidate spans. At each generation step, Llama-3.1-8B-Instruct produces a context representation and predicts the immediate next token. From this context, Gaussian heads predict one fixed-dimensional latent for each candidate horizon. The router combines the context with the predicted Gaussian parameters to select a horizon or fall back to the backbone token. The shared Perceiver-style decoder then maps the mean of the selected Gaussian to parallel token predictions (Jaegle et al., 2022). The backbone verifies the resulting proposal and continues from the accepted prefix.

We test whether learned routing selects contexts in which longer span predictions succeed. Using the same span predictors and decoder, we compare router-selected generation with fixed-horizon generation. We then measure whether the Gaussian parameters improve routing beyond the backbone context alone. Finally, we compare the complete system's generation throughput with standard greedy backbone decoding.