Tencent open-sources DFly2: zero additional KV cache, long-context inference 81% faster, but netizens say the draft model itself is not lightweight
The new speculative decoding approach DFly2 greatly improves throughput on long-context and agentic tasks by sharing the target model's sparse KV cache and top-k selection. But don't forget: the draft model's own parameters also take up memory.
Tencent AI has open-sourced DFly2, a speculative decoder designed specifically for sparse models. In tests with a 64K context, DeepSeek-V4.1-Flash serving throughput improved by up to 81%. On agentic tasks with Hy4 flash, it delivered a 4.2x speedup, was about 30% faster than DSpark trained with the same recipe, and accepted 10.4% more draft tokens.
The basic idea of speculative decoding is to let a small model guess several tokens first, then have the large model verify them in a batch; if the guesses are correct, serial decoding time is saved. But traditional draft models need to maintain their own KV cache, either covering the entire prompt or using a sliding window, so both memory and prefill costs are not low. DFly2 takes a different path: each draft layer directly reads the KV cache of the corresponding layer in the target model and reuses the top-k positions selected by its indexer. There is no independent scoring process, and no new cache is created. The effect is that draft cost is independent of context length, and each draft token attends to at most about 2K keys.
The paper abstract mentions a measurement: a choice made one step ahead still covers nearly 90% of the positions actually selected by subsequent tokens. In other words, the target model has already chosen positions for each query, and the draft model can just hitch a ride. This explains why, on long-context and agentic workloads, DFly2's advantage over DFlash and DSpark expands from 3.9%–10.5% on general tasks to 10.0%–31.5%.

But zero additional KV cache does not mean zero cost. A netizen did the math in a reply: the DFly2 draft model for DeepSeek-V4.1-Flash has 14.4B parameters, about 8.85GB at fp8 precision, split into 4 shards; the draft for Hy4 flash is 6.24GB. These weights need to be deployed together with the main model, so memory budget must be reserved. The so-called 'zero additional KV' refers to the cache, not the model itself.
Another practical issue is toolchain support. In the comments, someone asked when vLLM support would launch, and someone else asked whether it can be used with Qwen 3.8. The configurations officially released so far mainly target Hy4, Hy4 flash, DeepSeek-V4.1-Flash, and GLM-5.3-Flash; there are DFly and MTP examples for the Qwen3 series, but DFly2 has not been seen yet.
Code, weights, and paper are all public:
- Code: https://github.com/Tencent/AngelSpec
- Weights: https://huggingface.co/AngelSlim
- Paper: https://arxiv.org/abs/2611.34776
If you run sparse models in long-context scenarios, DFly2's approach is worth trying. But before deployment, it's best to factor in the parameter overhead of the draft model as well, and not just look at the words 'zero additional KV'.
发布时间: 2026-11-27 08:28