Tencent Open-Sources DFly2: Draft Models No Longer Maintain Independent KV Cache, Up to 81% Throughput Improvement at 64K Context Length
Built for sparse-attention LLMs, DFly2 lets every draft layer reuse the target model's KV cache and top-k indexer selections, with zero additional VRAM consumption for dedicated draft KV storage. Public benchmarks show the serving throughput at 64K context length can rise by up to 81%.
Tencent has open-sourced DFly2, a speculative decoding drafter tailored for sparse-attention large language models.
To set the context first: The core logic of speculative decoding is to let a small draft model generate several consecutive tokens in advance, then have the larger target model verify all these tokens in parallel. The design cuts down multiple serial decoding steps if the draft predictions are correct, and rolls back to re-generate when mismatches occur. For general users, this can be simply understood as: writing with large LLMs word by word is too slow, so you let a junior assistant draft the content first, then a senior expert reviews and corrects all drafts in batches.
The bottleneck emerges when it comes to long context scenarios. Conventional draft models usually need to maintain their own independent KV cache, which consumes more VRAM and bandwidth as the context length grows. While speculative decoding reduces total decoding steps, the extra cache overhead from the standalone draft model may offset most of the cost savings.
As reported by Asif Razzaq from MarkTechPost, DFly2 addresses this issue by making each draft layer reuse the target model's existing KV cache and top-k indexer picks, without allocating any extra memory for dedicated draft KV storage. The top-k indexer picks refer to the selected set of critical tokens identified by sparse attention at each layer. The draft layers directly leverage the pre-calculated sparse structure from the target model, so a full set of independent draft cache is completely eliminated.
The performance data released shows a maximum 81% throughput increase for 64K-length serving, and it is critical to clarify the applicable boundary here. DFly2 is purpose-built for sparse-attention LLMs, and the performance gain only applies to 64K long context serving scenarios. The 81% peak improvement does not represent the average uplift across all workloads, as actual results are affected by multiple factors including model architecture, underlying hardware, batch size and request distribution patterns.
This announcement looks minor at first glance, but the problem it targets is far-reaching. In long context inference optimization, cache management often has a larger impact on total serving cost than theoretical FLOPs figures. DFly2 ties the drafter directly to the target model's sparse attention selection logic, removing the extra draft KV overhead — this technical path is far more aligned with the actual bottlenecks of long context serving than simply swapping for an even smaller draft model.
Practical implications for developers: If your service runs sparse-attention LLMs and long context is your primary usage scenario, DFly2 is worth reviewing its implementation and reproducibility conditions. If your model does not adopt sparse attention, or your typical use case features short context, the 81% performance uplift cannot be directly applied to your deployment.
Source: Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache, by Asif Razzaq.
发布时间: 2026-11-27 11:31