AdaSpec: Adaptive Speculative Decoding for Fast, SLO-Aware Large Language Model Serving

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Huang, Kaiyu, Wu, Hao, Shi, Zhubo, Zou, Han, Yu, Minchen, Shi, Qingjiang
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912815625797632
author Huang, Kaiyu
Wu, Hao
Shi, Zhubo
Zou, Han
Yu, Minchen
Shi, Qingjiang
author_facet Huang, Kaiyu
Wu, Hao
Shi, Zhubo
Zou, Han
Yu, Minchen
Shi, Qingjiang
contents Cloud-based Large Language Model (LLM) services often face challenges in achieving low inference latency and meeting Service Level Objectives (SLOs) under dynamic request patterns. Speculative decoding, which exploits lightweight models for drafting and LLMs for verification, has emerged as a compelling technique to accelerate LLM inference. However, existing speculative decoding solutions often fail to adapt to fluctuating workloads and dynamic system environments, resulting in impaired performance and SLO violations. In this paper, we introduce AdaSpec, an efficient LLM inference system that dynamically adjusts speculative strategies according to real-time request loads and system configurations. AdaSpec proposes a theoretical model to analyze and predict the efficiency of speculative strategies across diverse scenarios. Additionally, it implements intelligent drafting and verification algorithms to maximize performance while ensuring high SLO attainment. Experimental results on real-world LLM service traces demonstrate that AdaSpec consistently meets SLOs and achieves substantial performance improvements, delivering up to 66% speedup compared to state-of-the-art speculative inference systems. The source code is publicly available at https://github.com/cerebellumking/AdaSpec
format Preprint
id arxiv_https___arxiv_org_abs_2503_05096
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AdaSpec: Adaptive Speculative Decoding for Fast, SLO-Aware Large Language Model Serving
Huang, Kaiyu
Wu, Hao
Shi, Zhubo
Zou, Han
Yu, Minchen
Shi, Qingjiang
Computation and Language
Cloud-based Large Language Model (LLM) services often face challenges in achieving low inference latency and meeting Service Level Objectives (SLOs) under dynamic request patterns. Speculative decoding, which exploits lightweight models for drafting and LLMs for verification, has emerged as a compelling technique to accelerate LLM inference. However, existing speculative decoding solutions often fail to adapt to fluctuating workloads and dynamic system environments, resulting in impaired performance and SLO violations. In this paper, we introduce AdaSpec, an efficient LLM inference system that dynamically adjusts speculative strategies according to real-time request loads and system configurations. AdaSpec proposes a theoretical model to analyze and predict the efficiency of speculative strategies across diverse scenarios. Additionally, it implements intelligent drafting and verification algorithms to maximize performance while ensuring high SLO attainment. Experimental results on real-world LLM service traces demonstrate that AdaSpec consistently meets SLOs and achieves substantial performance improvements, delivering up to 66% speedup compared to state-of-the-art speculative inference systems. The source code is publicly available at https://github.com/cerebellumking/AdaSpec
title AdaSpec: Adaptive Speculative Decoding for Fast, SLO-Aware Large Language Model Serving
topic Computation and Language
url https://arxiv.org/abs/2503.05096