arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07447cs.PFcs.AI
收藏

通过模拟和受数据库管理系统启发的缓存替换策略在大语言模型推理系统开发和在线工作负载中节省GPU时间

Saving GPU Hours in LLM Inference System Development and Online Workloads with Simulation and DBMS-Inspired Cache Replacement Policies

EPFL, Switzerland(苏黎世联邦理工学院);NUS, Singapore(新加坡国立大学);POSTECH, South Korea(POSTECH大学)

Kyoungmin Kim, Jiacheng Li, Kijae Hong, Qunyou Liu, Darong Huang, Anastasia Ailamaki

AI总结:

研究大语言模型推理系统,通过模拟和受数据库管理系统启发的缓存替换策略,节省GPU时间,提出新缓存替换策略并证明其有效性。

摘要:

大语言模型在全球范围内越来越多地用于日常任务、智能系统和数据分析,需要大量GPU资源。大语言模型推理系统虽能处理大量请求,但缺乏理论模型。本文对其缓存管理策略等进行全面调查,表明模拟可节省GPU时间,还提出新缓存替换策略,能在实际推理系统中大幅节省GPU时间。

英文摘要:

LLMs are increasingly used world-wide from daily tasks to agentic systems and data analytics, requiring significant GPU resources. While LLM inference systems are capable of serving millions of requests from multiple users, they often lack theoretical models to determine whether they achieve the performance upper bounds of underlying hardware resources. Beyond online workload serving, merely analyzing existing systems-or developing yet another one-is both GPU-intensive and labor-intensive. This paper provides a comprehensive survey of LLM inference systems, focusing on their cache management policies and availability. We then show that simulations can be an effective tool to save GPU hours in the development and analysis phase of inference systems, revealing useful insights for developing better inference techniques, unlike how existing studies used simulations to find the best parameters inside a given system. Finally, we provide theoretical tools to estimate the optimal performance and formulate new ideas. Based on the theoretical analysis, especially on the cache management in LLM inference, we propose a simple yet effective cache replacement policy that can be easily plugged into existing preemptive schedulers and systems. We show that such a simple policy inspired from database systems can substantially save GPU hours in actual inference systems on online workloads. We share our experience submitting a journal paper to a database venue in November 2025 for anyone considering a similar path.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