Manuscript Offprint

arXiv:2609.08131

Jacap: Robust KV Cache Eviction via Jacobian-Based Nonlinear Information Capacity Preservation

Jiaming Yang, Chenwei Tang, Liangli Zhen, Chenyang Zhang, Jiancheng Lv

Abstract

Key-value (KV) cache eviction is essential for scaling long-context inference in Large Language Models. However, existing policies predominantly rely on empirical heuristics, lacking a rigorous characterization of token utility under the inherently nonlinear softmax attention mechanism. In this work, we rethink KV cache eviction through the lens of local information geometry, modeling the attention process as a nonlinear Gaussian communication channel. By performing a first-order Taylor expansion of the attention mapping, we derive the Jacobian Information Capacity, a novel objective that explicitly captures query relevance, softmax sensitivity, and structural diversity. Guided by this theory, we introduce Jacap, a capacity-aware eviction method that utilizes softmax-aware importance weighting and statistical leverage scores for subset selection. Extensive experiments across diverse architectures and benchmarks demonstrate that JACAP delivers superior performance in most scenarios, particularly in high-compression regimes.

1 Introduction

Large language models (LLMs) are increasingly deployed in complex, long-horizon settings such as multi-step reasoning [17], tool-augmented agents [7], and interactive decision-making systems [32]. These applications require processing extremely long contexts, where models must retain and reuse information across thousands or even millions of tokens. Although transformer-based architectures are capable of supporting such tasks in principle, their inference cost grows rapidly with context length, making efficient memory management a critical bottleneck. In particular, the key-value (KV) cache, which stores past attention states for autoregressive decoding, incurs both significant memory overhead and latency as the context grows [19, 18]. This has led to extensive research on KV cache compression, spanning techniques such as representation-level quantization and structural pruning [14, 20]. KV cache eviction, which dynamically prunes redundant entries based on importance, has emerged as a particularly promising approach due to its model-agnostic nature and seamless integration into inference pipelines.

KV cache eviction methods operate by assigning an importance score to each cached token and retaining only the top-ranked subset under a given memory budget. Existing methods generally rely on heuristic criteria such as attention scores [15], token recency [25], or value norms [21] to estimate token importance. While effective in practice, these heuristics lack a principled understanding of which information should be preserved for future queries. As a result, they often treat tokens in

Preprint.

isolation and fail to capture the complex redundancy and complementarity across cache entries, leading to inconsistent performance under aggressive compression regimes.

Recent work [27] has sought a more rigorous foundation by framing KV cache eviction through the Information Bottleneck (IB) principle [23]. By adopting a linear-gaussian surrogate for attention dynamics, this work defines an information capacity objective that quantifies the mutual information between future queries and attention outputs. This framework provides a unified interpretation of query relevance and output diversity, resulting in practical algorithms based on capacity-aware selection. However, we argue that the linear assumption limits the descriptive power of this framework. Transformer attention is governed by the softmax operator, where normalization and competition effects dictate that a token's contribution depends not only on its individual representation but also on its relative sensitivity within the total distribution. A linear approximation treats the query-to-output mapping as a fixed transformation, overlooking the saturation and competition dynamics central to information flow in real attention mechanisms.

In this work, we revisit KV cache eviction from a nonlinear information-theoretic perspective. We model the retained attention mechanism as a nonlinear information channel and derive a local approximation of its information capacity using the Jacobian of the attention mapping around a representative query distribution. This formulation explicitly incorporates query-key alignment, softmax competition, and value-space diversity into a unified objective, with linear capacity emerging as a special case under a linear channel approximation.

Building on this insight, we propose JACAP, a practical eviction method that approximates nonlinear capacity using a softmax-sensitive weighting scheme combined with capacity-based selection. Extensive experiments across diverse architectures and benchmarks demonstrate that JACAP delivers superior performance in most scenarios, especially under high compression ratios.

Our contributions are summarized as follows:

  1. We propose a nonlinear information-theoretic framework for KV cache eviction, modeling retained attention as a nonlinear channel and deriving a Jacobian-based local capacity objective.

  2. We develop JACAP, a practical eviction algorithm that incorporates softmax sensitivity into capacity-aware token selection.

  3. We empirically demonstrate consistent improvements over prior methods on LongBench, NIAH and AIME25 benchmarks, especially under high compression ratio.

References (29)