# Windowed-MTP: Removing the Full-Context Draft-KV Tax at Million-Token Context

DevFeed: [Windowed-MTP: Removing the Full-Context Draft-KV Tax at Million-Token Context](<https://devfeed.tech/articles/windowed-mtp-removing-the-full-context-draft-kv-tax-at-million-token-context-111425.md>)

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

Author: Alagappan Valliappan

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

Content type: article

Language: en

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

Topics: [long-context](<https://devfeed.tech/topics/long-context.md>), [Language models](<https://devfeed.tech/topics/language-models.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [qwen](<https://devfeed.tech/topics/qwen.md>)

Tags: [acceptance](<https://devfeed.tech/tags/acceptance.md>), [attention](<https://devfeed.tech/tags/attention.md>), [attention-sink](<https://devfeed.tech/tags/attention-sink.md>), [buffer](<https://devfeed.tech/tags/buffer.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-pf](<https://devfeed.tech/tags/cs-pf.md>), [drop-in](<https://devfeed.tech/tags/drop-in.md>), [factor](<https://devfeed.tech/tags/factor.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [long-context](<https://devfeed.tech/tags/long-context.md>), [mtp](<https://devfeed.tech/tags/mtp.md>), [qwen](<https://devfeed.tech/tags/qwen.md>), [sglang](<https://devfeed.tech/tags/sglang.md>), [speculative-decoding](<https://devfeed.tech/tags/speculative-decoding.md>)

## AI overview

Windowed-MTP limits the draft head's attention to a StreamingLLM-style window with an attention sink, while target verification still uses full context. This training-free change addresses a long-context cost in hybrid models: a full-attention MTP head repeatedly reads the full KV cache, and on low-acceptance workloads native MTP can be slower than no speculation. In tests on three models from the Gated DeltaNet and Mamba2 families at 1M context on one GPU in SGLang, Windowed-MTP achieved 1.28-1.44x faster decode steps than native MTP; at matched acceptance, TPOT improved by the same factor. A compact ring buffer also reclaimed 7.7-11.1% of total KV capacity, enabling one additional concurrent 1M request in the Qwen-35B batch sweep. These results are specific to the reported models and setup.

## Source excerpt

arXiv:2607.21535v2 Announce Type: replace Abstract: Speculative decoding accelerates autoregressive generation by having a draft propose tokens that a target verifies in parallel. Frontier models increasingly ship a built-in Multi-Token-Prediction (MTP) draft head, assumed to be cheap beside verification. A shipped full-attention MTP head can become disproportionately expensive beside a hybrid target at long context. The head attends over the full KV cache for each of $\gamma$ draft forwards per decode step, while only 9-25% of target layers retain full attention, so a single draft layer can issue context reads at a rate comparable to the whole target. On hard, low-acceptance workloads, deep native MTP becomes net-negative: slower than no speculation. We apply a StreamingLLM-style window plus attention sink to the draft only (Windowed-MTP); target verification remains full-context, so the target distribution is preserved. The intervention is training-free and drop-in. On three models from two hybrid families (Gated DeltaNet and Mamba2) at 1M context on one GPU in SGLang, it provides an acceptance-free 1.28-1.44x per-decode-step speedup over native MTP. The speedup grows with context; at matched acceptance, TPOT improves by the same factor. The window removes most of the draft's working set, and a compact ring buffer converts that reduction into physical capacity: it reclaims the otherwise dead draft pool, a measured 7.7-11.1% of total KV at 1M, making room for one additional concurrent 1M request in the Qwen-35B batch sweep.