GraphKV: Breaking the Static Selection Paradigm with Graph-Based KV Cache Eviction

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Li, Xuelin, Jin, Xiangqi, Zhang, Linfeng
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914014516215808
author Li, Xuelin
Jin, Xiangqi
Zhang, Linfeng
author_facet Li, Xuelin
Jin, Xiangqi
Zhang, Linfeng
contents Efficient Key-Value (KV) cache management is essential for processing long text sequences in large language models (LLMs), where memory constraints often limit performance. Conventional KV eviction strategies, such as top-k selection based on attention scores, depend on static heuristics that fail to capture the evolving implicit dependencies among tokens during inference. To overcome this, we propose GraphKV, a graph-based framework that redefines token selection for KV cache compression. In GraphKV, tokens are modeled as nodes with importance scores, and edges represent their similarity relationships. Through a decay-signal-propagation mechanism, token importance is dynamically updated by propagating information across the graph, enabling adaptive retention of the most contextually significant tokens. GraphKV can be seamlessly utilized in existing KV cache eviction methods such as SnapKV and PyramidKV in a plug-and-play manner. Codes will be released on Github.
format Preprint
id arxiv_https___arxiv_org_abs_2509_00388
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle GraphKV: Breaking the Static Selection Paradigm with Graph-Based KV Cache Eviction
Li, Xuelin
Jin, Xiangqi
Zhang, Linfeng
Computation and Language
Efficient Key-Value (KV) cache management is essential for processing long text sequences in large language models (LLMs), where memory constraints often limit performance. Conventional KV eviction strategies, such as top-k selection based on attention scores, depend on static heuristics that fail to capture the evolving implicit dependencies among tokens during inference. To overcome this, we propose GraphKV, a graph-based framework that redefines token selection for KV cache compression. In GraphKV, tokens are modeled as nodes with importance scores, and edges represent their similarity relationships. Through a decay-signal-propagation mechanism, token importance is dynamically updated by propagating information across the graph, enabling adaptive retention of the most contextually significant tokens. GraphKV can be seamlessly utilized in existing KV cache eviction methods such as SnapKV and PyramidKV in a plug-and-play manner. Codes will be released on Github.
title GraphKV: Breaking the Static Selection Paradigm with Graph-Based KV Cache Eviction
topic Computation and Language
url https://arxiv.org/abs/2509.00388