The Long-Context Speculative Decoding Bottleneck: Distance, Not Length

The study reveals that the acceptance-rate drop in long-context speculative decoding is driven mainly by text distance rather than length, and proposes the training-free FreeLong method.
This article analyzes the performance bottleneck of speculative decoding for large language models in long-input scenarios. The study finds the sharp drop in drafter acceptance rate is driven mainly not by input length itself, but by the reference text the drafter needs exceeding its "effective range"—the maximum distance seen during training and attendable to. This pattern, called the "proximity law," is validated across EAGLE-3, DFlash, DSpark, and other drafters. Based on it, the researchers propose FreeLong, a training-free, lossless method: it uses the target model's attention to select key sentences, combines them with recent tokens into a 2K working set, and places critical text within the drafter's effective range. Experiments on ten drafters show acceptance rates improve to 1.8–2.6× (RULER) and 1.2–2.6× (AgentLongBench), with decoding in SGLang 1.6–6.6× faster than the target model alone.
Speculative decoding can significantly accelerate large language model inference: a small drafter model proposes multiple tokens at once, and the target model verifies them in a single step. But this acceleration mechanism hits a serious bottleneck in long-input scenarios—the drafter's acceptance rate drops sharply, even when the target model itself handles these long inputs with ease.
A new study takes a deep dive into this phenomenon and reaches a counterintuitive conclusion: the main cause of the acceptance-rate drop is not that the input got longer, but distance—the text the drafter needs to reference is simply too far from its current position.

Distance Is the Real Culprit Behind the Acceptance-Rate Drop
The researchers propose an observation they call the "proximity law": a drafter can maintain a stable acceptance rate within its "effective range"—the maximum distance it has encountered during training and is able to attend to. Once the critical text falls outside this range, the acceptance rate drops substantially.
Input length itself does also lower the acceptance rate, but its effect is relatively minor. In other words, the model doesn't "lose accuracy because the text is long," but "loses accuracy because the text is far away."
This pattern was validated across different drafters such as EAGLE-3, DFlash, and DSpark, as well as in combinations with multiple target models—regardless of whether the effective range is determined by the training process or delimited by the attention window.
The "effective range" is not a newly introduced, standalone concept; it can be understood from two angles: the drafter's training distribution and its attention mechanism. The text lengths and attention patterns the drafter saw during training determine the context span it can reliably exploit; at the same time, if the drafter uses sliding window attention or a similar mechanism, there is a hard cap on the number of historical tokens it can attend to. When the critical reference text falls outside this span, the drafter can only make predictions based on incomplete information, causing it to deviate from the target model's distribution and dragging down the acceptance rate. This range can be viewed as the drafter's "capability horizon": within the horizon it performs stably; beyond it, prediction quality plummets.
The acceptance rate is the core metric in speculative decoding—the proportion of tokens proposed by the drafter that pass verification by the target model. The speedup of speculative decoding is roughly positively correlated with the acceptance rate: the higher the acceptance rate, the fewer verification steps the target model needs to execute, and the more tokens each forward pass can produce. When the acceptance rate plunges from a high level to a low one, a large number of the drafter's proposals are rejected, the system degenerates to something close to token-by-token decoding, and the speedup gains almost vanish. A small drop in acceptance rate is therefore amplified into a significant loss of inference speed in long-input scenarios—which is the direct reason this bottleneck deserves dedicated study.
A Placement Principle, Not a Better Model
The proximity law directly yields a design principle: as long as the text the drafter needs is placed within its effective range, most of the lost acceptance rate can be recovered. This offers a new approach to long-context speculative decoding—rather than retraining the drafter, adjust how the text is organized at inference time.
Based on this principle, the researchers propose FreeLong, a training-free, lossless method. Its core mechanism is:
- The target model uses its own attention mechanism to select the "needed sentences" from the long context.
- The drafter reads only these selected sentences, plus the most recent tokens, forming a 2K-token working set.
- Within this compressed working set, the critical text naturally falls within the drafter's effective range.

Measured Results: Acceptance Rate and Speed Both Leap
The researchers tested on ten published drafters, covering both 32K and 128K context lengths. The results show:
- On the RULER benchmark, FreeLong raises the acceptance rate to 1.8–2.6× that of the original drafter.
- On AgentLongBench, the improvement is 1.2–2.6×.
- In the SGLang inference framework, decoding speed is 1.6–6.6× faster than using the target model alone, and 1.2–2.3× faster than using the original drafter.
These gains are achieved without sacrificing output quality—FreeLong is described as a lossless method because it only changes what the drafter "sees"; final verification is still performed by the target model.
Implications for Accelerating Long-Context Inference
The value of this work lies not only in FreeLong itself, but in the key constraint it reveals for long-context speculative decoding. In the past, improving acceptance rates in long-context scenarios tended to focus on making the drafter "stronger" or "see further," but the proximity law suggests the problem may lie in the spatial relationships of the text, rather than in model capacity or training data.
For real-world deployment, this means that in scenarios such as long-document question answering, code repository understanding, and multi-turn dialogue, intelligently organizing the drafter's input context can recover much of the performance lost in speculative decoding—without bearing the cost of retraining.
Of course, FreeLong relies on the target model's attention to select key sentences, which introduces additional computational overhead; and whether the 2K-token working set used in the study can cover all task types remains to be further validated. But the insight that "distance matters more than length" provides a clear and actionable direction for optimizing long-context inference.
Related articles

Don't Rush to Code with AI: A Practical Method for Using Doubao Work to Find Paid Projects
Vibe Coding series episode one: don't rush to code with AI. Use Doubao Work to analyze tech news and find demand, then use "free permission learning images" to hand finished products to e-commerce merchants for free, validating willingness to pay through real feedback—let customers, not AI, judge the market.

CrossDLM: Cross-Generation-Process Distillation to Inject Autoregressive Knowledge into Diffusion Language Models
The CrossDLM framework uses sequence-level scoring and bidirectional reconstruction supervision to solve the mismatch between autoregressive models and diffusion language models, outperforming causal prefix distillation in experiments.

UnCommit: Suppressing Overconfident Hallucinations in LLMs via Unlearning
UnCommit proposes a post-training framework treating overcommitment in LLMs as a suppressible behavior, using a low-dimensional representation subspace and LoRA adapter to redirect toward abstention, reducing false commitment rate by 9.6 points and mitigating hallucinations.