Back to AI News
arxiv

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.

AI Brief

It offers a concrete, training-free approach to improving long-context speculative decoding, with reported acceptance and latency gains across multiple drafters.

arXiv:2612.03576v1 Announce Type: cross Abstract: Speculative 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. We find that this drop comes mainly from distance: a drafter keeps its acceptance while the text it needs lies well within its effective range, the farthest distance it met in training and can attend to, and loses much of it once this text lies farther back. A longer input also lowers acceptance, but less. We observe this proximity law in EAGLE-3, DFlash and DSpark drafters of several targets, whether training or an attention window sets the range. It leads to a placement principle: a method restores much of the lost acceptance when it places the needed text within the effective range. As one way to apply this principle, we propose FreeLong, a training-free and lossless method that moves the needed text into the drafter's effective range. The target picks the needed sentences with its own attention, and the drafter reads only these sentences and the most recent tokens, in a 2K token working set. Across ten released drafters at 32K and 128K tokens, FreeLong raises acceptance to 1.8-2.6 times that of the original drafters 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.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!