paper-with-me

홈 › Papers

SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification

2023-05-16 · Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Zhengxin Zhang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, Chunan Shi, Zhuoming Chen, Daiyaan Arfeen, Reyna Abhyankar, Zhihao Jia

This paper introduces SpecInfer, a system that accelerates generative large language model (LLM) serving with tree-based speculative inference and verification. The key idea behind SpecInfer is leveraging small speculative models to predict the LLM's outputs; the predictions are organized as a token tree, whose nodes each represent a candidate token sequence. The correctness of all candidate token sequences represented by a token tree is verified against the LLM in parallel using a novel tree-based parallel decoding mechanism. SpecInfer uses an LLM as a token tree verifier instead of an incremental decoder, which significantly reduces the end-to-end latency and computational requirement for serving generative LLMs while provably preserving model quality. Our evaluation shows that SpecInfer outperforms existing LLM serving systems by 1.5-2.8x for distributed LLM inference and by 2.6-3.5x for offloading-based LLM inference, while preserving the same generative performance. SpecInfer is publicly available at https://github.com/flexflow/FlexFlow/

📄 PDF Abstract BibTeX arXiv:2305.09781

Code (3)

flexflow/flexflow 공식 구현 pytorch
goliaro/specinfer-ae 공식 구현 pytorch
njunlp/mcsd pytorch

Tasks

DecoderLanguage ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

DySpec: Faster Speculative Decoding with Dynamic Token Tree Structure

2024-10-15 · Yunfan Xiong, Ruoyu Zhang, Yanzeng Li, Tianhao Wu 외

While speculative decoding has recently appeared as a promising direction for accelerating the inference of large language models (LLMs), the speedup and scalability are strongly bounded by the token acceptance rate. Pre…

ALISE: Accelerating Large Language Model Serving with Speculative Scheduling

2024-10-31 · Youpeng Zhao, Jun Wang

Large Language Models (LLMs) represent a revolutionary advancement in the contemporary landscape of artificial general intelligence (AGI). As exemplified by ChatGPT, LLM-based applications necessitate minimal response la…

BlockingLanguage ModelingLanguage ModellingLarge Language Model+2

AdaServe: Accelerating Multi-SLO LLM Serving with SLO-Customized Speculative Decoding

2025-01-21 · Zikun Li, Zhuofu Chen, Remi Delacourt, Gabriele Oliaro 외

Modern large language model (LLM) applications exhibit diverse service-level objectives (SLOs), from low-latency requirements in interactive coding assistants to more relaxed constraints in data wrangling tasks. Existing…

Language ModelingLanguage ModellingLarge Language ModelScheduling

Accelerating Neural Self-Improvement via Bootstrapping

2023-05-02 · Kazuki Irie, Jürgen Schmidhuber

Few-shot learning with sequence-processing neural networks (NNs) has recently attracted a new wave of attention in the context of large language models. In the standard N-way K-shot learning setting, an NN is explicitly …

Few-Shot LearningMeta-Learning

Physics-aware generative models for turbulent fluid flows through energy-consistent stochastic interpolants

2025-04-08 · Nikolaj T. Mücke, Benjamin Sanderse

Generative models have demonstrated remarkable success in domains such as text, image, and video synthesis. In this work, we explore the application of generative models to fluid dynamics, specifically for turbulence sim…