Bole: Efficient Tree Speculation for Hybrid-Attention Language Models

2026-08-03Distributed, Parallel, and Cluster Computing

Distributed, Parallel, and Cluster ComputingComputation and LanguageMachine Learning
AI summary

The authors address a bottleneck in running large language models that use a mix of full and linear attention, which slows down the process of generating long texts. They created a system called Bole that organizes and verifies multiple prediction paths more efficiently using clever GPU programming, speeding up the part that checks possible guesses by 3 to 7 times. Bole also compresses intermediate calculations to save a lot of memory, allowing the system to handle bigger batches. When Bole was tested on different models and GPUs, it made text generation up to nearly 5 times faster than traditional methods and improved response times in real-world applications by reducing waiting delays significantly.

large language modelsfull attentionlinear attentionautoregressive decodingtree speculative decodingGPU kernelkey-value cachestate verificationthroughputonline agent workloads
Authors
Li Wang, Yi Su, Xiabao Wu, Chiran You, Yongchao Liu, Zhan Qiu, Juelu Zhang, Jiajun Zheng, Fangxin Liu, Jie Zhang, Chen Tian, Chengying Huan
Abstract
Hybrid-attention large language models combine full attention with recurrent linear attention to reduce long-context inference costs, yet their autoregressive decoding remains memory-bound. Tree speculative decoding offers an attractive acceleration path, but existing tree-speculation systems are designed around the key--value caches of full-attention models. On hybrid models, they traverse recurrent layers branch by branch and materialize a full state for every proposal node, causing verification latency and transient memory to scale poorly with tree and batch sizes. We present Bole, a kernel--runtime co-design that enables efficient tree speculation for hybrid-attention LLMs. Bole transforms the linear-attention recurrence into a tree-structured closed form and realizes it with a resource-efficient GPU kernel, verifying all proposal nodes in parallel and accelerating linear-attention tree verification by 3.4--7.7$\times$. It losslessly encodes speculative state updates as token-level factors and reconstructs only the state selected after sampling, reducing transient state memory by 82--99$\times$ and freeing GPU capacity for KV caches. Its integration into SGLang, a widely deployed production LLM serving engine, couples efficient state management with a batch-wide verification budget calibrated to the complete hybrid forward. Across four models, two GPU platforms, and diverse datasets, Bole delivers up to $4.72\times$ the offline decode throughput of autoregressive decoding and up to $2.03\times$ that of the strongest tree-speculative baseline. Under online agent workloads, it reduces TTFT and TPOT by up to $67.6%$ and $49.9%$, respectively, over the strongest tree-speculative baseline.