# DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity

DFly2 lets a drafter reuse the sparse target's cache and selection

Hong Liu, Rui Cen, Junhan Shi, Lin Niu, Runzhi Fan, Zhaojing Zhou and 7 more · arXiv · 2026-11-25

- **Problem** Block-parallel drafters keep a context cache of their own, which adds prefill, prefix-cache and decode costs. Drafters that read the target's cache still read everything or a recent window, so they ignore which positions the target selects for each query.
- **Method** DFly2 is a block-parallel drafter that shares the target's sparsity. Each draft layer reads the KV its paired target layer cached, at the positions that layer's indexer selected, so it keeps no cache and runs no scoring pass.
- **Results** DFly2's accepted length exceeded DSpark's by 3.9% to 10.5% on general workloads.

![Table 6: Mean accepted length τ on general-purpose benchmarks, each cell at temperature 0/1 (0.9 on Hy4 flash). Bold and underline mark the best and second bes…](https://refivu.com/papers/6a7579c7-7927-43d6-bf9f-b00862767609/figures/figure-24c06a325a72371ddf2fde9664b7eb1f.png?thumb=512)

**Table 6** :Mean accepted length τ on general-purpose benchmarks, each cell at temperature 0/1 (0.9 on Hy4 flash). Bold and underline mark the best and second best per target and temperature.

[Original paper](https://arxiv.org/abs/2611.34776v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · 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 · DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity · Original paper figure · Extracted the figure area from page 13 of the original PDF.

## Why a drafter's own context gets expensive

Speculative decoding helps most on long contexts, and the drafter that proposes tokens for a sparse target usually keeps a context of its own. Block-parallel drafters such as DFlash build keys and values from projected target hidden states and inject them into every draft layer. DFlash caches every position, so its cache grows with the context and weighs more the more the target compresses its own cache.

On Hy4 flash that cache adds a fifth to the KV per token, and on DS-V4.1-Flash it adds three quarters.

Table 2 puts the drafter's own cache next to the target's KV for each target, and the increase is largest where the target saves most. DSpark limits this with a sliding window, but its drafter still runs on prefill instances and builds its cache over the prompt.

The drafter also pays for attention over the context at every step, and that cost grows with the number of positions it reads. Their position rules ignore the current query, since the dense targets they were built for offered no selection to follow. A natively sparse target already picks a fixed budget of positions per query from a cache it keeps anyway.

## Borrowing the target's cache and selection

The key idea is that a drafter can take both of the target's choices, its cache and its selection, instead of making its own. The drafter then needs no cache of its own and no scoring pass, so the costs above do not arise. The selection was made for the target's queries, yet the drafter's layers start from the target's weights, which keeps their queries in the same space.

The authors test whether that one selection still covers what the later tokens of the block would select. NSA gives indirect support, since a selection trained with the model beats one computed afterwards.

The three targets differ in their sparse designs, so DFly2 takes each target's selection in the form that target gives it. DS-V4.1-Flash shares one cache across its layers as YOCO does, GLM-5.3-Flash mixes DSA layers with linear attention layers, and Hy4 flash compresses its index in two stages.

## How one draft step reads the target

DFly2 has three draft layers, and each is paired with one target layer. The drafter fills the whole block in one pass, so the context read happens once per block.

Table 4 lists, for each target, the paired layers, the top-k, the near window and the positions read per step. On DS-V4.1-Flash the top-k is 512 over single positions and the near window is 128, which together give 646 positions per step.

Each draft layer copies the attention weights and norms of its paired layer, including the query latent that also feeds the indexer. Its feed-forward side draws a fraction of the paired layer's routed experts at random, and those experts keep the target's weights.

The target's last-layer hidden state is not in any cache, so DFly2 fuses it with the anchor embedding instead. An intra-block correction then runs slot by slot, adding a context attention and a gated prefix attention to the inherited hidden correction.

Training uses a weighted accepted-length objective over the slots, with weights taken from the drafter's earlier-slot probabilities.

## Does one selection hold across the block

The authors measure top-k mass coverage on the target alone, comparing the shared selection with what each later row would select. The measurement uses DS-V4.1-Flash over 158,638 blocks of long-context evaluation data. Its denominator is the most that any 512 positions can hold, so the coverage cannot exceed 1.

Averaged over slots and layers, coverage is close to nine tenths. Along the block the coverage declines only gradually, and the deepest layer's last slot still keeps about four fifths.

The authors attribute the slow decline to the content of the query rather than its position. So the drift follows how far into the block a row sits, not how long the context is.

## Accepted length on three targets

On general-purpose workloads DFly2 is ahead of both baselines in all eighteen cells. Against the stronger baseline, its margin is 3.9% to 10.5% on that family, with DSpark as the stronger baseline there. Holding DFlash to a 128-token window, or 512 on Hy4 flash, moves its accepted length by at most 2%.

Table 6 gives the per-benchmark values, and on DS-V4.1-Flash at temperature 0 DFly2 averages 4.12 while DSpark averages 3.81. The numbers are mean accepted lengths, so the gap is in tokens accepted per step.

On long-context and agentic sets the margin widens to 10.0% to 31.5%. The authors attribute the gap to the window's blind spot beyond its own range and to a full cache that risks breaking past the training length. On Hy4 flash, DFlash falls to as few as 1.08 tokens per step once prompts pass 32K. DFly2 reads positions the target's indexer picks anywhere in the context, and that top-k stays a fixed size.

DFly2's agentic average stays within 4% of its general average on every target and temperature. DSpark's agentic average falls by 11% to 21% over the same comparison.

## From accepted length to serving speed

Table 8 shows the per-benchmark decoding and end-to-end speedups over the target alone.

DFly2 builds no cache at prefill, so it adds no prefill overhead.

On the CodeSpan 64K and SWE 64K sets it delivers 62% and 81% more throughput. The authors read this as the advantage at one request carrying over to high concurrency.

## What the ablations isolate

Removing the target's top-k leaves only the near window, and accepted length on DS-V4.1-Flash falls to 3.14, 2.76 and 2.95 on the general, long-context and agentic families. The full DFly2 values on the same target are 3.57, 3.62 and 3.75, so the top-k is the largest single read. Table 10 lists the other ablations, averaged over each family's sets and four sampling settings.

Replacing KV sharing with the drafter's own cache gives 3.46, 3.34 and 3.37 on DS-V4.1-Flash.

Adding two earlier rows reaches 0.86 recall at under 1K positions, and a 2K budget per row reaches 0.89. Each read stays cheap, since 2K positions add 0.19% to a decode step.

## Limitations

The speed and serving numbers were measured on NVIDIA H20 GPUs unless noted otherwise. Accepted length was measured on a single tp8 engine, and speedups come from each target's deployment at concurrency one.

The coverage test uses DS-V4.1-Flash alone, and the authors treat the drafter as a different model whose use of the selection depends on training. The high-concurrency sweep covers DS-V4.1-Flash only, at the concurrency levels shown.

## Paper info

- **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
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-25
- **Added**: 2026-11-27
- **Updated**: 2026-11-25
- **Version**: v1
- **arXiv**: 2611.34776
- **Category**: cs.CL
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.34776v1) · [PDF ↗](https://arxiv.org/pdf/2611.34776v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## 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.

## Quote from the paper

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 (2026). DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity. arXiv:2611.34776v1. https://arxiv.org/abs/2611.34776v1

**BibTeX**

```
@misc{liu2026dfly2,
  title = {{DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity}},
  author = {Hong Liu and Rui Cen and Junhan Shi and Lin Niu and Runzhi Fan and Zhaojing Zhou and Haodi Lei and Jiebin Zhang and Saiyong Yang and Junqiang Zheng and Zhenghai Xue and Guanghua Yu and Jianchen Zhu},
  year = {2026},
  eprint = {2611.34776},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34776v1}
}
```

## Other paper commentary

- [Hyperparameter Transfer with Mixture-of-Experts Layers](https://refivu.com/en/papers/ee2184f3-1fbf-4a0b-980c-c177037bb72b-hyperparameter-transfer-with-mixture-of-experts-layers.md)
- [Carrying Feature Ablations Across Sparse Autoencoder Seeds](https://refivu.com/en/papers/f27ad02b-b02a-43a8-8842-cb04a67e5428-carrying-feature-ablations-across-sparse-autoencoder-seeds.md)
- [LoopTitan: What Does Parameter Revisit Buy a Mixture-of-Experts?](https://refivu.com/en/papers/c8c91c7a-6c2c-48a1-95ea-522ec1449590-looptitan-what-does-parameter-revisit-buy-a-mixture.md)
- [Why Self-Distillation Helps and Hurts: Denoising vs. Signal Forgetting](https://refivu.com/en/papers/c70638c0-8d0a-4b89-9840-3a8ed7406fca-why-self-distillation-helps-and-hurts-denoising-vs.md)
- [Don’t Drop Dropout: Optimizing Layer Sparsity for Efficient LLM Training and Inference](https://refivu.com/en/papers/c6799446-0a64-4c27-835e-5fb01a7e9ecb-don-t-drop-dropout-optimizing-layer-sparsity-for.md)
- [EntroKV: Entropy-Guided Dynamic Budget Allocation for KV-Cache Compression](https://refivu.com/en/papers/057d5e1a-3097-4692-bf08-f2e331814f7d-entrokv-entropy-guided-dynamic-budget-allocation-for-kv.md)
- [The Look-Elsewhere Effect in Searches for New Physics: from Classical Methods to Machine Learning](https://refivu.com/en/papers/40749a33-958c-4352-8394-19db350aef80-the-look-elsewhere-effect-in-searches-for-new.md)
- [The Linguistic Knowledge Benchmark: Do Language Models Know the Foundations of Early-Grade Literacy?](https://refivu.com/en/papers/3c97fd6f-2688-4eec-b41e-f073dfacc237-the-linguistic-knowledge-benchmark-do-language-models-know.md)
- [Routeability Before Routing: Routeability Audit Protocol (RAP) and RouteabilityBench for Audited LLM Model Selection](https://refivu.com/en/papers/4c399889-41eb-4f62-be6c-f53a3bf800e1-routeability-before-routing-routeability-audit-protocol-rap.md)
- [Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video Models](https://refivu.com/en/papers/de30d3b4-655d-494a-8717-b748a20781d4-solve-vision-with-code-coding-agents-are-stronger.md)
- [A recipe for scalable attention-based ML potentials: unlocking long-range accuracy with all-to-all node attention](https://refivu.com/en/papers/9f6f183a-a0d8-4a21-8805-cbc01596c5f2-a-recipe-for-scalable-attention-based-ml-potentials.md)
- [Revealing Long-context Potential of Attention Heads via Frequency Kernels](https://refivu.com/en/papers/e1cf23f2-c8a4-451b-aab8-f181a660fb9d-revealing-long-context-potential-of-attention-heads-via.md)

## Terms in this paper

- [DFlash](https://refivu.com/en/terms/0534e73d6967-dflash)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/6a7579c7-7927-43d6-bf9f-b00862767609-dfly2-turbocharging-long-context-speculative-decoding-by)
