Hierarchical KV Cache Clustering for Memory-Efficient Transformer Inference

The paper presents a hierarchical clustering framework for online Key-Value (KV) cache compression in Transformer-based large language models. The proposed approach organizes structurally similar KV representations into compact prototype clusters to reduce memory consumption while preserving contextual information during long-context autoregressive inference. The manuscript introduces a localized similarity-driven clustering strategy, Progressive Similarity Association (PSA), together with Adaptive Regional Partitioning (ARP) and Prototype Aggregation (PAG) to enable efficient online cache compression with low computational overhead. The paper also includes theoretical analysis, empirical observations, experimental evaluation, and ablation studies across long-context language modeling benchmarks. This deposit serves as an open-access research manuscript intended to facilitate discussion, reproducibility, and future research in efficient Transformer inference and long-context large language models. Keywords: Large Language Models, Transformer Inference, KV Cache Compression, Long-Context Modeling, Efficient AI, Memory Optimization, Hierarchical Clustering, Attention Mechanisms, Autoregressive Inference.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-08-03
DOI
https://doi.org/10.5281/zenodo.21776275
Primary Topic
Big Data and Digital Economy
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Hierarchical KV Cache Clustering for Memory-Efficient Transformer Inference

Mukesh Anand G
Zenodo (CERN European Organization for Nuclear Research)
Big Data and Digital Economy
article

Hierarchical KV Cache Clustering for Memory-Efficient Transformer Inference

Mukesh Anand G
article en

Abstract

The paper presents a hierarchical clustering framework for online Key-Value (KV) cache compression in Transformer-based large language models. The proposed approach organizes structurally similar KV representations into compact prototype clusters to reduce memory consumption while preserving contextual information during long-context autoregressive inference. The manuscript introduces a localized similarity-driven clustering strategy, Progressive Similarity Association (PSA), together with Adaptive Regional Partitioning (ARP) and Prototype Aggregation (PAG) to enable efficient online cache compression with low computational overhead. The paper also includes theoretical analysis, empirical observations, experimental evaluation, and ablation studies across long-context language modeling benchmarks. This deposit serves as an open-access research manuscript intended to facilitate discussion, reproducibility, and future research in efficient Transformer inference and long-context large language models. Keywords: Large Language Models, Transformer Inference, KV Cache Compression, Long-Context Modeling, Efficient AI, Memory Optimization, Hierarchical Clustering, Attention Mechanisms, Autoregressive Inference.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 3%
Big Data and Digital Economy
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.