Summary (Overview)
- HybridSpec is a throughput-aware speculative decoding system for hybrid GDN–MoE (Gated DeltaNet + Mixture-of-Experts) target models, addressing the critical bottleneck of verification cost in parallel drafting.
- Key insight: Verification time grows 71% from length 4 to 16 for hybrid models versus only 4%–6% for dense models, making verification length selection crucial. HybridSpec selects the verification length on the GPU using draft-side acceptance estimates and measured target latency.
- Novel contributions: (1) GPU-resident length selection with a lightweight routing correction at the MoE router boundary, (2) two-stage verification that pauses after the first MoE router, (3) parallel GDN verification kernels with one-launch accepted-state reconstruction.
- Results: HybridSpec achieves 1.75–1.88× speedup over autoregressive decoding and 1.30–1.33× over vanilla DFlash across three GDN–MoE target models (Qwen3.5-35B-A3B, Qwen3.6-35B-A3B, Qwen3.5-122B-A10B).
Introduction and Theoretical Foundation
Speculative decoding accelerates autoregressive generation by having a drafter propose multiple tokens and a target model verify them in one forward pass. Recent parallel drafters like DFlash generate blocks of draft tokens in a single pass, making drafting cheap and shifting the dominant cost to verification.
The paper focuses on a critical architectural trend: hybrid models that combine Gated DeltaNet (GDN) linear-attention layers with Mixture-of-Experts (MoE) layers. These architectures, used in models like Qwen3.5, Jamba, and MiniMax-01, exhibit a unique challenge:
- GDN cost: Each layer maintains a fixed-size recurrent state, and the default verifier updates and stores the state after every token (requiring rollback capability to the accepted prefix).
- MoE cost: Depends on expert reuse—additional tokens are cheap when reusing active experts but costly when activating new ones. Expert selections are only known after verification runs.
The core problem: Existing length selectors (Sequoia, DSpark, D-Cut, EVICT, EcoSpec, FASER) decide verification length before target execution, unable to leverage actual expert assignments. No prior work uses the target's own expert assignments before the experts execute.
Verification length trade-off: Verifying more draft tokens can accept more of them, but work after the first rejection is wasted. For hybrid models, this trade-off is particularly acute because both GDN and MoE costs grow rapidly with token count.
Methodology
3.1 Throughput Objective
HybridSpec formulates verification length selection as a pooled throughput maximization problem. For rounds with information , choosing length in round gives pooled throughput:
where is the expected emitted tokens and is expected latency. By Dinkelbach's theorem, each round maximizes .
3.2 Two-Stage Verification at the Router Boundary
Verification is split at the router boundary (after the first MoE router, before routed experts execute):
- Stage 0: Processes tokens through Layer-0 GDN + MoE router, using pre-captured CUDA Graphs launched via conditional graph nodes (no CPU round trip).
- Routing correction: At the boundary, observes actual expert assignments and decides whether to keep the extra token based on predicted latency vs. acceptance benefit.
3.3 Length Selection and Routing Correction
The draft-side selector maximizes:
The routing correction revises latency estimates using observed Layer-0 expert counts, deciding whether to expand by one token based on:
3.4 Parallel GDN Verification
The GDN update per token follows:
HybridSpec uses the chunkwise formulation to solve for all updates in parallel:
The commit kernel reconstructs every GDN layer's accepted state in one launch:
Empirical Validation / Results
End-to-End Performance (Greedy Decoding)
On three target models across 7 categories (coding, math, reasoning, RAG, summarization, writing, roleplay):
| Method | Qwen3.5-35B-A3B | Qwen3.6-35B-A3B | Qwen3.5-122B-A10B |
|---|---|---|---|
| Vanilla DFlash | 1.45× | 1.37× | 1.32× |
| EVICT (best baseline) | 1.59× | 1.51× | 1.65× |
| HybridSpec | 1.88× | 1.83× | 1.75× |
HybridSpec verifies fewer tokens per round (mean length 6.4/6.2 vs. 16 for DFlash) with only 5% lower acceptance length—meaning skipped tokens would mostly have been rejected. Per-round time drops 24%–32% on 35B models.
Ablations (Qwen3.6-35B-A3B)
| Component removed | Replacement | SR | Gain |
|---|---|---|---|
| Length selection | Static length 7 | 1.54× | 1.19× |
| Length selection | Length 16 | 1.46× | 1.25× |
| Routing correction | Nominal-only | 1.73× | 1.06× |
| GDN kernels | SGLang kernels | 1.74× | 1.05× |
| All | Vanilla DFlash | 1.37× | 1.33× |
Length selection contributes the largest gain (1.19–1.25×), while routing correction (1.06×) and GDN kernels (1.05×) add meaningful improvements.
GDN Kernel Microbenchmarks
With all draft tokens accepted (lengths 4–16), HybridSpec kernels achieve 1.54–4.04× speedup over default SGLang kernels, with speedup growing with length. They also save memory: the default verifier reserves 1.88 GB (40% of attention-cache pool) for per-token state storage, while HybridSpec needs no such buffer.
Generalization
On 4 unseen SPEED-Bench categories (humanities, QA, STEM, multilingual), HybridSpec achieves 1.69× mean SR vs. 1.31× for vanilla DFlash without recalibration.
Theoretical and Practical Implications
Theoretical contributions:
- Provable correctness: In exact arithmetic, every selected length preserves greedy outputs (Proposition 1) and the sampling distribution under temperature sampling (Proposition 2).
- Dinkelbach-based optimization: Correctly casts length selection as pooled throughput maximization rather than per-round ratio optimization, which the paper shows produces suboptimal choices.
- Two-stage verification is theoretically sound because the routing correction operates only on observed expert assignments, not modifying acceptance probabilities.
Practical implications:
- Demonstrates that for hybrid GDN–MoE architectures, the verification length should be shorter and adaptive rather than always using full draft blocks.
- The approach of splitting verification at the router boundary and using target-side information (expert assignments) offers a new direction beyond draft-side-only methods like D-Cut and EVICT.
- CUDA Graph conditional nodes enable fully GPU-resident decision-making without CPU synchronization, a general technique applicable beyond this specific setting.
Conclusion
HybridSpec addresses verification cost in speculative decoding for hybrid GDN–MoE targets by:
- Making throughput-optimal verification length choices on the GPU from acceptance estimates and measured latency
- Refining decisions at the router boundary using observed expert assignments
- Providing parallel GDN verification kernels with one-launch accepted-state reconstruction
The system achieves 1.75–1.88× speedup over autoregressive decoding and 1.30–1.33× over vanilla DFlash on three production-scale models. Future directions include extending to batched decoding (mentioned in appendices), temperature sampling, and potentially applying the router-boundary approach to other hybrid architectures.
AI Use Statement: The authors used generative AI tools for writing assistance, coding, and result checking, but took full responsibility for all content.
Related papers
- Learning to Extrapolate in Depth with Looped Transformers
Looped transformers trained at depth K extrapolate to harder graph connectivity instances at test depths up to an exponential window, beyond which overthinking causes failures.
- Depth as a Candidate Source: Portfolio Allocation for Recurrent Test-Time Scaling in Large Language Models
Deeper recurrent computation can lose correct answers found at shallower depths, so allocating inference budgets across multiple depths outperforms any single stopping depth.
- Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime
Library of Layers lets a router dynamically reorder transformer layers per input, matching dense, looped, and sparse MoE baselines while enabling interpretable, controllable routing paths.