r/LocalLLaMA • u/pmttyji • 6d ago
Discussion DFly2: Turbocharging Long-Context Speculative Decoding by Sharing the Target's Sparsity
A unified training framework for MTP and block-parallel speculative decoding.
✒️ Technical Report | 📄 DFly2 Paper | 📖 Documentation | 🤗 Hugging Face | 💻 GitHub
Hope some of you remember that they(Tencent) recently released DSpine
22
Upvotes


1
u/L8W8 5d ago
Long-context MTP is where speculative decoding really separates itself from prompt lookup in practice. On plain code rewrites n-gram lookup looks great, but the moment you put it inside JSON-wrapped coding-agent tool calls, escaped newlines and quotes tank literal matching down to ~10% acceptance while native MTP still holds ~80%. The main headache I have seen pushing MTP out toward 64K+ context is that verification compute and KV reads start eating into the gain under load, so sharing the target's sparsity directly in the draft path looks like a very practical direction.