惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Martin Fowler
Martin Fowler
I
InfoQ
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
B
Blog
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
V
Visual Studio Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
DeepSeek's DSpark Brings Speculative Decoding Back Into t...
LiVanGy · 2026-06-28 · via DEV Community

LiVanGy

Introduction

Speculative decoding is one of those techniques that has been "almost ready for production" for the better part of three years. A small draft model proposes tokens; a larger target model verifies them in a single forward pass. In theory, you get 2–4× throughput. In practice, the draft model has to be cheap, fast, and good enough at mimicking the target's distribution, which is a much harder combination than it sounds.

Yesterday, a new paper from DeepSeek quietly climbed to the top of Hacker News (714+ points, 290+ comments at the time of writing). It's called DSpark, and it reframes speculative decoding in a way that looks like it could finally make the technique drop-in rather than bolt-on.

The paper is here: github.com/deepseek-ai/DeepSpec/blob/main/DSpark_paper.pdf

The Core Idea

Instead of training a separate, smaller draft model from scratch (the classic approach), DSpark grafts the speculative head directly onto the target model. The intuition is simple: if the target model already knows which tokens are likely to follow, why not reuse its own intermediate representations rather than maintaining a parallel network?

From the discussion on HN, this approach has a concrete architectural benefit — it reduces layer duplication that you'd otherwise have to maintain with a standalone draft model. In the DeepSeek experiments, the technique was applied on top of Step and Qwen 3.6, which are themselves MTP-capable.

How It Fits With MTP

One of the more interesting practical points raised by HN commenters: DSpark is complementary to Multi-Token Prediction (MTP), not a replacement for it. MTP — where the model predicts several future tokens at every step using auxiliary heads — has already been shown to give 50–100% speedups on hardware like the NVIDIA DGX Spark. DSpark adds another layer on top: even with MTP, the validation step is still a single forward pass through the main model, and the speculative tokens that get accepted come "for free."

A useful mental model from the thread:

All tokens predicted speculatively are still validated against the main model (which is faster than predicting them from scratch) and only accepted if they match exactly.

That last clause is what makes speculative decoding lossless. You are guaranteed the same output distribution as the target model. This is the property that has always kept speculative decoding in production where correctness matters — coding assistants, structured-output agents, anything where a single token drift would corrupt downstream logic.

Why This Matters Now

Three reasons this paper is worth your attention even if you've read every speculative decoding paper since Leviathan et al. (2022):

  1. The hardware is finally there. Speculative decoding's draft-model overhead is mostly memory-bandwidth-bound. On H100s and the new DGX Spark, the cost of the draft forward pass has dropped to the point where grafted heads make economic sense.
  2. The economics of inference have flipped. A year ago the question was "can we fit a bigger model?" Now it's "can we serve the same model to twice as many users without doubling our GPU bill?" Every 2× win in speculative decoding is a direct margin improvement for anyone running an API.
  3. It's open. Like most of DeepSeek's recent work, the paper ships with code in the deepseek-ai/DeepSpec repository. No "available upon request" footnote.

What Developers Should Actually Do With This

If you're serving an LLM today:

  • Check your current acceptance rate. If you're already running speculative decoding with a small draft model and your acceptance rate is below 50%, grafted-head approaches like DSpark are unlikely to beat it on raw latency — but they will almost certainly win on memory footprint.
  • Watch the MTP trajectory. DeepSeek-V3 and several Qwen variants ship MTP heads out of the box. If you're using one of these, DSpark is essentially "free money" — the grafted speculative head reuses the MTP outputs you already compute.
  • Don't roll your own yet. The paper is three days old and the open-source implementation is still landing. Give it a week, watch the GitHub issues, and benchmark against your actual traffic mix before you change anything in production.

Caveats

The technique is not free in training. Grafted speculative heads need to be calibrated against the target model's output distribution, which means a non-trivial fine-tuning pass. The paper claims the cost is amortized over inference savings, but the numbers will depend heavily on your request volume and average sequence length.

It's also, by DeepSeek's own admission, only validated on a small set of architectures (Step, Qwen 3.6, and DeepSeek's own models). If you're serving Llama 4, Claude, or GPT-class closed-weight models, you can't use this directly — but you can expect a wave of similar grafted-head implementations over the next quarter.

The Bigger Picture

The interesting meta-trend: inference-time optimization is becoming a first-class deliverable for frontier labs, not an afterthought. DeepSeek shipped sparse MoE, MTP, and now DSpark in roughly 18 months. Each of these is a paper that, five years ago, would have been a quiet ACL workshop contribution; today they are front-page HN.

For the open-source ecosystem, that's unambiguously good news. For closed-API providers, it raises the bar on what "good enough" inference looks like — and the bar is moving fast.


Sources:

Have you experimented with speculative decoding in your own stack? Curious to hear what acceptance rates people are seeing in production — drop a comment below.