SpecBranch: Speculative Decoding via Hybrid Drafting and Rollback-Aware Branch Parallelism

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Shen, Yuhao, Shen, Junyi, Kong, Quan, Liu, Tianyu, Lu, Yao, Wang, Cong
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913027991797760
author Shen, Yuhao
Shen, Junyi
Kong, Quan
Liu, Tianyu
Lu, Yao
Wang, Cong
author_facet Shen, Yuhao
Shen, Junyi
Kong, Quan
Liu, Tianyu
Lu, Yao
Wang, Cong
contents Recently, 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 fundamentally 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 \textbf{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 strategically 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 \textbf{1.8}$\times \sim$ \textbf{4.5}$\times$ speedups against the auto-regressive decoding and reduces rollback tokens by $\textbf{50}$\% for poorly aligned models, realizing its applicability for real-world deployments.
format Preprint
id arxiv_https___arxiv_org_abs_2506_01979
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SpecBranch: Speculative Decoding via Hybrid Drafting and Rollback-Aware Branch Parallelism
Shen, Yuhao
Shen, Junyi
Kong, Quan
Liu, Tianyu
Lu, Yao
Wang, Cong
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Recently, 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 fundamentally 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 \textbf{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 strategically 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 \textbf{1.8}$\times \sim$ \textbf{4.5}$\times$ speedups against the auto-regressive decoding and reduces rollback tokens by $\textbf{50}$\% for poorly aligned models, realizing its applicability for real-world deployments.
title SpecBranch: Speculative Decoding via Hybrid Drafting and Rollback-Aware Branch Parallelism
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
url https://arxiv.org/abs/2506.01979