OVAL: Output-Aware Local Page Bases for KV Cache Retrieval

Ashkan Shahbazi, Chayne Thrash, Soheil Kolouri
10/5/2026
cs.LG

Official code: Ashkan13776/oval-kv (3 stars, Python, last commit 2026-10-30).

Abstract

Long context inference with large language models becomes increasingly expensive as attention must operate over an ever growing KV cache. Page sparse attention reduces this cost by representing each KV page compactly and retrieving only a subset for each query.

Show full abstract

Existing retrieval methods are designed to estimate attention scores or page relevance, but their objectives do not directly account for how approximation errors affect the resulting value weighted attention output. We introduce \method{}, an output aware page encoding derived from the joint structure of keys and values while preserving the key information needed for accurate retrieval. \method{} is training free and requires no additional value dependent statistics at inference time. Once constructed, its stored representation has the same size and decode time scoring cost as a key only spectral representation. Across long reasoning, long context understanding, and long generation benchmarks, \method{} consistently improves over the key only spectral baseline and performs competitively with recent KV cache compression and retrieval methods. On long reasoning benchmarks, it achieves strong avg@\(k\) performance across model benchmark pairs, while matching or surpassing leading baselines on several long context understanding and generation settings with modest decoding overhead. Code is available at \url{https://github.com/Ashkan13776/oval-kv}.

View on arXivView PDF

Code Implementations(1)

30Python, ShellSep 24, 20261 months ago

Similar Papers

Cite this paper

@article{shahbazi2026oval,
  title  = {OVAL: Output-Aware Local Page Bases for KV Cache Retrieval},
  author = {Ashkan Shahbazi and Chayne Thrash and Soheil Kolouri},
  year   = {2026},
  eprint = {2610.06686},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.06686v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.06686.svg)](https://codeofpaper.com/paper/2610.06686)

Discussion