TL;DR
DNeo is a new parallel draft architecture that accelerates LLM inference by up to 1.3x over current state-of-the-art methods like DFlash-2. By introducing a structure-preserving feature encoder (MoFA) and a "rejection memory" that learns from previously failed token proposals, DNeo significantly boosts draft quality and generation speed without increasing the model's computational footprint.
What Problem Does This Paper Address?
Speculative decoding is a popular technique to speed up Large Language Model (LLM) inference. It uses a small, fast "drafter" model to propose a sequence of tokens, which a large "target" model then verifies in parallel. The speedup depends entirely on Tokens Per Forward (TPF)—how many tokens the drafter gets right.
Recent "parallel drafters" (like DFlash and DSpark) generate multiple tokens in a single pass by conditioning on features from the target model. However, the authors identify three critical flaws in how these features are handled:
- Residual Mixing: Standard encoders use dense projections that "smear" features across dimensions, destroying the structured information inherent in a Transformer's residual stream.
- Memory-less Encoding: When a draft is rejected, the hidden states computed during that failed attempt are usually thrown away, even though they contain useful context.
- Suboptimal Layer Selection: Most models sample features uniformly from the target model's layers, ignoring the fact that some layers are far more predictive than others.
Methods
DNeo introduces several architectural innovations to solve these bottlenecks:
- Mixture-of-Features Attention (MoFA): Instead of a dense projection matrix, MoFA uses a lightweight gating mechanism to create a weighted sum of target layers. This "structure-preserving" approach avoids residual mixing by ensuring that coordinates in the feature space aren't cross-contaminated.
- Rejection Memory: This is perhaps the most novel addition. DNeo stores the hidden states of rejected draft tokens and allows the drafter to attend to them via cross-attention in the next round. This prevents the model from repeating the same "mistakes" and provides richer context for the next guess.
- Non-Uniform Layer Selection: Through empirical analysis, the authors found that the later half of a target model contains the most useful signals for drafting. DNeo prioritizes these layers over the earlier, "identity-preserving" layers.
- Fused DNeo Causal Head: It combines the global vocabulary correction of DSpark with the context-aware scoring of DFlash-2, providing better consistency across the draft block.
- Prefix-Only Attention: To reduce latency, DNeo removes bidirectional self-attention within the draft block, relying instead on 2-tap convolutions and the causal head to maintain local consistency.
Datasets
The authors trained DNeo using on-policy distillation on the Llama-Nemotron post-training dataset. For evaluation, they used a comprehensive suite of six benchmarks to test different capabilities:
- Reasoning/Math: GSM8K, MATH-500
- Coding: HumanEval, MBPP
- Knowledge/Chat: GPQA, MT-Bench
The target model used throughout the experiments was Qwen3-4B.
Key Insights and Ideas
- The "Residual Mixing" Discovery: The authors proved that the performance gap in previous encoders wasn't due to a lack of capacity, but rather the way they projected data. By simply restricting the encoding matrix to be coordinate-wise (no mixing), they achieved nearly the same gains as their complex MoFA gate.
- Rejections are Valuable Context: In speculative decoding, the target model verifies the entire draft, meaning it calculates hidden states for rejected tokens anyway. DNeo realizes this is "free" information that can be used to steer the next round of drafting.
- Later Layers Do the Heavy Lifting: The first few layers of a Transformer mostly preserve token identity. The "aha" moment here was realizing that the drafter's job is to predict the output of the target model, so it should focus on the target's final refinement layers.
Key Results
DNeo sets a new state-of-the-art for high-quality, fast LLM inference:
- Speed: It achieves a 1.3x speedup over DFlash-2 and significantly outperforms autoregressive baselines like EAGLE-3.
- Draft Quality: DNeo consistently achieves higher TPF across all benchmarks. For example, on MATH-500, it reaches a TPF of 5.37 compared to DFlash-2's 4.05.
- Pareto Dominance: As shown in Figure 1, DNeo dominates the throughput-vs-speed frontier, maintaining high performance even as batch sizes increase.
Limitations and Future Work
- On-Policy Distillation: Training DNeo requires generating speculative roll-outs, which introduces a serial dependency during the training phase. While common in this sub-field, it is more complex than standard supervised fine-tuning.
- Hidden Dimension Alignment: The current MoFA implementation assumes the drafter and target models have the same hidden dimension size. While the authors suggest a workaround for mismatched sizes, it hasn't been extensively tested in this paper.
- Scaling Laws: The authors noted that while the trends are stable, a formal analysis of how parallel drafter performance scales with model size remains a task for future research.
Summary updated