← Latest papers
🤖 machine learning

Approximate Speculative Decoding

This paper introduces Approximate Speculative Decoding (ASD), a training-free method that accelerates autoregressive generation by selectively accepting draft token mismatches based on a regret budget to reuse valid suffixes, thereby improving throughput without requiring new draft models or fine-tuning.

Original authors: Yuannuo Feng, Zegang Peng, Yuxin Xie, Yubing Ye, Yizhe Chen, Wenshuai Yao, Wenyong Zhou, Wang Kang

Published 2026-08-05
📖 6 min read🧠 Deep dive

Original authors: Yuannuo Feng, Zegang Peng, Yuxin Xie, Yubing Ye, Yizhe Chen, Wenshuai Yao, Wenyong Zhou, Wang Kang

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 story with a very smart, but incredibly slow, friend. Every time you want to add a new word to your story, you have to wait for your friend to think hard, check their entire library of knowledge, and tell you exactly which word comes next. This is how modern AI language models work: they generate text one word at a time, and the "thinking" part takes up most of the time, making the process feel like watching paint dry. To speed this up, scientists invented a trick called "speculative decoding." Think of it like having a fast, junior assistant who guesses the next few words for you. You then ask your slow, expert friend to quickly check if those guesses are right. If the expert agrees, you get to write several words at once instead of just one, saving a massive amount of time.

However, there's a catch. The expert friend is a stickler for rules. If the assistant guesses even one word that isn't the absolute perfect choice the expert would have picked, the expert stops the whole process immediately. They throw away all the other words the assistant guessed for that turn, even if most of them were actually perfect. It's like a teacher grading a test who stops reading the moment they see one wrong answer, tossing the rest of the paper in the trash. This "all-or-nothing" rule keeps the story perfect, but it wastes a lot of the assistant's hard work and slows things down.

This paper introduces a new method called Approximate Speculative Decoding (ASD), which acts like a smarter, more flexible teacher. Instead of throwing away the whole test just because of one small mistake, ASD asks: "Is this mistake tiny? And did the assistant get the next few words right anyway?" If the answer is yes, ASD accepts the small mistake, keeps the good words that followed, and moves on. It's like a teacher who says, "You got the spelling of 'because' wrong, but you spelled the next ten words perfectly, so let's just fix the one word and keep going." The researchers found that by being slightly more lenient with tiny errors, they could make the AI write significantly faster without ruining the quality of the story.

The Story of the "Budgeted" Assistant

The core idea behind ASD is to stop treating every mistake as a disaster. In the old way, if your assistant guessed a word that wasn't the top choice, the system would stop immediately. But the authors realized that sometimes, the assistant's "wrong" guess is actually very close to the right one, and the words that follow it are still perfect.

To fix this, the team created a system with a budget. Imagine you have a jar of "mistake tokens." You are allowed to make a few small mistakes, but you have to pay for them from your jar.

  1. The Local Gate: Before accepting a mistake, the system checks how "bad" it is. If the assistant's guess is only slightly less likely than the perfect word, it's a cheap mistake. If it's a huge error, it costs too many tokens, and the system says "no."
  2. The Block Cap: You can't make too many mistakes in a single batch of guesses. This prevents the assistant from getting too inaccurate all at once.
  3. The Request Budget: This is the total jar of tokens for the whole conversation. Once you run out of tokens, you have to go back to being perfect (strictly following the old rules) for the rest of the story.

The magic happens when the system accepts a small mistake. Because the assistant's next few guesses were actually perfect (they matched what the expert would have chosen), the system can "reuse" them. It doesn't need to ask the slow expert to check them again. It just accepts them and moves forward. This turns a "stop and throw away" moment into a "fix and keep going" moment.

What They Found

The researchers tested this idea using some very popular AI models (like Qwen3 and DeepSeek) on a variety of tasks, from solving math problems to writing code. They didn't need to retrain the models or teach the assistant anything new; they just changed how the "teacher" (the verifier) graded the work.

The results were quite promising. By using this budgeted approach, the system became faster without needing any extra training.

  • On a set of seven different tasks, the system got 7.78% faster on average compared to the strict, old-fashioned method.
  • In the best cases, like on the MATH-500 dataset, it sped up by 11.73%.
  • When they tested it on a massive model called DeepSeek-V4-Flash, they saw acceptance rates (how many guesses the system kept) go up by roughly 10% to 16%.

The paper is careful to note that this isn't a magic wand that makes everything perfect. The authors explicitly state that this method changes the path the AI takes to get to the answer. Sometimes, the story might be slightly different, or the "hash" (a digital fingerprint of the text) might change, even if the final answer is still correct. For example, on some coding tests, the accuracy dipped slightly (by less than 1.5 percentage points), but on many other tasks, the accuracy stayed exactly the same or even improved slightly.

Why This Matters

The beauty of this paper is that it doesn't require building a new, faster AI or training a new assistant. It just changes the rules of the game for the one you already have. It's like realizing that a strict traffic cop is slowing down the whole city because they stop the car for every single minor infraction, when a more flexible approach would keep traffic flowing smoothly with only tiny, manageable risks.

The authors suggest that this method is a great way to squeeze more speed out of current AI systems. They emphasize that while the speed gains are real and measurable (up to 15.26% in some cases), users need to be aware that they are trading a tiny bit of strict perfection for a lot of speed. It's a calculated trade-off: you get your story written much faster, and for most people, the tiny differences in the wording won't matter at all. The paper concludes that this "budgeted" approach is a practical, training-free way to make AI generation faster, provided you check the results to make sure the quality is still good enough for your needs.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →