TL;DR
BASTION is a training-free framework that supercharges Large Language Model (LLM) inference by combining parallel "block diffusion" drafting with dynamic, hardware-aware tree construction. By intelligently growing a candidate tree until the cost of verification outweighs the likely gain in accepted tokens, BASTION achieves up to a 6.61× speedup over standard decoding, outperforming existing state-of-the-art baselines by nearly 40%.
What Problem Does This Paper Address?
The primary bottleneck in serving LLMs is their autoregressive nature: they must generate tokens one by one, with each step requiring a full pass of a massive model. Speculative decoding mitigates this by using a lightweight "drafter" to guess several future tokens, which the "target" model then verifies in parallel.
Recently, block diffusion drafters have emerged as a fast alternative to traditional drafters. Instead of guessing tokens sequentially, they predict an entire block of future tokens simultaneously. However, these predictions are "marginal"—the drafter guesses what might be at position $+5$ without being fully certain of what it chose for position $+4$.
If you simply pick the single most likely (greedy) path from these marginals, the target model often rejects it because the sequence lacks coherence. While "tree-based" speculation (verifying multiple paths at once) can solve this, existing methods use static tree shapes that don't adapt to the specific prompt or the specific hardware (e.g., an A100 vs. a consumer GPU). BASTION addresses this by making the tree construction dynamic and "budget-aware."
Methods
BASTION introduces a system-aware approach to tree-based speculative decoding through three main components:
- Tree-structured Block Diffusion Drafting: Instead of committing to one greedy sequence, BASTION uses the drafter’s output distributions to build a prefix tree. Because block diffusion drafting cost is invariant to the tree's shape, BASTION can explore many "plausible" trajectories for the same computational price as one.
- Acceptance Surrogate: Since we can't know if the target model will accept a token until we run it, BASTION uses a mathematical proxy. It calculates a "path score" based on the drafter's confidence. The authors prove that the sum of these scores across the tree is a highly accurate surrogate for the expected number of accepted tokens.
- Hardware-Aware Online Budget Controller: This is the "brain" of BASTION. It uses a roofline model (calibrated to the specific GPU's FLOPs and memory bandwidth) to estimate how much latency each additional node in the tree will add.
- Adaptive Best-First Expansion: BASTION grows the tree node-by-node, always adding the highest-probability candidate next. It stops exactly when the estimated speedup (gain in tokens vs. cost in time) peaks, ensuring the tree is never too small to underutilize the GPU or too large to become a bottleneck.
Datasets
The authors evaluated BASTION across a wide array of standard benchmarks to ensure robustness:
- Mathematical Reasoning: GSM8K, MATH500, and AIME25.
- Code Generation: HumanEval, MBPP, and LiveCodeBench.
- General Instruction/Chat: Alpaca and MT-Bench.
- Long-Context Understanding: Seven subsets of the LongBench benchmark (including Qasper and GovReport).
The models tested included Qwen3 (4B/8B) and Llama-3.1-8B-Instruct, paired with compatible DFlash block-diffusion drafters.
Key Insights and Ideas
- Topology Decoupling: A crucial observation is that for block diffusion, drafting a deep, narrow tree costs exactly the same as a short, wide one. This freedom allows BASTION to focus purely on the quality of the paths.
- The "Sweet Spot" of Latency: Verification cost isn't linear; it's convex. Eventually, the overhead of managing a massive tree and the diminishing returns of low-probability guesses will slow down the system. BASTION's ability to find this peak per-query is what sets it apart from static methods.
- Training-Free Deployment: BASTION doesn't require retraining the drafter or the target model. It is a "plug-and-play" algorithmic improvement for existing block-diffusion setups.
- Hardware Sensitivity: A tree size that works perfectly on an H100 might be inefficient on an RTX 6000. BASTION’s online calibration makes it hardware-agnostic.
Key Results
- Massive Speedups: BASTION achieved an average end-to-end speedup of 6.61× on Qwen3-8B.
- Outperforming Baselines: It outperformed EAGLE-3 (a top-tier autoregressive drafter) by 2.45× and DFlash (the previous block-diffusion leader) by 1.39×.
- Efficiency: On math and code benchmarks, which often have more "certain" paths, BASTION saw even higher gains, reaching over 8× speedup in some MATH500 scenarios.
- Oracle Tracking: In "budget-sweep" experiments, BASTION's adaptive logic consistently tracked the performance of an "Oracle" (the theoretical best fixed tree size found by testing every possibility in hindsight).
Limitations and Future Work
- Batch Size: The current evaluation focuses on a batch size of 1. In high-throughput serving environments with large batches, the verification-cost profile changes significantly, which the authors note warrants further study.
- Runtime Drift: The system assumes a relatively stable hardware environment. If a GPU's performance fluctuates wildly due to other workloads, the offline calibration might need more frequent "online" updates.
- Broader Application: While tested on block diffusion, the authors suggest the "surrogate-driven tree construction" framework could be extended to other multi-token prediction paradigms.
Summary updated