---
title: "DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity"
source: "arXiv AI/CL/LG（论文）"
source_tier: "t2"
url: "https://arxiv.org/abs/2611.34776v1"
permalink: "https://feed.astralor.com/items/itm_c73b0da3ab05e071dec5f1f1"
published: "2026-11-25T17:37:49.000Z"
score: 62
channel: "finance"
tags: ["AI Agent","推理效率","DFly2","Turbocharging Long-Context Speculative","Decoding","Sharing","Target","Sparsity"]
---

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

## 速览

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 run…

## 关键点

- 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 run…
- 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.

## 全文

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.

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_c73b0da3ab05e071dec5f1f1
