ACL 2025long0 citations

SpindleKV: A Novel KV Cache Reduction Method Balancing Both Shallow and Deep Layers

Zicong Tang, Shi Luohe, Zuchao Li, Baoyuan Qi, Liu Guoming, Lefei Zhang, Ping Wang

Abstract

Large Language Models (LLMs) have achieved impressive accomplishments in recent years. However, the increasing memory consumption of KV cache has possessed a significant challenge to the inference system. Eviction methods have revealed the inherent redundancy within the KV cache, demonstrating its potential for reduction, particularly in deeper layers. However, KV cache reduction for shallower layers has been found to be insufficient. Based on our observation that, the KV cache exhibits a high degree of similarity. Based on this observation, we proposed a novel KV cache reduction method, SpindleKV, which balances both shallow and deep layers. For deep layers, we employ an attention weight based eviction method, while for shallow layers, we apply a codebook based replacement approach which is learnt by similarity and merging policy. Moreover, SpindleKV addressed the Grouped-Query Attention (GQA) dilemma faced by other attention based eviction methods. Experiments on two common benchmarks with three different LLMs shown that SpindleKV obtained better KV cache reduction effect compared to baseline methods, while preserving similar or even better model performance.

BibTeX
@inproceedings{tang-etal-2025-spindlekv,
    title = "{S}pindle{KV}: A Novel {KV} Cache Reduction Method Balancing Both Shallow and Deep Layers",
    author = "Tang, Zicong  and
      Luohe, Shi  and
      Li, Zuchao  and
      Qi, Baoyuan  and
      Guoming, Liu  and
      Zhang, Lefei  and
      Wang, Ping",
    editor = "Che, Wanxiang  and
      Nabende, Joyce  and
      Shutova, Ekaterina  and
      Pilehvar, Mohammad Taher",
    booktitle = "Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2025",
    address = "Vienna, Austria",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.acl-long.1380/",
    doi = "10.18653/v1/2025.acl-long.1380",
    pages = "28428--28442",
    ISBN = "979-8-89176-251-0"
}
SpindleKV: A Novel KV Cache Reduction Method Balancing Both Shallow and Deep Layers · ACL 2025