SpecBranch: Speculative Decoding via Hybrid Drafting and Rollback-Aware Branch Parallelism
Yuhao Shen, Junyi Shen, Quan Kong, Tianyu Liu, Yao Lu, Cong Wang
摘要
Speculative decoding (SD) has emerged as a promising technique to accelerate LLM inference by employing a small draft model to propose draft tokens in advance, and validating them in parallel with the large target model. However, the existing SD methods still remain constrained by their serialized execution, which causes the mutual waiting bubbles between the draft and target models. To address this challenge, we draw inspiration from branch prediction in modern processors and propose a novel framework SpecBranch to unlock branch parallelism in SD. Specifically, we first take an in-depth analysis of the potential of branch parallelism in SD, and recognize that the key challenge lies in the trade-offs between parallelization and token rollback. Based on the analysis, we introduce parallel speculative branches to preemptively hedge against likely rejections. Meanwhile, to enhance parallelism, we jointly orchestrate adaptive draft lengths with a hybrid combination of the implicit draft model confidence and explicit reusing of target model features. Extensive experiments across various models and benchmarks show that SpecBranch achieves over 1.8× ∼ 4.5× speedups against the autoregressive decoding and reduces rollback tokens by 50% for poorly aligned models, while maintaining an identical sampling distribution. Our code is available at https://github.com/Sylvan820/Specbranch . Introduction Recent advances in Large Language Models (LLMs), such as GPT-4 and DeepSeek [15] , have revolutionized natural language processing [5]. However, their real-world deployment faces the critical challenge of inference latency due to auto-regressive token-by-token generation, which restricts LLMs to predicting one token at a time, creating a fundamental bottleneck for real-time and large-scale applications. To address this limitation, Speculative Decoding (SD) has emerged as a promising acceleration paradigm [21, 8, 37, 23, 22, 25] . SD uses a small draft model to proactively generate candidate tokens, which are then verified in parallel by the large target model. By replacing serialized token generation with parallel validation, SD decouples the computational workload from sequence length. However, a critical serialization bottleneck still remains. As shown in Fig. 1 (a), the draft and target * Equal contribution. † The Corresponding Authors.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper3
- Efficient LLM Serving for Agentic Workflows: A Data Systems PerspectiveNoppanat Wadlom, Junyi Shen, Yao LuSIGMOD 2026 · 被引用 14 次
- ParallelVLM: Lossless Video-LLM Acceleration with Visual Alignment Aware Parallel Speculative DecodingQuan Kong, Yuhao Shen, Yicheng Ji, Huan Li 等CVPR 2026 · 被引用 7 次
- FlowHijack: A Dynamics-Aware Backdoor Attack on Flow-Matching Vision-Language-Action ModelsXinyuan An, Tao Luo, Gengyun Peng, Yaobing Wang 等CVPR 2026 · 被引用 1 次
它引用的顶会 Paper14
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 被引用 64,255 次
- Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 被引用 1,472 次
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model ServingYinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu 等OSDI 2024 · 被引用 646 次
- Break the Sequential Dependency of LLM Inference Using Lookahead DecodingYichao Fu, Peter Bailis, Ion Stoica, Hao ZhangICML 2024 · 被引用 290 次
- GliDe with a CaPE: A Low-Hassle Method to Accelerate Speculative DecodingCunxiao Du, Jing Jiang, Yuanchen Xu, Jiawei Wu 等ICML 2024 · 被引用 72 次
相关 Paper
- PEARL: Parallel Speculative Decoding with Adaptive Draft LengthTianyu Liu, Yun Li, Qitan Lv, Kai Liu 等ICLR 2025
- Speculative Speculative DecodingTanishq Kumar, Tri Dao, Avner MayICLR 2026 · 被引用 15 次
- Talon: Breaking the Synchronization Barrier in Speculative Decoding with Hybrid Model-based and Retrieve-based DraftingXiangxiang Gao, Weisheng Xie, Lixin, Xuwei Fang 等AAAI 2026
- MineDraft: A Framework for Batch Parallel Speculative DecodingZhenwei Tang, Arun Verma, Zijian Zhou, Zhaoxuan Wu 等ICML 2026
- DFlash: Block Diffusion for Flash Speculative DecodingJian Chen, Yesheng Liang, Zhijian LiuICML 2026
