Manuscript Offprint

arXiv:2610.20865

Long-Context Drafting Does Not Require Long-Context Drafters

Aref Jafari, Vansh Bhatia, Matt Qin, Subhajit Dutta Chowdhury, Ben Lee, Vikram Appia, Ali Ghodsi, Mehdi Rezagholizadeh

Abstract

Speculative decoding pairs a cheap drafter with parallel verification against the target. At ultra-long context it stops paying, because a drafter that attends over the full prefix inherits the target's context-dependent cost, so the speedup it was meant to provide first erodes and then reverses. The standard response is to build a long-context drafter, by training or fine-tuning one, or by using a multi-token-prediction head shipped inside the target checkpoint. We argue this is unnecessary, because the drafters in use are target-conditioned, reading hidden states the target computed over the entire prefix, so distant context already reaches them without their own attention, and verification corrects what they miss. We therefore freeze released short-context drafters and run them far past their training length under two inference-time mechanisms, one bounding the attention cache they see, which fixes their cost, and one re-basing their rotary position indices into the trained range. No weight is touched and the only tunable saturates early, so one vLLM-side configuration spans 4k to two million tokens, costing at most 0.16×0.16\times of speedup at short length. We prove when a common index shift leaves the drafter's computation exactly unchanged, and decompose acceptance into two measurable gaps with sharp bounds. Whatever speedup a frozen drafter delivers at short context, it retains out to two million tokens, across three target–drafter pairs and five corpora. The claim concerns the flatness rather than the multiple, and removing either mechanism eliminates it. The gain is conditional on the speculative cost per emitted token staying below the matched target-only cost.

1 Introduction

Speculative decoding [18, 5] reduces generation latency and is designed to leave the target's output distribution unchanged, a drafter proposing K tokens that the target verifies in one forward pass and corrects itself where it rejects. The speedup depends on how often proposals are accepted and on how cheap drafting is relative to a target decode step, and at ultra-long context the second quantity is where the method fails. Writing N for the context length, a drafter attending over a growing prefix pays attention cost scaling in N exactly as the target does, so the ratio of draft to target cost does not improve with scale, and at million-token contexts a full-attention drafter is not a cheap approximation of the target but a second expensive model. The asymmetry is in memory traffic, a K-token draft performing K sequential reads of a KV cache of size N where verification performs one parallel read of the same cache, so drafting pays that bandwidth cost K times per round and verification once, which is why the drafter is the side worth bounding. The field's response has been to build drafters suited to long context, by training them [37, 32, 19] or by using a native multi-token-prediction head that only checkpoints shipping such a head can use [31]; each either requires training or requires the target to have been built with drafting in mind.

Figure

Figure

Figure 1: Speedup against context length, log⁡2\log_2 axis, both drafters and all three arms (section 6.2; ladder in Table 1). Dotted horizontal is break-even; dotted vertical is Pmax=1,048,576P_{\text{max}} = 1,048,576, the rotary limit both drafters reach by YaRN scaling. Only the full method (blue) is still worth at 2M roughly what it is worth at 8k.

Figure

Figure 2: The method. Windowing bounds what the drafter attends over, holding its cost constant in N; re-basing bounds the indices it evaluates, which windowing does not, by assigning mmod  Pmax⁡m \mod P_{\max} on cache entry.

We argue the premise is wrong: long-context drafting does not require long-context drafters. The drafters at issue are target-conditioned: in the EAGLE family [19, 20] and in DSpark [7] the drafter's per-position input concatenates a token embedding with hidden states the target computed over the entire prefix, so distant context reaches it through those features rather than through its own attention, and bounding how many positions it attends over bounds its cost without cutting it off from the prefix. Verification makes this safe rather than making it work, a guess that does depend on distant information being rejected at a bounded cost of one round. Running such a drafter far past its training length fails in two separately fixable ways, shown together in Figure 2. Its attention cost grows with the prefix, so we bound it to the most recent W tokens and leave the target verifying against the complete context. Windowing does not bound the position indices, so a rotary drafter still evaluates its transform on indices of order N, beyond the finite reach Pmax⁡P_{\max} its implementation was built for; that failure is quiet, degrading acceptance while a correct verifier leaves the target's intended output law unchanged, and we remove it by re-basing indices into [0,Pmax⁡)[0, P_{\max}), a common shift within an index band whose output equivalence holds under Proposition 1. The two are not substitutes, windowing alone leaving indices to grow with context and re-basing alone placing a growing dependency graph across bands where no single shift preserves every offset. Both are weight-preserving and both are implemented as a patch to vLLM [16], the engine in which every result below is measured.

Our contributions are the following. (i) Theory. We identify when a common RoPE shift preserves the drafter's computation graph, and give sharp unconditional acceptance bounds through a target truncation gap and a deployed-drafter fidelity gap (section 5). (ii) A re-basing scheme with an exactness guarantee. When an output's dependency graph lies in one index band, re-basing is a common shift matching ideal true-index RoPE in exact arithmetic, with a key’s index stable for its lifetime, so nothing cached is re-rotated. (iii) A measured mechanism. We measure both gaps rather than assume either is small (section 6.5), and fidelity is large and flat in W, so acceptance is drafter-limited rather than window-limited. (iv) Evidence at a scale where the problem is visible. Two frozen, released drafters retain 90% and 119% of their 8k speedup at 2M, against 28% and 8% unwindowed and 40% and 44% windowed without re-basing (Figure 1, section 6.2), reproduced on two further pairs, a dense 7B and a block-sparse target that does not itself slow with context (section 6.3), and on four further corpora, the three reaching 1M each retaining 0.93–1.30 of their 8k speedup there (Appendix E.3); a condition under which windowing fails to pay is in Appendix E. (v) Simplicity, and the reach it buys. The recipe needs no weight updates, no new checkpoint, and no sinks, and its one parameter, the window, is stable from 32k to 1M (Appendix E.7), so a single configuration spans 4k to 2M at a short-context cost of at most 0.16×; we are not aware of prior work demonstrating speculative decoding at multi-million-token context with frozen, released short-context drafters. Item (iv) is measured on a different pair from item (iii), and we do not claim the latter explains the former.

References (34)