ALL INSIGHTS

LLM Enhancements

DFly2: Sharing Sparse Attention State to Cut Speculative Decoding Overhead

DFly2 removes the drafter’s KV cache by sharing sparse target state, with promising long-context gains and deployment caveats.

November 27, 20269 min read
DFly2: Sharing Sparse Attention State to Cut Speculative Decoding Overhead

Speculative decoding is often framed as a prediction problem: a small model proposes tokens, and a larger model verifies them. Better proposals can mean fewer target-model passes for the same output. But in long-context serving, prediction quality is only part of the equation. The drafter’s memory footprint and context-processing work also determine whether speculation delivers a useful infrastructure gain.

Tencent’s DFly2 addresses that second problem. Designed for natively sparse language models, it removes the drafter’s separate KV cache and reuses attention state that the target model already produces. Rather than maintaining an independent representation of the entire context, the drafter consumes the target’s sparse KV latents and selected attention positions. [1][4][7]

Release coverage reports up to 4.2× speedup on long-context workloads. That is a reported peak, not an established multiplier for arbitrary models or serving configurations. The more broadly useful idea is architectural: a target model’s sparse attention state can serve both verification and drafting, reducing duplicated work and storage. [2]

For engineers running inference infrastructure, DFly2 therefore raises two questions. How much can shared context state improve a compatible deployment? And what remains between the research result and a production-serving benefit?

1. The long-context problem is duplicated state

Conventional speculative decoding introduces a second model into the generation path. The drafter proposes multiple tokens, and the target verifies those proposals. The paper describes this as a lossless acceleration technique that reduces the number of target-model passes. Its practical value depends on both the number of accepted proposals and the overhead required to produce and verify them. [1]

A conventional drafter generally maintains its own KV cache for the prompt and generated sequence. As context length grows, this becomes an additional memory commitment alongside the target’s cache. A smaller drafting model does not eliminate that context-dependent storage requirement.

This matters because memory allocated to draft state cannot simultaneously support other resident requests, larger batches, or additional runtime buffers. SyncAI specifically connects DFly2’s design to long-context and agentic serving, where draft-state memory competes with concurrency. [4]

The resulting trade-off is not captured by draft-model size alone. A drafter may be inexpensive relative to the target in model computation while still adding meaningful context storage and processing overhead. Evaluating speculation therefore requires looking at the combined serving system, not just the cost of a draft forward pass.

DFly2 changes the ownership model for that state. The target retains the authoritative cache, while the drafter uses a compact view of information already available from sparse attention. Reports describe the drafter as keeping no KV cache of its own. [4][6]

That is narrower than saying speculative decoding has no memory overhead. The supported claim concerns removal of the independent drafter KV cache, not elimination of every resource needed to generate proposals.

2. How DFly2 shares the target’s sparsity

DFly2 is built around a target model that already performs sparse attention. Instead of attending densely across the entire context, that target selects a limited set of relevant positions. The system reuses the products of this selection rather than asking the drafter to independently process the full history. [1][7]

The available paper summary identifies two shared structures: the target’s sparse KV latents and its top-k attention indices. These provide the drafter with both target-side context information and the positions selected by the target’s attention mechanism. [7]

The drafter reads a fixed set of query-relevant positions from the target cache and produces block-parallel token proposals. It does not maintain a separate full-context KV cache or run its own context-wide indexer. This is the basis of the reported constant-context-cost drafting behavior. [7]

The important distinction is between sharing stored context and sharing the work used to select context. DFly2 does both through its use of target-generated sparse state. The target’s indices are not merely an internal attention detail; they become an input to another component of the decoding pipeline.

This makes the drafter more closely coupled to the target than a generic small-model proposer. Its context access depends on representations and selections produced by the sparse target architecture. That coupling is the source of the opportunity, but also a constraint on where the technique applies.

DFly2 consequently should not be interpreted as simply shrinking a conventional drafter. It reorganizes the relationship between drafting and target attention. The optimization comes from avoiding an independent context representation and selection process, while still using the target to verify speculative output. [1][4][7]

3. Constant context cost does not mean free drafting

