arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.19442cs.AIcs.DC
收藏

基于KV缓存管理的大语言模型加速研究综述

A Survey on Large Language Model Acceleration based on KV Cache Management

Department of Computing, The Hong Kong Polytechnic University(计算系,香港理工大学);Department of Computer Science and Engineering(计算机科学与工程系);Department of Computer Science and Technology(计算机科学与技术系);Department of Computing and Data Science(计算与数据科学系)

Haoyang Li, Yiming Li, Anxin Tian, Tianhao Tang, Zhanchao Xu, Xuejia Chen, Nicole Hu, Wei Dong, Qing Li, Lei Chen

AI总结:

本综述针对大语言模型推理阶段的计算与内存瓶颈,将KV缓存管理优化策略分为令牌级、模型级、系统级三类进行全面梳理,同时介绍了相关评估基准,为该领域研究与实践提供参考。

摘要:

大语言模型(LLMs)凭借其理解上下文和执行逻辑推理的能力,已彻底改变了自然语言处理、计算机视觉和多模态任务等众多领域。然而,LLMs的计算和内存需求(尤其是在推理阶段)给其扩展到真实世界、长上下文和实时应用带来了巨大挑战。键值(KV)缓存管理已成为加速LLM推理的关键优化技术,它通过减少冗余计算和提升内存利用率来实现加速。本综述全面概述了用于LLM加速的KV缓存管理策略,将其分为令牌级、模型级和系统级优化三类。令牌级策略包括KV缓存选择、预算分配、合并、量化和低秩分解;模型级优化则聚焦于架构创新和注意力机制,以增强KV的复用性;系统级方法致力于解决内存管理、调度和硬件感知设计问题,以提升在不同计算环境下的效率。此外,本综述还概述了用于评估这些策略的文本及多模态数据集和基准。通过呈现详细的分类体系和对比分析,本研究旨在为研究人员和从业者提供有用的见解,支持高效可扩展的KV缓存管理技术的开发,推动LLMs在实际应用中的落地部署。整理的KV缓存管理相关论文列表见:https://github.com/TreeAI-Lab/Awesome-KV-Cache-Management。

英文摘要:

Large Language Models (LLMs) have revolutionized a wide range of domains such as natural language processing, computer vision, and multi-modal tasks due to their ability to comprehend context and perform logical reasoning. However, the computational and memory demands of LLMs, particularly during inference, pose significant challenges when scaling them to real-world, long-context, and real-time applications. Key-Value (KV) cache management has emerged as a critical optimization technique for accelerating LLM inference by reducing redundant computations and improving memory utilization. This survey provides a comprehensive overview of KV cache management strategies for LLM acceleration, categorizing them into token-level, model-level, and system-level optimizations. Token-level strategies include KV cache selection, budget allocation, merging, quantization, and low-rank decomposition, while model-level optimizations focus on architectural innovations and attention mechanisms to enhance KV reuse. System-level approaches address memory management, scheduling, and hardware-aware designs to improve efficiency across diverse computing environments. Additionally, the survey provides an overview of both text and multimodal datasets and benchmarks used to evaluate these strategies. By presenting detailed taxonomies and comparative analyses, this work aims to offer useful insights for researchers and practitioners to support the development of efficient and scalable KV cache management techniques, contributing to the practical deployment of LLMs in real-world applications. The curated paper list for KV cache management is in: \href{https://github.com/TreeAI-Lab/Awesome-KV-Cache-Management}{https://github.com/TreeAI-Lab/Awesome-KV-Cache-Management}.

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

↑