← All reviews

Paper Review

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

July 24, 2026 Alagappan Valliappan NVIDIA arXiv:2607.21535
kv-cachespeculative-decodingserving

Windowed-MTP names the long-context draft-attention tax in built-in Multi-Token-Prediction speculative-decoding heads -- the draft re-reads the entire KV cache every step, so at million-token context it can flip speculation net-negative -- and fixes it losslessly with a training-free sink+window applied only to the draft's attention, cutting per-decode-step cost 28-44% across three architecture families at 1M tokens.

Windowed-MTP는 내장 Multi-Token-Prediction 스펙 디코딩 head가 매 step마다 전체 KV 캐시를 다시 읽어, 백만 토큰급 컨텍스트에서는 스펙 디코딩 자체를 역전시킬 수 있는 장문맥 draft-attention 세금을 명명하고, draft의 attention에만 학습 없는 sink+window를 적용해 무손실로 고친다 -- 세 아키텍처 계열에서 1M 토큰 기준 decode step당 비용을 28-44% 절감.

The windowing wedge widens with context: the input-invariant, matched-acceptance cost-side speedup ratio climbs as context length grows toward 1M tokens, across all three tested architecture families.
The windowing wedge widens with context: the input-invariant, matched-acceptance cost-side speedup ratio climbs as context length grows toward 1M tokens, across all three tested architecture families. 컨텍스트가 길어질수록 커지는 windowing 이득 -- 입력에 무관한, 수용률을 맞춘 비용 측 속도 비율이 컨텍스트 길이가 1M 토큰에 가까워질수록 테스트한 세 아키텍처 계열 모두에서 함께 커진다. Figure 3 from arXiv:2607.21535 -- authors' figure

Background Speculative decoding accelerates autoregressive LLM decoding by having a cheap draft model propose tokens that an expensive target model verifies in one batched forward pass. Recent frontier models increasingly ship a built-in Multi-Token-Prediction (MTP/NEXTN) draft head instead of a separate small drafter, designed under the implicit assumption that this draft head is essentially free compared to the target's verification pass.

배경 스펙 디코딩(speculative decoding)은 저렴한 draft 모델이 토큰을 제안하고 비싼 target 모델이 한 번의 배치 forward로 이를 검증하는 방식으로 자기회귀 LLM 디코딩을 가속한다. 최근 프런티어 모델들은 별도 draft 모델 대신 자체 내장 Multi-Token-Prediction(MTP/NEXTN) draft head를 함께 출시하는 추세이며, 이 draft head가 target의 검증 패스에 비해 사실상 공짜라는 암묵적 가정 위에서 설계돼 있다.

Problem At million-token context, that near-free assumption breaks. The built-in MTP head re-reads the entire KV cache with full attention at every draft step, so its cost grows linearly (O(S)) with context length, and on hard, low-acceptance workloads speculative decoding can end up slower than plain dense decoding. As target models shift toward hybrid/linear attention (Mamba2, GDN) to cut their own KV cost, the verify step gets cheaper while the draft step's burden stays the same, making the problem even more pronounced.

문제 백만 토큰급 컨텍스트에서는 이 '거의 공짜' 가정이 깨진다. 내장 MTP head는 매 draft step마다 전체 KV 캐시를 full attention으로 다시 읽으므로 비용이 컨텍스트 길이에 선형(O(S))으로 증가하고, 수용률이 낮은 어려운 워크로드에서는 스펙 디코딩이 아예 dense 디코딩보다 느려지는 역전까지 발생한다. target 모델들이 자체 KV 비용을 줄이려 hybrid/linear attention(Mamba2, GDN)으로 옮겨갈수록 검증 단계는 저렴해지는데 draft 단계의 부담은 그대로 남아, 문제가 오히려 더 두드러진다.

Prior limitations Prior long-context speculative decoding work (MagicDec) diagnosed a similar KV-bandwidth bottleneck but used a separately fixed-size-KV draft; LongSpec trains a dedicated bounded-KV drafter, and SpecExtend retrieves relevant keys across models -- none of them directly patches the built-in MTP/NEXTN head that frontier models already ship. Existing SGLang windowing flags are also wired only to separately trained draft paths, leaving the built-in MTP head's O(S) tax unaddressed.

