TL;DR
Bole is a kernel-runtime co-design that enables efficient tree speculative decoding for hybrid-attention large language models (LLMs). By mathematically transforming sequential linear-attention recurrences into a parallel tree-structured closed form and factorizing state storage, Bole achieves up to a 4.72× throughput speedup while slashing transient memory overhead by up to 99×.
What Problem Does This Paper Address?
To handle long-context windows efficiently, modern hybrid-attention LLMs (such as Qwen3.5 and Kimi Linear) interleave standard full-attention layers with recurrent linear-attention layers. While full attention retains a key-value (KV) pair for every token, linear attention compresses history into a fixed-size state matrix, significantly lowering serving costs.
However, autoregressive decoding remains heavily memory-bound. Tree speculative decoding is a popular acceleration technique where a lightweight "drafter" model proposes a tree of candidate tokens, and the larger "target" model verifies them all in a single forward pass.
While tree verification is straightforward in full-attention layers using causal attention masking, it breaks down in recurrent linear-attention layers. Because linear attention relies on sequential parent-to-child state propagation, existing engines are forced to traverse candidate trees branch-by-branch. Furthermore, they must save full-state snapshots for every single node to handle diverging paths. This causes a massive "state explosion" in memory and severe latency bottlenecks, as illustrated below:
Methods
The authors introduce Bole, a system integrated into the production engine SGLang that bridges this kernel-runtime gap through three core mechanisms:
- Parallel Tree Solver: The authors derive an exact mathematical closed-form factorization of the gated-delta linear-attention recurrence over an arbitrary tree topology. They implement this via a value-tiled GPU kernel that leverages a finite-Neumann polynomial expansion to solve and verify all proposal nodes in parallel on-chip, eliminating the sequential dependency chain.
- Factorized State Lifecycle: Instead of copying massive full-state snapshots for every speculative node, Bole losslessly encodes candidate updates using compact token-scale factors ($P, K, U$). After token sampling determines the accepted path, a single batched matrix multiplication reconstructs the exact final state.
- Hardware-Aware Verification Budgeting: Speculative tokens are only "free" up to the point where the GPU transitions from being memory-bandwidth-bound to compute-bound. Bole profiles the target model's complete forward pass offline to dynamically allocate a batch-wide token verification budget optimized for the specific hardware (e.g., A100 vs. GB10).
Datasets
The authors evaluated Bole across diverse offline and online workloads:
- MBPP: Coding benchmark.
- ShareGPT: Multi-turn dialogue dataset.
- GSM8K: Mathematical reasoning.
- CNN/DailyMail: Text summarization.
- OpenHands (NVIDIA Open-SWE-Traces): A real-world, multi-turn coding agent workload used to simulate realistic online serving conditions.
Key Insights and Ideas
- Recurrence Can Be Parallelized: The most significant insight is that tree-structured sequential recurrences can be refactored into an ancestor-masked linear system. This allows developers to swap out slow, loop-based execution for highly parallel matrix operations on tensor cores.
- Delta Changes Over Full Snapshots: Storing token-level delta factors instead of full-state matrices changes the memory complexity of speculative state tracking from scaling with the state dimension to scaling with token factors, preventing the memory footprint from overwhelming the GPU's HBM.
- The Speculation Sweet-Spot is Hardware-Specific: More speculative tokens do not always mean better performance. The threshold where extra tokens begin hurting latency is highly dependent on the architecture's compute-to-memory ratio (shifting from ~128 tokens on an NVIDIA A100 to ~256 tokens on a GB10).
Key Results
Bole was benchmarked against standard autoregressive decoding (SGLang-AR), native tree speculation (SGLang-Tree), and an optimized port of AdaServe.
- Throughput Gains: Bole achieved up to 4.72× the offline decode throughput of standard autoregressive decoding and up to 2.03× over the strongest tree-speculative baseline.
- Memory Reduction: It reduced transient state memory overhead by 82–99× compared to traditional state snapshots, completely eliminating Out-Of-Memory (OOM) errors at higher batch sizes (e.g., running Qwen3.5-27B at batch size 8).
- Online Agent Performance: On the OpenHands agent workload, Bole reduced Time-to-First-Token (TTFT) by up to 67.6% and Time-per-Output-Token (TPOT) by up to 49.9% against the best baseline, primarily because its low memory footprint allowed the engine to maintain a much higher prefix-cache hit rate.
Limitations and Future Work
- Recurrence Architecture Specificity: Bole’s mathematical derivation specifically targets gated delta recurrences (like Gated DeltaNet). Adapting Bole to alternative linear-attention or State Space Model (SSM) architectures (like Mamba-2) would require re-deriving the corresponding closed-form factorizations.
- Profiling Dependency: The hardware-aware budget allocation relies on static offline profiling. If the serving workload or system configuration changes significantly, the system requires re-calibration to find the optimal compute-bound threshold.
Summary updated