Manuscript Offprint
arXiv:2610.20865Long-Context Drafting Does Not Require Long-Context Drafters
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 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 1: Speedup against context length, axis, both drafters and all three arms (section 6.2; ladder in Table 1). Dotted horizontal is break-even; dotted vertical is , 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 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 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 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 , 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.
Under a geometric model with common independent acceptance probability , the expected emitted length, including the bonus token, is , an approximation since rejection changes later conditioning; Proposition 8 gives a stage-specific bound without independence, and the reported greedy decoder accepts on exact token agreement (Proposition 5). RoPE [27] rotates coordinate pair of each head by with , so is block diagonal with blocks and any block-wise property holds for the whole matrix; italic is the drafter's distribution, bold and a query at and a key at .
3 Related Work
Sadhukhan et al. [25] show speculative decoding remains profitable at large batch for long sequences using drafters with sparse KV caches, including a StreamingLLM-style windowed cache, but their draft budgets at contexts to 100k sit inside the models' native rotary range, so the position problem never arises; we run at batch 1 and one to two orders of magnitude longer. A parallel line attacks the verification side rather than the drafter: SpecPV [29] verifies against a sparse KV cache, accepting divergence from full-context generation, and repairs its EAGLE-3 drafter's positional range by YaRN fine-tuning, the training-based response we avoid; TriForce [28] and TokenSwift [33] are adjacent. We leave verification exact and act only on the drafter's view, so the two directions compose rather than compete. Xiao et al. [35] enable unbounded streaming by pairing a rolling window with pinned sinks, assigning positions within the cache; the load-bearing distinction is whether a key's index is stable for its lifetime, theirs being cache-relative and ours text-relative up to a constant per band, so their visible cache is re-rotated every decode step where ours is rotated once at entry, a recurring bandwidth cost against a one-off one. Yang et al. [37] and Wang et al. [32] solve the same position-generalization problem by training long-context drafters, and Windowed-MTP [31] is training-free but windows a multi-token-prediction head inside the target checkpoint, sharing the target's positional regime; we window an external drafter, which is what forces the position problem. Retrieval- and N-gram drafters [26, 10, 21, 11] need an exact prior occurrence, and retrieval-augmented speculative decoding [6] instead hands the drafter a sparse retrieved subset of the prefix, which bounds its memory without bounding its index range, so the position problem of section 4.2 persists there and re-basing applies unchanged; benchmarks remain short-context [34, 1]. Why the comparison here is internal. No external system is run as a baseline, because none of the above is defined at this operating point once the drafter's weights are fixed: the trained drafters need the training whose necessity is the question, the native-head method needs a head an external drafter lacks, the verification-side and retrieval-augmented methods depart from the full-context target's prediction rule, and N-gram drafters are not target-conditioned at all. The nearest published configurations are therefore not absent from our tables but present as arms, a released drafter run as shipped being the unwindowed arm and a bounded draft cache carrying true indices the windowed-only arm, so each contrast moves one binary on one build (Appendices B and C, with the one alternative position mechanism we do not run).
4 Method
4.1 Setup and windowing
Let the target be an arbitrary long-context model and the drafter a frozen short-context checkpoint, trained at length at most and with rotary implementation reach , required to propose -token blocks at context . No weight is modified anywhere, and Figure 2 gives the arrangement. We state the method for target-conditioned drafters, whose per-position input includes target-supplied hidden states, covering the EAGLE family and DSpark; we evaluate EAGLE-3 [20] and two DSpark variants [13, 23], and a standalone drafter with no feature channel is outside what we test. The drafter's visible attention cache holds only the most recent tokens, optionally plus sinks ( throughout, justified in section 6.4), bounding its attention cost to a constant in while the target verifies every proposal against its complete context. The drafter never runs its own attention over the prompt: at prefill its cache is written in one shot as a linear re-projection of the target's hidden states, normed and rotated at the assigned positions, so the re-basing of section 4.3 is applied at that write as well as on the query side during drafting. Windowing therefore bounds how many positions the drafter attends over, not how much each position knows, so a window of features reaches further than a window of tokens. We choose to restore the visible attention length to the drafter's training range, which alone guarantees no agreement with a truncated-target pass; section 6.5 measures the deployed fidelity.
4.2 The position problem
With no distant sinks, windowing bounds visible offsets, every satisfying . What it does not bound are the indices: at context length the drafter still evaluates for , and once the rotary transform is evaluated beyond the precomputed table or past where argument reduction remains accurate. The mathematical definition of RoPE is untouched; what fails is a particular implementation. The failure is quiet, degrading acceptance and therefore speedup while a correct verifier leaves the target's intended output law unchanged, and it is invisible below , which is why work at moderate context has not had to address it. The failure has been reported independently, Tan et al. [29] finding released EAGLE-3 heads ineffective at long context because the decoder layer's RoPE does not extrapolate. The naive remedy, renumbering the window to each step, fails structurally: a key is rotated once on entry and reused unrotated, so a sliding window changes every cached key's local index and forces a full re-rotation, the cost StreamingLLM pays.
4.3 Rotary index re-basing
An index band is a block of consecutive position indices, . Additivity, , and orthogonality, , hold block-wise and hence for the full block-diagonal (Appendix A.1), so the attention score between a query at and a key at is
depending on alone, so shifting both indices by a common constant changes nothing. Re-basing is applied at index-assignment time, before rotation: with and , every index in a band is shifted by the same and there, so by equation 2 the score is exactly unchanged while every index on which is evaluated lies in for arbitrarily large true position; each key enters already assigned , is rotated once, and is never re-rotated. Below the map is the identity, so the scheme is backward compatible, and it requires , since a visible cache wider than a band would hold distinct keys aliasing to one assigned index; in every configuration we run. Its boundary scope is limited, since direct scores can differ when visible keys straddle a band boundary and downstream effects can persist through cached ancestry. The distortion there is not a small perturbation but a positive perceived offset of order , a configuration causal masking never produces in training, so the drafter evaluates rotations outside the regime it saw; Appendix A.1 derives this and bounds the positions not certified by exactness, conservatively and not as an observed discrepancy rate.
Proposition 1 (Common-shift position invariance). Assume the drafter’s per-position inputs are identical across the two executions, which admits externally supplied features such as target hidden states, together with position-independent tokenwise operations, deterministic exact-arithmetic inference, attention whose only position dependence is fixed-frequency RoPE and a translation-invariant mask, and the same token computation graph in both executions. If every position in that graph is shifted by one common constant and both executions evaluate the same mathematical rotations, the output logits agree.
Layer induction gives this from equation 2 and translation invariance of the mask. If a prediction’s dependency graph lies in one band, all its positions receive the same shift and re-basing agrees with ideal true-index RoPE (Corollary 1); predictions whose visible keys or cached ancestors cross a boundary are not certified.
5 Why This Works
Windowing limits the drafter’s computation while verification retains the full-context target’s prediction rule, and we separate two questions: when re-basing preserves a computation, and how truncation and drafter fidelity control acceptance. The acceptance results are distributional inequalities, not assumptions that language is local.
A cache of W keys does not make a multilayer drafter a function of the last W tokens, and for a target-conditioned drafter it is not meant to, so two dependencies separate. Index dependency, which positions' rotary indices enter the computation, stays local, bounded by under purely local drafter attention (Proposition 3), and is the only notion the boundary bound of Appendix A.1 uses; information dependency, which tokens influence the output, spans the whole prefix by construction and measures 0.22–0.33 in total variation (section 6.5). The bounds below need neither, using the proposal actually produced.
5.1 The truncation–fidelity decomposition
Write with the last tokens and ; let be the target distribution from a fresh pass on alone under fixed mask, input, and position conventions, not a conditional average over distant prefixes; and let be the drafter's actual deployed proposal, including its persistent cache, eviction, re-basing, and rollback state. The triangle inequality gives
an upper bound rather than an additive identity; with equation 1 and the reverse triangle inequality it also gives . Term (A) is measurable without a drafter, for a fixed target, comparator, and law, while term (B) measures agreement between that comparator and the implemented drafter; choosing bounds neither, which is why we measure fidelity rather than assume it small. Since the inequality holds for any intermediate distribution, the comparator is a modeling choice governed by one principle, that is the target restricted to the drafter's information access. Fresh truncation is the instance matching a standalone drafter and the one we measure; the instance a target-conditioned drafter faces keeps the target's full-context keys and values at verified positions, so fresh truncation reads (A) conservatively (Appendix A.4).
5.2 The bound: sampling and greedy verification
Let be any law on prediction states, including positions, prefixes, and the implementation state that determines the proposal, with all quantities in a bound using that same law, and define and
; is a definition, not a small-error assumption, and neither stationarity nor independence is required.
Proposition 2 (Sharp mean acceptance bounds). For standard speculative rejection sampling and every , with , and in particular . For , both endpoints are attainable from the two means alone.
Both follow pointwise from the triangle inequality and its reverse form, clipped and averaged; Appendix A.2 attains each endpoint with three-token laws, and Appendix A.3 gives strictly stronger joint forms and a threshold variant (Corollary 2) that our measurements show is always the weaker screen. The reported decoder uses greedy verification, for which softmax TV is a diagnostic rather than observed acceptance: applied to point masses at the tokens chosen by the full target, the truncated target, and the deployed drafter, the same argument bounds greedy agreement by and for flip rates defined by disagreement between successive pairs (Propositions 5 and 6, Appendix A.5). The lower bound makes the key point explicit: the two error sources can cancel as well as add, so a large truncation gap does not by itself force rejection.
5.3 Context length and window selection
Different context lengths are governed by different laws , and Proposition 4 bounds the drift between two lengths by , so constant mean gaps do not imply constant acceptance and choosing needs both gaps and decoding cost on a calibration grid. Per-position bounds outside a sparse exceptional set carry over to prefix averages, and the bounds lift to whole rounds without assuming independent acceptances (Propositions 7 and 8, Appendices A.6 and A.7). The claim is therefore conditional and testable, and Appendix A.4 lists the correctness conditions and the five measurements that would explain an implementation rather than bound it.
6 Experiments
No weight is updated anywhere in any run. A Kimi-K3 target [15] (2.8T parameters, 104B active, 93 layers, tensor parallel 8) verifies against its complete prefix while a released, frozen short-context drafter proposes tokens through a bounded window with re-based rotary indices; Qwen2.5-7B-Instruct-1M [36] with its EAGLE-3 head [20] carries the ablations and the only direct gap measurements, and MiniMax-M3 [17] with EAGLE-3.1 [9] a third ladder. Two axes of generality are deliberate, three target–drafter pairs and five corpora (Appendix E.3), so the result can be a property of neither Kimi-K3, DSpark, nor PG19 [24] prose. Both mechanisms are a patch to vLLM [16], and every measurement is taken in that engine. Three evaluation laws appear below and section 5 forbids substituting a rate measured under one into a bound stated under another: deployment, reached proposal states in an actual run; corpus-position, teacher-forced positions on a stride from held-out documents; and fresh-drafter, corpus-position with the drafter run as a clean forward pass. Timing and acceptance use the first, the gaps of section 6.5 the third.
6.1 Setup and measurement controls
Every run is batch size one, greedy, with decode-phase timing from the engine’s per-phase counters so prefill is excluded, and speedup computed per sample against a paired target-only run on the identical prompt; throughout, MAL is emitted tokens per round, accepted drafts plus one. Because each comparison is a ratio between two separately booted engine instances, anything taxing one arm more manufactures or destroys the effect; four controls are load-bearing (Appendix G), the sharpest being symmetric compiled-graph capture, one arm compiled against the other eager moving a ratio from to .
6.2 Windowed drafting to two million tokens
The controlled comparison holds the target, prompts, block size K, and sample set fixed, varying only how the drafter sees context and position. Two released DSpark drafters run against the same Kimi-K3 target and differ in draft-layer
Table 1: Three arms on Kimi-K3, PG19, , , per cell. is decode-phase speedup over a paired target-only run; MAL is emitted tokens per round out of . Only the drafter's view of context and position varies, and bold marks our arm rather than the winning cell. Sample standard deviations of are 0.26–0.66 for profitable cells and 0.02–0.10 for collapsed ones, so individual cells should not be read finely: another arm is nominally ahead in five of them, Inferact at 16k and 32k and RadixArk at 8k, 128k, and 1M, each by less than that spread, and we read none of the five as a finding. The claim is the retention row, each arm's 2M speedup as a fraction of its own speedup at 8k.
| unwindowed | windowed only | windowed + re-based (ours) | ||||
|---|---|---|---|---|---|---|
| MAL | MAL | MAL | ||||
| Inferact, five MLA draft layers, trained at 16,384 | ||||||
| 8k | 2.03 | 2.63 | 2.20 | 2.87 | 2.51 | 3.29 |
| 16k | 2.39 | 3.12 | 2.33 | 3.04 | 2.36 | 3.08 |
| 32k | 2.29 | 3.01 | 1.90 | 2.48 | 2.10 | 2.73 |
| 128k | 1.29 | 1.74 | 2.31 | 3.02 | 2.41 | 3.15 |
| 512k | 0.79 | 1.17 | 2.60 | 3.37 | 2.46 | 3.18 |
| 1M | 0.66 | 1.10 | 2.24 | 2.88 | 2.55 | 3.28 |
| 2M | 0.56 | 1.07 | 0.88 | 1.13 | 2.25 | 2.89 |
| RadixArk, five GQA draft layers, trained at 4096 | ||||||
| 8k | 1.79 | 2.30 | 1.97 | 2.50 | 1.75 | 2.24 |
| 16k | 1.57 | 2.10 | 1.79 | 2.28 | 2.03 | 2.59 |
| 32k | 1.63 | 2.33 | 2.05 | 2.62 | 2.09 | 2.66 |
| 128k | 1.08 | 2.14 | 1.90 | 2.42 | 1.63 | 2.08 |
| 512k | 0.55 | 2.18 | 1.95 | 2.46 | 1.91 | 2.42 |
| 1M | 0.32 | 1.97 | 2.01 | 2.54 | 1.63 | 2.06 |
| 2M | 0.14 | 1.35 | 0.87 | 1.11 | 2.08 | 2.63 |
| retained at 2M as a fraction of the same arm at 8k | ||||||
| Inferact | 0.28 | 0.40 | 0.90 | |||
| RadixArk | 0.08 | 0.44 | 1.19 | |||
attention, Inferact [13] with five MLA [8] layers trained at 16,384 and RadixArk [23] with five GQA [2] layers trained at 4096; both read target hidden states from five layers of 93 and neither runs without the target's activations. Workload is PG19, EOS ignored, 4096 generated tokens, seven tiers from 8k to 2M, per cell, , , one MI355X node. Three arms per drafter separate the two mechanisms of section 4: unwindowed, the drafter attending over the whole prefix; windowed only, its visible cache bounded at but its rotary indices left as the target supplies them; and windowed + re-based, our method, which additionally maps indices into . All three run on one engine build, and the last two differ by a single environment flag, so binary, hardware, prompts, and drafter are identical across them.
Table 1 gives the result, plotted as Figure 1, and the claim is about flatness rather than any particular multiple: we trained neither drafter and claim nothing about drafter quality, only that whatever a released drafter is worth at short context it stays worth roughly that at the length. Windowed and re-based, Inferact retains of its 8k speedup at 2M ( to ) and RadixArk retains ( to ). Neither ratio is a trend in length, and the one above unity least of all: RadixArk's 8k denominator is the lowest of its three arms at that tier, so a retention above one reflects a weak reference cell rather than a gain from context, and what the two numbers support is the flat claim only, that the value at 2M is the value at 8k to within the ladder's own cell-to-cell spread. Inferact sits above RadixArk at every tier, by 0.01 to , the level belonging to the drafter while the flatness belongs to the mechanism.
Both other arms lose that flatness, for different reasons, which is the table's most diagnostic feature. Unwindowed drafting decays continuously, keeping and of its 8k speedup at 2M and crossing break-even between 128k and 512k and its primary failure is cost rather than acceptance, unwindowed RadixArk still reaching MAL 2.18 at 512k and 1.97 at 1M while running at and , each proposal having merely become too expensive to be worth making. The ratio isolates this, sitting at 0.76–0.79 in every windowed cell, the constant of a round dominated by one full-context verification, and falling to 0.52 and 0.10 unwindowed at 2M. Inferact unwindowed pays twice, shedding acceptance as well from 128k (MAL 3.01 at 32k against 1.74), as one expects of a drafter trained at 16,384.
Windowing alone removes the cost failure, and below it is our method: the two windowed arms differ by at most at every tier through 1M, which does not exceed the 0.26–0.66 per-cell standard deviation, and the sign is inconsistent, so we read them as one arm measured twice, which is what the theory requires of a map provably the identity there (Corollary 1, quantified in Appendix E.2). Past it collapses. Both drafters declare a maximum position of exactly , reached by YaRN [22] scaling of a shorter native range, so 1M is the last tier inside their rotary reach and 2M the first outside it, while the NoPE [14] target serves past that point and still hands them true absolute positions (Appendix E.2). At 2M, windowing alone gives MAL 1.13 and 1.11, so only the bonus token is emitted, at and , with S/MAL still 0.78, so drafting cost is untouched and this is purely an acceptance failure, and the per-cell spreads quoted with Table 1 put both failures beyond sampling noise. The two mechanisms are therefore not substitutes, and the shape is a cliff at rather than a decay, which is what section 4.2 predicts for an out-of-range rotary access.
6.3 Beyond Kimi-K3 and DSpark
Everything above uses one target and one drafter family, so the standing objection is that flatness is a property of Kimi-K3 or of how DSpark drafters are built. Two further pairs answer it, each differing from the main ladder in a way that could have broken the method. The same comparison on Qwen2.5-7B-Instruct-1M with its EAGLE-3 head, at and over ten PG19 context lengths, reproduces the pattern at smaller scale (Table 2 and its qualifications, Appendix D): windowed MAL is flat at 1.61–1.81 from 2k to 512k with speedup 1.31–1.83×, against MAL 1.23–1.50 and 1.11–1.22× unwindowed, which pays the target's full context every draft step. Read as section 6.2 reads it, the windowed arm retains 1.22 of its 2k speedup at 512k against 0.91 unwindowed, on a far smaller target and a different drafter family. We stop at 512k because this pair's 1M target denominator used a different checkpoint variant.
A third pair, MiniMax-M3 with a released EAGLE-3.1 head at and , is the sharper test: this target's attention is block-sparse and it loses only 26% of its decode rate over of context, so a windowed drafter cannot win by outliving a collapsing baseline. It wins anyway (Table 5, Appendix E): over nine tiers from 4k to 1M the windowed arm spans and retains 1.11 of its 4k speedup at 1M, while the unwindowed arm falls from to and retains 0.74, the difference at 1M carried by acceptance, MAL 3.32 against 2.49. Flatness therefore holds on all three pairs, here against a target that does not itself collapse, which is the case the claim has to survive; this pair isolates windowing alone, its drafter's rotary reach exceeding the deepest position served. Speed is also not bought with retrieval, the windowed arm answering 120 of 120 RULER [12] single-needle tasks from 8k to 1M exactly as the target does, where the answer hangs on one short span the window excludes (Appendix E.4).
6.4 Window and sink ablations
Varying W with all else fixed, windowing’s benefit appears at 4k and grows monotonically to MAL 1.67 against 1.26 unwindowed at 32k, the crossover of Table 1 at another scale, while mean MAL at W = 1024 and W = 2048 differs by at most 0.02, so returns are saturated by 1024 on this drafter without establishing equivalence (Table 3, Appendix D). Both findings recur at 1M on Kimi-K3: acceptance is flat across a 4× window range (Appendix E.7), and a sink sweep at that length justifies s = 0 on Inferact, though not on RadixArk, which responds in the opposite direction (Appendix E.6).
6.5 Measuring the two gaps
Term (A) needs no drafter: on Qwen2.5-7B-Instruct at 32k we compare the target's full-prefix distribution against a fresh pass on the last W tokens only, over a pre-registered grid of 34 windows at 1750 positions in 14 SPEED-Bench documents (Appendix I). The mean gap falls from 0.2195 at to 0.0444 at , the greedy flip rate from 0.247 to 0.063, and at the deployed truncation changes the target's greedy token at 12.1% of positions. For term (B) we reimplemented the EAGLE-3 drafter so its output could be compared against that comparator at matched positions and windows, under the fresh-drafter law: it runs as a clean forward pass, not from a deployed cache, so these numbers characterize the checkpoint rather than the shipped system. Table 12 in Appendix F reports both gaps at matched positions, where the bound of Proposition 2 also proves informative but loose, and says two further things.
Fidelity is large and flat, across a window range, so acceptance here is drafter-limited rather than window-limited: the truncation gap falling by 0.159 over the sweep moves measured acceptance by only 0.019, the drafter being already wrong in the directions truncation would hurt, so the two errors overlap rather than add. This is why we refuse to call term (B) small, and it is consistent with the deployment-law saturation at in section 6.4 without establishing its cause. The feature channel is large, 0.22–0.33 in TV between a drafter fed full-pass and one fed truncated-pass target states, so the drafter is not a function of its window, which is how a 1024-token head serves a 2M-token target.
7 Limitations
The ladder results are single-stream, greedy, on one platform, with five samples per cell; batched serving is spot-checked on a single pair, where the ordering of section 6.2 holds at long context but not at short (Appendix E.5). Re-basing is exercised only on the pair whose drafters have a rotary reach the served context crosses, so the cliff rests on that pair, and because the speedups and the gap measurements come from different model pairs we do not claim the gaps explain the speedups. Profitability is conditional rather than universal, requiring the speculative cost per emitted token to stay below the matched target-only cost, which expensive verification can prevent (Appendix E). Each gap is measured under one evaluation law and one comparator, which section 5.2 forbids substituting into one another's bounds, and neither is monotone in W by construction. Output equivalence is only partly measured and we make no formal lossless-decoding claim, the residual differences we do observe tracking engine nondeterminism rather than speculation; neither mechanism touches the verifier, so whatever output-equivalence property the implementation has is inherited and every committed token is still chosen by the target's own full-context verification. The theory assumes fixed-frequency RoPE with translation-invariant masking, leaving recurrence, learned absolute positions, and finite precision for separate treatment; Appendix H details the outstanding controls and the theory's scope.
AI use statement
In this work, we used generative AI tools to proof-read the text of the paper and to assist with writing it. We have reviewed all AI-assisted text, citations, and mathematical transcription. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
Reproducibility statement
Section 4 specifies attention masking and rotary index re-basing and requires no inference-time weight updates; section 5 fixes the evaluation law, comparator, proposal, bounds, and emitted-length convention, with Appendix A.1 giving the architectural scope of re-basing exactness; and section 6 names the evaluation law for every reported quantity, lists the four measurement controls, and records the pinned engine build under which the length ladder was revalidated. Model checkpoints, prompt manifests, per-sample logs, the truncation and fidelity sweeps, and the vLLM patch implementing both mechanisms will accompany the paper.
References
[1] Talor Abramovich, Maor Ashkenazi, Izzy Putterman, Benjamin Chislett, Tiyasa Mitra, Bita Darvish Rouhani, Ran Zilberstein, and Yonatan Geifman. SPEED-Bench: A unified and diverse benchmark for speculative decoding. arXiv preprint arXiv:2604.09557, 2026.
[2] Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebron, and Sumit Sanghai. GQA: Training generalized multi-query transformer models from multi-head checkpoints. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 4895–4901, 2023. doi:10.18653/v1/2023.emnlp-main.298.
[3] Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench: A bilingual, multitask benchmark for long context understanding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3119–3137, 2024. doi: 10.18653/v1/2024.acl-long.172.
[4] Yushi Bai, Shangqing Tu, Jiajie Zhang, Hao Peng, Xiaozhi Wang, Xin Lv, Shulin Cao, Jiazheng Xu, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench v2: Towards deeper understanding and reasoning on realistic long-context multitasks. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3639–3664, 2025. doi: 10.18653/v1/2025.acl-long.183.
[5] Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318, 2023.
[6] Guanzheng Chen, Qilong Feng, Jinjie Ni, Xin Li, and Michael Qizhe Shieh. RAPID: Long-context inference with retrieval-augmented speculative decoding. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 8093–8107. PMLR, 2025.
[7] Xin Cheng, Xingkai Yu, Chenze Shao, Jiashi Li, Yunfan Xiong, Yi Qian, et al. DSpark: Confidence-scheduled speculative decoding with semi-autoregressive generation, 2026. URL https://arxiv.org/abs/2607.05147.
[8] DeepSeek-AI. DeepSeek-V2: A strong, economical, and efficient mixture-of-experts language model, 2024. URL https://arxiv.org/abs/2405.04434.
[9] Doğaç Eldenk, Payal Mohapatra, Yigitcan Comlek, Kaan Oktay, Hongyang Zhang, and Stephen Xia. Attention drift: What autoregressive speculative decoding models learn, 2026. URL https://arxiv.org/abs/2605.09992.
[10] Yichao Fu, Peter Bailis, Ion Stoica, and Hao Zhang. Break the sequential dependency of LLM inference using lookahead decoding. In Proceedings of the 41st International Conference on Machine Learning, 2024.
[11] Zhenyu He, Zexuan Zhong, Tianle Cai, Jason Lee, and Di He. REST: Retrieval-based speculative decoding. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pp. 1582–1595, 2024.
[12] Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. RULER: What's the real context size of your long-context language models? In Conference on Language Modeling, 2024. arXiv:2404.06654.
[13] Inferact. Kimi-K3-DSpark: an MLA-native DSpark draft model for Kimi-K3. Hugging Face model repository, 2026. https://huggingface.co/Inferact/Kimi-K3-DSpark.
[14] Amirhossein Kazemnejad, Inkit Padhi, Karthikeyan Natesan Ramamurthy, Payel Das, and Siva Reddy. The impact of positional encoding on length generalization in transformers. In Advances in Neural Information Processing Systems, 2023. arXiv:2305.19466.
[15] Kimi Team. Kimi K3: Open frontier intelligence, 2026. URL https://arxiv.org/abs/2607.24653.
[16] Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th ACM Symposium on Operating Systems Principles (SOSP), 2023.
[17] Xunhao Lai, Weiqi Xu, Yufeng Yang, Qiaorui Chen, Yang Xu, Lunbin Zeng, Xiaolong Li, Haohai Sun, Haichao Zhu, Vito Zhang, Jinkai Hu, Jiayao Li, Rui Gao, Zekun Li, Songquan Zhu, Jingkai Zhou, and Pengyu Zhao. MiniMax sparse attention, 2026. URL https://arxiv.org/abs/2606.13392.
[18] Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 19274–19286. PMLR, 2023.
[19] Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. EAGLE: Speculative sampling requires rethinking feature uncertainty. In Proceedings of the 41st International Conference on Machine Learning, 2024.
[20] Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. EAGLE-3: Scaling up inference acceleration of large language models via training-time test. In Advances in Neural Information Processing Systems, 2025. arXiv:2503.01840.
[21] Jie Ou, Yueming Chen, and Wenhong Tian. Lossless acceleration of large language model via adaptive N-gram parallel decoding. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 6: Industry Track), pp. 10–22, 2024.
[22] Bowen Peng, Jeffrey Quesnelle, Honglu Fan, and Enrico Shippole. YaRN: Efficient context window extension of large language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=wHBfxhZulu.
[23] RadixArk. Kimi-K3-DSpark: a DSpark speculator for Kimi-K3 with GQA draft layers. Hugging Face model repository, 2026. https://huggingface.co/RadixArk/Kimi-K3-DSpark.
[24] Jack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier, and Timothy P. Lillicrap. Compressive transformers for long-range sequence modelling. In International Conference on Learning Representations, 2020. arXiv:1911.05507.
[25] Ranajoy Sadhukhan, Jian Chen, Zhuoming Chen, Vashisth Tiwari, Ruihang Lai, Jinyuan Shi, Ian En-Hsu Yen, Avner May, Tianqi Chen, and Beidi Chen. MagicDec: Breaking the latency-throughput tradeoff for long context generation with speculative decoding. In International Conference on Learning Representations, 2025.
[26] Apoorv Saxena. Prompt lookup decoding. https://github.com/apoorvumang/prompt-lookup-decoding, 2023.
[27] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. RoFormer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024.
[28] Hanshi Sun, Zhuoming Chen, Xinyu Yang, Yuandong Tian, and Beidi Chen. TriForce: Lossless acceleration of long sequence generation with hierarchical speculative decoding. In First Conference on Language Modeling, 2024.
[29] Zhendong Tan, Xingjun Zhang, Chaoyi Hu, Junjie Peng, and Kun Xia. SpecPV: Improving self-speculative decoding for long-context generation via partial verification. arXiv preprint arXiv:2512.02337, 2025.
[30] Mohammad Tavakoli, Alireza Salemi, Carrie Ye, Mohamed Abdalla, Hamed Zamani, and J. Ross Mitchell. Beyond a million tokens: Benchmarking and enhancing long-term memory in LLMs, 2025. URL https://arxiv.org/abs/2510.27246.
[31] Alagappan Valliappan. Windowed-MTP: Removing the full-context draft-KV tax at million-token context. arXiv preprint arXiv:2607.21535, 2026.
[32] Zhibin Wang, Xuying Han, Zhaohua Yang, Fuliang Liu, Xue Li, Rong Gu, Sheng Zhong, and Chen Tian. SpecLA: Efficient speculative decoding for linear-attention models. arXiv preprint arXiv:2607.16673, 2026.
[33] Tong Wu, Junzhe Shen, Zixia Jia, Yuxuan Wang, and Zilong Zheng. TokenSwift: Lossless acceleration of ultra long sequence generation. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 67650–67669. PMLR, 2025.
[34] Heming Xia, Zhe Yang, Qingxiu Dong, Peiyi Wang, Yongqi Li, Tao Ge, Tianyu Liu, Wenjie Li, and Zhifang Sui. Unlocking efficiency in large language model inference: A comprehensive survey of speculative decoding. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 7655–7671, Bangkok, Thailand, 2024. Association for Computational Linguistics.
[35] Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In International Conference on Learning Representations, 2024.
[36] An Yang, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. Qwen2.5-1M technical report, 2025. URL https://arxiv.org/abs/2501.15383.
[37] Penghui Yang, Cunxiao Du, Fengzhuo Zhang, Haonan Wang, Tianyu Pang, Chao Du, and Bo An. LongSpec: Long-context lossless speculative decoding with efficient drafting and verification. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1826–1844, 2026.
A Proofs and Supplementary Guarantees
A.1 RoPE, cached dependency spans, and band boundaries
Rotation identities. For coordinate pair i, fixed-frequency RoPE uses
The angle-addition identities give , while transposition changes the sine signs and gives . Since is block diagonal, both identities hold for and imply equation 2.
From scores to outputs. Under Proposition 1's assumptions, shift all positions in the complete token computation graph by one constant. Layer-zero states agree. If lower-layer states agree, their unrotated queries, keys, and values agree; relative offsets and visible-key sets also agree, so all attention scores, weights, and value sums agree. Tokenwise operations and residual connections preserve equality, completing the layer induction. A KV cache stores earlier states, so the same hypotheses must hold for the computations that created those states, not only for the current query. Externally supplied features are permitted because the target computes them once, independently of the drafter's index assignment, so they are identical in both executions; the proof does not apply unchanged to learned absolute embeddings, features that themselves depend on the drafter's index map, context-dependent rotary frequencies, or finite-precision equality.
Corollary 1 (Within-band re-basing). Compare modulo re-basing with ideal mathematical RoPE at true indices under Proposition 1's hypotheses. If a prediction's entire dependency graph lies within one index band, all its positions receive the same shift , so the outputs agree. This does not certify predictions whose visible keys or cached ancestors cross a boundary.
Proposition 3 (Local dependency span). Consider an L-layer causal Transformer with token-only input embeddings and tokenwise non-attention operations. At layer , attention at token position n reads lower-layer states only at positions , restricted to the available prefix. Assume the same rules during prefill and decoding, with no recurrence, global attention, pinned distant token, or external state. Put
The state at token n depends only on . A prediction for token t read from token t - 1 therefore depends on at most the last M tokens, including with a persistent KV cache.
Two dependencies. For a target-conditioned drafter the token-only hypothesis fails and the information dependency is the whole prefix by design. What the boundary bound equation 4 needs is the weaker index dependency, the set of positions whose rotary indices enter the computation, and that remains bounded by M whenever the drafter's own attention is local, because the target supplies a feature at a position without contributing any index of the drafter's assignment. Proposition 3 should be read with M in that sense; its stronger token-level reading additionally requires token-only inputs.
Proof. Layer zero at depends only on . If a layer- state at depends only on , the union over lies inside . Induction proves the claim; caching these same states does not alter their dependencies.
The implementation’s window convention determines . If a layer sees itself and predecessors, then and . A global prefill is not covered merely because later decoding uses a local cache.
A sufficient exceptional set. Compare modulo re-basing with ideal mathematical RoPE at true indices using the same mask, cache rules, and token sequence. If every token in a prediction’s dependency graph lies in one band, Proposition 1 gives equal outputs. Let be the set of predictions whose -token dependency interval crosses a band boundary. For any consecutive prediction positions, its covered fraction obeys
For , at most boundary intervals can intersect a run of length , and each marks at most predictions; for the clipped bound is one. This is a conservative bound on positions not certified by exactness, not on discrepancy magnitude or observed errors. For example, , , and give a long-run term near , while the drafters of section 6.2, with , , and , give and a long-run term near . A direct-edge fraction near (about ) does not bound downstream output effects.
A.2 Sharpness of the sampling mean bounds
Fix arbitrary and use three vocabulary elements. If , set
The adjacent TV gaps are and . If , instead set
which has the same adjacent gaps and . Thus the lower endpoint of Proposition 2 is always attained. For the upper endpoint use
for which . This proves sharpness over arbitrary distributions and state laws; it does not assert that one trained model realizes every construction.
A.3 Joint forms and acceptance drift
Write and . Retaining the joint law of the two gaps rather than only their means gives
which implies Proposition 2 by convexity of and of the absolute value, and is strictly stronger whenever the two gaps are not almost surely ordered the same way.
Proposition 4 (Uniform guarantees and acceptance drift). If and for every tested , then . For any two lengths,
The same statements hold for greedy verification after substituting , and .
Proof. Apply Proposition 2 at each length. For the drift bound, insert and and apply the deviation bound of Proposition 2 twice.
In particular, if truncation is constant across lengths and fidelity is at most , the guaranteed pairwise drift is at most . A deployment sweep and a paired intervention that changes retained distant context at fixed prediction positions are different laws, and quantities measured under one may not be substituted into a bound stated under the other.
A.4 Extended discussion of the decomposition
What the decomposition buys. Calling term (B) “fidelity” does not identify its cause. Choosing bounds the visible attention window and assigning rotary indices inside avoids out-of-range rotations, but neither step bounds term (B), guarantees that mid-document windows resemble training inputs, nor proves that an unwindowed baseline must fail. We therefore measure fidelity rather than assuming it is small. The inequalities would hold with any specified comparison distribution, but changing the comparator changes both gaps and their interpretation; throughout, denotes the fresh-window target pass.
The threshold form. On our measurements the mean form dominates it by 0.14 to 0.27 at every window, which is why the main text reports the mean form. For define the events and under , with .
Corollary 2 (Threshold form). For every ,
and . The two unclipped lower-bound expressions are equal at a fixed exactly when almost surely.
Proof. Pointwise, ; average and apply Proposition 2. Equality requires the nonnegative pointwise slack to vanish almost surely, giving the stated condition, and clipping can add further equalities when both bounds are zero. The integral identity is the tail formula .
Correctness and reached stages. Under a correct greedy verifier, accepted tokens match the full target and the first rejection is replaced by that target's greedy token, provided cache updates, tie-breaking, and target computations are consistent. Sampling correctness additionally requires the prescribed residual correction rule; it does not follow from an acceptance bound alone. At reached stage , let be the state law conditional on the first proposals being accepted, and set , or for greedy verification. These are the quantities entering Proposition 8.
What must be measured. To explain a particular implementation rather than merely bound it, measure, under the corresponding evaluation law:
-
acceptance and both gaps across context lengths, which give Proposition 4's drift envelope rather than exact flatness (section 6.2, section 6.3);
-
both gaps on a fixed calibration grid in W, counting the five agreement patterns of Appendix A.5 for greedy runs (section 6.4, section 6.5);
-
the deployed cached drafter at the same reached, mid-document states as both target passes, a fresh drafter pass being a different comparison (not yet available; Appendix H);
-
output invariance separated from direct score invariance through the full dependency graph, with boundary outputs measured before any quantitative discrepancy claim (not attempted);
-
accepted drafts, emitted tokens, and runtime reported separately, using Proposition 8 quantitatively only with reached-stage gap estimates (section 6.1).
A.5 Greedy case analysis, sharpness, and a margin condition
Proposition 5 (Greedy acceptance and error cancellation). Fix deterministic tie-breaking and let be the tokens selected by the full target, the truncated target, and the deployed drafter, with , , and . For a verifier that accepts exactly when the draft token equals the full target's greedy token,
and exactly .
This is Proposition 2 applied to point masses at the three selected tokens, with the acceptance event split according to whether the common full-target/draft token equals the truncated-target token. Write , , and . The following cases are disjoint and exhaustive:
| Token relation | Truncation flip | Fidelity flip | |
|---|---|---|---|
Hence exact acceptance is the all-equal probability plus the cancellation probability. Writing for the all-equal probability and for the total probability of the final two rows gives the tighter joint interval
For vocabularies of at least three symbols the mean bounds are sharp: when desired flip rates satisfy , place masses on all-equal, truncation-only, and fidelity-only states. When , place masses on truncation-only, fidelity-only, and all-distinct states. For the upper endpoint, if , place masses on all-equal, truncation-only, and cancellation states; swap roles when . A binary vocabulary is the one exception, and the qualification matters: there and together force , so the all-distinct state cannot occur and the constructions above are unavailable. The sharp mean bounds tighten to ; at acceptance is exactly one, so the unrestricted lower endpoint zero is unattainable there.
Proposition 6 (Greedy margin condition). Let now denote softmax vectors whose maxima determine greedy tokens. Suppose has unique maximizer and margin
If
then the drafter selects .
Proof. If another token maximized , then
a contradiction.
Without a margin premise, arbitrarily small softmax TV can coexist with greedy disagreement.
A.6 Finite-prefix corrections and stationarity
Here only, let average positions uniformly in one fixed process. At fixed , put
Proposition 7 (Finite-prefix and exceptional-position correction). Let be deterministic, , , and . Suppose that for every outside , and . Set
Then
Each endpoint of Proposition 2 differs from that computed at by at most .
Proof. Regular positions contribute at most each to the first average. At most other positions contribute, each by at most one. The fidelity result is identical. Both endpoint maps are one-Lipschitz in each argument, proving the last claim.
Stationarity of a finite suffix is not full-target stationarity. If, outside initialization and a deterministic exceptional set, and for fixed maps of a common state whose law is stationary, the fidelity mean is constant there. The finite-window case is the instance used above; a cache-windowed comparator and a target-conditioned drafter instead share a state that includes target-computed features, in which case stationarity of the text process alone is not enough. It supplies neither small fidelity nor constant truncation gap, because the full target can use a growing distant prefix.
A.7 Emitted-length proof and the geometric model
Proposition 8 (Emitted block length without independence). Let . A round has scheduled proposal stages and stops verification at the first rejection, emitting one correction token after a rejection or one bonus token once all proposals are accepted; EOS and output-budget termination do not interrupt this accounting. Let be the number of accepted proposals, so the round emits tokens. Suppose that at every reachable stage the hazard satisfies with . Then, under either verification rule, , and if every reachable stage has then . No independence of acceptance events is assumed.
A pooled corpus gap does not control every reached-stage law, emitted length alone does not determine speedup, and the result assumes fixed . Write whenever the conditioning event has positive probability, and set later hazards and their lower bounds to zero once the reach probability vanishes; total expectation under gives at every reachable stage. The probability chain rule yields . The tail-sum identity
proves Proposition 8. An unreachable stage has zero survival and all later lower products vanish. Reached-stage laws may differ from corpus, emitted-token, or round-start laws; logits computed after the first rejection do not represent reached stages.
Under the separate geometric approximation that, conditional on a round-start state, within-round acceptances are independent with common probability ,
This polynomial is increasing and convex, so Jensen and Proposition 2 give
This counts the correction or bonus token; accepted draft count is one less. Proposition 8 avoids the geometric model through reached-stage laws.
B Extended related work
Windowed drafting at moderate context. Sadhukhan et al. [25] show speculative decoding remains profitable at large batch sizes for long sequences using drafters with sparse KV caches, including a small drafter with a StreamingLLM-style windowed cache. We share the windowing insight but operate where they do not: their draft KV budgets are 256–2049 tokens at contexts up to 100k, within the models’ native rotary range, so the position problem of section 1 never arises and no position mechanism is needed. Their analysis is also driven by batch size, whereas we run at batch size 1 and one to two orders of magnitude longer. We adopt their cost decomposition for our own accounting.
Streaming and cache-relative positioning. Xiao et al. [35] enable unbounded streaming by pairing a rolling window with pinned attention sinks, assigning positions by index within the cache and, for RoPE, rotating the cache at each decoding step. The relevant distinction is whether a key's assigned index is stable for its lifetime. Theirs is cache-relative, so a one-token slide shifts every local index and the whole window must be re-rotated; ours is text-relative up to a constant per index band, so a key is rotated once at cache entry and never touched again. Cache-relative positioning is sound and we do not claim to be simply cheaper: the trade is their recurring re-rotation against our possible boundary effects (section 4.3). A quantitative output comparison at those boundaries, and a wall-clock comparison accounting for fused-kernel and bandwidth effects, remain future work.
Trained long-context drafters. Yang et al. [37] train a drafter with sliding-window self-attention and cache-free cross-attention, with anchor-offset indices to generalize position encoding from short training sequences; Wang et al. [32] train an EAGLE-style drafter and address recurrent-state rollback for linear-attention targets. Both solve the position-generalization problem we solve, but through training. Our contribution is that no long-context training is required.
Native heads, retrieval drafting, and benchmarks. Windowed-MTP [31] is closest in mechanism, being training-free and windowing draft attention while verification stays at full context, but it windows a native multi-token-prediction head already inside the target checkpoint, so targets without such a head cannot use it. We window an external, separately released drafter, which is what forces the position problem: a native head shares the target's positional regime and an external short-context drafter does not. Retrieval- and N-gram-based drafters [26, 10, 21, 11] also exploit local continuation structure but require an exact prior occurrence; the same acceptance inequalities analyze them once a comparator is fixed. Benchmarks built specifically for speculative decoding remain predominantly short-context [34]; SPEED-Bench [1] reaches 32k with third-party entropy tiers, which we use for the gap measurements of section 6.5 and the window ablation of section 6.4, though it cannot reach the context lengths of section 6.2. General long-context benchmarks go further and we use LongBench [3, 4] and RULER directly (Appendices E.3 and E.4), but they are not instrumented for acceptance or emitted length, so the per-round quantities of section 6 must be collected by us either way.
C Why the comparison is internal
This paper reports no external speculative-decoding system as a baseline. The reason is not that none was sought, but that the operating point the paper is about (an externally released and frozen short-context drafter, verification left exact against the complete prefix, single-stream decoding, and context to 2M tokens) is one at which each published alternative is either undefined or defined only after doing the thing whose necessity is in question. We give the obstruction method by method, then say what our arms do in place of an external comparison.
Methods that require training. Yang et al. [37] and Wang et al. [32] train long-context drafters, and Tan et al. [29] repairs a released EAGLE-3 head's positional range by YaRN fine-tuning at 32k. Matching any of them at our lengths means first producing a trained drafter for each of our three targets. The resulting number would measure the value of that training, which is the very quantity our claim concerns, and it would no longer hold the drafter fixed, so the comparison would answer a different question from the one asked. TokenSwift [33] likewise attaches trained draft heads, and TriForce [28] requires a standalone draft model, which for a 2.8T-parameter target no released checkpoint supplies.
Methods that require a property our drafters lack. Windowed-MTP [31] is training-free and windows draft attention as we do, but it windows a multi-token-prediction head already resident inside the target checkpoint. That head shares the target's positional regime, which is both why it has no position problem to solve and why the method does not transfer to an external drafter carrying its own shorter rotary reach. The mechanism is close; the precondition is one our setting does not meet.
Methods that change what is verified. SpecPV [29] verifies against a sparse KV cache with periodic full refreshes, and RAPID [6] enriches the target distribution by retrieval. Both accept a departure from the full-context target's own prediction rule, where we leave verification exact and act only on the drafter's view. A speedup obtained under a different output law is not commensurable with one obtained under ours, and the two directions compose rather than compete, since a cheaper verifier and a cheaper drafter address different terms of the same round.
Methods that are not target-conditioned. Retrieval- and N-gram drafters [26, 10, 21, 11] propose from surface repetition rather than from target features. They are training-free and would run at 2M, but they do not bear on the question here, which is whether a short-context model can serve a long-context target. They answer a different question, by not using a model.
Methods whose operating point is shorter. Sadhukhan et al. [25] use draft KV budgets of 256–2049 tokens at contexts to 100k, inside the models’ native rotary range; SpecPV reports to 60k, and TokenSwift targets sequences beyond 20k. None of these lengths reaches , so none encounters the failure of section 4.2, and a comparison conducted at their lengths would be conducted where our second mechanism is provably the identity map (Corollary 1) and therefore has nothing to show.
What the arms do instead. The nearest published configurations are consequently not missing from the tables; they are in them. The unwindowed arm is a released DSpark or EAGLE drafter run exactly as shipped, which is what a practitioner obtains by default and the thing the method has to beat. The windowed-only arm is the bounded-draft-cache idea of Sadhukhan et al. [25] carried to our lengths, where, as in their own regime, no position mechanism is applied. Because all three arms run on one engine build, one node, and one prompt set, and the latter two differ by a single environment flag, each contrast isolates one factor. A cross-paper comparison against differently built systems on different hardware could not do that, and section 6.1 shows the margin at stake in such confounds, a single asymmetry in compiled-graph capture moving a ratio from to .
The one alternative we do not run. StreamingLLM’s cache-relative indexing [35] is a genuine alternative to re-basing rather than to windowing, and we do not run it. The trade is stated in section 4.3 and above: their assigned positions are stable within the cache and ours within the text, so they re-rotate the visible cache at every decode step where we rotate once at entry, and we accept possible band-boundary effects where they do not. Settling which is faster in wall-clock terms needs a fused-kernel and bandwidth accounting we have not done, and we do not claim to be simply cheaper.
D Additional experimental tables
Qualifications on the Kimi-K3 ladder (section 6.2). Appendix E records the repetition problem on forced PG19 decoding and the reruns that reproduce the cliff with loops removed.
Qualifications on the Qwen ladder (section 6.3). The 1M column of Table 2 rests on five samples collected across three part-runs and has the widest spread, and its target denominator was collected against a checkpoint with Dual Chunk Attention (DCA) enabled while the windowed arm used the noDCA variant. A revalidation on a pinned engine build, with the target arm re-measured on the matched checkpoint, reproduces both quantities: MAL 1.659, 1.693, 1.610, and 1.609 at 2k, 8k, 32k, and 128k against 1.691, 1.766, 1.679, and 1.685 originally, every difference inside one standard error at per-sample standard deviations of 0.085–0.167, with matched speedups of to still rising with context. An exploratory sweep over finds at or near the throughput optimum everywhere, with the change flipping sign with context, consistent with draft cost being context-independent under a fixed window while verification cost is not.
Sink ablation (section 6.4). A paired ablation on Inferact at over four tiers finds the sign of the MAL difference alternating and the mean favoring , MAL 2.19 against 1.96 and against , so the sink is unused capacity for this drafter rather than a required stabilizer. The arms were separate engine boots with enough within-arm spread that only the 1M tier is unambiguous, so this justifies a configuration choice rather than a finding about attention sinks in general.
E Additional model pairs and ablations
This appendix collects the model pairs, corpora, and configurations that section 6 summarizes but does not tabulate. All of them use the protocol of section 6.1: frozen drafters, no weight updates, greedy decoding, batch size 1 unless stated, decode-phase timing, and speedup computed per sample against a paired target-only run on the identical prompt.
Table 2: Qwen2.5-7B-Instruct-1M with its EAGLE-3 head on PG19, , , . The 1M column () is excluded from every claim in the paper, its target denominator having been collected against a DCA-enabled checkpoint while the windowed arm used the noDCA variant; Section 6.3 reads the ladder to 512k.
| 2k | 4k | 8k | 16k | 32k | 64k | 128k | 256k | 512k | ||
|---|---|---|---|---|---|---|---|---|---|---|
| windowed MAL | 1.69 | 1.63 | 1.77 | 1.74 | 1.68 | 1.70 | 1.69 | 1.81 | 1.61 | 2.31 |
| windowed S | 1.34 | 1.31 | 1.46 | 1.49 | 1.51 | 1.60 | 1.65 | 1.83 | 1.64 | 2.39 |
| unwindowed MAL | 1.50 | 1.41 | 1.36 | 1.34 | 1.31 | 1.25 | 1.28 | 1.31 | 1.23 | 1.44 |
| unwindowed S | 1.22 | 1.16 | 1.13 | 1.14 | 1.14 | 1.11 | 1.13 | 1.19 | 1.11 | 1.34 |
Table 3: Paired window ablation, Qwen2.5-7B-Instruct with EAGLE-3 on SPEED-Bench, , samples per tier (section 6.4). The 2k tier is omitted: its speedups are out of line with both neighbours and its cell counts are irregular.
| N | unwindowed | W = 2048 | W = 1024 | |||
|---|---|---|---|---|---|---|
| MAL | S | MAL | S | MAL | S | |
| 512 | 1.75 | 1.38 | 1.75 | 1.34 | 1.75 | 1.37 |
| 1k | 1.72 | 1.36 | 1.72 | 1.33 | 1.70 | 1.32 |
| 4k | 1.42 | 1.13 | 1.68 | 1.32 | 1.68 | 1.35 |
| 8k | 1.33 | 1.08 | 1.63 | 1.32 | 1.64 | 1.36 |
| 16k | 1.27 | 1.06 | 1.63 | 1.38 | 1.64 | 1.39 |
| 32k | 1.26 | 1.09 | 1.67 | 1.48 | 1.68 | 1.49 |
E.1 A third pair: MiniMax-M3 with EAGLE-3.1
Three features of Table 5 matter for the argument. First, the target does not collapse: MiniMax-M3 uses block-sparse attention and loses only of its decode rate from 4k to 1M, against for Kimi-K3 over the same span, so the windowed arm's advantage cannot be attributed to a baseline that degrades underneath it. Retention states the same result directly: the windowed arm ends at 1.11 of its 4k speedup and the unwindowed arm at 0.74. Second, below 64k the two arms are within of each other and unwindowed is nominally ahead at 4k and 8k; the gap opens from 128k and reaches relative at 1M. This is the same shape as Table 1 and the same shape as the window ablation of section 6.4, from a third stack. Windowing here is block-table compaction, a genuine KV reduction rather than a mask over a full-length cache, and was verified live in the engine. A third arm that windows without re-basing is omitted because it agrees with the re-based arm to within at every tier, as it must: this drafter's rotary reach of 1,048,576 exceeds the deepest position served, so the pair cannot test re-basing. Third, the mechanism here is acceptance rather than draft cost: the per-round cost in plain-decode units, MAL/S, stays at 1.27–1.37 for the windowed arm at every tier, so a token verification costs about more than a single decode and speedup reduces to acceptance divided by that constant. The drafter's own attention is full MHA against the target's 16:1 GQA, so its single layer would hold 32 GiB of KV at 1M, more than all sixty target layers combined, against 128 MiB windowed; on this pair windowing buys memory and acceptance at once.
The verify-path condition. An earlier complete sweep of this pair on the engine's default Triton attention backend is retracted for its speedup column and is instructive. It reported the opposite qualitative result, at 1M, with MAL within the prompt-level spread of the numbers above. The diagnostic is the per-round cost MAL/S, which rose from 1.41 at 4k to 4.31 at 1M, and a value of means a four-token verification is costing four separate decodes, at which point no drafter and no can help. A decode-only trace attributed of GPU time to one kernel, the three dense layers at the bottom of the otherwise sparse target, which cost as much for the query rows, so verification was not amortizing at all; the drafter's own forward measured 0.123 ms and was never the problem. Switching to a correctly parallelized attention kernel raised the target arm as well, by at 1M, and restored the ratio. This is also the cleanest illustration of section 5.3: acceptance was essentially unchanged while the speedup verdict flipped
Table 4: Greedy agreement patterns at matched corpus positions, fresh-drafter law (section 6.5). Cancellation is the row of Appendix A.5.
| all agree | trunc. only + all distinct | fidelity only | cancellation | greedy agreement | |
|---|---|---|---|---|---|
| 128 | .3109 | .2143 | .4423 | .0326 | .3434 |
| 256 | .3246 | .1749 | .4697 | .0309 | .3554 |
| 512 | .3206 | .1383 | .5109 | .0303 | .3509 |
| 1024 | .3223 | .1234 | .5314 | .0229 | .3451 |
| 2048 | .3251 | .1023 | .5543 | .0183 | .3434 |
| 8192 | .3194 | .0697 | .5983 | .0126 | .3320 |
Table 5: MiniMax-M3 with a released EAGLE-3.1 head on PG19, , , per tier, 4096 generated tokens with EOS ignored, TP=8.
| context | unwindowed | windowed, | ||
|---|---|---|---|---|
| MAL | MAL | |||
| 4k | ||||
| 8k | ||||
| 16k | ||||
| 32k | ||||
| 64k | ||||
| 128k | ||||
| 256k | ||||
| 512k | ||||
| 1M | ||||
sign, so an acceptance bound does not determine speedup. We record it because a kernel configuration masqueraded as an algorithmic result, and because it gives the condition a practical form: track MAL/, expect a small constant independent of context, and treat drift in it as a systems fault rather than a property of drafting.
E.2 Re-basing ablation
Table 6 is the direct test of the failure mode section 4.2 predicts. The implementation gathers rotary factors from a table of exactly rows with no bounds check. Both checkpoints declare that figure as their maximum position and reach it by YaRN scaling of a shorter native range, for Inferact and for RadixArk, so 1M is the drafters' stated limit and not an incidental allocation; the Kimi-K3 target is NoPE and serves contexts past it while still handing the drafter true absolute positions. The prediction is a cliff rather than a decay, because the failure is an out-of-range table access rather than extrapolation, and that is what the data show: identical behavior at 1M, where the deepest position is 1{,}048{,}575, and a collapse to MAL near one the moment the context exceeds the table. Three consequences are worth stating. The failure is silent in exactly the sense of section 4.2: the verifier still rejects the bad proposals, so the text stays correct while the speedup goes below and speculation becomes a tax. Re-basing is provably inert below , and the control rows confirm it empirically rather than by argument. And the fix rescues only the windowed drafter, as section 5 requires: an unwindowed draft's visible span straddles the band boundary, so no single shift preserves every offset, and it is not recovered. The RadixArk 1M control shows a difference in at equal MAL, which is run-to-run throughput variation on that arm rather than an effect of the flag; the MAL equality is the quantity the control is about. The same inertness holds across the ladder of Table 1, where re-basing is nominally ahead in seven of the twelve tiers through 1M and windowing alone in five, the differences staying inside the per-cell spread quoted in section 6.2. Only an environment flag separates the arms on one binary, so this is the expected reading of a control rather than a null result to explain away.
Table 6: Matched toggle of modulus re-basing on Kimi-K3, , , forced 4096-token generations, at 1M and 2M and extended to further corpora. The patch is present in both arms and only an environment flag differs, so binary, hardware, prompts, and drafter are identical.
| drafter | corpus, context | without re-basing | with re-basing | ||
|---|---|---|---|---|---|
| MAL | MAL | ||||
| Inferact | PG19, 1M (control) | 2.92 | 1.91× | 2.95 | 1.92× |
| Inferact | PG19, 2M | 1.06 | 0.68× | 3.18 | 2.05× |
| RadixArk | PG19, 1M (control) | 2.50 | 1.27× | 2.50 | 1.50× |
| RadixArk | PG19, 2M | 1.08 | 0.71× | 2.56 | 1.68× |
| Inferact | LongBench, 2M | 1.12 | 0.86× | 3.41 | 2.62× |
| RadixArk | LongBench, 2M | 1.18 | 0.93× | 2.73 | 2.13× |
| Inferact | BEAM, 2M | 1.14 | 0.87× | 2.29 | 1.71× |
| RadixArk | BEAM, 2M | 1.16 | 0.91× | 2.14 | 1.66× |
E.3 Beyond PG19: LongBench, BEAM, and SPEED-Bench
The first four corpora of Table 7 run the seven tiers from 8k to 2M, each scored on its most trustworthy decode condition: forced 4096 tokens where continuation has no natural stopping point, the span before the first EOS where the model answers and stops, and EOS-stopped generation for the BEAM rerun built to allow it. The BEAM-prefix 2M cells are the one visible dip and are confounded twice, that tier alone changing both prompt construction and source data.
Table 7: Generality of the flatness result of section 6.2 across corpora, every cell the windowed and re-based arm on Kimi-K3 at , , batch 1 under one shared setup. The range column spans all measured tiers; retained is a tier's speedup divided by the same arm's speedup at 8k. PG19 is the ladder of Table 1.
| corpus | decode | Inferact | RadixArk | ||||
|---|---|---|---|---|---|---|---|
| range | retained at | range | retained at | ||||
| PG19 books | forced | 2.10–2.55 | 1.02 | 0.90 | 1.63–2.09 | 0.93 | 1.19 |
| LongBench v1+v2 | forced | 2.29–2.62 | 1.11 | 1.13 | 1.23–2.18 | 1.30 | 1.27 |
| BEAM prefixes | pre-EOS | 1.71–2.52 | 1.06 | 0.72 | 1.66–2.46 | 1.01 | 0.68 |
| BEAM v2 chats | EOS-stopped | 1.77–2.48 | 1.28 | 0.96 | 1.68–2.47 | 1.24 | 0.88 |
| SPEED-Bench 1k–32k | forced | 1.69–2.48 | - | - | 1.61–2.16 | - | - |
The Kimi-K3 ladder of section 6.2 uses PG19 book continuations. Four further corpora repeat the comparison with the same seven-arm protocol, spanning natural documents, long conversations in two renderings, and a short-context throughput split (Table 7). They exist to answer one objection: that flatness is a property of book prose, which is unusually uniform and therefore unusually easy to draft. Flatness is what carries over: every corpus that reaches 1M retains 0.93–1.30 of its 8k speedup there on both drafters, and the two failure modes of section 6.2 reappear in the same shapes on each of the three long-context corpora. The absolute level is not invariant and is not claimed to be; it is set by how predictable the corpus is.
On LongBench, with LongBench-v1 documents at 8k–32k and deduplicated LongBench-v2 documents at 128k–2M and no document reused across tiers, windowed Inferact holds 2.29–2.62× flat from 8k to 2M and windowed RadixArk 1.68–2.18× apart from a single dip to 1.23× on the 32k v1 documents, where Inferact holds 2.55×, while the unwindowed arms fail in the two distinct ways of section 6.2: Inferact's acceptance collapses, MAL 3.35 at 8k falling to 1.07 at 2M with from 2.56× to 0.56×, whereas RadixArk holds MAL 2.2–2.5 to 1M and still slides to 0.36× and then 0.14× because the full-KV read dominates each draft step. That the same two failure modes reappear on natural documents, against the same target, is the strongest available evidence that the effect is not a property of PG19 prose.
On BEAM [30] long conversations, measured on the answer span before the first EOS because forced continuation past EOS degenerates into repetition that is trivially draftable, both windowed drafters hold 2.2–2.5× from 8k to 1M and 1.66–1.71× at 2M, while the unwindowed arms again split into acceptance collapse (Inferact, MAL 1.11 at 2M) and throughput collapse (RadixArk, 0.14× at 2M at MAL 1.35). The 2M tier is the one place where flatness visibly dips, to 0.72 and 0.68 retention, and it is the least trustworthy cell in the study: that tier alone switches both prompt construction and source data, so its drop cannot be attributed to length.
A second rendering of the same conversations, BEAM v2, is the cleanest reference available and exists to remove both objections to the first: every prompt is rendered with the chat template at every tier, so it ends in a real user turn rather than mid-conversation, and generation stops at the model's own EOS, so no output contains a forced-continuation loop. The target emits EOS on every sample, with median answers of 458 to 2140 tokens. Both windowed drafters hold 1.68–2.48× across the ladder and retain 0.96 and 0.88 of their 8k speedup at 2M, while the unwindowed arms split exactly as before, Inferact to MAL 1.11 at 0.58× and RadixArk to 0.14× at MAL 1.32. That the result survives with loops removed entirely matters more than its level, because forced decode is the one measurement artifact that could have manufactured it.
SPEED-Bench is not a long-context test and is not offered as one: its throughput split runs 1k to 32k on untruncated prompts of 1.1k to 36.9k tokens. It is here for the two things the long-context corpora cannot provide. The first is coverage of other domains and harder tasks: three task families, code completion, creative writing, and book continuation, each split into a low- and a high-entropy tier, the only place in the study where the drafters work outside long documents and chats. The second is a clean measurement of what the window itself costs. From the 8k bucket upward the window is a strict subset of the prompt, about one eighth of it at 32k, so the unwindowed drafter reads several times what the windowed one does while re-basing is inert throughout, every position being far below . Across the twenty matched cells the bounded view costs almost nothing: windowed Inferact is at most behind its unwindowed counterpart, and windowed RadixArk is ahead in nine of ten buckets, by up to . In acceptance the gap is at most 0.22 MAL out of roughly 3.2 on low-entropy code, and within 0.04 on high-entropy prose, where the drafter has least to go on. Every arm wins, , and what separates the cells is content rather than configuration, low-entropy code drafting at against for high-entropy prose, consistent with the entropy-tier effect in Appendix F.
E.4 Retrieval under a bounded drafter view
This is the study’s stress test of the method on long-context recall. Everywhere else the task is continuation, where the next token is usually inferable from recent tokens and a bounded drafter view is plausibly harmless by construction. A needle task is built the other way: the answer depends on one short span placed anywhere in a long context, which is exactly the span a windowed drafter cannot see. If bounding the view were going to cost accuracy anywhere, it would be here, and the question is whether verification really protects what the system retrieves. On RULER single-needle tasks against Kimi-K3 with windowed Inferact, needles inserted at depths from 10% to 90% and five samples per length from 8k to 1M, both the target and the windowed arm answer 120 of 120 correctly on each of the three task variants (Table 8). Speedup instead tracks how predictable the haystack is: mean on the synthetic noise haystack, where the drafter’s window is highly predictable, and and on natural-prose haystacks with numeric and UUID needles. The needle is a short span that usually sits outside the window, and the drafter loses acceptance on the surrounding prose rather than on the answer. Because accuracy is identical on both arms at every cell while MAL varies by a factor of two across variants, this is the cleanest separation in the paper between what a bounded drafter view costs, which is acceptance, and what it does not cost, which is what the system retrieves.
E.5 Batched serving
Every timing result in section 6 is batch size 1, and Table 9 re-runs the comparison on a batched engine at the same 4096-token decode length, sweeping batch sizes 1, 2, 4, and 8 against contexts from 4k to 800k. Windowed Inferact stays above break-even in all 19 measured cells, 1.14–2.45×, while unwindowed falls below it in 10 of 19, from roughly 131k onward and down to 0.64×. The ordering of section 6.2 survives batching from 131k onward, which is where the two arms separate at batch 1 as well, but it does not hold below that: at 4k the unwindowed arm is ahead in three of the four batch sizes, by as much as 0.57× at B = 1, since at that length it sees little more than the window and
Table 8: Needle-in-a-haystack retrieval on RULER's three single-needle variants, Kimi-K3 with windowed Inferact, , , . Needles sit at depths from to , five samples per cell, greedy 48-token answers scored by separator-insensitive normalized substring match. Four representative lengths of the eight measured are shown.
| MAL | answers correct | |||
|---|---|---|---|---|
| target | windowed | |||
| single-1: synthetic-noise haystack, numeric needle (mean ) | ||||
| 8k | 3.37 | 5/5 | 5/5 | |
| 128k | 3.02 | 5/5 | 5/5 | |
| 512k | 3.48 | 5/5 | 5/5 | |
| 1M | 3.28 | 5/5 | 5/5 | |
| single-2: natural-prose haystack, numeric needle (mean ) | ||||
| 8k | 2.63 | 5/5 | 5/5 | |
| 128k | 2.22 | 5/5 | 5/5 | |
| 512k | 1.80 | 5/5 | 5/5 | |
| 1M | 1.61 | 5/5 | 5/5 | |
| single-3: natural-prose haystack, UUID needle (mean ) | ||||
| 8k | 2.14 | 5/5 | 5/5 | |
| 128k | 1.89 | 5/5 | 5/5 | |
| 512k | 1.73 | 5/5 | 5/5 | |
| 1M | 1.61 | 5/5 | 5/5 | |
pays almost nothing for the difference. The intermediate rungs cannot be compared at all, the two arms having been tabulated at 32k and 65k respectively. Where the ordering does hold, the margin does not grow with batching: target throughput scales close to linearly in , so plain batched decode already recovers much of the memory-bandwidth surplus speculation exploits, and the windowed advantage decays toward break-even as rises even though acceptance is roughly flat in . At 4k the windowed arm slides from to across to 8. Two artifacts had to be removed before these numbers were stable and both are worth recording, since both inverted a conclusion: capture sizes that covered the sequence count but not the verify query width sent every verify forward down an eager path and manufactured a collapse at , and firing concurrent requests at near-maximal KV occupancy serializes them behind staggered prefills rather than co-decoding. The protocol is therefore one engine per arm with prefix caching, each of the distinct PG19 prompts prefilled once before all are fired concurrently, so every cell is a pure co-decode. Acceptance on this workload is loop-inflated and must not be read from these runs. EOS essentially never fires on PG19 continuation, 1 of 625 rows, and greedy decode degenerates into repetition at many contexts, the target included, so on non-degenerate cells MAL is 2.24 windowed against 1.27 unwindowed, while the degenerate average pulls the unwindowed figure up to 2.57 and masks the collapse. Speedup stays a fair ratio because the target decodes the same degenerate text, but the windowed 524k and 800k cells are loop-assisted; a three-repetition recheck confirms them reproducible ( at 524k).
E.6 Sink-size ablation
Windowed drafters are often paired with attention sinks, a few pinned prefix tokens the drafter attends to in addition to its recent window [35]. Table 10 varies the sink budget on Inferact with everything else fixed, at 1M context, , and per point.
No sink is decisively best, and the penalty for adding one is large and immediate: any sink at all costs more than a full point of MAL, and the loss does not shrink as the budget grows from 4 to 32. This is the opposite of what sinks do for a streaming language model, where pinning the first few tokens stabilizes generation. The explanation we favor is positional: while decoding near position 1M, a sink token sits at absolute position , so the drafter is asked to attend across an offset it never saw in training, and the resulting features are worse than no distant context at all. A target-conditioned drafter also has less need of a sink than a standalone one, because whatever the prefix contributes is
Table 9: Batched serving on Kimi-K3 with Inferact, , , 4096 generated tokens per request, natural EOS. Entries are decode-phase speedup over the batched target at the same batch size and context, so each column is its own baseline. Dashes are combinations whose working set exceeds the KV budget, which the engine cannot allocate; they are not skipped measurements.
| batch size | ||||
|---|---|---|---|---|
| 1 | 2 | 4 | 8 | |
| Inferact, windowed | ||||
| 4k | 1.67 | 1.75 | 1.44 | 1.14 |
| 32k | 2.14 | 1.86 | 1.78 | 1.42 |
| 131k | 1.74 | 1.77 | 1.71 | 1.56 |
| 262k | 1.70 | 1.82 | 1.77 | - |
| 524k | 2.44 | 2.45 | - | - |
| 800k | 2.19 | 2.08 | - | - |
| Inferact, unwindowed | ||||
| 4k | 2.24 | 1.65 | 1.49 | 1.33 |
| 65k | 1.81 | 1.71 | 1.44 | 1.51 |
| 131k | 0.94 | 1.15 | 0.94 | 0.68 |
| 262k | 0.82 | 0.73 | 0.64 | - |
| 524k | 0.78 | 0.68 | - | - |
| 800k | 0.69 | 0.64 | - | - |
Table 10: Sink-size ablation on Inferact against Kimi-K3, at 1M context with , , and per point. Only the number of pinned prefix tokens varies. MAL is emitted tokens per round out of .
| drafter | sink tokens | MAL |
|---|---|---|
| Inferact | 0 | |
| Inferact | 4 | |
| Inferact | 8 | |
| Inferact | 16 | |
| Inferact | 32 |
already present in the target features it reads. This ablation, together with the paired sweep on the same drafter in Appendix D, is what justifies on Inferact.
On RadixArk it does not, and we would rather say so than generalize: that drafter responds in the opposite direction on a single sweep, so the sink budget may be drafter-specific, and we report the ablation on Inferact alone until a re-run settles the direction. We nonetheless run RadixArk at throughout, for comparability with Inferact rather than because this ablation selects that value for it. No result in the paper turns on the choice, since every arm of every comparison shares the same sink budget; what is not established is that is the best setting for RadixArk.
E.7 Window-size ablation at long context
Section 6.4 varies at 32k on the Qwen pair (Table 3). Table 11 repeats the question thirty times further out, at 1M context on Kimi-K3 with and per point, varying only Inferact's window.
Acceptance is flat: the spread across a range of window sizes is 0.09 MAL, smaller than the sample spread within any one setting. Two things follow. First, the saturation found at on the Qwen pair at 32k is not an artifact of that pair or that length; the most recent kilotoken carries essentially all of this drafter's usable signal even when a million tokens precede it. Second, and more useful for deployment, the window is not a tuning knob that has to be re-selected as context grows. That matters because is what bounds the drafter's cost, so a practitioner can pick the smallest window that saturates acceptance at a short calibration length and keep it.
Table 11: Window-size ablation on Inferact against Kimi-K3, at 1M context with , , and per point. Only the drafter's visible window varies. MAL is emitted tokens per round out of .
| drafter | window | MAL |
|---|---|---|
| Inferact | 1024 | 2.97 |
| Inferact | 2048 | 2.94 |
| Inferact | 4096 | 3.03 |
Table 12: Both gaps at matched positions, Qwen2.5-7B-Instruct with EAGLE-3, fresh-drafter law. Intervals are 95% document-level cluster bootstraps.
| measured | feature channel | |||||
|---|---|---|---|---|---|---|
| 128 | .2195 | .247 | .673 | .108 | .317 [.261, .369] | .334 |
| 256 | .1823 | .206 | .675 | .143 | .319 [.266, .369] | .314 |
| 512 | .1476 | .169 | .671 | .181 | .323 [.268, .374] | .299 |
| 1024 | .1225 | .146 | .674 | .203 | .321 [.268, .377] | .280 |
| 2048 | .1013 | .121 | .680 | .219 | .317 [.264, .366] | .256 |
| 8192 | .0608 | .082 | .694 | .245 | .304 [.253, .354] | .218 |
This is a statement about acceptance, and section 5.3 is the reason it cannot be turned into a statement about the optimal in general: neither gap is guaranteed monotone in , and the cost side of the trade-off depends on the serving stack. As with the sink sweep we report Inferact only, because the matching RadixArk sweep predates the re-basing fix of section 4.3 and its 1M points are not trustworthy.
F Gap measurement details
Entropy tiers on the deployment law. Stratifying the window ablation of section 6.4 by SPEED-Bench's difficulty tiers, low-entropy prompts accept better in every arm and tier, MAL 1.713 against 1.634 at 32k windowed. This agrees in direction with the corpus-position measurements below, but we do not treat it as independent confirmation, since a stratum labelled by a measured gap cannot then certify that same gap.
Out-of-distribution evaluation. The EAGLE-3 head measured in section 6.5 was trained on 1024-token sequences and is evaluated here at 32k mid-document, where it reaches 33–35% argmax agreement with the truncated target against 61.8% on its own training distribution. This mismatch may affect the measured , but the available comparisons do not establish the direction or the magnitude of that effect, so we do not present the number as the fidelity gap a purpose-built drafter would show. The flatness in and the magnitude of the feature channel are observations under this evaluation law, and each has a reason not to be a pure artifact of the mismatch, the training length being fixed while varies over a 64× range and the feature channel being a property of the architecture's input rather than of its training length; whether either persists under domain-matched deployment remains to be tested.
Entropy tiers. The tier separation is stable across all six windows: and are 0.715–0.735 and 0.263–0.276 on the ten high-entropy documents against 0.558–0.592 and 0.406–0.439 on the low-entropy ones. Because the tiers are third-party labels on the benchmark rather than our own construction, this is a consistency check, not independent confirmation of the gaps.
Greedy patterns. Joining the two measurements at matched positions recovers four of the five rows of Appendix A.5's case analysis (Table 4); the truncated-target versus drafter comparison was not stored, so “truncation only” and “all three distinct” merge, but both are rejections and the accept/reject split remains exact. Fidelity-only flips grow from 0.442 to 0.598 as truncation-driven rejections shrink from 0.214 to 0.070, leaving greedy agreement almost unchanged at 0.332–0.355. The greedy fidelity flip rate is bracketed by the fidelity-only and cancellation rows below and the merged rejection row above, giving at .
G Measurement controls
Four controls in section 6.1 are load-bearing rather than hygienic, each having changed a reported quantity by more than the algorithmic effect under study.
Symmetric compiled-graph capture. Both arms must use the same graph-capture setting. One arm compiled while the other runs eager moves a single speedup ratio from to .
Post-load rendezvous. When two arms share a node, they must be synchronized after weight load, or the arms contend for host-side launch capacity and the ratio measures scheduling rather than drafting.
Profiler-free timing. A per-forward profiler taxes the two arms unequally, since the speculative arm issues more, smaller launches per emitted token; all reported timings are collected without one.
fp32 reductions for distributional measurements. All TV reductions in section 6.5 are computed in fp32. In bf16, a same-input/different-batch-shape control alone reaches TV , which cannot resolve the pre-registered tolerance of 0.05; in fp32 the same control has median TV and p99 .
H What the measurements do not establish
The gap measurements are not on the deployment law. Section 6.5 uses corpus positions with the drafter run as a clean forward pass, while section 6.2 through section 6.4 count reached proposal states with the actual cached drafter under eviction, re-basing, and rollback. The existing harnesses log request-level aggregates only, with no per-round drafted token identities and no target argmax, so per-step greedy data cannot be reconstructed from what was saved. Closing this requires one instrumented run that records, at sampled reached states through the first rejection, the full-target token, a fresh truncated-target token, and the actual cached drafter token. That single run yields the complete five-pattern table of Appendix A.5, both greedy flip rates, agreement, the two bounds of Proposition 5, and the reached-stage quantities that Proposition 8 needs. Sweeping the same calibration grid in W during that run would also supply both gaps on the deployment law, pairing with the timing already reported in section 6.4. Workloads should remain separate, document-level resampling should preserve pairing and reached stages, and a paired retained-prefix intervention should be labelled as a distinct counterfactual law.
Scope of the theory. Proposition 3 does not apply to a drafter reading full-context features, so the index-locality bound covers the rotary argument and not the information the drafter uses. The boundary bound of Appendix A.1 counts positions not certified by exactness rather than observed discrepancies, and MAL remains a geometric model, so Proposition 8 needs the stage-specific laws we do not yet have.
Distribution shift inside the fidelity gap. The instrumented drafter of section 6.5 runs far outside its 1024-token training distribution, so absorbs computation-graph mismatch as well as model difference and may be affected by an amount and in a direction our comparisons do not establish. The feature channel is a distribution-shift channel the theory does not bound either: at million-token contexts the target's hidden states are produced at sequence lengths the draft head never saw in training, and that shift lives entirely inside .
Greedy output equivalence. Under greedy decoding with a correct verifier, the speculative arm should emit a token-for-token identical stream to target-only decoding; on the Kimi-K3 pair it did not, in any run, with divergence appearing as early as the first generated token. Every committed token is chosen by the target's own full-context verification and acceptance is high, so the speculative arm agrees with its own verifier, and the working explanation is benign numerical nondeterminism rather than a verification defect, the two arms being separately booted engines with different decode batch shapes, one row against . This has not been proven. The supporting evidence is of the right order but not decisive: the target's own batch-shape instability is median TV and p99 in fp32, enough to flip an argmax only where the top-two margin is minuscule. The decisive control is cheap, one target-only rerun at matched and differing batch shapes, and it is a prerequisite for interpreting the reached-state run above rather than a follow-up to it, since logged token agreement must be reconciled against the actual verifier decision before any gap decomposition is interpreted.
I The full truncation grid and the threshold screen
Table 13 summarizes the 34-window target-only sweep of section 6.5, over the pre-registered grid . Six of the twenty sampled documents were excluded by a content-only rule, more than 90% of the measured tail explained by a repeating period of at most 50 tokens; these tails are benchmark padding and yielded at every window, which without the filter would have manufactured an apparent floor in the low-entropy tier. The analysis therefore uses 14 documents and 1750 positions. The same-input/different-batch-shape control of section 6.1 has median TV and p99 on this data.
Monotonicity. Aggregate falls almost monotonically, from 0.719 to 0.321 with a single increase of 0.006, yet individual positions frequently are not monotone: 590 of the 1347 positions that cross below at some window later return above it, or 43.8%, far above the numerical floor. A window that suffices at one position therefore need not suffice at a larger one, which is why section 5.3 claims no monotonicity guarantee.
Window construction is load-bearing. At the median TV between a cache-eviction window and a fresh hard-truncated pass is 0.261, 0.211, and 0.206, with p90 of 0.766, 0.586, and 0.581. A nominal window size does not by itself define a predictor, so the comparator must be specified as an input construction and not only as a length.
Entropy tiers. The tier ordering is correct at every window but preliminary, only four clean low-entropy documents surviving the padding filter: at , is 0.709 on ten high-entropy documents against 0.276 on the low-entropy ones, with greedy flip rates 0.146 and 0.058.
For the teacher-forced softmax diagnostic define
so that Corollary 2 gives under the same law. The corollary also gives the mean form , and exceeds by 0.14 to 0.27 at every window, so the threshold screen is the weaker of the two available statements and the main text reports the mean form. The optimizing tolerance ranges from 0.310 at to 0.130 at , rather than the pre-registered 0.05, and Figure 3 plots over the whole grid.
Table 13: Target-only truncation sweep on the 14 usable 32k documents, selected windows. Intervals are 95% document-level cluster-bootstrap intervals on (2000 resamples).
| 95% CI on | |||||||
|---|---|---|---|---|---|---|---|
| 128 | .2195 | .7805 | .5118 | .310 | .719 | .2469 | [.476, .552] |
| 256 | .1823 | .8177 | .5659 | .285 | .689 | .2057 | [.528, .601] |
| 512 | .1476 | .8524 | .6178 | .265 | .652 | .1686 | [.574, .656] |
| 1024 | .1225 | .8775 | .6605 | .240 | .619 | .1463 | [.620, .699] |
| 2048 | .1013 | .8987 | .6944 | .215 | .585 | .1206 | [.656, .730] |
| 4096 | .0772 | .9228 | .7360 | .195 | .512 | .1000 | [.706, .770] |
| 8192 | .0608 | .9392 | .7779 | .155 | .448 | .0823 | [.738, .810] |
| 12288 | .0512 | .9488 | .7963 | .135 | .382 | .0589 | [.759, .829] |
| 16384 | .0444 | .9556 | .8121 | .135 | .321 | .0629 | [.775, .842] |

Figure 3: The target-only threshold screen over all 34 windows. It is monotone in aggregate but is the weaker of the two bounds in Corollary 2, and it does not measure .