SageSched: Efficient LLM Scheduling Confronting Demand Uncertainty and Hybridity
Zhenghao Gan, Yichen Bao, Yifei Liu, Chen Chen, Quan Chen, Minyi Guo
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Speculative Decoding Optimization · Type: new method · Keywords: LLM inference scheduling, demand uncertainty, hybrid workloads, output length prediction, compute-memory cost model, uncertainty-aware scheduling
Summary
SageSched is an efficient LLM scheduler that predicts output length and models compute-memory cost to improve inference efficiency under demand uncertainty and hybrid workloads.
Explained to a 5-year-old
When you ask a big computer brain a question, it writes a long answer, but we don’t know how long ahead of time. The computer also needs both thinking power and memory to answer. We built a smart helper that looks at what you asked before and guesses how long the answer will be. It also checks how much thinking and memory the answer will need. Then it decides which answers to give first so everything runs faster.
Explained to a 5-year-old, longer
When you ask a big computer program a question, it writes a long answer, but we don’t know how long the answer will be before it finishes. This computer needs both a lot of thinking power and a lot of memory to write that answer. Existing helpers that decide which questions to answer first are simple and only look at how much thinking is needed. Because they ignore memory and the unknown answer length, they often make the computer work slower than it could. The new idea looks at what you asked before and at the answers the computer gave earlier to guess how long the next answer might be. It also measures how much thinking and memory each question will need together. With this guess and measurement, it can plan which questions to answer first in a smarter way. The planning also takes into account that the answer length might be uncertain, so it chooses a safe and efficient order. This helps the computer finish more questions in the same amount of time. In tests on many different computer setups, the new method made the overall work faster. It achieved an efficiency gain of more than 28 percent compared to the old helpers. As a result, users see quicker responses and the computer uses its resources better.
For a technical reader
The paper addresses the challenge of scheduling large language model (LLM) inference workloads where output lengths are unknown and both compute and memory resources are critical. It proposes a lightweight predictor that leverages prompt content and historical inference results to estimate the distribution of output lengths. A joint cost model captures both computational and memory requirements of each inference request. An uncertainty-aware scheduling policy uses these predictions and cost estimates to order requests for maximal overall efficiency. Experiments across diverse setups demonstrate over 28% efficiency gains compared to existing heuristic schedulers.
Problem
Adapting LLM inference scheduling to handle uncertain output lengths and the combined compute-memory demands of LLM workloads is challenging, as existing schedulers rely on simple heuristics and ignore memory costs.
Method
The approach combines prompt content and historical inference results to predict output-length distributions, models inference cost considering both compute and memory, and uses an uncertainty-aware scheduling policy to maximize overall efficiency.
Results
The approach achieves over 28.7% efficiency improvement across diverse setups.
Contributions
It introduces a lightweight output-length prediction method, a joint compute-memory cost model, and an uncertainty-aware scheduling policy for LLM workloads.
Practical relevance
This work enables more efficient LLM serving on existing hardware, reducing latency and resource consumption for users.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction