Tencent Open-Sources DFly2 Speculative Decoder with 81% Throughput Gain

By ▲ Marktechpost AI (@Marktechpost)Original title: ▲ Tencent just open-sourced DFly2, a speculative decoder that drafts tokens for sparse-attention LLM...
78AI Score

Tencent has open-sourced DFly2, a speculative decoder for sparse-attention LLMs that reuses each target layer's KV cache and already-selected top-k indexer positions, so the drafter keeps no KV memory, skips prefill, and reads at most ~2K keys per draft token at any context length. On DeepSeek-V4.1-Flash it reaches an average accepted length of 4.12 versus 3.81 for a same-recipe DSpark retrain, with 62% and 81% serving throughput gains on two 64K sets. The trade-off: it only works on targets with a native sparse indexer, and gains on general tasks are just 3.9%.

Full Report

▲ Marktechpost AI · 2026-11-27 03

▲ Tencent just open-sourced DFly2, a speculative decoder that drafts tokens for sparse-attention LLMs without keeping its own KV cache.

The key idea is sharing the target's sparsity. Each draft layer reads its paired target layer's KV cache and the same top-k positions that layer's indexer already picked. So the drafter adds no KV memory, skips prefill, and each draft token reads at most about 2K keys at any context length.

The numbers vs a same-recipe DSpark retrain: average accepted length of 4.12 vs 3.81 on DeepSeek-V4.1-Flash (temp 0), and +62% and +81% serving throughput on 2 64K sets at matched per-user speed. On long-context and agentic sets, the acceptance margin is 10.0% to 31.5%. It is a trade-off though: on Hy4 flash general tasks the gain over DSpark is only 3.9%, and it only works on targets with a native sparse indexer.

A 0.85B DFly2 drafter ships inside Tencent's Hy4 flash and runs in vLLM and SGLang. Training code is in AngelSpec v0.2.0......

Full analysis:

推文配图