DFly2’s reported design objective is to keep drafting cost effectively independent of total context length. Because the drafter reads a fixed sparse selection rather than processing the entire context, its context-access work need not grow with the full sequence. Agientry describes the system as producing block-parallel drafts at constant context cost. [7]

That claim needs a clear boundary. It concerns the drafting mechanism, not the entire inference request. The target still owns the authoritative context state and performs verification. Nothing in the available evidence establishes that total inference cost becomes independent of context length.

There is also a measurable cost to accessing the selected state. Tech Thought Leaders reports that reading the fixed sparse-index set costs 4% to 6% of a decode step at any context length. This qualifies, rather than contradicts, the constant-cost description: bounded work is still work. [6]

For an infrastructure evaluation, the relevant comparison is between that bounded access cost and the context-dependent draft work it replaces. The benefit must also be considered alongside proposal acceptance and verification overhead. Reducing one component of the pipeline does not by itself determine the end-to-end result.

This distinction is particularly important when interpreting long-context claims. DFly2 is designed to prevent the drafter from independently carrying the full context burden. It is not presented as removing the target’s long-context workload.

The practical takeaway is to separate scaling behavior from absolute expense. A component whose cost remains stable as context grows can become increasingly attractive, even though that component continues to consume a nonzero share of each decode step.

4. Reading the performance numbers without mixing baselines

The headline result is up to 4.2× speedup on long-context workloads, according to coverage of Tencent’s release. The available evidence does not establish that this result holds across different target models, hardware configurations, sequence lengths, or serving workloads. It should remain labeled as a reported peak. [2]

A separate summary reports decoding improvements relative to DSpark: [7]

Workload categoryReported improvement over DSpark
General2% to 6%
Long-context6% to 18%
Agentic12% to 30%

These results answer a different question from the headline multiplier. They describe incremental improvements over a named comparison system, not a universal acceleration factor. Without matching experimental conditions and baselines, the figures should not be combined or treated as interchangeable.

The workload pattern is nevertheless informative. The reported relative gains are larger for long-context workloads than for general workloads, and largest for agentic workloads. This is consistent with the design goal of reducing duplicated context state and context-processing work. Agents can carry long interaction histories and invoke generation repeatedly within a task. [4][7]

Consistency with the design rationale is not proof of how much each mechanism contributes. The available summaries do not isolate the share of improvement attributable to memory savings, sparse-state access, or other aspects of drafting behavior.

They also do not establish exact memory savings in gigabytes, a maximum increase in batch size, or a reduction in total cost per generated token. Those are separate measurements, requiring experimental details beyond the reported ranges.

For buyers and platform engineers, the numbers justify investigation rather than a capacity-planning assumption. A reproducible comparison needs the target model, hardware, sparsity pattern, context length, decoding configuration, and serving stack held explicit. Acceptance rates and workload shape also matter when explaining why a speculative system performs differently across tests.

5. Memory savings come with architectural constraints

The clearest infrastructure benefit is the removal of duplicated drafter KV storage. With no independent drafter cache, memory that would otherwise hold draft context can potentially support more resident requests, larger batches, longer contexts, or other runtime buffers. The cited coverage explicitly connects this design to concurrency pressure in long-context and agentic serving. [4]

These are deployment opportunities, not quantified outcomes. The brief does not establish how many additional requests fit on a device or how much throughput improves when the saved memory is reassigned. Those effects depend on the rest of the serving configuration.

Compatibility is equally important. DFly2 is designed for natively sparse target models that produce reusable sparse KV latents and attention indices. A dense model that does not expose equivalent sparse metadata would not automatically benefit from the same mechanism. [1][7]

Even among sparse models, teams need to examine the relationship between the target’s attention implementation and the drafter’s required inputs. The available evidence does not establish portability across all sparse-attention implementations or serving runtimes.

This changes the evaluation order. Before asking how much faster DFly2 might be, an infrastructure team should determine whether its target architecture produces the necessary state and whether that state can be made available to the drafting path.

The trade-off is tighter integration in exchange for less duplicated work. A more independent drafter can maintain its own context representation. DFly2 instead relies on the target’s existing representation and selections. That reliance is not incidental to the design; it is what makes the cache-sharing strategy possible.

For a compatible sparse-model deployment, this is a compelling direction. For a fleet centered on dense targets, the published mechanism does not establish an immediate path to the same gains.

