DCAIFeb 19, 2025

FairKV: Balancing Per-Head KV Cache for Fast Multi-GPU Inference

arXiv:2502.15804v21 citationsh-index: 2Has Code
Originality Incremental advance
AI Analysis

This addresses a deployment bottleneck for large language models in multi-GPU systems, though it is incremental as it builds on existing KV cache compression methods.

The paper tackles the load imbalance problem in multi-GPU inference caused by imbalanced KV cache compression, proposing FairKV to increase throughput by 1.66x compared to standard tensor parallelism.

KV cache techniques in Transformer models aim to reduce redundant computations at the expense of substantially increased memory usage, making KV cache compression an important and popular research topic. Recently, state-of-the-art KV cache compression methods implement imbalanced, per-head allocation algorithms that dynamically adjust the KV cache budget for each attention head, achieving excellent performance in single-GPU scenarios. However, we observe that such imbalanced compression leads to significant load imbalance when deploying multi-GPU inference, as some GPUs become overburdened while others remain underutilized. In this paper, we propose FairKV, a method designed to ensure fair memory usage among attention heads in systems employing imbalanced KV cache compression. The core technique of FairKV is Fair-Copying, which replicates a small subset of memory-intensive attention heads across GPUs using data parallelism to mitigate load imbalance. Our experiments on popular models, including LLaMA 70b and Mistral 24b model, demonstrate that FairKV increases throughput by 1.66x compared to standard tensor parallelism inference. Our code will be released as open source upon acceptance.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes