Draft-OPD: On-Policy Distillation for Speculative Draft Models
This paper introduces Draft-OPD, an on-policy distillation framework that overcomes the limitations of supervised fine-tuning for speculative decoding by using target-assisted rollouts and replaying drafting from error positions to achieve over 5x lossless acceleration for thinking models.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to write a long, complex story with a very famous, brilliant author (the Target Model). This author is incredibly smart and writes perfect sentences, but they are also very slow. They take a long time to think about every single word before writing it down.
To speed things up, you hire a fast, energetic intern (the Draft Model) to guess the next few words. The intern writes a few words quickly, and then the famous author checks them. If the intern is right, the author says, "Great, keep going!" and moves on. If the intern is wrong, the author crosses out the mistake, writes the correct word, and starts over.
This process is called Speculative Decoding. The goal is to get the intern to guess so well that the author rarely has to stop and correct them, making the whole story get written much faster.
The Problem: The "Textbook" vs. The "Real Game"
For a long time, the way to train these interns was like giving them a textbook. You showed them stories the famous author had already written and said, "Memorize these patterns." This is called Supervised Fine-Tuning (SFT).
At first, this works great. The intern gets better and better at copying the textbook. But eventually, they hit a wall. No matter how much more they study the textbook, they stop getting faster at guessing in real-time.
Why?
Because the textbook is static. It only shows the paths the famous author took. But in the real game, the intern is the one making the first move. Sometimes the intern guesses a weird word that the author never wrote in the textbook. When the intern makes a mistake, the author corrects it. But the intern never learns from that mistake because the textbook didn't have that specific "wrong guess" scenario in it. The intern is studying a map of a city they've never actually walked through.
The Solution: "Draft-OPD" (Learning by Doing)
The authors of this paper propose a new training method called Draft-OPD. Instead of just reading the textbook, they let the intern practice in a simulated game where the famous author is right there to coach them in real-time.
Here is how it works, using a simple analogy:
The Safe Practice Run (Target-Assisted Rollout):
Imagine the intern tries to write a paragraph. If they get stuck or go off-track, the famous author steps in immediately to fix it and keep the story moving. This ensures the practice session doesn't turn into a mess of gibberish (which happens if the intern tries to write a whole story alone).The "Error Replay" (The Secret Sauce):
This is the most important part. When the intern makes a guess and the author has to correct it, the system doesn't just move on. It hits "Rewind."- It goes back to the exact moment the intern made the wrong guess.
- It asks the intern to try that specific guess again.
- It asks the author to explain why that guess was wrong.
This is like a coach saying, "Stop! You tried to kick the ball left, but the goalie was there. Let's rewind and try again so you learn to kick right." This teaches the intern specifically about the mistakes they make, not just the perfect paths the author took.
Smart Scoring (Acceptance-Aware Distillation):
The system treats the intern's guesses differently based on the outcome:- If the intern was right: The system says, "Good job, keep doing exactly what you did." (Reinforce the good habits).
- If the intern was wrong: The system says, "You were confident in this wrong answer, but it was wrong. Let's focus heavily on fixing this specific type of error." (Punish the confident mistakes).
The Results
The paper tested this new method on some very advanced AI models (called "Thinking Models" because they are good at math and coding).
- Old Method (Textbook Learning): The intern could speed up the writing process by about 4.5 times.
- New Method (Draft-OPD): The intern sped things up by over 5 times.
In simple terms, the new training method made the intern so much better at guessing that the famous author had to stop and correct them far less often. This means the story gets written much faster, without losing any quality.
Summary
The paper argues that to make AI faster, we can't just teach them to copy perfect examples. We have to let them practice, let them make mistakes, and then specifically teach them how to fix those mistakes. By replaying the moments where the AI guessed wrong, we can train a "draft" AI that is much better at predicting the future, making the whole system significantly faster.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.