Scaling LLM Speculative Decoding: Non-Autoregressive Forecasting in Large-Batch Scenarios

Authors

  • Luohe Shi Wuhan University
  • Zuchao Li Wuhan University
  • Lefei Zhang Wuhan University
  • Baoyuan Qi Xiaomi Corporation
  • Guoming Liu Xiaomi Corporation
  • Hai Zhao Shanghai Jiao Tong University

DOI:

https://doi.org/10.1609/aaai.v40i39.40576

Abstract

Speculative decoding accelerates LLM inference by utilizing otherwise idle computational resources during memory-to-chip data transfer. Current speculative decoding methods typically assume a considerable amount of available computing power, then generate a complex and massive draft tree using a small autoregressive language model to improve overall prediction accuracy. However, methods like batching have been widely applied in mainstream model inference systems as a superior alternative to speculative decoding, as they compress the available idle computing power. Therefore, performing speculative decoding with low verification resources and low scheduling costs has become an important research problem. We believe that more capable models that allow for parallel generation on draft sequences are what we truly need. Recognizing the fundamental nature of draft models to only generate sequences of limited length, we propose SpecFormer, a novel architecture that integrates unidirectional and bidirectional attention mechanisms. SpecFormer combines the autoregressive model’s ability to extract information from the entire input sequence with the parallel generation benefits of non-autoregressive models. This design eliminates the reliance on large prefix trees and achieves consistent acceleration, even in large-batch scenarios. Through lossless speculative decoding experiments across models of various scales, we demonstrate that SpecFormer sets a new standard for scaling LLM inference with lower training demands and reduced computational costs.

Downloads

Published

2026-03-14

How to Cite

Shi, L., Li, Z., Zhang, L., Qi, B., Liu, G., & Zhao, H. (2026). Scaling LLM Speculative Decoding: Non-Autoregressive Forecasting in Large-Batch Scenarios. Proceedings of the AAAI Conference on Artificial Intelligence, 40(39), 32947–32955. https://doi.org/10.1609/aaai.v40i39.40576

Issue

Section

AAAI Technical Track on Natural Language Processing IV