paper-with-me

홈 › Papers

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

2026-07-23 · Alagappan Valliappan arxiv

Speculative decoding accelerates autoregressive generation by having a cheap draft propose tokens that a target verifies in parallel. Frontier models increasingly ship a built-in Multi-Token-Prediction (MTP/NEXTN) draft head under the assumption that the draft is negligibly cheap. At million-token context this breaks: an MTP draft head typically runs full attention over the entire KV cache at every draft step, so its read grows linearly with context and comes to dominate the draft cost -- precisely where speculation is most valuable. The effect compounds with draft length (a deep native draft can turn net-negative, slower than no speculation) and sharpens under hybrid/linear-attention targets, where cheaper verification leaves the draft's full-attention read exposed. We apply a StreamingLLM-style sliding window plus attention sink to the draft's attention only (Windowed-MTP), leaving full-attention verification intact. It is training-free, drop-in, and lossless by construction: the full-attention target still decides every accepted token, so windowing changes only which tokens are proposed, never which are accepted. It bounds the draft's KV working set to a constant, dropping ~99% of KV entries at 1M. Across three architecture families (Qwen GDN-MoE 35B/122B and a Mamba2-hybrid NoPE 120B) at 1M context on a single GPU in SGLang, windowing cuts the per-decode-step cost over the shipping native MTP draft by +28% to +44%, an input-invariant margin that widens with context. Since per-token latency is this cost divided by acceptance length, at matched acceptance end-to-end decode latency improves by the same amount, and more where windowing also lifts acceptance, while preserving the target's verified output distribution. Finally, the unread draft KV -- 7.7-11% of total KV at 1M -- is reclaimed via a compact ring buffer at no acceptance or quality cost.

📄 PDF Abstract BibTeX arXiv:2607.21535

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

BudgetDraft: Acceptance-Aware Multi-View Training for Sparse-KV Speculative Decoding

2026-05-29 · Liang He, Jingbo Wen, Qishi Zhan, Yixiong Chen 외 arxiv

Speculative decoding speeds up autoregressive decoding by using a drafter to propose multiple tokens that a verifier validates in parallel. In resource-constrained deployments, the drafter uses a sparse KV cache to limit…

Draft Less, Retrieve More: Hybrid Tree Construction for Speculative Decoding

2026-05-19 · Yuhao Shen, Tianyu Liu, Xinyi Hu, Quan Kong 외 arxiv

Speculative decoding (SD) accelerates large language model inference by leveraging a draft-then-verify paradigm. To maximize the acceptance rate, recent methods construct expansive draft trees, which unfortunately incur …

Know, Grow, and Protect Net Worth: Using ML for Asset Protection by Preventing Overdraft Fees

2023-02-05 · Avishek Kumar, Tyson Silver

When a customer overdraws their bank account and their balance is negative they are assessed an overdraft fee. Americans pay approximately \$15 billion in unnecessary overdraft fees a year, often in \$35 increments; user…

Credit score

Strong Drafts Need Compact Memories: Long-Context Speculative Decoding with Compressed KV Cache

2026-08-31 · Tong Yuan, Chengxi Liao, Zeyi Wen arxiv

Long-context LLM applications such as document summarization and multi-turn agents require generation from prefixes spanning tens of thousands of tokens, making decoding latency a major bottleneck. Speculative decoding (…

Document Summarization

DraftFM: A FoundationModel for Day-Zero Drafting in Magic: The Gathering

2026-08-20 · Brian Ward arxiv

Drafting a new Magic: The Gathering expansion begins before any pick from it has been observed: the complete card list is public, but the draft logs that supervised pick models train on do not yet exist. We study this da…