6. Research speedups are not yet production throughput

The paper was updated on November 26, 2026, and reports identify Tencent’s open-source release as occurring on the same date. Open availability, however, should not be confused with complete production-serving integration. [1][2][6]

Tech Thought Leaders reports that vLLM support is in progress and that the weights currently run in a research configuration. That places an important limit on how the performance claims should be used in deployment decisions. [6]

A research setup can demonstrate a decoding improvement without establishing its behavior inside a mature serving system. Continuous batching, paged KV-cache management, tensor parallelism, request cancellation, fault handling, and production telemetry all remain relevant evaluation areas. The available coverage does not establish DFly2’s production integration across those capabilities.

For teams considering a trial, the first objective should be to reproduce a result under a clearly specified configuration. The second should be to determine whether the benefit persists under the workload and runtime behavior the deployment actually requires.

Those are distinct stages. Matching a research result can validate the mechanism without resolving operational questions. Conversely, a production-oriented test must measure the complete serving path rather than assuming a faster drafting component produces the same proportional gain in delivered throughput.

The available sources also do not provide a standardized benchmark spanning GPU models, batch sizes, prompt lengths, output lengths, and acceptance rates. That limits direct comparison with other speculative-decoding systems.

Until runtime support and reproducible serving results are available, the appropriate description is promising research performance with integration work still in progress. It is not evidence of a universally deployable throughput multiplier.

7. What this means for teams running their own inference infrastructure

DFly2 offers a useful design principle: optimizing speculation can mean eliminating duplicated context state, not only improving the drafter’s predictions. For a sparse target, attention metadata can be a shared resource rather than a private intermediate result. [1][7]

Teams evaluating the system should start with architectural fit. Confirm that the target exposes the sparse KV latents and attention selections the approach requires. Then distinguish what the research implementation supports from what the production runtime needs.

A focused evaluation should answer four questions:

  • Does the mechanism fit the target? Establish compatibility with the model’s sparse-attention state before extrapolating performance claims.
  • Where does memory go? Measure the actual reduction in per-request storage and whether it enables useful additional concurrency or batch capacity.
  • Does the workload benefit? Test the relevant mix of general, long-context, and agentic requests rather than relying on the largest reported gain.
  • Does the serving result hold? Measure decoding performance alongside the runtime features and operational behavior required in deployment.

The current evidence supports interest, especially for sparse-model infrastructure serving long histories. It does not establish exact capacity gains or cost-per-token savings. The reported 4.2× peak and DSpark-relative improvements should remain tied to their stated scope. [2][7]

For infrastructure owners, the broader lesson is to examine the boundary between model components. DFly2’s contribution is not just a different drafter; it is a different way to allocate responsibility for context. Where the target already computes a useful sparse view, sharing that view may be more efficient than rebuilding it.

Sources

  1. [1]DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target’s Sparsity
  2. [2]Tencent Open-Sources DFly2, Hitting 4.2x Speed on Long-Context AI
  3. [3]Norn: Context-Length-Aware Optimization of Weight and KV Cache Placement for Offloaded LLM Inference
  4. [4]Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache
  5. [5]L2C2: Enhancing Large-scale Chiplets for Agent Long-Context LLM Inference with Sparse and Distrib…
  6. [6]Speculative Decoding Used to Cost KV Memory. The Sparse Index Made It Optional. - Tech Thought Leaders
  7. [7]DFly2: Turbocharging Long-Context Speculative
  8. [8]The Inference Engineering Pareto Atlas: Which Optimizations Dominate the Cost, Quality, and Latency Frontier?
  9. [9]A Differential Computing Accelerator for LLM Inference Leveraging Bit-Slice Transition Sparsity
  10. [10]MOSAIC: Efficient Collaborative Inference for Multi-Modal Large Language Models with Distributed Edge Computing | Proceedings of the Twenty-seventh International Symposium on Theory, Algorithmic Foundations, and Protocol Design for Mobile Networks and Mobile Computing

Researched from the sources above and fact-checked against them before publishing.

See what this means for your infrastructure.

Book a discovery call and get a benchmark projection for your hardware and model.

SCHEDULE A CALL