Direct Multi-Token Decoding

Direct Multi-Token Decoding

Xuan Luo1,   Weizhi Wang1,   Xifeng Yan1  
1University of California, Santa Barbara

Abstract

Recent studies suggest that pre-trained large language models (LLMs) might develop distinct functional roles across their layers: early layers focus on understanding the input context, middle layers handle task-specific processing, and late layers map abstract representations to output tokens. Inspired by the intuition that humans can produce an extended sequence of speech from a single act of reading and thinking, we hypothesize that a single pass through the early and middle layers could provide sufficient information to support the decoding of multiple future tokens. Accordingly, we propose Direct Multi-Token Decoding (DMTD), which performs only one full forward pass for every n tokens and reuses the late layers to decode multiple subsequent tokens. Unlike speculative decoding, our method introduces no additional computation, auxiliary routines, or post-generation verification. With minimal training overhead, a Qwen3-4B model finetuned with DMTD achieves up to a 2.15× speedup with marginal performance loss, and our scaling analysis indicates that its performance could be further improved with larger-scale training.

Main Idea

In our previous work FlexiDepth, we discovered that pre-trained large language models contain redundancy, as many layers can be skipped without affecting performance. However, these layer-skipping patterns are irregular and difficult to provide acceleration in memory-bound scenarios. DMTD repurposes this redundancy into a regular pattern by cyclically reusing the late layers to efficiently generate multiple tokens. Importantly, DMTD introduces no additional parameters, auxiliary routines, or post-generation verification like speculative decoding.

DMTD is also compatible with speculative decoding. Since a DMTD model can generate several tokens in one cycle, it can serve as its own fast drafter and then verify the drafted tokens with the full DMTD model. We provide a DMTD Qwen3-4B model with several decoding variants, including DMTD, DMTD with speculative decoding, tree speculative decoding, and Medusa-style tree speculative decoding.

Architecture

Unlike the vanilla decoder-only transformer that generates tokens one by one through full forward passes, the proposed DMTD operates in fixed multi-token cycles. Figure 1 (right) demonstrates the generation pipeline of DMTD in a single cycle. DMTD performs only one full forward pass at the beginning of the cycle and then reuses the later layers to decode multiple tokens consecutively. This cycle-based setting transforms the irregular computational redundancies observed in pre-trained LLMs into a fixed periodical pattern for efficient decoding.

DMTD Architecture
Vanilla next token prediction vs. Direct Multi-Token Decoding.

Connection to Looped Transformers

Looped Transformers increase computational depth by repeatedly refining hidden states before predicting the next token. DMTD explores a complementary direction: one full-depth pass supports several successive token predictions through the late layers, with missing early- and middle-layer KV entries refilled at cycle boundaries. Both perspectives relax the fixed coupling between full-depth processing and token generation. This suggests a future direction: jointly adapting how much latent computation to perform and how many tokens to generate between full-depth updates.

Looped Transformers: loop n times in latent space before one token. DMTD: one full-depth pass supports n successive tokens through the late layers, averaging 1/n full-depth passes per token, with KV refill at cycle boundaries. Adaptive, a future direction: jointly vary latent computation and the number of tokens between full-depth updates.
Complementary ways to allocate computation. “Loop 1/n times” denotes the average full-depth update frequency per token in DMTD; late-layer decoding still occurs for every token. Adaptive computation is a proposed future direction.

Scaling with Training Data

We conducted scaling experiments to understand how DMTD's performance improves with increasing training data across different model sizes (0.5B, 1.5B, 3B, 7B, and 14B parameters). The results reveal a consistent decrease in cross-entropy loss as training data increases for all model sizes, with the trends approximating log-linear relationships. Our current training uses only 1.5B tokens with a 4K context length. With large-scale continued pre-training, the performance of our method is expected to further improve, potentially enabling each cycle to decode more tokens efficiently. Training with longer contexts and reinforcement learning (RL) may also help further improve performance; these remain directions for future exploration.

Scaling Law
Scaling law of the proposed Direct Multi-token Decoding. The x-axis represents the number of training tokens (in billions) on a logarithmic scale, while the y-axis shows the cross-entropy loss.

Results

We evaluate our method by reusing the last 8 layers of Qwen3-4B, where Cτ denotes a decoding cycle of τ tokens. Across six benchmarks, C2 and C3 achieve 100.9% and 99.4% of the vanilla model's overall performance, respectively, while C4 retains 95.9%. Extending the cycle to C6 reduces overall performance to 81.7%, illustrating the trade-off between cycle length and prediction quality.

Table 1: The influence of different cycle lengths. Cτ denotes a decoding cycle of τ tokens. The overall score reflects the average relative performance compared to the vanilla Qwen3-4B.
ModelARC-EARC-CWinoGrandeGSM8KCoQAMBPP+Overall
Vanilla0.9340.9220.6570.9070.8050.669100.0%
C20.9300.8970.7010.9010.7980.693100.9%
C30.9210.8860.6730.8890.7800.69899.4%
C40.9160.8810.6520.8660.7490.62795.9%
C60.8720.8010.6010.5000.6720.53681.7%

Our method achieves up to 2.15× speedup when generating 4 tokens per cycle (C4), while retaining 95.9% of the vanilla model's overall benchmark performance. DMTD does not rely on speculative decoding, but it is orthogonal and complementary to speculative decoding techniques. The plain DMTD results shown here can therefore be further combined with self-speculative variants implemented in the released model.

Speedup Comparison
Speedup over vanilla Qwen3-4B across batch sizes. MTD2, MTD3, and MTD4 in the plot correspond to C2, C3, and C4 in Table 1.