Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding

Yifang Chen, Xiaoyu Li, Yingyu Liang, Zhenmei Shi, Zhao Song +1 more
3/14/2025
cs.LGcs.AIcs.CC

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

The key-value (KV) cache in the tensor version of transformers presents a significant bottleneck during inference. While previous work analyzes the fundamental space complexity barriers in standard attention mechanisms [Haris and Onak, 2025], our work generalizes the space complexity barriers result to tensor attention version. Our theoretical contributions rely on a reduction from communication complexity and deduce the memory lower bound for tensor-structured attention mechanisms when $d = Ω(\log n)$. Furthermore, we introduce two types of tensor attention cache and present a trade-off between time and memory for two scenarios. Overall, our work provides a theoretical foundation for us to understand the time-memory tradeoff of KV-Cache compression in tensor attention decoding and offers more perspectives in developing more memory-efficient tensor attention Transformer architectures.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025time,
  title  = {Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decoding},
  author = {Yifang Chen and Xiaoyu Li and Yingyu Liang and Zhenmei Shi and Zhao Song and Yu Tian},
  year   = {2025},
  eprint = {2503.11108},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.11108v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.11108.svg)](https://codeofpaper.com/paper/2503.11108)

Discussion