Table of Contents
Fetching ...

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

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

TL;DR

The paper surveys Key-Value (KV) cache management as a pivotal optimization for accelerating large language models, categorizing techniques into token-level, model-level, and system-level strategies. It comprehensively covers KV cache selection, budgeting, merging, quantization, and low-rank decomposition at the token level; attention grouping and architectural alterations at the model level; and memory management, scheduling, and hardware-aware design at the system level, complemented by long-context and multimodal benchmarks. The work synthesizes a wide range of methods, analyzes tradeoffs between speed, memory, and accuracy, and provides taxonomies and future directions to guide efficient, scalable deployment of KV cache techniques. By offering detailed taxonomies, comparative insights, and benchmark considerations, the paper aims to advance practical, real-world deployment of KV cache optimization across diverse LLM workloads. It also points to a public repository of KV-cache literature, enabling researchers and practitioners to navigate the rapidly evolving landscape of KV-cache-based acceleration.

Abstract

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}.

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

TL;DR

The paper surveys Key-Value (KV) cache management as a pivotal optimization for accelerating large language models, categorizing techniques into token-level, model-level, and system-level strategies. It comprehensively covers KV cache selection, budgeting, merging, quantization, and low-rank decomposition at the token level; attention grouping and architectural alterations at the model level; and memory management, scheduling, and hardware-aware design at the system level, complemented by long-context and multimodal benchmarks. The work synthesizes a wide range of methods, analyzes tradeoffs between speed, memory, and accuracy, and provides taxonomies and future directions to guide efficient, scalable deployment of KV cache techniques. By offering detailed taxonomies, comparative insights, and benchmark considerations, the paper aims to advance practical, real-world deployment of KV cache optimization across diverse LLM workloads. It also points to a public repository of KV-cache literature, enabling researchers and practitioners to navigate the rapidly evolving landscape of KV-cache-based acceleration.

Abstract

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}.
Paper Structure (68 sections, 12 equations, 10 figures, 14 tables)

This paper contains 68 sections, 12 equations, 10 figures, 14 tables.

Figures (10)

  • Figure 1: The decoder-only Transformer for LLMs.
  • Figure 2: Taxonomy of KV Cache Management for Large Language Models.
  • Figure 3: Taxonomy of the Token-level Optimization for KV Cache Management.
  • Figure 4: The sparsity of attention matrix.
  • Figure 5: The quantization of attention matrix.
  • ...and 5 more figures