기존 한계 이전 장문맥 스펙 디코딩 연구(MagicDec)는 비슷한 KV-대역폭 병목을 진단했지만 별도의 고정 크기 KV draft를 사용했고, LongSpec은 전용 bounded-KV drafter를 학습시키며 SpecExtend는 모델 간 검색으로 관련 key를 가져온다 -- 어느 것도 프런티어 모델이 이미 내장한 MTP/NEXTN head를 직접 손보지 않는다. 기존 SGLang의 windowing 플래그도 별도로 학습된 draft 경로에만 연결돼 있어, 내장 MTP head의 O(S) 비용은 그대로 방치돼 있었다.

Goal Remove the draft-side long-context KV tax from already-shipped MTP/NEXTN heads without retraining, without touching the target's output distribution, and without adding a new kernel -- a purely inference-time, drop-in fix.

목표 재학습 없이, target의 출력 분포를 건드리지 않고, 새 커널도 추가하지 않으면서 -- 이미 출시된 MTP/NEXTN head의 장문맥 draft-side KV 비용을 순수 추론 시점 개입만으로 제거하는 것이 목표다.

Method Windowed-MTP applies a StreamingLLM-style sliding window plus a handful of sink tokens to the draft's attention only, implemented by shrinking the draft's paged-KV block table to [sink blocks] + [recent-window blocks]; the target's own full-attention verification pass is left completely untouched. Because RoPE is already baked into cached keys, dropping the intervening blocks changes nothing about the retained blocks' scores, so the change needs no new kernel, no training, and no extra parameters -- just a few lines in how the draft's KV index is built.

방법 Windowed-MTP는 StreamingLLM 스타일의 슬라이딩 윈도우와 소수의 sink 토큰을 오직 draft의 attention에만 적용한다 -- draft의 paged-KV block table을 [sink 블록] + [최근 윈도우 블록]으로 줄이는 방식으로 구현되며, target 자체의 full-attention 검증 패스는 전혀 건드리지 않는다. RoPE가 이미 캐시된 key에 반영돼 있으므로 중간 블록을 빼도 남은 블록들의 점수는 변하지 않아, 새 커널도 학습도 추가 파라미터도 필요 없이 draft의 KV 인덱스 구성 코드 몇 줄만 바꾸면 된다.

Key idea Speculative decoding is exact by construction -- the target always decides which proposed tokens get accepted, so a cheaper, less-informed drafter can only change which tokens are proposed, never which are accepted, meaning any approximation on the draft side is automatically safe. It is like a junior reporter drafting copy for a strict fact-checking editor-in-chief: the reporter can skim only the last few paragraphs of a long archive instead of rereading everything, because the editor will catch and correct anything wrong regardless. The shortcut only changes how many drafts survive review, never what gets published.

핵심 아이디어 스펙 디코딩은 구조적으로 정확하다 -- target이 항상 어떤 제안 토큰을 받아들일지 결정하므로, draft가 더 저렴하고 부정확해져도 바뀌는 것은 무엇이 제안되는가일 뿐 무엇이 채택되는가는 절대 바뀌지 않는다. 이는 깐깐한 편집장에게 검수를 맡기는 신입 기자와 같다 -- 신입 기자가 방대한 과거 기사 전체를 다시 읽는 대신 최근 몇 단락만 훑고 초안을 써도, 편집장이 어차피 틀린 부분을 다 잡아내므로 결과물의 정확성은 그대로다. 지름길은 얼마나 많은 초안이 검수를 통과하느냐만 바꿀 뿐, 무엇이 최종 게재되느냐는 절대 바꾸지 않는다.

Validation Losslessness is checked directly via an all-cell greedy output diff between native and windowed decoding, confirming outputs match up to pre-existing bf16 floating-point nondeterminism across every tested (model x input) combination. Acceptance preservation is checked via three separate probes -- a window-size dose-response sweep, a per-position conditional-acceptance decomposition, and an in-run decision-invariance check -- run across three production-scale architecture families (Qwen GDN-MoE 35B/122B, Mamba2-hybrid Nemotron-3-120B) at true 1-million-token context inside a production serving framework (SGLang), not a toy single-request harness.

