HyperDFlash: Hyper-Connection-Aligned Block Speculative Decoding with Gated Residual Reduction

Luxi Lin, Shuang Peng, Rui Ma, Junhao Hua, Shuwei Fan, Zhengda Qin, Qiang Wang, Hongjian Sun, Fangmin Chen, Songwei LiuarXiv 2026

TL;DR

HyperDFlash is a novel speculative decoding framework designed specifically to accelerate DeepSeek-V4's unique Hyper-Connection architecture. By replacing standard block-drafting components with model-aligned, parameter-efficient designs, it overcomes the rapid accuracy degradation seen in native Multi-Token Prediction (MTP) and delivers up to a 2.80x decoding speedup.

What Problem Does This Paper Address?

Speculative decoding speeds up large language model (LLM) inference by using a small, fast "drafter" model to propose a sequence of future tokens, which the large "target" model then verifies in parallel. DeepSeek-V4 includes a native Multi-Token Prediction (MTP) module for this purpose, but its draft accuracy drops sharply at later positions because it drafts tokens autoregressively over unverified, potentially erroneous choices.

Per-position acceptance rates over six drafted positions.

While block-parallel drafting methods (like DFlash) predict an entire block of tokens at once to avoid this error accumulation, they cannot be easily applied to DeepSeek-V4. This is due to DeepSeek-V4's "Hyper-Connections" (HC) architecture, where tokens are represented by multiple parallel residual paths rather than a single hidden state vector. Standard drafters suffer from severe structural mismatch and massive parameter overhead when trying to compress these complex multi-path features using traditional linear layers.

Methods

HyperDFlash introduces three key architectural innovations to seamlessly bridge block drafting with Hyper-Connection residual streams:

  1. Pre-Collapse Residual Conditioning: Instead of using intermediate single-layer features, the drafter conditions directly on the target's final pre-collapse HC residual states (pre_hc_head). This preserves the native multi-path semantics and aligns the drafter with the target's actual prediction pathway.
  2. Inherited HC-Gate Reducer: Rather than using a heavy, static linear projection (~67M parameters) to flatten the multi-path residual, HyperDFlash implements an input-dependent path-gating mechanism that mirrors the target's native hc_head. Crucially, its parameters are directly inherited from the target's pretrained weights, dropping the parameter count to just 65K (a 1000x reduction) while ensuring perfect architectural alignment.
  3. LM-Head KL Distillation: To stabilize training, the authors add an auxiliary Kullback-Leibler (KL) distillation loss. Because later tokens in block drafting suffer from incomplete context due to masking, this soft supervision from the target's language modeling (LM) head is strategically restricted to only the first two positions of the draft block.
Overview of HyperDFlash architecture.

Datasets

  • Training: The drafter is trained in two stages. Stage 1 uses ~300K general-purpose examples from public instruction, dialogue, and code data (primarily EagleChat). Stage 2 fine-tunes the model on ~150K task-oriented examples, including code datasets like Evol-CodeAlpaca-v1.
  • Evaluation: The framework is evaluated using a comprehensive suite of standard benchmarks: Math (GSM8K, MATH-500, AIME25), Code (HumanEval, MBPP, LiveCodeBench), and Chat (MT-Bench).

Key Insights and Ideas

  • The Autoregressive Penalty: Autoregressive drafting mechanisms (like native MTP) compound errors rapidly. Block-parallel drafting is structurally superior for long-range accuracy, provided the drafter can natively understand the target's internal representations.
  • Alignment Over Compression: Trying to force a massive dense projection layer to learn how to compress a complex feature space from scratch is highly inefficient. By copying the functional form and weights of the target's own aggregation head (hc_head), the authors achieved better alignment with 1,000x fewer parameters.
Design comparison of the path-collapse reducers.
  • Targeted Distillation: In block decoding, not all positions are created equal. Restricting KL distillation to early positions prevents conflicting gradients caused by the severe context mismatch that later masked tokens experience.

Key Results

Evaluated on DeepSeek-V4-Flash, HyperDFlash consistently outperforms both native MTP and vanilla DFlash adaptations across all benchmarks.

  • In Non-thinking mode (at temperature 0), HyperDFlash achieves an average decoding speedup of 2.80x and an average accepted draft length ($\tau$) of 3.69 tokens. This significantly beats the native MTP baseline (2.25x speedup, $\tau = 2.93$) and vanilla DFlash (1.73x speedup, $\tau = 2.14$).
Main decoding results for DeepSeek-V4-Flash in Non-thinking mode.
  • In Think-high mode (at temperature 0), HyperDFlash maintains its edge, delivering a 2.53x speedup ($\tau = 3.36$) compared to MTP's 2.11x speedup ($\tau = 2.76$).

Limitations and Future Work

  • Production Latency: The paper focuses primarily on algorithmic speedup and token acceptance rates; a complete production-level serving study accounting for exact drafter/verification overhead, batching effects, and end-to-end latency under real traffic is left for future work.
  • Distillation Simplification: The current KL teacher mean-pools the HC paths rather than using the exact gated collapse, a simplification the authors mitigated by keeping the distillation weight small.
  • Generality: The inherited reducer relies on matching target and draft hidden widths, falling back to a generic projection if they mismatch. Testing the framework across other hyper-connection-based models beyond DeepSeek-V4-Flash remains an open direction.

Summary updated

BibTeX
@misc{lin2026hyperdflash,
  author = {Luxi Lin and Shuang Peng and Rui Ma and Junhao Hua and Shuwei Fan and Zhengda Qin and Qiang Wang and Hongjian Sun and Fangmin Chen and Songwei Liu},
  title = {{HyperDFlash: Hyper-Connection-Aligned Block Speculative Decoding with Gated Residual Reduction}},
  year = {2026},
  eprint = {2606.26744},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.26744},
}
Figure