arXiv:2611.04055cs.AINov 2026

Manuscript Offprint

arXiv:2611.04055

HybridSpec: Throughput-Aware Speculative Decoding for Hybrid GDN-MoE Models

Haiyu Wang, Sai Qian Zhang, Zechun Liu, Steven Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

In speculative decoding, parallel drafters such as DFlash make drafting cheap, so target verification dominates each round. A central choice is the verification length, the number of tokens that the target processes in each round. Verifying more draft tokens can accept more of them, but work after the first rejection is wasted. For hybrid target models that combine Gated DeltaNet (GDN) and mixture-of-experts (MoE) layers, verification time grows much faster with this length than for dense models. In a single-request profile of Qwen3.6-35B-A3B with DFlash, it grew by 71% from length 4 to 16, almost entirely in GDN and MoE layers, compared with 4%-6% for a dense Qwen3-4B target. Each GDN layer must update a recurrent state at every token and recover it at the end of the accepted prefix. The MoE cost depends on the experts that the tokens activate, which are known only once verification runs. We present HybridSpec, which selects the verification length on the GPU from draft-side acceptance estimates and measured target latency. Verification then runs this length plus one extra token up to the first MoE router, before any expert runs. There, a lightweight routing correction uses the observed expert assignments to decide whether to keep that token. The rest of verification runs only on the selected tokens. Block-parallel GDN kernels avoid storing a state after every token and reconstruct the accepted state of every GDN layer in one launch. In isolated benchmarks at verification lengths 4 to 16 with every draft token accepted, these kernels, including accepted-state reconstruction, are 1.54×−4.04×1.54 \times -4.04 \times faster than the default kernels. With three GDN-MoE target models in single-request greedy decoding, HybridSpec is 1.75×−1.88×1.75 \times -1.88 \times faster than autoregressive decoding and 1.30×−1.33×1.30 \times -1.33 \times faster than DFlash.

1 INTRODUCTION

Speculative decoding accelerates autoregressive generation by using a drafter to propose multiple tokens and a target model to verify them in a single forward pass, accepting draft tokens until the first rejection (Leviathan et al., 2023; Chen et al., 2023). Recent parallel and semi-autoregressive drafters, such as the diffusion-based DFlash, generate a block of draft tokens in one forward pass (Hui et al., 2026; Chen et al., 2026a; Cheng et al., 2026), making drafting inexpensive and shifting the main cost of each draft-and-verify round to verification, as

Figure

Figure 1: Profiled GPU time per verification call for Qwen3.6-35B-A3B with DFlash. (a) Times in ms, with target/drafter ratios in bold. (b) Bold percentages are increases from length 4 to 16.

Figure 1a shows. This makes the verification length, i.e., the number of draft tokens processed by the target in each round, a key design choice. A longer verification length may accept more tokens, but working on any tokens after the first rejection incurs wasted computation.

Verification time grows much more rapidly with speculative length for the hybrid architectures used in recent open models such as Jamba, MiniMax-01, Kimi Linear, and Qwen3.5 (Lieber et al., 2024; MiniMax et al., 2025; Kimi Team et al., 2025; Qwen Team, 2026b) than for dense models. These architectures combine linear-attention or state-space layers, such as Gated DeltaNet (GDN) (Yang et al., 2025), with mixture-of-experts (MoE) layers. A GDN layer maintains a fixed-size recurrent state rather than a growing key-value cache, while an MoE layer routes each token to only a small subset of experts, 8 of 256 in the models we evaluate. In our profile of Qwen3.6-35B-A3B with a DFlash drafter at batch size one, increasing the verification length from 4 to 16 raises verification time by 71%, and Figure 1b shows that almost all of the increase comes from the GDN and MoE layers. In contrast, verification time for a dense Qwen3-4B target increases by only 4%-6%, since its batch-one cost is dominated by weight loading. For GDN, the default SGLang verifier (Zheng et al., 2024) updates the recurrent state at every token and stores a full copy after each update to enable rollback to the accepted prefix. For MoE, verification cost depends on expert reuse: additional tokens are inexpensive when they reuse already active experts but more costly when they activate new ones. Because experts are selected only when the target executes, a verification length chosen beforehand can only estimate this cost.

Existing length selectors, such as Sequoia (Chen et al., 2024), DSpark (Cheng et al., 2026), D-Cut (Liu et al., 2026), and EVICT (Pan et al., 2026), decide before verification from draft confidence or profiled costs. EcoSpec predicts draft-token experts with a separately trained model (Xie et al., 2026), and FASER prunes tokens at intermediate target layers (Chen et al., 2026b). None of them uses the target's own expert assignments before the experts run.

HybridSpec selects the verification length based on measured target-model latency and acceptance estimates derived from the drafter's own signals. Since both GDN and MoE costs increase with the number of verified tokens, reducing the verification length lowers both costs. HybridSpec then verifies this length plus one additional draft token up to the first MoE router, which we call the router boundary. At this point, a lightweight routing correction uses the observed expert assignments to retain the extra token only when its expected acceptance benefit outweighs the additional verification latency. To further accelerate GDN, HybridSpec employs kernels that process all verification tokens in parallel without storing per-token recurrent states. Our contributions are as follows:

  • Throughput-aware length selection. A GPU-resident policy chooses the verification length to maximize decode throughput, and a lightweight routing correction can add one token at the router boundary. In exact arithmetic, every selected length provably preserves the target's greedy outputs and sampling distribution.

  • Two-stage verification at the router boundary. Verification pauses after the first MoE router and resumes only on the selected tokens, with no CPU round trip or recomputation.

  • Parallel GDN verification and state reconstruction. GPU kernels verify all tokens of a round in parallel within each GDN layer and rebuild the accepted states of all GDN layers in one launch. In isolated benchmarks with every draft token accepted, they are 1.54×−4.04×1.54 \times -4.04 \times faster than the default SGLang kernels at lengths 4 to 16.

• End-to-end speedups. On three GDN–MoE target models under greedy decoding, HybridSpec is 1.75×−1.88×1.75 \times -1.88 \times faster than autoregressive decoding and 1.30×−1.33×1.30 \times -1.33 \times faster than vanilla DFlash, which verifies every draft token.

References (71)