Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache

Impact 8 MarkTechPost

Summary

  • Tencent has open-sourced DFly2, a block-parallel speculative decoding drafter designed for natively sparse LLMs like DeepSeek-V4.1-Flash, GLM-5.3-Flash, and Tencent's Hy4 flash.
  • DFly2 maintains zero independent KV cache by sharing the target model's latent KV cache and sparse indexer selections, reducing memory overhead for long-context workloads.
  • The 0.85B-parameter, 5-layer drafter skips prefill entirely and achieves higher draft acceptance and end-to-end speedups compared to DFlash and DSpark baselines.
  • Benchmarks show up to 81% higher throughput on DeepSeek-V4.1-Flash at 64K context with matched per-user speed, and 10% to 31.5% gains on long-context and agentic tasks.
  • DFly2 ships inside the Tencent Hy4-flash repository and supports vLLM and SGLang inference frameworks, with training available via AngelSpec.

Why it matters

Eliminating the dedicated drafter KV cache resolves memory contention in long-context and agentic LLM serving, allowing clusters to handle significantly higher request concurrency without sacrificing generation quality.

Who should care