검증 무손실성은 native와 windowed 디코딩 간 all-cell greedy 출력 diff로 직접 확인했으며, 테스트한 모든 (모델 x 입력) 조합에서 기존 bf16 부동소수점 비결정성 이상의 차이는 없었다. 수용률 보존은 window 크기 dose-response 스윕, 위치별 조건부 수용률 분해, in-run 결정-불변성 점검이라는 세 가지 독립적 프로브로 확인했으며, 실제 프로덕션 서빙 프레임워크(SGLang) 안에서 세 가지 프로덕션급 아키텍처 계열(Qwen GDN-MoE 35B/122B, Mamba2-hybrid Nemotron-3-120B)을 대상으로 진짜 백만 토큰 컨텍스트에서 검증했다.

Results At 1M context, windowing cuts the per-decode-step cost over the shipped native MTP draft by 28% to 44% -- an input-invariant margin that widens further with context length -- while the windowed draft's top-1 token proposal matches the unwindowed draft's proposal 86-94% of the time. End-to-end, Windowed-MTP is 11% to 53% faster than native MTP and 1.58-2.55x faster than no speculation at all on a true 1M-token retrieval benchmark, and reclaims the now-unread 7.7-11% of total KV as a compact ring buffer at zero acceptance or quality cost.

결과 1M 컨텍스트에서 windowing은 출시된 native MTP draft 대비 decode step당 비용을 28%에서 44% 절감하며 -- 이 폭은 입력에 무관하고 컨텍스트가 길어질수록 더 커진다 -- windowed draft의 top-1 제안 토큰은 native draft의 제안과 86-94%의 확률로 일치한다. end-to-end로는 진짜 1M 토큰 retrieval 벤치마크에서 native MTP 대비 11-53% 빠르고 스펙 디코딩을 아예 쓰지 않는 것보다 1.58-2.55배 빠르며, 더 이상 읽히지 않는 전체 KV의 7.7-11%를 수용률이나 품질 손실 없이 compact ring buffer로 회수한다.

Comparison Against the native full-context MTP head the target already ships -- the paper's deliberately chosen, tightly controlled baseline that isolates the windowing effect with weights, verifier, and tree shape held fixed -- Windowed-MTP wins every tested cell at every draft depth. Against a separately trained drafter like EAGLE-3, the paper argues, without directly testing, that the same windowing trick should apply just as well, since an EAGLE-style head is itself a transformer layer that reads the full KV cache and would pay an identical long-context tax.

비교 target이 이미 출시한 native full-context MTP head 대비 -- 논문이 의도적으로 선택한, weight·verifier·tree 구조를 고정한 채 windowing 효과만 분리하는 엄격한 baseline -- Windowed-MTP는 테스트한 모든 draft depth에서 승리한다. EAGLE-3처럼 별도로 학습된 drafter와는 직접 비교하지 않았지만, 논문은 EAGLE 스타일 head 역시 전체 KV 캐시를 읽는 transformer layer이므로 동일한 장문맥 세금을 물 것이고 같은 windowing 기법이 똑같이 적용될 것이라고 주장한다.

Significance It quantifies and fixes a specific, previously invisible failure mode in a technique -- built-in MTP speculative decoding -- that frontier serving stacks already ship by default. At short context the tax is genuinely negligible, so the problem simply did not exist until recent models started supporting million-token context windows. The fix also generalizes cleanly across three quite different architecture families (MoE-heavy, Mamba2-hybrid) and composes with orthogonal techniques the field is simultaneously adopting, like fp8 KV quantization and hybrid/linear-attention targets, without losing its relative benefit.

