Tencent Open-Sources DFly2 Speculative Decoding Framework

Executive Briefing
“Tencent has open-sourced DFly2, a speculative decoding drafter built for natively sparse...”
Key Takeaways
- 1.DFly2 keeps no KV cache of its own, allowing each draft layer to read the paired target layer's latent KV cache.
- 2.DFly2 pairs each draft layer with one sparse attention layer in the target and shares the selected top-k positional indices.
- 3.At a context length of 32K, removing the draft cache allows the same memory pool to hold 1.73x as many requests.
Tencent has open-sourced DFly2, a speculative decoding drafter built for natively sparse large language models. The system eliminates the separate draft KV cache to boost long-context serving throughput.
Architecture and KV Cache Sharing Mechanics
DFly2 keeps no KV cache of its own, allowing each draft layer to read the paired target layer's latent KV cache.
DFly2 pairs each draft layer with one sparse attention layer in the target and shares the selected top-k positional indices.
At a context length of 32K, removing the draft cache allows the same memory pool to hold 1.73x as many requests.
Performance Benchmarks and Throughput Gains
Sharing latent KV caches and sparsity indices directly targets memory bandwidth bottlenecks during long-context generation, significantly improving concurrent serving efficiency.
While throughput gains reach high percentages on extended coding benchmarks, performance improvements on standard general tasks remain comparatively modest.
Deployment Options and Current Limitations
All performance benchmarks are self-reported by Tencent without independent third-party verification across diverse production environments.
Compatibility is currently demonstrated primarily on specific natively sparse target architectures such as DeepSeek-V4.1-Flash, GLM-5.3-Flash, and Hy4 flash.







