HyperDFlash: Hyper-Connection-Aligned Block Speculative Decoding with Gated Residual Reduction
About
We present HyperDFlash, a block-parallel speculative decoding framework tailored to DeepSeek-V4's Hyper-Connections (HC). Despite the strong performance of DeepSeek-V4's native Multi-Token Prediction (MTP) module on initial token drafting, its draft accuracy degrades sharply at later positions, as error accumulation from unverified intermediate tokens harms draft acceptance rates. Although the original DFlash method supports efficient one-pass block drafting, it cannot be seamlessly adapted to the HC paradigm, since DeepSeek-V4's multi-path residual stream induces inherent feature misalignment with conventional drafting designs. To resolve this architectural mismatch, we propose two dedicated, model-aligned optimizations for HC residual streams. First, we adopt pre-collapse residual states as the exclusive conditioning signal, preserving complete multi-path structural information and better aligning the drafter with the target's native prediction pathway. Second, we replace the heavy generic linear compressor with a lightweight gated residual reducer, whose parameters are directly inherited from the target model's built-in hc_head module. This design yields input-aware path aggregation with three orders of magnitude fewer parameters while maintaining precise architectural alignment. We further enhance model training via a targeted KL distillation loss applied to the LM-head, regularizing predictions against the target distribution to improve early draft quality. Extensive experiments across math reasoning, code synthesis, and conversational benchmarks demonstrate that HyperDFlash consistently outperforms both the native MTP baseline and vanilla DFlash adaptation, achieving substantial gains in average accepted draft length and decoding speedup. These results validate HC alignment, gated reduction, and targeted distillation for high-performance speculative decoding.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Mathematical Reasoning | GSM8K | -- | 192 | |
| Code Generation | MBPP | Average Acceptance Length (τ)4.01 | 95 | |
| Code Generation | MBPP | Speedup2.56 | 87 | |
| Code Generation | LCB | Speedup2.38 | 75 | |
| Math Reasoning | GSM8K | Speedup3.8 | 32 | |
| Speculative Decoding | AVG | Speedup2.53 | 32 | |
| General Performance | Aggregate Across Math, Code, Chat | Speedup2.8 | 20 | |
| Chat Evaluation | MT-Bench | Speedup2.14 | 16 | |
| Math Reasoning | MATH 500 | Speedup2.93 | 12 | |
| Code Generation | HumanEval | Speedup2.74 | 8 |