arXiv(opens in a new tab)cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.07643

Monte Carlo Estimation for KV Cache Eviction

Ahsan Bilal, Muhammad Ahmed Mohsin, Muhammad Umer, Wajih Hassan Raza, Atta Ul Asad, Young D. Kwon, Michal Valko, Dean F. Hougen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Most KV-cache eviction methods ask, in effect, which memory appeared important while reading the prompt? We instead ask, which memory will matter while answering? Since decoding queries are unavailable at eviction time, prior future-aware methods rely on pseudo-responses or synthetic future-query estimates. We cast fixed-budget future-aware eviction as distributional estimation over plausible model-conditional query trajectories and introduce LORE-KV (Lookahead Output-perturbation with Reliability-weighted Ensembles for Key-Value caches), a training-free method that samples short autoregressive continuations from the frozen target model and uses their response-side query states to estimate prompt-token utility. Tokens are scored by projected leave-one-out attention-output deletion cost and aggregated across sampled futures with optional trajectory weighting. The temporary continuations are discarded before final decoding, requiring no auxiliary model or training. Ablations isolate the mechanism: at B=128, a single response-side continuation recovers about 89% of the gain over the prompt-window control, while additional futures provide smaller improvements. At B=128, LORE-KV raises the LongBench average on Qwen2.5-14B from 45.49 to 48.24 (+2.75) and the 16K RULER average on Mistral-7B from 45.20 to 51.05 (+5.85). Gains diminish at larger cache budgets and coexist with task-level regressions. LORE-KV incurs 1.46-2.77× AnDPro's per-sample wall-clock time as a one-time compression overhead across six dense and hybrid-attention backbones.

1 INTRODUCTION

Autoregressive large language models (LLMs) rely on key-value (KV) caching to reuse previously computed hidden states during decoding. Although KV caching accelerates generation, its memory and bandwidth costs grow with sequence length and batch size, making long-context inference increasingly expensive (Behnam et al., 2025; Li et al., 2025a; Łańcucki et al., 2025). KV-cache eviction reduces this cost by retaining only a subset of KV pairs, with existing methods estimating importance using recency or attention sinks (Xiao et al., 2024), accumulated or prompt-end attention (Zhang et al., 2023; Liu et al., 2023; Li et al., 2024), or key-space geometry (Devoto et al., 2024; Park et al., 2025).

A key challenge is that KV eviction happens before future decoding queries are known, so prompt-based scores may keep tokens that matter during prefill but not during generation. Future-aware methods reduce this mismatch using pseudo or synthetic queries (Wang et al., 2025b), but the benefit and cost of using multiple plausible futures remain unclear. Learned predictors can estimate future utility, but require model-specific training (Ahn et al., 2026; Moschella et al., 2026; Bui et al., 2026; Yang et al., 2026). Moreover, attention alone is incomplete because deletion impact also depends on the value vectors (Guo et al., 2024; Geng et al., 2025; Mai & Kim, 2026). These gaps motivate a training-free method that combines future-query estimation with output-aware token scoring.

To address these limitations, we propose LORE-KV (Lookahead Output-perturbation with Reliability-weighted Ensembles for Key-Value caches), a training-free method that estimates token importance using the queries the model is likely to encounter during generation. Prior future-aware methods estimate decoding demand from either a pseudo-response trajectory, as in LAQ, or synthetic queries from a fitted hidden-state distribution. LORE-KV instead samples multiple model-conditional autoregressive trajectories from the frozen target model and estimates fixed-budget token utility via reliability-weighted expected projected deletion cost over their query states. Our focus is the query reference: what multiple sampled futures add beyond one, and the explicit trade-off of additional compression-time compute for retained-cache quality. LORE-KV is training-free to deploy but incurs lookahead overhead on every request.

Contributions. Our contributions are threefold. First, we quantify and mechanistically characterize the query-reference mismatch between prompt-side and future decoding queries, and show that the benefit of future-aware eviction increases with this mismatch. Second, we use multiple short future trajectories to estimate which cached tokens are most important for upcoming generation, and softly weight more reliable trajectories. Third, we validate this mechanism through query controls and matched lookahead-token budget controls, future-query oracle analyses, and evaluations across six dense and hybrid-attention backbones, cache budgets, context lengths, and benchmarks.

References (66)