PagedEviction: Structured Block-wise KV Cache Pruning for Efficient Large Language Model Inference

Krishna Teja Chitty-Venkata, Jie Ye, Xian-He Sun, Anthony Kougkas, Murali Emani, Venkatram Vishwanath, Bogdan NicolaearXiv 2025 · DOI

Abstract

As Large Language Models (LLMs) scale to longer contexts, the Key-Value (KV) cache becomes a significant memory bottleneck. Existing pruning methods often ignore the underlying paged memory management of modern inference engines, leading to fragmentation and integration difficulties. We present PagedEviction, a structured, block-wise pruning strategy that aligns with paged memory architectures. By utilizing an "attention-free" importance metric based on tensor norms, PagedEviction achieves up to 3.1x throughput improvement and 12% lower latency while maintaining superior accuracy on long-context benchmarks compared to state-of-the-art baselines.

Introduction

The linear growth of the KV cache with sequence length poses a major challenge for serving LLMs, often exceeding the memory footprint of the model weights themselves. While eviction strategies aim to prune less critical tokens, traditional "unstructured" methods create "holes" in memory that systems like vLLM—which use PagedAttention—cannot efficiently reclaim. Furthermore, many existing methods require access to attention scores, which are often inaccessible in high-performance kernels like FlashAttention. PagedEviction addresses these issues by introducing a hardware-aware, block-wise eviction mechanism that requires zero kernel modifications.

Methodology: Structured Block-wise Eviction

PagedEviction introduces a two-phase strategy designed to work seamlessly with paged memory management.

Importance Proxy

Instead of relying on attention scores, PagedEviction utilizes the ratio of the L2-norm of the Value tensor to the L2-norm of the Key tensor ($||V_i||_2 / ||K_i||_2$) as a proxy for token importance. This metric is computed directly from cached tensors, avoiding the need to modify attention kernels.

Two-Phase Strategy

  1. Prefill Phase: During the initial prompt processing, fine-grained token-level eviction is applied to fit the prompt into the allocated cache budget.
  2. Decode Phase: During generation, the algorithm performs block-wise eviction. When a memory block is filled, the system calculates an average importance score for all pages and evicts the least important page in its entirety.
Overview of the PagedEviction workflow, showing token-level eviction during prefill and block-level eviction during decoding.

Experimental Evaluation

The authors evaluated PagedEviction using Llama-3.x (1B, 3B, and 8B) models on the LongBench suite, covering tasks such as summarization (GovReport, MultiNews) and multi-hop QA (HotpotQA, Qasper).

Accuracy and Performance

PagedEviction consistently outperforms baselines like StreamingLLM and KeyDiff across various cache budgets. For instance, on GovReport with a Llama-3.2-1B model, PagedEviction achieved a ROUGE score of 24.5, significantly higher than StreamingLLM (21.0).

Performance comparison of PagedEviction against various baselines across multiple datasets and model sizes.

Throughput and Latency

The method delivers substantial efficiency gains. On a Llama-3.2-1B model with a 1024-token budget, PagedEviction reached 3020 tokens/sec, representing a 37% improvement over the full-cache baseline. Across all model sizes, latency was reduced by 10–12%.

Discussion and Conclusion

The success of PagedEviction highlights the importance of hardware-software synergy in LLM optimization. By making eviction "block-aware," the method avoids memory fragmentation and maximizes the utility of paged memory managers. The use of tensor norms as an importance signal provides a computationally cheap, "attention-free" alternative to traditional pruning.

Future work includes exploring layer-wise budget allocation to prioritize critical middle layers and integrating PagedEviction with KV cache quantization techniques to further enhance memory efficiency.

Summary updated

BibTeX
@misc{chittyvenkata2025pagedeviction,
  author = {Krishna Teja Chitty-Venkata and Jie Ye and Xian-He Sun and Anthony Kougkas and Murali Emani and Venkatram Vishwanath and Bogdan Nicolae},
  title = {{PagedEviction: Structured Block-wise KV Cache Pruning for Efficient Large Language Model Inference}},
  year = {2025},
  eprint = {2509.04377},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.04377},
}
Figure