Online Scheduling for LLM Inference with KV Cache Constraints
Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology(麻省理工学院电子工程与计算机科学系);HKUST(香港科技大学);Microsoft Research(微软研究院);Sloan School of Management, Massachusetts Institute of Technology(斯隆管理学院,麻省理工学院);Operations Research Center, Massachusetts Institute of Technology(运营研究中心,麻省理工学院)
Patrick Jaillet, Jiashuo Jiang, Konstantina Mellou, Marco Molinaro, Chara Podimata, Zijie Zhou
Large Language Model (LLM) inference, where a trained model generates text one word at a time in response to user prompts, is a computationally intensive process requiring efficient scheduling to optimize latency and resource utilization. A key challenge in LLM inference is the management of the Key-Value (KV) cache, which reduces redundant computations but introduces memory constraints. In this work, we model LLM inference with KV cache constraints theoretically and propose a novel batching and scheduling algorithm that minimizes inference latency while effectively managing the KV cache's memory.
More specifically, we make the following contributions. First, to evaluate the performance of online algorithms for scheduling in LLM inference, we introduce a hindsight optimal benchmark, formulated as an integer program that computes the minimum total inference latency under full future information. Second, we prove that no deterministic online algorithm can achieve a constant competitive ratio when the arrival process is arbitrary. Third, motivated by the computational intractability of solving the integer program at scale, we propose a polynomial-time online scheduling algorithm and show that under certain conditions it can achieve a constant competitive ratio. We also demonstrate our algorithm's strong empirical performance by comparing it to the hindsight optimal in a synthetic dataset. Finally, we conduct empirical evaluations on a real-world public LLM inference dataset, simulating the Llama2-70B model on A100 GPUs, and show that our algorithm significantly outperforms the benchmark algorithms. Overall, our results offer a path toward more sustainable and cost-effective LLM deployment.
Apt-Serve: Adaptive Request Scheduling on Hybrid Cache for Scalable LLM Inference Serving
The Hong Kong University of Science and Technology(香港科技大学);Shanghai Jiao Tong University(上海交通大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
ZipMoE: Efficient On-Device MoE Serving via Lossless Compression and Cache-Affinity Scheduling
School of Electronic Science and Engineering, Nanjing University, China.(南京大学电子科学与工程学院);National Key Laboratory for Novel Software Technology, Nanjing University, China.(南京大学新型软件技术国家重点实验室)
Wireless communication empowers online scheduling of partially-observable transportation multi-robot systems in a smart factory
National Engineering Research Center of Mobile Network Technologies, \ University of Posts;Department of Electrical Engineering, University of South Florida, Tampa, FL 33620 USA;School of Information;Communication Engineering, Beijing University of Posts
HybriMoE: Hybrid CPU-GPU Scheduling and Cache Management for Efficient MoE Inference
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);School of Integrated Circuits, Peking University(北京大学集成电路学院);Institute of Electronic Design Automation, Peking University(北京大学电子设计自动化研究院);Beijing Advanced Innovation Center for Integrated Circuits(北京集成电路高精尖创新中心);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院)
Bi-Level Online Provisioning and Scheduling with Switching Costs and Cross-Level Constraints
Dept. of Electrical Engineering University at Buffalo, Buffalo, NY(电气工程系 网络布法罗大学);Computer Engineering The Ohio State University, Columbus, OH(计算机工程 俄亥俄州立大学)
MARTHE: Scheduling the Learning Rate Via Online Hypergradients
Amazon(亚马逊);University College London(伦敦大学学院);Istituto Italiano di Tecnologia(意大利技术研究院);Università di Firenze(佛罗伦萨大学)
本文从超参数优化的角度研究了任务特定学习率调度的拟合问题,旨在获得较好的泛化能力。我们描述的结构的梯度的验证错误w.r.t.学习率调度--高梯度。在此基础上,我们介绍MARTHE,一种新的在线算法指导下的廉价近似的超梯度,使用过去的信息从优化轨迹来模拟未来的行为。它在两种最近的技术RTHO(Franceschi等人,2017)和HD(Baydin et al. 2018),并且能够产生更稳定的学习率调度,从而产生更好的泛化模型。