의의 프런티어 서빙 스택이 이미 기본값으로 탑재한 기법(내장 MTP 스펙 디코딩)에 존재하던, 지금까지 보이지 않았던 특정 실패 모드를 정량화하고 고쳤다는 점이 의미가 크다 -- 짧은 컨텍스트에서는 이 세금이 정말로 무시할 만했기 때문에, 최근 모델들이 백만 토큰급 컨텍스트를 지원하기 전까지는 문제 자체가 존재하지 않았다. 서로 꽤 다른 세 아키텍처 계열(MoE 위주, Mamba2-hybrid)에 걸쳐 깔끔하게 일반화되고, fp8 KV 양자화나 hybrid/linear-attention target처럼 업계가 동시에 채택 중인 다른 기법들과도 상대적 이득을 잃지 않고 결합된다.

Limitations The paper's own Discussion section states that the cost-side gain scales with how windowable the draft's per-step cost share is -- architectures whose draft attention is a smaller fraction of total draft cost see a smaller, still-positive speedup, e.g. 28% for the Mamba2-hybrid Nemotron versus 30-44% for the Qwen MoE drafts. All headline numbers use bf16 KV at B=1/TP1 (batch/TP2 sweeps are reported as supporting results), and (reviewer judgment) the technique's benefit necessarily vanishes at short context, where the window already spans the whole sequence and Windowed-MTP degenerates to native MTP.

한계 논문 스스로의 Discussion 절은 비용 절감 폭이 draft의 step당 비용 중 windowable한 비중에 비례한다고 명시한다 -- draft attention이 전체 draft 비용에서 차지하는 비중이 작은 아키텍처는 절감폭도 작다(여전히 양수이긴 하지만), 예를 들어 Mamba2-hybrid Nemotron은 28%인 반면 Qwen MoE draft는 30-44%다. 모든 헤드라인 수치는 bf16 KV, B=1/TP1 기준이며(batch/TP2 스윕은 보조 결과로 보고), (리뷰어 판단) 이 기법의 이득은 짧은 컨텍스트에서는 필연적으로 사라진다 -- 윈도우가 이미 시퀀스 전체를 덮어 Windowed-MTP가 native MTP로 그대로 수렴하기 때문이다.

Future work The paper's own Discussion section names concrete next steps: applying the identical windowing trick to trained EAGLE-3 drafters and to the emerging class of block-diffusion drafters (which the authors flag as facing an even larger tax, since their draft-KV grows per layer with context); building an online adaptive-depth controller now that windowing makes shallower depths often optimal; and a kernel-level implementation of prefill-side pruning to also cut time-to-first-token, not just per-token decode latency.

향후 과제 논문 스스로의 Discussion 절은 구체적인 다음 단계를 명시한다: 동일한 windowing 기법을 학습된 EAGLE-3 drafter와, (저자들이 draft-KV가 레이어마다 컨텍스트에 비례해 늘어나 세금이 더 클 것이라 지적하는) 신흥 block-diffusion drafter에도 적용하는 것, windowing 덕분에 얕은 depth가 자주 최적이 되는 상황을 활용할 온라인 적응형 depth 컨트롤러 구축, 그리고 decode 지연뿐 아니라 첫 토큰까지의 시간(TTFT)도 줄이기 위한 prefill-side pruning의 커널 수준 구현이다.

Released resources Official code and reproduction scripts (an SGLang patch plus run/config scripts and seeded inputs) are verified public on GitHub. The paper itself is on arXiv under a CC BY 4.0 license.

자원 공개 공식 코드와 재현 스크립트(SGLang 패치, 실행/설정 스크립트, seed가 고정된 입력)는 GitHub에 공개돼 있음을 확인했다. 논문 자체는 CC BY 4.0 라이선스로 arXiv에 공개돼 있다.

The research thread

Where this paper sits 연구의 흐름

Speculative decoding traces back to Leviathan et al. and Chen et al.'s original draft-then-verify formulation, which frontier labs then folded directly into the target model itself as built-in Multi-Token-Prediction (MTP) or NEXTN heads (DeepSeek-V3, Qwen3) rather than shipping a separate small drafter. Long-context serving work like MagicDec had already flagged that speculative decoding's bottleneck shifts to KV-loading bandwidth at long context and large batch, while EAGLE-style trained drafters pushed a parallel line of work on raising acceptance length rather than cutting draft cost.

Windowed-MTP's move is to stop treating "the draft is free" as an architectural constant and instead measure exactly when and how it stops being true -- then fix only that, leaving everything else (the verifier, the acceptance rule, the shipped draft head's weights) untouched. Where MagicDec fixed the KV-bandwidth problem with a differently sized draft, and EAGLE-style work fixed acceptance by training a smarter draft, this paper fixes neither weights nor architecture -- it just changes which keys the same, already-shipped draft head is allowed to look at, exploiting the fact that speculative decoding's accept/reject rule makes any draft-side approximation automatically safe.

The paper explicitly leaves the same trick unapplied to trained EAGLE-3 heads and to the emerging class of block-diffusion drafters -- which the authors flag as facing an even steeper version of the same tax, since their KV grows per layer with context -- both natural next targets. It also opens a broader question the field is only beginning to confront: as serving stacks push context windows past a million tokens, which other "assumed free" components of the decode loop (auxiliary heads, routing/gating computations, verification bookkeeping) have similarly and silently become linear-cost liabilities that nobody has re-measured since they were designed for a shorter-context world?

스펙 디코딩은 Leviathan 등과 Chen 등의 원조 draft-then-verify 정식화에서 출발했고, 프런티어 랩들은 이를 별도의 소형 drafter 대신 target 모델 자체에 내장 Multi-Token-Prediction(MTP) 혹은 NEXTN head로 흡수시켰다(DeepSeek-V3, Qwen3). MagicDec 같은 장문맥 서빙 연구는 이미 장문맥·대배치에서 스펙 디코딩의 병목이 KV 로딩 대역폭으로 옮겨간다고 지적한 바 있고, EAGLE 계열의 학습된 drafter 연구는 draft 비용을 줄이기보다 수용 길이를 높이는 병행 노선을 밀어왔다.

Windowed-MTP의 전환은 'draft는 공짜'라는 가정을 아키텍처 상수로 취급하지 않고, 정확히 언제 어떻게 그 가정이 깨지는지를 측정한 뒤 그 부분만 고치고 나머지(검증기, 수용 규칙, 이미 출시된 draft head의 가중치)는 전혀 건드리지 않는 데 있다. MagicDec이 크기가 다른 draft를 써서 KV-대역폭 문제를 고쳤고 EAGLE 계열이 더 똑똑한 draft를 학습시켜 수용률을 고쳤다면, 이 논문은 가중치도 아키텍처도 고치지 않는다 -- 이미 출시된 같은 draft head가 어떤 key를 볼 수 있는지만 바꿀 뿐이며, 스펙 디코딩의 accept/reject 규칙이 draft 쪽의 어떤 근사도 자동으로 안전하게 만든다는 사실을 이용한다.

논문은 동일한 트릭을 학습된 EAGLE-3 head와, (저자들이 레이어마다 컨텍스트에 비례해 KV가 늘어나 더 가파른 버전의 같은 세금을 물 것이라 지적하는) 신흥 block-diffusion drafter에는 아직 적용하지 않은 채 명시적으로 남겨둔다 -- 둘 다 자연스러운 다음 타겟이다. 더 넓게는, 서빙 스택이 컨텍스트 윈도우를 백만 토큰 너머로 밀어붙이는 지금, 디코드 루프의 또 다른 '당연히 공짜'라 여겨졌던 요소들(보조 head, 라우팅/게이팅 연산, 검증 부기)도 짧은 컨텍스트 시절 설계된 이후 아무도 재측정하지 않은 채 조용히 선형 비용 부채가 되어 있지는 않은가라는, 이제 막 제기되기 시작한 더 큰 질문을 연다.

Sparks — where one could take this 아이디어의 씨앗

  • One could apply Windowed-MTP's identical sink+window trick to a trained EAGLE-3 draft head and measure whether the paper's untested claim -- that it should transfer directly since EAGLE-3 is itself a full-attention transformer layer -- actually holds. Windowed-MTP의 동일한 sink+window 기법을 학습된 EAGLE-3 draft head에 적용해, EAGLE-3도 전체 attention을 쓰는 transformer layer이므로 그대로 전이될 것이라는 논문의 미검증 주장이 실제로 성립하는지 측정해볼 수 있다.

  • One could build the online adaptive-draft-depth controller the paper names as future work -- raising depth d while the marginal accepted length exceeds the now-small windowed marginal draft cost, backing off otherwise -- and check how much additional speedup it recovers beyond the paper's fixed-depth headline numbers. 논문이 향후 과제로 명시한 온라인 적응형 draft-depth 컨트롤러를 실제로 구현해 -- 한계 수용 길이가 windowed 상태의 작은 한계 draft 비용을 넘는 동안 depth d를 올리고 아니면 낮추는 방식으로 -- 고정 depth 헤드라인 수치 대비 추가로 얼마나 더 속도를 회복하는지 확인해볼 수 있다.

Seeds grounded in the paper's own stated limitations and open questions. 논문이 스스로 밝힌 limitations와 open questions에 뿌리를 둔 씨앗입니다.

Notes

Notes

Windowed-MTP reads as a systems paper with an unusually clean correctness argument: because speculative decoding already forces the target to verify every accepted token, any change to the draft is automatically lossless, which lets the authors make an aggressive KV-cutting move (dropping ~99% of the draft’s KV reads at 1M context) without the usual quality-vs-speed tradeoff analysis that KV-eviction papers need. The single-author, NVIDIA-affiliated, production-framework (SGLang) validation across three quite different architecture families is a strong signal this is closer to a deployable fix than a research prototype.

Linked reviews

speculative-decoding

AdaFlash: Adaptive Speculative Decoding via On-Policy Distilled Diffusion Drafters

AdaFlash stabilizes diffusion-model drafters for speculative decoding, whose bidirectional attention otherwise causes high acceptance-rate variance across domains and token positions, via on-policy reverse-KL distillation plus an adaptive candidate-length head, reaching up to about 66% higher throughput in high-concurrency serving.

Jul 22, 2026
speculative-decoding

D-Cut: Adaptive Verification Depth Pruning for Batched Speculative Decoding

Prunes speculative-decoding draft tokens jointly across a whole serving batch so verification compute isn't wasted on rejected suffixes as concurrency scales up.

Jul 18, 2026
speculative-decoding

Less Experts, Faster Decoding: Cost-Aware Speculative Decoding for Mixture-of-Experts (EcoSpec)

Speculative decoding for Mixture-of-Experts models optimizes for token-acceptance likelihood alone, ignoring that each draft token also determines which experts get loaded from HBM during verification; EcoSpec adds a lightweight expert-activation predictor and a dynamic expert buffer to draft-tree selection, cutting the number of distinct experts touched per verification step and reaching up to 1.62x speedup on DeepSeek-V3.1, Qwen3-235B-A22B, and GPT-OSS-120B without touching the verification rule itself.

Jul 15, 2026
post-training

DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning

Pure RL with rule-verifiable rewards (GRPO) incentivizes o1-level reasoning to emerge from a base model without supervised CoT, and the capability transfers to small dense models via distillation.

Jul 04, 2026 · DeepSeek-AI
kv-cache

Error Certificates for KV-Cache Eviction via Randomized Design

This paper proves that deterministic top-k KV-cache eviction cannot certify its own damage -- evicted values can be altered so everything the serving system retains is unchanged while the true attention-output error grows unboundedly -- and shows that a cheap randomized retention scheme (Poisson sampling plus one logit correction) restores enough statistical structure to build a real per-step error certificate, though pre-registered testing finds that certificate is worth its 2x overhead only for attributing and scheduling recovery from failures, not predicting them.

Jul 25, 2026 · Technical University of Munich
speculative-decoding

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

Gives an independent speculative-decoding drafter a compressed KV memory instead of a full cache, so it keeps the acceptance rate of a strong drafter without its KV-access cost growing with context length.

Sep 02, 2026
speculative-decoding

xPress: Parallel Refinement for Diffusion Drafters in Speculative Decoding

Block-diffusion drafters sample every position from its own marginal, so a draft block is individually likely but jointly improbable; xPress adds a low-rank causal refiner that reconciles the whole block through parallel Jacobi iterations, lifting acceptance length from 6.25 to 8.02 tokens.

Aug 20, 2026 · University of Illinois Urbana-Champaign · IBM

Back to the review vault