Manuscript Offprint

arXiv:2611.00506

Weights That Stay: On-Chip Megakernels for Serial Heads in Speculative Decoding

Xinwei Qiang, Ziyi Xu, Zaifeng Pan, Chang Chen, Yufei Ding

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

ABSTRACT

Parallel speculative drafters use a lightweight serial head to recover token dependencies within a block generated in parallel. Each head step updates only a small state, yet projects that state through the same vocabulary-sized matrix. Step-wise execution repeatedly transfers this large, immutable projection, making the head a meaningful source of latency despite its low arithmetic cost. We present WEIGHTS THAT STAY, an execution design that keeps projection shards on chip for the entire serial draft walk. A persistent megakernel couples weight residency with GPU-side token selection and state advancement, reusing resident weights while exchanging only compact state between steps. The design supports full or partial residency and accommodates both Markov and recurrent heads on H100 and B200. Integrated into SGLang, WEIGHTS THAT STAY improves throughput for Markov drafting on Qwen3-4B and Qwen3-8B, with gains of up to 12.3%. At the head level, the DSpark walk is up to 11.6× faster than the fastest measured SGLang reference path. These results show that aligning weight residency with the full draft walk translates cross-step reuse into end-to-end serving gains.

1 INTRODUCTION

Speculative decoding accelerates language-model generation by drafting multiple tokens and verifying them in parallel with the target model (Leviathan et al., 2023; Chen et al., 2023). Parallel drafters produce a block in one backbone pass, but predictions made without their realized predecessors can lose important intra-block dependencies. DSpark (Cheng et al., 2026a) and Domino (Huang et al., 2026) recover these dependencies with a lightweight serial head after the parallel backbone. Each head step uses tokens selected earlier in the block to refine the next proposal.

The serial head performs little arithmetic, but can still add substantial latency. Although its projection is low-rank, it spans more than 150,000 vocabulary rows and is larger than the H100 L2 cache. Reapplying this projection at every dependent step makes the head bandwidth-oriented at small batch. In SGLang, the head accounts for up to 12% of a Qwen3-4B speculative round. Low rank reduces the projection's footprint, but does not eliminate its repeated movement along the serial path.

The root cause is a mismatch between the execution boundary and the lifetime of reusable data. The vocabulary projection is unchanged across the entire walk, while the cross-step dependency is carried by a much smaller token or recurrent state. Conventional operator boundaries confine the projec-

Figure

Figure 1. Walk-resident execution across GPU memory tiers. Each SM retains a shard of W throughout the walk, exchanging only tokens or recurrent state. Weights are int8 on H100 and bf16 on B200; optional loads stream nonresident tiles.

tion's software-managed lifetime to one operation or step: registers and shared memory do not persist across kernel launches.

The same projection is used at every step, so its shards can remain resident throughout the walk. A whole-walk kernel exposes this opportunity but does not realize it automatically: it can still reload the same weights at every iteration. We therefore assign fixed row shards to a co-resident grid for the complete walk. Each CTA loads retained weight tiles once, scores the same vocabulary rows at every step,

¹University of California, San Diego ²RadixArk.

and exchanges only the compact information needed to advance the recurrence. This decouples traffic for the resident weights from the number of steps in the walk.

This organization creates three coupled design requirements. First, the projection needs a stable mapping at two levels: vocabulary rows to SMs, and each SM's shard to the storage locations consumed by its matrix instructions. Second, global token selection and state advancement must complete without relinquishing that mapping. Third, the design must exploit partial fit when a shard modestly exceeds the operand storage left after reserving the execution workspace.

We realize this design in WEIGHTS THAT STAY, a family of persistent megakernels for serial draft heads (Figure 1). A GPU-side collective advances the recurrence while preserving fixed shard ownership. Resource-specific layouts provide full or partial residency on H100 and B200. The same execution structure supports heads with Markov, RNN, and GRU-based state updates.

On H100, the DSpark walk is up to 11.6×11.6\times faster than the fastest measured SGLang reference path. With block-16 Markov drafting, SGLang client throughput improves by up to 12.3% for Qwen3-4B and 8.6% for Qwen3-8B. Head-level results extend across Markov and recurrent heads and from H100 to B200.

This paper makes three contributions:

• We characterize serial draft heads by a large immutable projection shared across steps and a small evolving state, and show why step-wise execution fails to exploit this temporal reuse (Section 2).

• We develop walk-resident execution as a hierarchical tile-mapping design space, together with a GPU-side protocol that advances dependent steps without breaking the mapping (Section 3).

• We implement the design on H100 and B200, achieving up to 11.6×11.6\times head-level speedup across Markov and recurrent heads and 12.3% higher SGLang client throughput for Markov drafting (Sections 4–5).

References (31)