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

DevFeed: [Weights That Stay: On-Chip Megakernels for Serial Heads in Speculative Decoding](<https://devfeed.tech/articles/weights-that-stay-on-chip-megakernels-for-serial-heads-in-speculative-decoding-113778.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00506>)

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

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Model Optimizer](<https://devfeed.tech/topics/model-optimizer.md>), [GPU optimization](<https://devfeed.tech/topics/gpu-optimization.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [chip](<https://devfeed.tech/tags/chip.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [faster](<https://devfeed.tech/tags/faster.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [latency](<https://devfeed.tech/tags/latency.md>), [markov](<https://devfeed.tech/tags/markov.md>), [megakernels](<https://devfeed.tech/tags/megakernels.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [recurrent](<https://devfeed.tech/tags/recurrent.md>), [serial](<https://devfeed.tech/tags/serial.md>), [sglang](<https://devfeed.tech/tags/sglang.md>), [speculative-decoding](<https://devfeed.tech/tags/speculative-decoding.md>), [throughput](<https://devfeed.tech/tags/throughput.md>)

## AI overview

Weights That Stay reduces serial-head latency in speculative decoding by keeping shards of the shared vocabulary projection on chip throughout the draft walk. Its persistent megakernel performs token selection and state advancement on the GPU, reusing resident weights while exchanging compact state between steps. It supports full or partial residency and Markov or recurrent heads on H100 and B200. Integrated into SGLang, it raises Markov drafting throughput on Qwen3-4B and Qwen3-8B by up to 12.3%; the DSpark head-level walk is up to 11.6x faster than the fastest measured SGLang reference path. The supplied text reports these results but gives no further benchmark conditions.

## Source excerpt

arXiv:2611.00506v1 Announce Type: new 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$\times$ 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.