DFly2 Speeds Long-Context AI by Sharing Model Sparsity
Speculative decoding speeds up text generation by having a smaller “drafter” propose several tokens at once, then asking the larger target model to check them. The approach is especially relevant when...
Key Facts
- Accelerate slow-decoding workloads by using speculative decoding to verify multiple proposed tokens per target-model step.
- Reduce memory and prefill overhead by reusing the target model’s cached context instead of maintaining a separate drafter cache.
- Increase serving capacity by avoiding extra position-scoring passes that consume compute and limit concurrent requests.
- Deploy DFly2 with sparse-attention models to reuse their cached key-value data and selected context positions.
- Validate one-step-old position selections against workload accuracy needs; DS-V4.1-Flash retained nearly 90% of selected positions.
Summary
Paper: DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity
Authors: Hong Liu, Rui Cen, Junhan Shi, Lin Niu, Runzhi Fan, Zhaojing Zhou, Haodi Lei, Jiebin Zhang, Saiyong Yang, Junqiang Zheng, Zhenghai Xue, Guanghua Yu, Jianchen Zhu
Executive Summary
Speculative decoding speeds up text generation by having a smaller “drafter” propose several tokens at once, then asking the larger target model to check them. The approach is especially relevant when the target model decodes slowly. But a drafter can add costs of its own: it may keep a separate cache of the prompt, increasing memory use and prefill time, reducing the benefit of cached prefixes, and limiting how many requests can run at once.
DFly2 is designed to avoid that extra work. It targets models that already use sparse attention: instead of examining every position in a long context, the target selects a limited set of positions for each query. DFly2 reuses both the target’s cached key-value data and its selected positions. It therefore does not keep a separate context cache or run its own pass to score which positions to read.
A central finding supports this design: on DS-V4.1-Flash, a position selection made one step earlier still covered close to nine tenths of the positions selected for each later token. DFly2 uses that overlap to let its draft layers read positions chosen by paired target layers. The method shares the target’s cache and selection while drafting tokens in parallel.
The researchers tested DFly2 on DS-V4.1-Flash, GLM-5.3-Flash and Hy4~flash, models with different sparse-attention methods and architectures. Across general, long-context and agentic benchmarks, DFly2 accepted more proposed tokens per step than DFlash and DSpark when those systems were trained using the same recipe. Its advantage over the stronger baseline ranged from 3.9% to 10.5% on general workloads, and from 10.0% to 31.5% on long-context and agentic workloads.
The abstract also reports a throughput test at high concurrency on DS-V4.1-Flash. At matched per-user decoding speed, DFly2 delivered 62% and 81% higher throughput on two 64K sets. These are reported benchmark results, not evidence of deployment in production systems or measured business outcomes. The abstract does not specify the nature of the two sets, so the figures should not be read as applying to every 64K workload.
For teams running sparse-attention models, the results suggest a possible way to reduce the drafter’s memory and processing overhead while improving speculative decoding performance, particularly on long-context and agentic tasks. Whether those gains carry over to a particular service would depend on its model, workload and concurrency; the abstract does not report real-world deployments.
Academic Abstract
To avoid the quadratic cost of dense attention over long contexts, models such as DeepSeek-V4 and Hy4 have turned natively sparse, and speculative decoding, which matters most where decoding is slowest, increasingly runs on them. Their drafters, however, still keep a context cache of their own, over the whole prompt or a sliding window. Beyond memory, such a cache costs prefill time, prefix-cache hits and decode concurrency. Drafters that read the target's cache avoid one of their own, but settle only which cache, not which positions, and still read everything or a recent window. Neither rule is made for the query at hand, and computing a selection per query in the drafter would cost more as the context grows. Yet a natively sparse target already picks positions for each query, over a cache it keeps anyway. Both of the drafter's choices are therefore already made, and paid for, by the target: its cache and its selection. We measure how far one selection carries: made a step early, it still covers close to nine tenths of what each later token selects on DS-V4.1-Flash. We present DFly2, a block-parallel drafter that shares the target's sparsity. Each draft layer reads the KV its paired target layer cached (KV sharing), at the positions that layer's indexer selected, a fixed number anywhere in the context (Index sharing). DFly2 thus runs no scoring pass and keeps no cache of its own. On DS-V4.1-Flash, GLM-5.3-Flash and Hy4~flash, whose sparse attention and architecture differ, it accepts more tokens per step than DFlash and DSpark trained on the same recipe, over general, long-context and agentic benchmarks. Its margin over the stronger baseline widens from 3.9%-10.5% on general workloads to 10.0%-31.5% on long-context and agentic ones. At high concurrency on DS-V4.1-Flash, at matched per-user decode speed, its throughput is 62% and 81% higher on two 64K sets.
Frequently Asked Questions
What business problem does DFly2 aim to solve?
It aims to reduce the extra memory use and prefill time that a separate speculative-decoding drafter can add, which can limit the benefit of cached prefixes and the number of requests served concurrently. This may make text generation more efficient when the target model decodes slowly and uses sparse attention.
Which industries benefit most from DFly2?
The summary does not identify particular industries. Organizations using long-context generation with sparse-attention target models could benefit, but the extent would depend on their workloads and infrastructure.
What are the practical implementation considerations?
DFly2 is designed for models that already use sparse attention. It reuses the target model’s cached key-value data and selected positions, rather than maintaining a separate context cache or scoring positions in its own pass. Implementers would need to assess compatibility with their target models and serving setup.
What resources or expertise might an organization need?
The summary does not specify staffing or deployment requirements. In practice, evaluating DFly2 could require expertise in model serving, speculative decoding, and sparse-attention systems, as well as access to compatible models and infrastructure for testing.
What competitive advantages could DFly2 offer?
By avoiding a separate context cache and position-scoring pass, DFly2 could reduce some memory and prefill overhead from speculative decoding. That may help organizations improve serving efficiency or handle more concurrent requests, though the summary does not establish business outcomes or results across deployments.