CaliDrop: KV Cache Compression with Calibration

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Su, Yi, Qiu, Quantong, Zhou, Yuechi, Li, Juntao, Xia, Qingrong, Li, Ping, Duan, Xinyu, Wang, Zhefeng, Zhang, Min
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866918113414479872
author Su, Yi
Qiu, Quantong
Zhou, Yuechi
Li, Juntao
Xia, Qingrong
Li, Ping
Duan, Xinyu
Wang, Zhefeng
Zhang, Min
author_facet Su, Yi
Qiu, Quantong
Zhou, Yuechi
Li, Juntao
Xia, Qingrong
Li, Ping
Duan, Xinyu
Wang, Zhefeng
Zhang, Min
contents Large Language Models (LLMs) require substantial computational resources during generation. While the Key-Value (KV) cache significantly accelerates this process by storing attention intermediates, its memory footprint grows linearly with sequence length, batch size, and model size, creating a bottleneck in long-context scenarios. Various KV cache compression techniques, including token eviction, quantization, and low-rank projection, have been proposed to mitigate this bottleneck, often complementing each other. This paper focuses on enhancing token eviction strategies. Token eviction leverages the observation that the attention patterns are often sparse, allowing for the removal of less critical KV entries to save memory. However, this reduction usually comes at the cost of notable accuracy degradation, particularly under high compression ratios. To address this issue, we propose \textbf{CaliDrop}, a novel strategy that enhances token eviction through calibration. Our preliminary experiments show that queries at nearby positions exhibit high similarity. Building on this observation, CaliDrop performs speculative calibration on the discarded tokens to mitigate the accuracy loss caused by token eviction. Extensive experiments demonstrate that CaliDrop significantly improves the accuracy of existing token eviction methods.
format Preprint
id arxiv_https___arxiv_org_abs_2507_19906
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CaliDrop: KV Cache Compression with Calibration
Su, Yi
Qiu, Quantong
Zhou, Yuechi
Li, Juntao
Xia, Qingrong
Li, Ping
Duan, Xinyu
Wang, Zhefeng
Zhang, Min
Computation and Language
Large Language Models (LLMs) require substantial computational resources during generation. While the Key-Value (KV) cache significantly accelerates this process by storing attention intermediates, its memory footprint grows linearly with sequence length, batch size, and model size, creating a bottleneck in long-context scenarios. Various KV cache compression techniques, including token eviction, quantization, and low-rank projection, have been proposed to mitigate this bottleneck, often complementing each other. This paper focuses on enhancing token eviction strategies. Token eviction leverages the observation that the attention patterns are often sparse, allowing for the removal of less critical KV entries to save memory. However, this reduction usually comes at the cost of notable accuracy degradation, particularly under high compression ratios. To address this issue, we propose \textbf{CaliDrop}, a novel strategy that enhances token eviction through calibration. Our preliminary experiments show that queries at nearby positions exhibit high similarity. Building on this observation, CaliDrop performs speculative calibration on the discarded tokens to mitigate the accuracy loss caused by token eviction. Extensive experiments demonstrate that CaliDrop significantly improves the accuracy of existing token eviction methods.
title CaliDrop: KV Cache Compression with Calibration
topic Computation and Language
url https://arxiv.org/abs/2507.19906