vix.ing · top · new · best · stats

Eigen Attention: Attention in Low-Rank Space for KV Cache Compression

2024/08/10 by Utkarsh Saxena, Gobinda Saha, Saxena, Utkarsh +5 · 29 citations
Computer Science · Mathematics · #Advanced Data Compression Techniques #Cache #Combinatorics #Compression (physics) #Computer science #Distributed and Parallel Computing Systems #Materials science #Mathematics #Operating system #Parallel Computing and Optimization Techniques #Parallel computing #Rank (graph theory) #Space (punctuation)

paper · pdf · doi:10.48550/arxiv.2408.05646

published in arXiv (Cornell University) (Cornell University)

openalex publication_date 2024/08/10 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

Large language models (LLMs) represent a groundbreaking advancement in the domain of natural language processing due to their impressive reasoning abilities. Recently, there has been considerable interest in increasing the context lengths for these models to enhance their applicability to complex tasks. However, at long context lengths and large batch sizes, the key-value (KV) cache, which stores the attention keys and values, emerges as the new bottleneck in memory usage during inference. To address this, we propose Eigen Attention, which performs the attention operation in a low-rank space, thereby reducing the KV cache memory overhead. Our proposed approach is orthogonal to existing KV cache compression techniques and can be used synergistically with them. Through extensive experiments over OPT, MPT, and Llama model families, we demonstrate that Eigen Attention results in up to 40% reduction in KV cache sizes and up to 60% reduction in attention operation latency with minimal drop in performance. Code is available at https://github.com/UtkarshSaxena1/EigenAttn.

Cited by

Related