Far, Not Just Long: What Limits Long-Context Speculative Decoding
The paper analyzes why speculative decoding loses acceptance on long inputs and identifies distance, rather than input length alone, as the main limiter: drafters retain acceptance when the needed text lies within their effective range. It proposes FreeLong, a training-free and lossless method in which the target model selects needed sentences via attention and the drafter reads only those sentences plus recent tokens in a 2K-token working set. Across ten drafters at 32K and 128K tokens, FreeLong raises acceptance by 1.8-2.6 times on RULER and 1.2-2.6 times on AgentLongBench. In SGLang, it decodes 1.6-6.6 times faster than the target alone and 1.2-2.3 times faster than the original drafters.
It offers a concrete, training-free approach to improving long-context speculative decoding, with reported acceptance and latency gains across multiple drafters.
Comments & Questions (0)
No comments yet
Be the first to comment!