用数据库缓存策略优化大模型推理,显著节省GPU资源消耗
Saving GPU Hours in LLM Inference System Development and Online Workloads with Simulation and DBMS-Inspired Cache Replacement Policies
- 借鉴数据库缓存机制设计新型替换策略
- 实测可减少线上推理中大量GPU小时数
- 适合关注性能优化与资源效率的研究者
大语言模型在全球范围被广泛应用于日常任务、智能体系统和数据分析,对GPU资源需求巨大。尽管现有推理系统能支持数百万用户请求,但缺乏理论模型来判断其是否达到硬件性能上限。系统开发与分析过程本身耗时耗力,且依赖大量GPU资源。本文全面调研了大模型推理系统的缓存管理策略与可用性。研究发现,仿真技术可在开发与分析阶段有效节省GPU小时数,并揭示改进推理技术的洞见——不同于以往仅用于调参。基于理论分析,特别是对缓存管理的建模,本文提出一种简单高效、可直接集成到现有抢占式调度器中的缓存替换策略。实验证明,该策略在真实在线负载下显著降低GPU资源消耗。作者还分享了2025年11月向数据库领域期刊投稿的经验。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。