DCCLLGApr 12, 2024

Efficient Interactive LLM Serving with Proxy Model-based Sequence Length Prediction

arXiv:2404.08509v270 citationsh-index: 16Has Code
Originality Incremental advance
AI Analysis

This work addresses efficiency issues in interactive LLM serving for AI applications, representing an incremental improvement over existing scheduling methods.

The paper tackles the challenge of unpredictable execution times in LLM serving by introducing a speculative shortest-job-first scheduler that uses a proxy model to predict output sequence lengths, resulting in a 30.5-39.6% reduction in average job completion times and a 2.2-3.6x increase in throughput compared to FCFS schedulers.

Large language models (LLMs) have been driving a new wave of interactive AI applications across numerous domains. However, efficiently serving LLM inference requests is challenging due to their unpredictable execution times originating from the autoregressive nature of generative models. Existing LLM serving systems exploit first-come-first-serve (FCFS) scheduling, suffering from head-of-line blocking issues. To address the non-deterministic nature of LLMs and enable efficient interactive LLM serving, we present a speculative shortest-job-first (SSJF) scheduler that uses a light proxy model to predict LLM output sequence lengths. Our open-source SSJF implementation does not require changes to memory management or batching strategies. Evaluations on real-world datasets and production workload traces show that SSJF reduces average job completion times by 30.5-39.6% and increases throughput by 2.2-3.6x compared to FCFS schedulers, across no batching, dynamic batching, and continuous batching settings.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes