r/machinelearningnews • u/ai-lover • 5d ago
Research Tencent open-sources DFly2, a speculative decoder that reuses the target model's sparse KV cache (+81% throughput at 64K on DeepSeek-V4.1-Flash)
Tencent released DFly2, a block-parallel speculative decoding drafter for natively sparse LLMs (DeepSeek-V4.1-Flash, GLM-5.3-Flash, Hy4 flash). Instead of keeping its own KV cache, each draft layer reads the KV cache of a paired target sparse layer and attends only to the positions that layer's indexer already selected.
What it does
- Pairs each draft layer with a target sparse attention layer and shares its latent KV plus top-k index selection
- Adds no draft KV memory and does not take part in prefill
- Each draft token reads at most about 2K keys, so drafting cost is roughly flat with context length
- Block size 5 in the paper; verification by the target keeps output lossless
Key numbers (self-reported, baselines retrained by Tencent on the same recipe)
- Avg accepted length, DeepSeek-V4.1-Flash, temp 0: DFly2 4.12, DSpark 3.81, DFlash 3.65
- Acceptance margin over the stronger baseline: 3.9% to 10.5% general, 10.0% to 31.5% long-context/agentic
- Throughput vs DSpark at matched per-user speed on DeepSeek-V4.1-Flash: +28% short text, +62% CodeSpan 64K, +81% SWE 64K (NVIDIA H20, vLLM)
- End-to-end speedup at concurrency 1: 2.97x (DeepSeek-V4.1-Flash), 2.36x (GLM-5.3-Flash), 3.19x (Hy4 flash)
Full analysis: https://www.marktechpost.com/2026/11/26/tencent-dfly2-speculative-decoding-sparse-models/
Paper: arxiv.org/abs/2611.34776
5
u/Relevant-Magic-Card 5d ago
bro what?
4
u/mr_AnybodyRealistic3 5d ago
Piggybacking on the target's own sparse index is such an obvious move in hindsight, zero extra KV cache is wild.
1
u/tomByrer 4d ago
Anyone get this working on Qwen Flash Next or Inkling 2 Mini?
1
u/Lower-Ad-6293 3d ago
Pretty nice sure but that line "baselines retrained by Tencent on the same recipe" bugs me. I wanna see independent runs against native MTP or EAGLE at least not just against DSpark and DFlash retrained by the authors