Distance, not length, limits long-context speculative decoding
Original title: Far, Not Just Long: What Limits Long-Context Speculative Decoding
Training-free FreeLong raises acceptance 1.8–2.6 times on RULER for ten drafters at 32K and 128K.
Widely used speculative-decoding drafters lose token acceptance when needed text lies beyond their effective range, even if the target model handles the long input. The paper reports this proximity effect for EAGLE-3, DFlash and DSpark, whether training or an attention window sets the range. FreeLong uses the target’s attention to move needed sentences into a 2K working set with recent tokens, without retraining. In SGLang the authors report 1.6–6.6 times the target-only speed and 1.2–2.3 times the original drafters.
- A longer input also lowers acceptance, but less than distance beyond range.
- On AgentLongBench, FreeLong raises acceptance 1.2–2.6 times.
- The drafter reads selected sentences plus recent tokens in a 2K set.
- The method is described as training-free and lossless.
From the original article
1 min read at arxiv.orgSpeculative decoding speeds up large language models: a small drafter proposes several tokens, and the target model verifies them in one step. However, the acceptance of widely used drafters drops sharply on long inputs that the target handles well.
By Xiaolin Lin · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.