DynamicAttention: Dynamic KV Cache for Disaggregate LLM Inference

In large language model inference, efficient utilization of GPU memory is of utmost importance. Current systems suffer from unreasonable GPU memory allocation: excessive memory is idle under low load, while memory shortages occur under high load. Moreover, existing GPU memory management methods do not consider the different memory requirements for prefill and decode stages in the inference process. This paper proposes a new solution - DynamicAttention. It allocates a continuous virtual GPU memory space at startup, but does not actually allocate physical GPU memory. Instead, it dynamically allocates memory according to the demand during runtime. Different memory consumption prediction algorithms are designed specifically for the Prefill and Decode stages. Experimental results show that compared with the existing SOTA solutions, DynamicAttention improves GPU memory utilization by 4 times under low load and 15% under high load. Furthermore, it increases throughput by 1.6 times.

Authors

Publication Details

Published
2025-03-12
DOI
https://doi.org/10.1109/icassp49660.2025.10890367
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DynamicAttention: Dynamic KV Cache for Disaggregate LLM Inference

Tongkai Yang, Zhijun Ding
Natural Language Processing Techniques
article

DynamicAttention: Dynamic KV Cache for Disaggregate LLM Inference

Tongkai Yang, Zhijun Ding
article en

Abstract

In large language model inference, efficient utilization of GPU memory is of utmost importance. Current systems suffer from unreasonable GPU memory allocation: excessive memory is idle under low load, while memory shortages occur under high load. Moreover, existing GPU memory management methods do not consider the different memory requirements for prefill and decode stages in the inference process. This paper proposes a new solution - DynamicAttention. It allocates a continuous virtual GPU memory space at startup, but does not actually allocate physical GPU memory. Instead, it dynamically allocates memory according to the demand during runtime. Different memory consumption prediction algorithms are designed specifically for the Prefill and Decode stages. Experimental results show that compared with the existing SOTA solutions, DynamicAttention improves GPU memory utilization by 4 times under low load and 15% under high load. Furthermore, it increases throughput by 1.6 times.

Ant Group
Openalex Percentile: Top 98%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.