← Latest papers
🤖 machine learning

Bastion: Budget-Aware Speculative Decoding with Tree-structured Block Diffusion Drafting

BASTION is a training-free, budget-aware speculative decoding framework that dynamically constructs query-dependent tree structures via adaptive best-first expansion to balance draft quality with hardware constraints, achieving up to a 6.61x speedup over standard autoregressive decoding while outperforming existing block-diffusion baselines.

Original authors: Soowon Oh, Nam Cao, Yujin Kim, Hojung Jung, Huzama Ahmad, Sangmin Bae, Se-Young Yun

Published 2026-05-29
📖 4 min read☕ Coffee break read

Original authors: Soowon Oh, Nam Cao, Yujin Kim, Hojung Jung, Huzama Ahmad, Sangmin Bae, Se-Young Yun

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 wise, but incredibly slow, editor (the Target Model). Every time you write a single word, you have to wait for the editor to read it, think about it, and give you the green light before you can write the next one. This is how current AI chatbots work: they write one word at a time, waiting for a "check" after every single step. It's accurate, but it's painfully slow.

To speed this up, researchers use a Drafting Model (a faster, less wise assistant) to guess the next few words before the editor checks them. If the editor agrees with the guess, you get to write multiple words at once, skipping the waiting time.

However, there's a catch with the newest, fastest drafters (called Block Diffusion). Instead of guessing a sentence one word at a time, they shout out a whole block of words all at once. The problem is, because they shout them all together, they aren't always sure how the words fit together in a logical sequence. It's like a chef throwing a bunch of ingredients onto a counter at once; individually, they look good, but if you just grab the top one, you might end up with a weird, nonsensical dish.

BASTION is a new system designed to fix this mess and make the whole process lightning fast. Here is how it works, using simple analogies:

1. The "Tree of Possibilities" (Instead of a Single Path)

Old methods would take the drafter's shout-out, pick the single "best" word, then the next "best" word, and hope for the best. If that path turned out to be wrong, the editor had to reject the whole thing, and you wasted time.

BASTION is different. Imagine the drafter doesn't just give you one path; it gives you a family tree of possibilities.

  • At the first step, it says, "Maybe the next word is 'cat' (80% chance) or 'dog' (20% chance)."
  • Instead of just picking 'cat', BASTION builds a tiny tree: one branch for 'cat', one for 'dog'.
  • Then, for the next word, it branches out again from both 'cat' and 'dog'.
  • Suddenly, you have a small forest of potential sentences growing from the same starting point.

2. The "Smart Gardener" (Budget-Aware Controller)

Here is the tricky part: You can't grow an infinite forest. The editor (Target Model) has a limit on how many branches it can check at once. If you grow a tree that is too wide or too deep, the time it takes to check the tree becomes longer than just writing the words one by one.

This is where BASTION's "Smart Gardener" comes in.

  • The Budget: The Gardener knows exactly how much time the editor has (the "budget").
  • The Strategy: Instead of growing the tree to a fixed size (like "always 10 branches"), the Gardener looks at the confidence of each branch.
    • If a branch looks very promising (high confidence), the Gardener grows it deeper.
    • If a branch looks weak, it stops growing there.
  • The Stop Sign: The Gardener constantly asks, "Is adding one more branch going to give us more speed, or is it just going to waste time checking dead ends?" As soon as the cost of checking a new branch outweighs the benefit, the Gardener stops growing and sends the tree to the editor.

3. The "Speedometer" (Hardware Awareness)

Different computers (GPUs) are like different cars. A sports car (a powerful GPU) can check a huge tree very quickly. A compact car (a weaker GPU) might struggle with the same tree.

BASTION has a built-in Speedometer that knows exactly how fast your specific computer is. It doesn't just guess; it measures how long it takes to verify a tree of a certain size on your machine. It uses this real-time data to decide exactly how big the tree should be for your specific setup, ensuring you get the maximum speed without overloading your computer.

The Result

By combining these ideas, BASTION achieves what the paper calls a 6.61x speedup.

  • Standard AI: Writes 1 word, waits, writes 1 word, waits. (Speed: 1x)
  • Old Fast Methods: Guesses a few words, but often gets stuck on the wrong path. (Speed: ~2-3x)
  • BASTION: Grows a smart, custom-sized tree of guesses, checks the most promising paths, and stops exactly when it's most efficient. (Speed: ~6.6x)

In short, BASTION is like a smart project manager for AI writing. Instead of blindly guessing or building a rigid structure, it dynamically builds a flexible "tree of options" that is perfectly sized for the computer's speed, ensuring the AI writes as fast as possible without making mistakes.

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 →