WorksComputer Science
OVAL: Output-Aware Local Page Bases for KV Cache Compression
Abstract
Long-context decoding, whether over long reasoning traces, long videos, or robot episodes, is increasingly limited by the memory of the key-value (KV) cache. Page-retrieval sparse attention makes each decoding step cheaper by attending only to the top-scoring KV pages. However, it still stores every page exactly, and adds a small digest per page for scoring, so the cache ends up slightly larger than the full cache. We propose OVAL, which stores each page as a pair of output-aware low-rank bases that act as both the retrieval index and the storage. A key basis scores the page and rebuilds its keys when the page is selected, and a PCA basis rebuilds its values. The exact pages can then be dropped, and nothing extra is added to the cache. The key idea is that the key basis should be output-aware. A low-rank error in the keys perturbs the attention output at first order, but perturbs the page mass that retrieval ranks only at second order in expectation. OVAL therefore builds the key basis from a mix of key geometry (key PCA) and the attention-output error, with a per-head mixing weight set in closed form. At the same attended budget, OVAL is best or tied-best in eight of nine long-reasoning settings. It matches FullKV on MATH500 with 66% of its memory, is 1.25 points above the best baseline on AIME24 with 56%, and is on par with FullKV on LongBench~v2. On \mbox{Video-MME} and LVBench, it is within 0.32 points of exact-page retrieval at the same read, while storing 53% of the full cache instead of 103%. Its savings also stack with quantization and token pruning: with 4-bit bases, it is within 0.25 points of FullKV at 41% of its memory.
Code: https://github.com/Ashkan13776/oval-kv
Introduction
Reasoning traces, long documents, and videos all make the KV cache the main memory and bandwidth bottleneck of decoding [17]. A 64-frame video alone is about 13K visual tokens.
Page-retrieval methods for sparse attention build on paged KV memory [29]. They keep a compact key summary, or digest, for each cache page, and at each step attend only to the highest-scoring pages [9, 25, 39, 52]. This reduces how much is read per step, but not how much is stored. Every page keeps its exact keys and values, and the digests come on top, so these methods store 101–103% of FullKV (Figure 1a, Figure 2a). Since the cache stays resident for the whole generation, it is the stored footprint, not the per-step read, that limits the context length and batch size a device can serve.

Figure 1. (a) Page retrieval (e.g., Quest [52], FreeKV [39]) stores every exact page plus a key summary and loads the top-scoring pages. OVAL stores each page as two low-rank bases, half the memory at our ranks: a key basis built from keys and values (blue to green), also the retrieval index, and a PCA value basis. The key basis scores pages by approximate attention mass and rebuilds the selected pages with keys that preserve the attention output. (b) Robot-episode recall executed by a VLA policy: a LIBERO Watch-and-Do episode cached before the question. Each frame is shown as strongly as OVAL selects it (bars: share of its visual tokens selected, relative to the largest). Bottom: the same per frame pair, as Qwen2.5-VL encodes two frames together. Selection is highest at the start and rises again at the end, as in the average over all long Video-MME questions (Figure 7 and Figure 8). OpenVLA executes OVAL’s command and succeeds.

Figure 2. Memory and decode latency on long reasoning. (a) Accuracy versus retained KV memory per KV head and layer on AIME24 (R1-Distill Qwen-14B; broken y-axis; top axis: share of FullKV’s memory); FullKV and five baselines of Table 1; hollow markers on dashed lines: FreeKV and OVAL with 4- and 2-bit KIVI-style quantization (Table 5); large rings: Pareto-optimal. (b) Mean decode latency (Qwen-7B, Llama-8B) over a 16K-token AIME24 generation in FreeKV’s engine (decode time only). (c) Per-token latency along that generation (Qwen-7B). Details: Sections D.4 and D.5.
This leads to a simple question: can the index itself replace the pages, so that retrieval shrinks the cache instead of growing it?
Can the index be the storage? A digest only has to rank pages. To replace the keys, it must also preserve what the layer outputs. Existing digests and low-rank key approximations, however, are designed to preserve the logits [25, 49, 50, 52]. A logit perturbation changes the output only when it moves attention between tokens with different values. When attention within a page is close to uniform, two things happen:
the output error is first order in the discarded logit directions, weighted by the spread of the values;
the page-mass error that drives retrieval is second order in expectation over isotropic queries (first order per query; § 3.1).
So a basis that only looks at keys can rank pages well and still rebuild them poorly.
OVAL addresses this by building a page-local key basis that mixes key geometry and output sensitivity through a single coefficient . Values are stored as rank- PCA bases, and the exact pages are dropped. During decoding, the key basis scores the pages and only the selected ones are rebuilt (Figure 1a). Because one basis both indexes and stores each page, OVAL keeps the attention budget, and therefore the per-step read, of the retrieval methods it replaces. Quantization (bits per element) and visual-token pruning (which tokens enter the cache) act on other axes, and OVAL composes with both.
Contributions.
A retrieval index that is also the storage. In OVAL, each page is kept only as a low-rank key basis, which scores the page and rebuilds its keys on selection, plus a PCA value basis. The exact pages are dropped and no separate index is added, so OVAL stores 53–66% of the full cache (§ 3 and Figure 2).
An output-aware basis with a closed-form mixing rule. We analyze what the stored key basis must preserve (§ 3.1), which leads us to mix the attention-output error into the key-PCA objective. A closed-form rule sets this mix per head from unlabeled calibration traces, with no sweep. Replacing it with key PCA lowers accuracy in all but one long-reasoning setting (by up to 8.5 points; sign test ; § 4.6).
Strong accuracy at a fraction of the memory. At a matched attended budget, OVAL is best or tied-best in avg@8 in eight of the nine long-reasoning settings and Pareto-optimal in accuracy versus memory. On AIME24 with Qwen-14B, it is within 0.83 points of FullKV at 56% of its memory (Table 1 and Figure 2). It is on par with FullKV on LongBench v2 on all three models (Table 2).
| Benchmark | Metric | Full | Razor | RaaS | Quest | ArkVale | ShadowKV | InfiniGen | FreeKV | OVAL |
| R1-Distill Llama-8B | ||||||||||
| MATH500 | pass@ | 78.00 | 72.00 | 74.00 | 72.00 | 72.00 | 76.00 | 74.00 | 78.00 | 78.00 |
| MATH500 | avg@ | 67.25 | 60.50 | 62.50 | 62.00 | 62.50 | 60.25 | 66.50 | 66.75 | |
| AIME24 | pass@ | 80.00 | 46.67 | 66.67 | 73.33 | 80.00 | 63.33 | 70.00 | 76.67 | 80.00 |
| AIME24 | avg@ | 47.08 | 30.00 | 36.25 | 44.17 | 46.67 | 36.50 | 45.83 | 47.50 | |
| GPQA | pass@ | 82.00 | 60.00 | 64.00 | 76.00 | 72.00 | 78.00 | 46.00 | 86.00 | 76.00 |
| GPQA | avg@ | 39.75 | 34.25 | 33.50 | 37.25 | 39.75 | 36.25 | 27.50 | 41.25 | |
| Average | pass@ | 80.00 | 59.56 | 68.22 | 73.78 | 74.67 | 72.44 | 63.33 | 80.22 | 78.00 |
| Average | avg@ | 51.36 | 41.58 | 44.08 | 47.81 | 49.64 | 44.33 | 46.61 | 51.83 | |
| R1-Distill Qwen-7B | ||||||||||
| MATH500 | pass@ | 78.00 | 72.00 | 74.00 | 76.00 | 76.00 | 74.00 | 74.00 | 78.00 | 78.00 |
| MATH500 | avg@ | 71.75 | 66.75 | 67.00 | 68.00 | 68.25 | 64.75 | 70.00 | 70.00 | |
| AIME24 | pass@ | 83.33 | 65.33 | 73.33 | 76.67 | 73.33 | 73.33 | 63.33 | 83.33 | 80.00 |
| AIME24 | avg@ | 56.66 | 35.42 | 42.92 | 47.50 | 47.92 | 43.75 | 43.34 | 52.92 | |
| GPQA | pass@ | 72.00 | 60.00 | 58.00 | 72.00 | 72.00 | 70.00 | 58.00 | 74.00 | 76.00 |
| GPQA | avg@ | 35.75 | 32.50 | 33.25 | 38.75 | 34.25 | 33.50 | 35.50 | 39.50 | |
| Average | pass@ | 77.78 | 65.78 | 68.44 | 74.89 | 73.78 | 72.44 | 65.11 | 78.44 | 78.00 |
| Average | avg@ | 54.72 | 44.89 | 47.72 | 51.42 | 50.14 | 47.33 | 49.61 | 54.14 | |
| R1-Distill Qwen-14B | ||||||||||
| MATH500 | pass@ | 74.00 | 70.00 | 68.00 | 76.00 | 72.00 | 76.00 | 72.00 | 78.00 | 78.00 |
| MATH500 | avg@ | 70.25 | 59.75 | 64.75 | 67.25 | 66.25 | 65.00 | 67.00 | 67.50 | |
| AIME24 | pass@ | 86.67 | 46.67 | 73.33 | 83.33 | 76.67 | 83.33 | 76.67 | 83.33 | 83.33 |
| AIME24 | avg@ | 66.25 | 32.50 | 48.75 | 58.33 | 61.25 | 57.25 | 60.00 | 64.17 | |
| GPQA | pass@ | 82.00 | 68.00 | 80.00 | 80.00 | 86.00 | 86.00 | 58.00 | 86.00 | 86.00 |
| GPQA | avg@ | 53.25 | 38.50 | 44.25 | 51.25 | 53.75 | 51.75 | 38.00 | 56.00 | |
| Average | pass@ | 80.89 | 61.56 | 73.78 | 79.78 | 78.22 | 81.78 | 68.89 | 82.44 | 82.44 |
| Average | avg@ | 63.25 | 43.58 | 52.58 | 58.94 | 60.42 | 58.00 | 55.00 | 62.56 |
Table 1. Long reasoning (%, ). Average: mean of the three tasks. Subscripts: SE over 8 seeds. Full: FullKV, not ranked; Razor: RazorAttention. Gold and silver: best and second-best distinct score among the baselines and OVAL. Full and baseline numbers are as reported by FreeKV [39], including its rounding; OVAL runs in its exact setting and harness (§ 4.1, Section D.2).
| Benchmark | Metric | Full | Razor | RaaS | Quest | ArkVale | ShadowKV | InfiniGen | FreeKV | OVAL |
| Llama-3.1-8B Instruct | ||||||||||
| LongBench v2 | Overall | 29.22 | 27.44 | 28.23 | 28.43 | 28.63 | 25.45 | 28.56 | 29.22 | 30.02 |
| LongBench v2 | Short | 34.44 | 33.89 | 33.89 | 33.33 | 33.89 | 32.78 | 32.28 | 35.00 | 36.11 |
| LongBench v2 | Medium | 27.91 | 25.12 | 26.51 | 27.44 | 26.98 | 22.79 | 26.05 | 27.44 | 27.44 |
| LongBench v2 | Long | 23.15 | 21.30 | 22.22 | 22.22 | 23.15 | 18.52 | 24.07 | 23.15 | 25.00 |
| LongGenBench | CR | 80.03 | 35.90 | 76.63 | 78.03 | 39.36 | 79.28 | 76.68 | 78.03 | 77.87 |
| LongGenBench | CR×Acc | 26.82 | 12.20 | 26.00 | 27.71 | 10.36 | 30.66 | 26.21 | 27.62 | 28.64 |
| Qwen2.5-7B Instruct | ||||||||||
| LongBench v2 | Overall | 27.44 | 25.25 | 26.24 | 27.63 | 26.84 | 25.84 | 26.44 | 26.84 | 29.82 |
| LongBench v2 | Short | 36.11 | 32.78 | 35.56 | 36.67 | 36.11 | 32.22 | 32.22 | 34.44 | 36.67 |
| LongBench v2 | Medium | 23.72 | 21.86 | 21.86 | 22.79 | 22.33 | 20.00 | 23.26 | 22.33 | 27.44 |
| LongBench v2 | Long | 20.37 | 19.44 | 19.44 | 22.22 | 20.37 | 26.85 | 23.15 | 23.15 | 23.15 |
| LongGenBench | CR | 79.56 | 42.13 | 77.65 | 62.89 | 75.91 | 35.49 | 72.96 | 76.93 | 77.23 |
| LongGenBench | CR×Acc | 31.09 | 21.48 | 34.40 | 25.96 | 31.79 | 11.43 | 27.67 | 32.81 | 35.00 |
| Qwen2.5-14B Instruct | ||||||||||
| LongBench v2 | Overall | 33.40 | 34.19 | 32.60 | 33.80 | 34.19 | 34.79 | 32.31 | 34.19 | 34.99 |
| LongBench v2 | Short | 41.11 | 43.33 | 40.56 | 40.00 | 41.11 | 40.56 | 40.56 | 41.11 | 41.11 |
| LongBench v2 | Medium | 31.16 | 30.70 | 32.09 | 33.49 | 33.49 | 34.88 | 29.89 | 33.49 | 34.88 |
| LongBench v2 | Long | 25.00 | 25.93 | 20.37 | 24.07 | 24.07 | 25.00 | 23.95 | 24.07 | 25.00 |
| LongGenBench | CR | 65.84 | 26.48 | 62.29 | 45.49 | 45.31 | 21.25 | 63.02 | 65.46 | 64.06 |
| LongGenBench | CR×Acc | 29.35 | 13.89 | 29.79 | 19.76 | 19.65 | 8.25 | 26.08 | 29.39 | 28.83 |
Table 2. LongBench v2 accuracy (%, overall and by length; single run) and LongGenBench completion rate CR and CR×Acc (%). Full, ranking, and baseline sources as in Table 1.
Video and robot episodes. On Video-MME [16] and LVBench [55], OVAL is the only method we evaluate that lowers both storage (53%) and per-step read (about 15%) without discarding tokens. It is on average 0.25 points below Quest and FreeKV, which store 103% (§ 4.4). We also test recall of cached LIBERO [37] robot episodes, acted on by a VLA policy.
Composes with quantization and pruning. With 4-bit KIVI-style quantization, OVAL is within 0.25 points of FullKV at 41% of its memory on MATH500, and every quantized OVAL is at or above full-precision FreeKV on both tasks at 21–40% of its memory (Table 5). On the cache that VisionZip keeps, it stores about 27% of FullKV (Table 14).
| FreeKV | OVAL | |||||
| FP16 | 4-bit | 2-bit | FP16 | 4-bit | 2-bit | |
| MATH500, Qwen-7B | ||||||
| Memory | 1923 | 988 | 818 | 1237 | 776 | 691 |
| avg@8 | 70.00 | 69.25 | 69.25 | 71.75 | 71.50 | 70.75 |
| AIME24, Qwen-14B | ||||||
| Memory | 5200 | 2087 | 1521 | 2830 | 1361 | 1090 |
| avg@8 | 64.17 | 63.75 | 63.33 | 65.42 | 65.00 | 64.58 |
Table 5. FreeKV and OVAL with KIVI-style quantization (avg@8, %; 8 seeds) on MATH500 (Qwen-7B) and AIME24 (Qwen-14B, Figure 2a). Memory: stored KiB per KV head and layer; FullKV stores 1873 and 5050.
| Method | Stored (%) | Video-MME Qwen2.5-VL | Video-MME LLaVA-Video | LVBench Qwen2.5-VL | LVBench LLaVA-Video | LIBERO-Recall Qwen2.5-VL | LIBERO-Recall LLaVA-Video |
| FullKV () | 100 / 100 | 63.70 | 62.89 | 41.25 | 41.64 | 40.50 | 40.50 |
| OVAL | 53 / 53 | 61.93 | 61.37 | 39.70 | 40.87 | 38.33 | 37.17 |
| VisionZip{sup}‡` 50% | 50 / 52 | 62.93 | 63.44 | 39.90 | 41.51 | 39.83 | 37.50 |
| VisionZip{sup}‡` 25% | 26 / 28 | 61.78 | 61.11 | 38.48 | 40.35 | 38.00 | 37.33 |
| VisionZip{sup}‡` 50% + OVAL | ≈27 / ≈28 | 61.70 | 61.56 | 37.90 | 40.35 | 38.50 | 37.83 |
Table 14. Composition with token pruning, accuracy (%) under the query-agnostic protocol with frames, on all questions of Video-MME (2,700), LVBench (1,549) and LIBERO-Recall (600). VisionZip-50%, VisionZip-25% and OVAL alone are the rows of Table 3 and Table 12. Stored: stored KV cache as a share of FullKV () on Video-MME Qwen2.5-VL/LLaVA-Video (memory model of Section D.4); on LIBERO-Recall the shares differ by less than one point. {sup}‡Our port ({xref}Section D.2`).
Our code is available at https://github.com/Ashkan13776/oval-kv.
Related Work
Page and token retrieval. OVAL belongs to the family of retrieval methods. These methods score cache entries cheaply at each step and attend only to the top-scoring ones. They differ mainly in how they summarize a page:
Quest bounds page logits with per-channel key extremes [52];
ArkVale uses bounding geometry and recalls evicted pages [9];
UNIQUE uses key means and dispersion [11];
FreeKV selects pages speculatively with the previous query and corrects for drift [39];
LOCKS scores pages with a page-local key PCA summary [25], which is exactly OVAL’s key basis at .
All of these digests only rank pages: they estimate or preserve the page logits, so every exact page is still kept next to its digest. Several retrieval methods offload the exact cache to host memory and fetch only the selected entries [9, 30, 39, 50]. This moves the footprint off the GPU, but does not shrink it. In OVAL, by contrast, the index replaces the page.
At the token level, methods score keys in reduced spaces [30, 47, 49], use quantized search, hashing, or clustering [10, 32, 38, 43, 65], learn the sparsity pattern [2, 18, 41, 59, 61], or adapt the budget [36]. Again, all of them keep the original entries.
Orthogonal axes. Other approaches shrink the cache along different axes, and can be combined with OVAL. Grouped-query attention [1] and quantization [23, 62] make each entry smaller. Eviction keeps a subset of entries and drops the rest for good. StreamingLLM keeps attention sinks and a recent window [57]; H2O keeps heavy hitters by accumulated attention [67]; SnapKV selects entries with an observation window at the end of the prompt [33]; Ada-KV adapts the budget per head [14]; and RaaS keeps the pages that recent reasoning steps attended [24]. RazorAttention and DuoAttention keep the full cache only in retrieval heads [51, 58].
Output-aware criteria have also been used for eviction and quantization. CriticalKV [15] and OBCache [20] rank entries for eviction by the output perturbation their removal causes, and OptR [62] rotates the cache before 2-bit quantization to protect the output. Finally, shared low-rank projections apply one basis to all tokens of a head. The basis may come from key PCA [6, 42, 49, 50], the query–key interaction [31], or the layer output error [5]; ShadowKV pairs it with retrieval. OVAL instead fits a separate output-aware basis to each page.
KV cache for video LLMs and robot episodes. In streaming and multi-turn use, a video is cached before the question, and the same cache serves every later question [12, 27, 34]. ReKV retrieves query-relevant video KV entries and offloads the rest [12]. InfiniPot-V [27] and KVzip [26] compress the cache without knowing the query. Other methods quantize [54], reload chunks [44], or merge and prune visual tokens [8, 48, 53, 60]. Recalling robot episodes raises the same problem; we study it on LIBERO with the OpenVLA policy [28, 37].
Method
OVAL is a page-retrieval method whose index also stores the page. Each page keeps two things:
a low-rank key basis, built from key geometry and the attention-output error, which scores the page and replaces its exact keys;
a PCA value basis, which replaces its exact values.
Nothing else is added to the cache.
Notation. We describe a single KV head ; keys and queries include RoPE. is the set of query heads that share this KV head, and is the output-projection block of query head . The cache is split into pages of tokens, with keys and values (rows ). At each decoding step, the head scores all pages and attends over the top .
Roadmap. § 3.1 derives the key basis from the output error it causes. § 3.2 and § 3.3 show how keys and values are rebuilt, and § 3.4 explains how the mixing coefficient is set for each head.
Output-aware page basis
The key basis has two jobs. First, it scores the page for retrieval, which depends on the page’s attention mass. Second, it rebuilds the page’s keys for attention, which affects the page’s output. We look at both through the error that a low-rank key basis introduces, in expectation over isotropic queries, . This is a simplifying model, but the per-head rule built on it (§ 3.4) lands close to the best in practice (Figure 6). A whitened version for anisotropic queries is derived in Section B.6. Let and be the page means and , the centered keys and values; we drop the index when it is clear. For a query , the page’s log attention mass is
Figure 6. How far the rule lands from each head’s best : cumulative distribution over KV heads (layers , held-out MATH500 calibration traces) of the held-out output error at above the best of 21 grid values. Values below , including exact hits, are drawn at .
with . Pages with a larger receive a larger share of the attention. A basis keeps exactly and approximates the centered keys inside an -dimensional subspace with orthonormal basis and projector . This perturbs the within-page logits by .
What the error does. The within-page attention output is . Expanding around uniform within-page attention gives (Theorems 8 and 12):
where and bounds and .
These two expansions behave quite differently. The output error is first order in the discarded logit directions, and it is weighted by the value deviations . The mass error that drives retrieval is only second order in expectation over isotropic queries, because the cross term vanishes (per query, it is still first order). The takeaway is that a basis serving both retrieval and attention should look at the values (Theorem 10), unlike key-only summaries [25, 49, 52]. Note that the value covariance by itself is not enough: the output depends on how keys and values pair (Theorem 9).
Hybrid objective. The analysis above is local. The output term is the leading error only near uniform attention (Theorem 8), while key energy bounds both errors at any logit scale (Theorems 6 and 12). Since neither criterion is optimal in general, we write both errors as quadratic risks in and mix them. We measure output errors in the residual stream, through the head’s output projection . The expected squared logit error and linearized output error are then
with . Normalizing each risk by its total energy and mixing them with gives one quadratic risk with matrix
By the Ky Fan principle [13], the optimal spans the top- eigenvectors of (Theorems 3 and 13). The two ends of the range are easy to interpret: is page-local key PCA (the LOCKS summary, Section 2), and keeps the directions that move the output the most. Values in between trade key energy for output sensitivity, and § 3.4 picks for each head.
Computation. Since , we can solve the eigenproblem at size . With
and , we have ; if holds the top eigenpairs, then (Section B.4). The basis is
The basis is built once, when the page is complete, in time, and is computed once per layer.
Selecting pages from the basis. For a query head , the score of page is the log-mass of its reconstructed keys :
This costs per page instead of . The query heads of a group are then combined as
and each KV head selects its pages with the largest .
Key reconstruction from the same basis
Since the basis is a rank- factorization of the centered keys, it can stand in for them directly. The selected pages are rebuilt as
and attention uses in place of . The logits of a rebuilt page are , which is exactly the approximation analyzed in § 3.1. So Eq. (2) gives the error of attending to rebuilt keys, and the output term of protects the directions this error depends on (Section B.5). The same rank is used for scoring and reconstruction, and only the selected pages are rebuilt, at a cost of per step.
Value basis
Values are never scored, so their basis only has to rebuild them. Each page stores a rank- PCA basis , where holds the top- right singular vectors of and , and the selected values are rebuilt as
the best rank- approximation of the centered values.
A closed-form rule of thumb for
The best balance between key fidelity () and output sensitivity () need not be the same for every head. We could sweep against labels, but that costs a full decode per value. Instead, we measure each head’s output error at the two endpoints on a few calibration traces, and take the minimizer of a simple interpolation in closed form. Let be the FullKV output of query head and the output of OVAL at . The error KV head adds to the residual stream is
Summing over the calibration queries,
Modeling gives the convex quadratic , minimized by
Algorithm 1 OVAL for one KV head (one layer).
Require: ranks (keys), (values); page budget ; from Eq. (12), computed once offline
when a page of tokens is complete:
means of ; centered keys, values
top- eigenvectors of (Eq. (5));
rank- PCA of
store and ; drop
at each decode step, queries , :
for every page (Eq. (7))
the pages with the largest
for : ,
attend over exact sink, , exact recent
For most heads, the measured error is close to . On held-out MATH500 traces (Qwen-7B, Llama-8B), the median excess over the best grid is below 1% (Section C.3 and Figure 6). Because is measured with real queries, the rule also partly makes up for what the isotropic model misses.
Each model is calibrated once per setting, offline (§ 4.1 and D.3). Since only enters the basis construction, the per-head does not change the decode cost. Algorithm 1 puts all the pieces of OVAL together.
Experiments
Setup
We evaluate OVAL in three regimes: long reasoning (long outputs), long-context understanding and generation (long inputs and outputs), and video and robot episodes (long visual inputs).
Models and benchmarks. Long reasoning. DeepSeek-R1-Distill Llama-8B, Qwen-7B, and Qwen-14B [21] on MATH500 [22, 35], AIME24 [63, 64], and GPQA [46] (50, 30, and 50 problems; samples per problem, avg@8 and pass@8). Long context. Llama-3.1-8B, Qwen2.5-7B, and Qwen2.5-14B Instruct [19, 45] on LongBench v2 [4] and LongGenBench [56]. For both of these settings, we follow FreeKV’s evaluation [39] exactly: same problems, seeds, prompts, decoding, budgets, and metrics. Video and robot episodes. LLaVA-Video-7B-Qwen2 [66] and Qwen2.5-VL7B-Instruct [3] on Video-MME [16] and LVBench [55]. We also build LIBERO Watch-and-Do, a robot-episode recall task based on LIBERO [37], whose answers are executed by the OpenVLA policy [28] (§ 4.4).
Baselines. All retrieval and eviction methods attend to the same per-step budget, including the exact sink and recent tokens (Table 9 and Section D.2). For long reasoning and long context, we compare with the retrieval methods Quest [52], ArkVale [9], ShadowKV [50], InfiniGen [30], and FreeKV, and the eviction methods RazorAttention [51] and RaaS [24]. For video, we compare with Quest, FreeKV, the retriever ReKV [12], and the token reducer InfiniPot-V [27]. SnapKV [33] (†) and VisionZip [60] (keeping 50% and 25% of the visual tokens) are included for context. FullKV is the reference throughout; Section A lists which numbers are taken from prior work and which we rerun.
Table 9: Benchmark protocols. The attention budget is the total number of tokens attended per decoding step, including the exact sink and recent tokens, in every setting and in the latency engine (Section D.5).
| Long reasoning | LongBench v2 | LongGenBench | |
| Data | MATH500 50, AIME24 30, GPQA 50 | 503 (S/M/L 180/215/108) | 400 (100 per type) |
| Selected tokens | 1024 (32 pages) | 1792 (56 pages) | 1024 (32 pages) |
| Exact sink / recent (each) | 512 | 128 | 512 |
| Tokens attended | 1024 + 512 + 512 = 2048 | 1792 + 128 + 128 = 2048 | 1024 + 512 + 512 = 2048 |
| Decoding | , top-p 0.95 | greedy | , top-p 0.95 |
| Max. generation | 16,384 | 128 | 16,000 |
| Input | unchanged | middle-truncated to 65,536 | unchanged |
| Stop | EOS | EOS | *** finished |
| Seeds | 42–49 () | 42 | 42 |
| Metric | avg@8, pass@8 | Overall, Short, Med., Long | CR, CR×Acc |
Table 9.
OVAL configuration. Every setting uses the same configuration: 32-token pages, rank-8 key bases for scoring and reconstruction, rank-16 PCA value bases, and a per-head from the rule of § 3.4. A rank- basis with its coefficients costs B per page and KV head (). The exact keys or values of a page take 8192 B, so the two bases together take half the memory of the exact page.
The rule is always calibrated on held-out data:
long reasoning: once per model, on six MATH500 problems outside the evaluation subset (four to fit, two to validate; separate sampling seed), shared by the three tasks;
long context: on held-out documents and prompts;
video: once per model, on six LLaVA-Video-178K clips, and reused for the robot task.
Full details are in Sections D, D.2 and D.3.
Figure 3. Accuracy versus stored KV cache (Watch-and-Do: task success; ReKV at its full stored cache). Rings: Pareto front among methods that read ≈2K tokens per step (OVAL, Quest, FreeKV, ReKV, InfiniPot-V; SnapKV† excluded); FullKV is a reference. Hollow grey: token pruning and fewer frames, which read every token they cache; legend: read per step relative to OVAL (layers 1–27).
Long reasoning
Accuracy. Table 1 shows the results. Averaged over the three tasks, OVAL’s avg@8 is 1.6 points above FullKV on Llama-8B and 0.8 points above on Qwen-14B, and 1.7 points below on Qwen-7B. It has the highest mean of all methods on Llama-8B and Qwen-14B, and it is best or tied-best in all but one avg@8 cell. Interestingly, it exceeds FullKV on GPQA for every model, by 3.75–4.25 points.
On MATH500 and AIME24, OVAL is within 1 point of FullKV in five of the six cells. The one exception is Qwen-7B on AIME24 (47.92 vs. 56.66), and this gap mostly closes with rank-16 keys, which reach 55.42 (Table 4). In pass@8, OVAL is best or tied-best in seven of the nine cells.
| MATH500 | AIME24 | GPQA | |
| OVAL (main) | 71.75 | 47.92 | 39.50 |
| Key | 64.25 | 24.17 | 23.75 |
| Key | 69.25 | 37.92 | 33.00 |
| Key | 71.75 | 55.42 | 37.50 |
| Value | 60.75 | 21.25 | 21.75 |
| Value | 69.50 | 40.00 | 33.50 |
| Value | 70.25 | 46.67 | 33.75 |
| Value (main) | 71.75 | 47.92 | 39.50 |
| Shared (key PCA) | 71.75 | 43.33 | 38.50 |
| Shared | 71.75 | 47.08 | 38.50 |
| Shared | 70.50 | 42.92 | 36.50 |
| Shared | 70.25 | 45.00 | 33.75 |
| Shared (output) | 70.50 | 43.75 | 34.25 |
Table 4. Ablations on R1-Distill Qwen-7B (avg@8, %). Each block changes one component of OVAL (shaded): the key reconstruction rank (pages are still scored at rank 8), the value rank , or one shared by all heads instead of the per-head rule.
Accuracy versus stored memory. Accuracy alone does not tell the full story, since the methods store very different amounts. Figure 2a plots accuracy against stored memory on AIME24 with Qwen-14B. The retrieval baselines all store 101–103% of FullKV’s memory (FullKV: 5050 KiB). OVAL stores 2830 KiB, which is 56% of FullKV’s memory and 54% of FreeKV’s. At this footprint, it is 1.25 points above FreeKV and 0.83 below FullKV (65.42 vs. 64.17 and 66.25%).
Adding KIVI quantization (Table 5), the OVAL variants form the whole Pareto front between eviction (RaaS) and FullKV. In a similar MATH500 study with Qwen-7B, OVAL matches FullKV (71.75%) at 66% of its memory, as does its exact-page variant at 115% (Section C.2).
Long-context understanding and generation
We test long inputs on LongBench v2 (503 questions, 64K context) and long outputs on LongGenBench (16K tokens).
Results. On LongBench v2, OVAL is on par with FullKV (Table 2), and it has the highest overall accuracy on each model. Broken down by length, it is best or tied-best on all three splits for Llama-3.1-8B, and on the Medium split for all three models.
On LongGenBench, OVAL’s completion rate (CR) is within 2.33 points of FullKV. Its CRAcc is at most 0.52 points below FullKV (+1.82, +3.91, and −0.52 points across the three models), and it is the highest of all methods on Qwen2.5-7B.
Video understanding
Video is where the cache is largest, so it is a natural test for OVAL.
Setup. Video-MME (2700 questions) and LVBench (1549 questions on hour-long videos) use 64 frames. That is about 13K visual tokens, nearly all of the cache, and they are cached before the question is asked. We report two quantities: Stored, the GPU + host KV cache relative to FullKV, and Read, the tokens attended per step relative to the visual tokens. All rows of Table 3 use the same questions, so comparisons between them are paired (intervals in Section G).
| Method | Stored (%, Q/L) | Read (%, Q/L) | KV (MiB, Q/L) | Qwen2.5-VL S | Qwen2.5-VL M | Qwen2.5-VL L | Qwen2.5-VL All | LLaVA-Video S | LLaVA-Video M | LLaVA-Video L | LLaVA-Video All | LVBench Qwen | LVBench LLaVA | W&D Qwen | W&D LLaVA |
| Reference | |||||||||||||||
| FullKV (N) | 100 / 100 | 101.0 / 104.8 | 725 / 771 | 75.11 | 63.78 | 52.22 | 63.70 | 75.56 | 61.67 | 51.44 | 62.89 | 41.25 | 41.64 | 40.83 | 32.08 |
| FullKV (N/2) | 50.5 / 50.6 | 51.0 / 53.0 | 366 / 390 | 72.67 | 61.11 | 51.22 | 61.67 | 74.00 | 57.56 | 51.00 | 60.85 | 38.41 | 39.38 | – | – |
| Fewer tokens cached (read = stored) | |||||||||||||||
| VisionZip‡ 50% | 50.5 / 52.3 | 51.0 / 54.8 | 366 / 403 | 74.56 | 62.33 | 51.89 | 62.93 | 76.00 | 62.33 | 52.00 | 63.44 | 39.90 | 41.51 | – | – |
| InfiniPot-V‡ 50% | 50.5 / 52.3 | 51.0 / 54.8 | 366 / 403 | 73.22 | 63.44 | 51.67 | 62.78 | 74.22 | 61.44 | 50.56 | 62.07 | 40.41 | 41.64 | – | – |
| VisionZip‡ 25% | 25.7 / 28.5 | 26.0 / 29.8 | 186 / 219 | 72.44 | 60.89 | 52.00 | 61.78 | 72.89 | 60.56 | 49.89 | 61.11 | 38.48 | 40.35 | – | – |
| ≈2K tokens read per step | |||||||||||||||
| InfiniPot-V‡ | 16.4 / 19.5 | 16.6 / 20.5 | 119 / 150 | 68.00 | 58.11 | 49.78 | 58.63 | 70.00 | 57.89 | 47.78 | 58.56 | 36.60 | 38.99 | 37.92 | 24.17 |
| ReKV‡ | 100.1 / 100.2§ | 14.8 / 15.0 | 726 / 772§ | 69.67 | 57.89 | 52.00 | 59.85 | 70.89 | 57.78 | 50.44 | 59.70 | 37.38 | 39.70 | 39.5 | … |
| SnapKV† | 18.5 / 17.6 | 15.6 / 15.2 | 134 / 136 | 64.33 | 59.00 | 49.44 | 57.59 | 64.33 | 56.00 | 46.67 | 55.67 | 36.09 | 36.22 | 37.92 | 30.00 |
| Quest | 103.0 / 103.0 | 15.6 / 15.2 | 747 / 794 | 74.22 | 62.22 | 52.67 | 63.04 | 75.00 | 60.56 | 49.89 | 61.81 | 38.99 | 41.32 | 42.08 | 34.58 |
| FreeKV | 103.0 / 103.0 | 15.6 / 15.2 | 747 / 794 | 73.78 | 61.22 | 52.56 | 62.52 | 74.44 | 60.56 | 49.33 | 61.44 | 38.48 | 42.16 | 42.92 | 32.50 |
| OVAL | 53.1 / 53.0 | 15.6 / 15.2 | 385 / 409 | 72.56 | 62.22 | 51.00 | 61.93 | 74.44 | 60.56 | 49.11 | 61.37 | 39.70 | 40.87 | 42.50 | 30.83 |
Table 3. Accuracy (%) on Video-MME (S/M/L, All) and LVBench, and Watch-and-Do task success (%); “–”: not run. Every row is our run on the same questions. Stored: stored KV cache (Section D.4) as a share of FullKV with frames (Video-MME). Q/L: Qwen2.5-VL/LLaVA-Video. Read: tokens attended per decoding step (layers 1–27, text included) as a share of the visual tokens. †: upper bound, not ranked. ‡: our port. §: keeps the full cache. Bold, dark, light: best three per column within the ≈2K-read block. W&D: OpenVLA success, 240 episodes (oracle command 75.83%, random 21.25%); KV as Video-MME (Table 11).
Comparison with exact-page retrieval. Quest, FreeKV, and OVAL all read 2048 tokens per step, with the same page size and the same exact sink and recent windows. The difference is what they attend to: Quest and FreeKV attend to exact pages chosen by digests, while OVAL attends to rebuilt pages chosen by its bases. At 52% of their storage, OVAL is within 0.32 and 0.18 points of Quest and FreeKV on average, and both paired intervals contain zero ([−0.96, +0.30] and [−0.82, +0.44]). All three trail FullKV, by 1.1, 1.2, and 1.4 points on average. So most of OVAL’s gap to FullKV comes from reading only 15% of the tokens, not from the bases themselves.
Other methods at the same read. FullKV leads OVAL by 0.8–1.8 points. Among methods with a similar read, OVAL leads ReKV{sup}‡, which keeps the full cache, by 1.9–3.9 points, and InfiniPot-V{sup}‡ (16.6–20.5% read) and SnapKV{sup}†` by 2.6–7.2 points. In other words, OVAL is the only method below full storage that stays within 1.8 points of FullKV, and it is more accurate than ReKV and InfiniPot-V in all four settings. At this read, it also has the best LVBench accuracy with Qwen2.5-VL (39.70) and ties for the best Video-MME Medium accuracy on both models (62.22 and 60.56).
Token pruning. Token pruning and using fewer frames are a different trade-off: these methods read everything they store. At OVAL’s storage, pruning (VisionZip-50%, InfiniPot-V-50%) is 0.8–1.0 points more accurate on average, but reads 3.4× more per step. Simply caching half the frames, FullKV (), is 0.89 points below OVAL.
A useful property of OVAL is that its attended set stays at 2048 tokens as the video grows. With 128 frames, it stores 104% of FullKV-64 and scores 2.1 points higher on long Video-MME videos (Qwen2.5-VL). VisionZip-50% is within 0.11 points there, but reads 6.5× more (Table 15). The two approaches also compose: VisionZip-50% + OVAL is within 0.6 points of VisionZip-25% at 27–28% storage (Table 14).
| Method | Stored (%) | Read (%) | Acc. (%) | vs FullKV () | |
| FullKV | 32 | 50.5 | 51.0 | 51.22 | – |
| FullKV | 64 | 100.0 | 101.0 | 52.22 | – |
| OVAL | 64 | 53.1 | 15.6 | 51.00 | – |
| VisionZip‡ 50% | 64 | 50.5 | 51.0 | 51.89 | – |
| FullKV | 128 | 199.0 | 201.0 | 54.78 | +2.56 |
| VisionZip‡ 50% | 128 | 100.0 | 101.0 | 54.22 | +2.00 |
| OVAL | 128 | 104.4 | 15.6 | 54.33 | +2.11 |
Table 15. More frames at matched memory, Qwen2.5-VL on the Video-MME Long split (900 questions), query-agnostic protocol. Stored: mean stored KV cache per question as a share of FullKV with (memory model of Section D.4). : paired difference to FullKV () in points. Read: tokens attended per decoding step (layers 1–27, text included) as a share of the visual tokens of frames. ‡Our port (Section D.2).
Robot-episode recall with a VLA policy. In LIBERO Watch-and-Do, the video LLM watches cached robot demonstrations and picks one of four commands, which OpenVLA then executes. OVAL picks the right command in 54.17% of episodes with Qwen2.5-VL (tied best; FullKV: 53.33) and 41.25% with LLaVA-Video (Table 3 and Table 11). We also ask multiple-choice questions about such episodes (LIBERO-Recall; each). On first-task questions, OVAL matches FullKV (55 vs. 54%, and 61 vs. 62%), while InfiniPot-V (≈2K) drops to 31 and 41% (chance is 25%; Table 13). Since the answers here are short, we time decoding on long text generation instead (§ 4.5).
| Method | Qwen2.5-VL KV | Qwen2.5-VL Cmd. | Qwen2.5-VL Succ. | LLaVA-Video KV | LLaVA-Video Cmd. | LLaVA-Video Succ. |
| Oracle command | – | 100 | 75.83 | – | 100 | 75.83 |
| Random command | – | 24.58 | 21.25 | – | 24.58 | 21.25 |
| FullKV () | 778 | 53.33 | 40.83 | 766 | 43.33 | 32.08 |
| InfiniPot-V{sup}‡ | 126 | 47.08 | 37.92 | 146 | 30.00 | 24.17 |
| ReKV{sup}‡ | 778{sup}§ | 49.17 | 39.58 | 768{sup}§ | 31.25 | 24.17 |
| SnapKV{sup}† | 136 | 47.92 | 37.92 | 135 | 39.58 | 30.00 |
| Quest | 801 | 52.92 | 42.08 | 789 | 46.25 | 34.58 |
| FreeKV | 801 | 54.17 | 42.92 | 789 | 42.50 | 32.50 |
| OVAL | 413 | 54.17 | 42.50 | 407 | 41.25 | 30.83 |
Table 11. LIBERO Watch-and-Do: correct command chosen by the planner (Cmd., %), OpenVLA task success (Succ., %), and stored KV cache per episode (MiB); 240 episodes per arm, all methods except FullKV read about 2K tokens per step (InfiniPot-V with LLaVA-Video: about 2.7K). Marks as in Table 3.
| Method | Budget | ||||||||||||||
| \multicolumn{7}{c}{Qwen2.5-VL} | \multicolumn{7}{c}{LLaVA-Video} | ||||||||||||||
| Pres. | Abs. | First | Last | After | Before | All | Pres. | Abs. | First | Last | After | Before | All | ||
| FullKV () | 100% | 36.00 | 40.00 | 54.00 | 58.00 | 29.00 | 26.00 | 40.50 | 48.00 | 28.00 | 62.00 | 50.00 | 28.00 | 27.00 | 40.50 |
| FullKV () | 50% | 34.00 | 35.00 | 50.00 | 48.00 | 33.00 | 26.00 | 37.67 | 45.00 | 29.00 | 63.00 | 42.00 | 28.00 | 24.00 | 38.50 |
| VisionZip{sup}‡` | 50% | 36.00 | 36.00 | 55.00 | 60.00 | 24.00 | 28.00 | 39.83 | 41.00 | 29.00 | 62.00 | 43.00 | 27.00 | 23.00 | 37.50 |
| InfiniPot-V{sup}‡` | 50% | 38.00 | 40.00 | 42.00 | 59.00 | 30.00 | 22.00 | 38.50 | 39.00 | 28.00 | 56.00 | 53.00 | 26.00 | 25.00 | 37.83 |
| VisionZip{sup}‡` | 25% | 36.00 | 39.00 | 54.00 | 49.00 | 23.00 | 27.00 | 38.00 | 46.00 | 27.00 | 56.00 | 42.00 | 29.00 | 24.00 | 37.33 |
| InfiniPot-V{sup}‡` | ≈15% | 33.00 | 42.00 | 31.00 | 51.00 | 23.00 | 17.00 | 32.83 | 34.00 | 27.00 | 41.00 | 46.00 | 27.00 | 25.00 | 33.33 |
| ReKV{sup}‡` | ≈15% | 32.00 | 31.00 | 49.00 | 55.00 | 26.00 | 22.00 | 35.83 | 38.00 | 27.00 | 59.00 | 38.00 | 20.00 | 26.00 | 34.67 |
| SnapKV{sup}†` | ≈15% | 27.00 | 33.00 | 37.00 | 66.00 | 30.00 | 17.00 | 35.00 | 34.00 | 34.00 | 56.00 | 55.00 | 19.00 | 26.00 | 37.33 |
| Quest | ≈15% | 29.00 | 39.00 | 53.00 | 56.00 | 24.00 | 24.00 | 37.50 | 42.00 | 24.00 | 62.00 | 53.00 | 26.00 | 28.00 | 39.17 |
| FreeKV | ≈15% | 37.00 | 34.00 | 48.00 | 54.00 | 23.00 | 27.00 | 37.17 | 40.00 | 24.00 | 59.00 | 49.00 | 25.00 | 26.00 | 37.17 |
| OVAL | ≈15% | 33.00 | 34.00 | 55.00 | 53.00 | 25.00 | 30.00 | 38.33 | 40.00 | 29.00 | 61.00 | 45.00 | 21.00 | 27.00 | 37.17 |
Table 13. LIBERO-Recall accuracy (%) by question type (100 questions each) and overall (All, 600), frames. Budget and marks as in Table 12; ranking within the matched ≈15% budget, per column, SnapKV excluded.
Decode latency
Storing less is only useful if decoding stays fast. We time OVAL on a 16K-token AIME24 generation in FreeKV’s engine [39], storing only the bases of the page keys and values (Figure 2b,Figure 2c). OVAL takes 40 and 47 ms per token on Qwen-7B and Llama-8B. This is 11% and 12% above FreeKV (36 and 42 ms), and 1.8× and 3.0× faster than ArkVale (72 and 143 ms; Section D.5). Building the page bases adds a one-time prefill cost, which shrinks relative to the prompt as the prompt grows (Section D.6).
Ablations
Ranks. Table 4 explains our choice of rank-8 keys and rank-16 values. Lower ranks lose accuracy on every task (up to 10.00 points for rank-4 key reconstruction and 5.75 for ), while rank-16 keys nearly double the key memory. We stop the value sweep at for a simple reason. The centered values of a 32-token page span at most 31 directions, so a rank-32 value basis is exact, but it would store even more than the exact values (10496 vs. 8192 B). Rank 16 keeps half of these directions, is nearly lossless, and stores 66% of the exact values.
Is output-awareness needed? Yes. Replacing the per-head rule with key PCA (), with everything else fixed and both arms averaged over the same 8 seeds, lowers avg@8 in eight of the nine settings and ties in the ninth (mean 2.91 points, range 0–8.5; exact sign test ; Table 6). Going to the other extreme does not help either: on R1-Distill Qwen-7B, the output term alone () is on average no better than key PCA, as § 3.1 suggests. The per-head rule also matches or exceeds the best shared , even though that one was selected on the evaluation set (Table 4).
| Model | Task | Rule | Rule − | |
| Qwen-7B | MATH500 | 71.75 | 71.75 | 0.00 |
| AIME24 | 43.33 | 47.92 | +4.58 | |
| GPQA | 38.50 | 39.50 | +1.00 | |
| Llama-8B | MATH500 | 66.75 | 67.25 | +0.50 |
| AIME24 | 40.83 | 47.50 | +6.67 | |
| GPQA | 35.50 | 44.00 | +8.50 | |
| Qwen-14B | MATH500 | 68.25 | 69.25 | +1.00 |
| AIME24 | 65.00 | 65.42 | +0.42 | |
| GPQA | 54.00 | 57.50 | +3.50 | |
| Mean over the nine cells | +2.91 | |||
| Sign test: positive / negative / tie | 8 / 0 / 1 | |||
| Sign test: (two-sided) | 0.008∗ |
Table 6. Per-head rule versus key PCA () (avg@8, %), rank-8 keys, values at PCA rank , on the evaluation set of Table 1; both arms are means over the same 8 seeds (42–49). Rule: OVAL in Table 1; : one shared by all heads. The last column is the difference in points. Sign test: exact two-sided sign test over the nine cells, ties excluded; ∗: significant at .
Composing with quantization. Quantization lowers the bits per element, while OVAL lowers the number of elements per page, so the two savings multiply. We apply KIVI-style [40] quantization (keys per channel, values per token) to OVAL’s bases and coefficients (Table 5). OVAL loses 0.25–0.42 points at 4 bits (at 41% and 27% of FullKV’s memory) and 0.84–1.00 points at 2 bits (37% and 22%). This is about as much as FreeKV loses when its exact pages are quantized (0.42–0.84). At each bit width, OVAL stays 1.25–2.25 points above quantized FreeKV while using 65–84% of its memory.
Conclusion
OVAL lets page retrieval for sparse attention store less than the full cache instead of more. Each page is kept only as output-aware low-rank bases, which both index the page and replace its exact entries. The key basis scores the page and rebuilds its keys. Because the rebuilt keys feed the attention output, its objective mixes key geometry with the output error, using a per-head weight that is set in closed form, without a sweep.
At a matched attended budget, OVAL matches FullKV on MATH500 (Qwen-7B) with 66% of its memory, is within 0.83 points on AIME24 (Qwen-14B) with 56%, and is on par with FullKV on LongBench v2, all while decoding within 12% of FreeKV’s latency. On video, it stores 53% of the full cache instead of 103% at the same read, and is only 0.25 points below exact-page retrieval on average. It also composes with quantization and visual-token pruning: with 4-bit bases, it stays within 0.25 points of FullKV at 41% of its memory on MATH500, and within 1.25 points at 27% on AIME24.
Limitations. Our analysis assumes isotropic queries and near-uniform attention within a page. We derive a whitened basis for general queries (Section B.6), but have not yet evaluated it.
LLM Usage Statement
We used Anthropic’s Claude (through Claude Code) to edit and polish the writing, and as a coding assistant for experiment drivers, analysis scripts and figure generation. All methods, experiments, analyses and results were designed, run and verified by the authors, who take full responsibility for the content of this paper.
Appendix
The appendix collects everything that did not fit in the main text. We first explain how the compared numbers differ in source, protocol and accounting (Section A). Then we follow the paper’s order: we prove why a page basis should see the values, extend the studies of and of accuracy versus memory, document how every number was produced, describe the two robot tasks (Watch-and-Do and LIBERO-Recall), and give the paired video statistics, OVAL on the cache that token pruning keeps and with more frames at matched memory.
How to read the comparisons
OVAL is a page-retrieval method for sparse attention, like Quest, ArkVale and FreeKV; it differs in what it stores. The paper’s numbers fall into three classes (below) and differ in source, protocol and accounting. This section lists each such difference once; the tables and figures that depend on it repeat it locally. We call a comparison paired when both numbers are our own runs on the same problems or questions with the same seeds.
Comparison class. The ranked methods attend the same number of tokens per decoding step (Budgets below): the retrieval methods Quest, ArkVale, ShadowKV, InfiniGen and FreeKV and the eviction methods RazorAttention and RaaS in long reasoning and long context, and Quest, FreeKV, ReKV and InfiniPot-V on video. At about equal attended tokens they differ in accuracy and stored memory.
Reported versus run.
Long reasoning and long context (Table 1 and Table 2). FullKV and the seven baselines are the values reported by FreeKV [39]. OVAL is run in FreeKV’s accuracy harness in its exact setting: the same problem files, prompts, decoding settings, budgets and seeds (Section D.2), so every number in these tables is on the same problems and seeds. The long-context results are single runs (seed 42).
Accuracy–memory studies. On AIME24 with Qwen-14B (Figure 2a), FullKV and the baselines at 16 bits are the values FreeKV reports and OVAL at 16 bits is the run of Table 1; the 4- and 2-bit arms are our runs (Table 5). On MATH500 with Qwen-7B (Figure 4 and Table 7), every arm, OVAL included, is our paired run (Section D.4). For the six arms that also appear in Table 1 (FullKV, FreeKV, Quest, ArkVale, ShadowKV and RaaS), our reruns recover the accuracies FreeKV reports.
Video and robot tasks (Table 3, Table 11 and Table 12). Every number is our run for the two video LLMs, and every comparison is paired on the same questions. VisionZip, InfiniPot-V and ReKV are our ports of each method’s core step, not the official code (Section D.2).
Figure 4. Accuracy versus retained KV memory per KV head and layer on MATH500 (R1-Distill Qwen-7B): the 20 arms of the upper block of Table 7 and OVAL (4-bit). Circles: Pareto-optimal among entries that are not upper bounds or oracles; †: upper bound.
Every arm of the matched-budget study (MATH500, R1-Distill Qwen-7B, avg@8 over seeds 42–49, the 50 problems of Table 1): the 20 arms drawn in Figure 4 and OVAL (4-bit), with the plotted accuracies and memory (upper block), and three arms that were run but not drawn (lower block). OVAL (4-bit): OVAL with its bases and coefficients quantized KIVI-style at 4 bits (Table 5), also drawn in Figure 4. OVAL: the main configuration of Table 1 (rank-8 keys, rank-16 PCA values, per-head ), its MATH500/Qwen-7B cell. OVAL (Retv. only): pages scored with the rank-8 basis, exact keys and values attended. All arms, OVAL included, are our paired runs (Sections D.2 and D.4); for the six arms marked Table 1, our reruns recover the values FreeKV reports. Digest: bytes stored per page to choose pages. Memory: KiB per KV head per layer on the reference sequence (Section D.4). †: upper bound, kept off the Pareto front (Section A). Arms in the lower block are not drawn in Figure 4: fixed windows make no selection, and PyramidKV is a per-layer budget schedule on Quest.
| Arm | Family | Digest (B) | Memory (KiB) | avg@8 | Note |
| OVAL | low-rank basis | 2816 | 1236.5 | 71.75 | |
| 4-bit keys (per channel) | quantized keys | 2560 | 1445.0 | 70.75 | |
| OVAL (Retv. only) | low-rank basis | 2816 | 2150.3 | 71.75 | |
| OVAL (4-bit) | low-rank basis, 4-bit | 1056 | 776.0 | 71.50 | Table 5 |
| Dense (FullKV) | dense | 0 | 1872.5 | 71.75 | Table 1 |
| Oracle | ceiling | 0 | 1872.5 | 71.50 | |
| Oracle | ceiling | 0 | 1872.5 | 71.50 | |
| TOVA† | attention history | 4 | 1024.1 | 71.50 | upper bound |
| SparQ | query sparsity | 0 | 1872.5 | 71.50 | |
| InfLLM | representative tokens | 8 | 1873.3 | 71.50 | |
| RocketKV | two-stage | 256 | 1897.8 | 71.50 | |
| Centroid (rank 0) | low-rank | 256 | 1897.8 | 71.00 | |
| Loki () | low-rank (shared basis) | 1024 | 1973.5 | 70.75 | |
| FreeKV | bound digest | 512 | 1923.0 | 70.00 | Table 1 |
| H2O† | attention history | 4 | 1024.1 | 68.75 | upper bound |
| ArkVale | bound digest | 512 | 1923.0 | 68.25 | Table 1 |
| Quest | bound digest | 512 | 1923.0 | 68.00 | Table 1 |
| Expected Attention | query-agnostic | 4 | 1872.9 | 68.00 | |
| K-norm | query-agnostic | 2 | 1872.7 | 67.75 | |
| RaaS | eviction | 516 | 1040.1 | 67.00 | Table 1 |
| ShadowKV | representative tokens | 256 | 1897.8 | 64.75 | Table 1 |
| StreamingLLM | fixed window | 0 | — | 58.50 | not plotted |
| SnapKV† | attention history | 0 | 1024.0 | 68.00 | not plotted |
| PyramidKV (on Quest) | budget schedule | 512 | 1923.0 | 71.50 | not plotted |
Table 7. Every arm of the matched-budget study.
| Method | Budget | Qwen2.5-VL KV (MiB) | Qwen2.5-VL Acc. | LLaVA-Video KV (MiB) | LLaVA-Video Acc. |
| FullKV () | 100% | 778 | 40.50 | 768 | 40.50 |
| FullKV () | 50% | 392 | 37.67 | 388 | 38.50 |
| VisionZip{sup}‡ | 50% | 392 | 39.83 | 401 | 37.50 |
| InfiniPot-V{sup}‡ | 50% | 392 | 38.50 | 401 | 37.83 |
| VisionZip{sup}‡ | 25% | 199 | 38.00 | 217 | 37.33 |
| InfiniPot-V{sup}‡ | ≈15% | 126 | 32.83 | 148 | 33.33 |
| ReKV{sup}‡ | ≈15% | 778{sup}§ | 35.83 | 770{sup}§ | 34.67 |
| SnapKV{sup}† | ≈15% | 136 | 35.00 | 135 | 37.33 |
| Quest | ≈15% | 801 | 37.50 | 791 | 39.17 |
| FreeKV | ≈15% | 801 | 37.17 | 791 | 37.17 |
| OVAL | ≈15% | 412 | 38.33 | 407 | 37.17 |
Table 12. LIBERO-Recall accuracy (%, 600 questions) and stored KV cache per question (MiB). Budget: Read for KV-cache methods (InfiniPot-V at ≈2K: 16.4 / 20.1%), share of visual tokens kept (and read) otherwise (Section A); marks as in Table 3.
Reference points. H2O, TOVA and SnapKV are implemented without eviction: they keep the full cache and stop attending to the pages they would drop. Their accuracy is therefore an upper bound on that of the evicting method, while their memory is counted as if they evicted. They are marked †, are not ranked in the tables, and are excluded from the Pareto front. The two Oracle arms need the exact keys of every page and are ceilings, not methods. FullKV, also with fewer frames, is a reference and is not ranked.
Composition axes. Quantization lowers the bits per stored element and token pruning decides which tokens enter the cache; both are applied to OVAL, not ranked against it. KIVI-style quantization is applied to both FreeKV and OVAL (Table 5): at 16 bits, FreeKV is our rerun on MATH500, which recovers its reported value, and its reported value on AIME24 (Table 1), OVAL at 16 bits is the run of Table 1, and the 4- and 2-bit arms are our paired runs (Section D.4). VisionZip at 50% and 25% is reported at similar storage in Table 3, and OVAL runs on the VisionZip-50% cache in Table 14.
Selection on the evaluation set. Every OVAL configuration, the retrieval-only arm of Figure 4 included, uses the per-head from the rule (except the shared- ablations), calibrated on held-out data (Section D.3); is never tuned on accuracy labels. The shared- ablation (Table 4) is a sweep on the evaluation set, so its best value is a best-of-five reference that favors the shared . The comparison with key PCA, the fixed endpoint (Table 6), involves no selection.
Stored memory versus GPU memory. Every memory number is the size of the stored KV state under the analytic memory model of Section D.4. It is not measured GPU memory. The long-reasoning studies count one KV head in one layer on a fixed reference sequence (3745 tokens for MATH500, 10100 for AIME24), in KiB. The video and robot tables apply the same per-page accounting to every layer and KV head of the model, at each question’s own final length, in MiB. The two scales differ and should be compared only through their ratios to FullKV. The model ignores where the state resides (GPU or host), e.g. the host page pools of the latency engine (Section D.5) or ReKV, which keeps 14–15% of its cache on the GPU while decoding.
Budgets. Every budget is the total number of tokens attended per decoding step, including the exact sink and recent tokens; a long-reasoning step attends 2048 tokens, as in FreeKV, in both the accuracy runs and the latency engine (Table 9 and Section D.5). The video text separates two resources: Stored is the stored KV cache as a share of FullKV with frames, and Read is the number of tokens attended per decoding step as a share of the visual tokens. Quest, FreeKV, SnapKV† and OVAL read 2048 tokens in layers 1–27 (on Video-MME and LVBench 15.6% of the visual tokens for Qwen2.5-VL and 15.2% for LLaVA-Video, 14.5% for Qwen2.5-VL on LIBERO; layer 0 is dense), ReKV reads its retrieved blocks and InfiniPot-V at about 2K tokens its compressed cache, each plus the question, and token pruning and FullKV with fewer frames read every token they store (Section D.2). Read ratios are per layer in layers 1–27. Table 3 reports Stored and Read directly; in Table 12 and Table 13, the Budget column of a KV-cache method is its Read, and that of FullKV (all or fewer frames) and of the token reducers is the share of visual tokens kept, which they also read. Bracketed intervals in the video text are paired 95% intervals from a bootstrap over videos (10,000 resamples, seed 0); for a mean over the four video settings, each resample is averaged over them.
Ranks. The deployed ranks (rank-8 key bases, rank-16 value bases) are chosen empirically (Table 4, Section B.5).
Why a page basis should see the values: proofs
This section proves the statements of § 3 in four steps. A logit error inside a page moves the attention output at first order, in proportion to how much the page’s values differ (Section B.2). The basis that minimizes this leading output error solves one eigenproblem, and a basis built from the keys alone can discard exactly the direction the output depends on (Section B.3). The same error changes the page’s attention mass, which retrieval ranks, only at second order in expectation over isotropic queries (first order per query), so key energy and output sensitivity are mixed into a single eigenproblem (Section B.4). The basis that scores a page also rebuilds its keys, with the same error term (Section B.5).
Setting, notation and two tools
We work with one KV head and one completed page of tokens, and drop the subscript . Keys and values have rows and (in the models used here ); keys and queries include RoPE. With the all-ones vector,
so and . For a query let and . The page’s log attention mass is
For a fixed query the global softmax denominator is shared by all pages, so ranking pages by ranks their attention mass. Let and . The key basis keeps exactly and approximates the centered keys by :
The key basis is stored as with , so . Within the page, the attention weights and the output are and . Output errors are measured in the seminorm , ; OVAL uses , the output projections of the query heads that share KV head . The two risks, the output sensitivity matrix and the mixed matrix are
with and a stabilizer . The hybrid risk is .
Assumption 1 (Query second moment). The queries satisfy .
Under Theorem 1,
The first identity is proved in Section B.4, the second in Section B.3; Section B.6 removes the assumption by whitening. We also write for a probability vector , (so , ), and . Two standard tools are used throughout: the derivatives of the softmax, and the Ky Fan principle [13], which turns every risk below into an eigenproblem.
Lemma 2 (Softmax calculus). For every : (i) ; (ii) and ; (iii) and . In particular and .
Proof. For , , which is (i). Next, , and for every , . Finally , so ; at , and .
Lemma 3 (Ky Fan: optimal subspace for a quadratic risk). Let be symmetric positive semidefinite. The minimizers of over are exactly the orthonormal bases of leading -dimensional invariant subspaces of , and the minimum is the sum of the smallest eigenvalues.
Proof. Let be the eigenvalues of with orthonormal eigenvectors . Since is an orthogonal projector, , so it suffices to maximize . With we have and , so , with equality for . Equality holds exactly when for and for , i.e. when the retained subspace contains every eigendirection above and its remaining directions lie in the eigenspace. These are the leading invariant subspaces; the subspace is unique when . If , its positive eigenvectors are the right singular vectors of .
A logit error moves the output at first order, weighted by the values
Idea. Perturbing the logits only reshuffles attention among the page’s tokens. If those tokens carry the same value, nothing changes; the output moves in proportion to the value differences. At uniform attention, a perturbation that keeps the page’s total logit fixed leaves the page’s share of the softmax unchanged but still moves the output.
Lemma 4 (Conditional output sensitivity). For any ,
and .
Proof. By Theorem 2, . Writing , , which is the second form. Since is symmetric and , ; with this gives .
Proposition 5 (Exact path identity). Let , , and . Then
Proof. With , Theorem 4 gives , and the fundamental theorem of calculus gives the identity. For the bound, let ; Jensen’s inequality gives
Proposition 6 (Value diameter bound). With , for all , .
Proof. For a probability vector , lies in the convex hull of the , so . By Theorem 4, . Integrate along the segment from to .
The next result places the page inside the full cache: the rest of the cache contributes a softmax denominator and a value numerator, which the page’s basis does not see.
Proposition 7 (Global sensitivity of centered page perturbations). Fix the query, the page values and the rest of the cache, which contributes a softmax denominator and a value numerator . Hold the mean key factor fixed, and let
be the full attention output and the page’s attention probability. Then
With and , every centered perturbation satisfies and
Proof. Write with and , so and . Since , the quotient rule gives , which equals the stated form by Theorem 4 and . Applying the quotient rule to gives . At , , so a centered has , and both the mass derivative and the extra output term vanish. Finally and give .
The basis’s logit error is centered , so the proposition applies directly: at uniform within-page attention, to first order it leaves the page’s mass unchanged and moves the output in proportion to the value spread .
The output-aware basis minimizes the leading output error
Idea. Linearizing at uniform within-page attention turns the output error into a linear map of the discarded query directions, . Its expected size is a quadratic form in , so Ky Fan gives the best basis in closed form. The matrix that matters couples keys and values token by token; neither the key covariance nor the value covariance alone determines it.
Proposition 8 (First-order conditional output error). For any and ,
Let and
This quantity is finite, and .
Proof. Write , , . is finite because is continuous on a compact set. At uniform attention, . With , the path identity gives with , which establishes (19) whether or not is invertible. Since , ; taking the -seminorm obeys the triangle inequality) gives . Taylor’s theorem at zero also gives .
The output surrogate. Under Theorem 1, the expected squared leading term is
which proves the second identity of (16). Since , Theorem 3 gives its minimizers: the leading right singular subspaces of . If , all positive eigendirections are kept and the rest of the basis is free in the null space.
The surrogate is the leading coefficient of the true expected squared conditional error in the small-logit limit. Scale queries by with fixed. Differentiability at zero gives , and Theorem 6 with bounds the squared -norm of the ratio by , which is integrable. Dominated convergence gives
No higher query moment is needed, and the statement does not claim optimality for finite-logit errors. For the full-cache output, Theorem 7 adds a per-query weight , which depends on the rest of the cache; we omit it, so that the basis is a function of alone.
Proposition 9 (Value covariance does not determine output sensitivity). For every token permutation and , , but there are with .
Proof. gives the first claim. Take , , , , and let swap the first two tokens, so . Then while , although and are identical.
What matters is the token-wise alignment of key and value deviations, . The next example shows that key PCA can discard exactly the direction the output depends on.
Proposition 10 (Key PCA vs. the output-aware basis). Let , , , , let be orthonormal, and set , with . At rank , key PCA uniquely selects the first coordinate direction and the output-aware basis uniquely selects the second. The latter has zero leading output risk; key PCA has .
Proof. and , so . Key PCA keeps the first direction since ; Theorem 3 keeps the second for . By (16), the second direction discards only the zero eigenvalue, and the first discards .
Page mass is second order in expectation; mixing the two risks
Idea. Because the logit error is centered, the log-sum-exp has zero slope in its direction at uniform attention, so in expectation over isotropic queries the page mass moves only at second order (per query, a first-order cross term remains). The key risk still matters away from that point and for the logits of rebuilt keys, so the basis mixes the two risks. Each is normalized by its total energy, which makes a trade between fractions of energy and keeps a single eigenproblem.
Lemma 11 (LSE expansion with explicit remainder). For every , .
Proof. Let and . By Theorem 2, and ; with , , so . Since , , and ; Taylor’s theorem with remainder concludes.
Proposition 12 (Page mass is second order in expectation). For every and ,
and globally . Under Theorem 1,
and if moreover , scaling the queries by gives .
Proof. Both and lie in . Applying Theorem 11 to each and cancelling the exact mean term gives (20), with . Although , multiplication by need not preserve orthogonality; in expectation, however, . The same assumption gives with no small-logit assumption. For the global bound, let ; componentwise , and monotonicity of with gives ; squaring and taking expectations gives the last inequality of (21). Under scaling, the first term of (20) has expectation , and is .
:::
The page-mass error is thus second order in the logit residual in expectation over isotropic queries (first order per query), whereas the output error of Theorem 8 is first order. By Theorem 3 with , the minimizers of are the leading eigenspaces of (page-local key PCA [25]).
Trace scaling. For and , . Without the stabilizer this is the fraction of the component’s energy that the basis discards; with a zero component contributes zero and all denominators stay positive. The hybrid risk is a weighted sum of these two fractions, so trades fractions of key energy for fractions of output sensitivity, independently of their scales.
Corollary 13 (Output-aware page basis). Under Theorem 1, , and its minimizers over are exactly the orthonormal bases of leading -dimensional invariant subspaces of , with minimum .
Proof. With , (16) gives ; the factors and cancel. Both components are positive semidefinite with nonnegative weights, so , and Theorem 3 applies. Equivalently, with , , so the minimizers are the leading right singular subspaces of .
Computation in the token domain
For the eigenproblem reduces to . With and , cyclicity gives and . Let , so , let , and let and hold the leading positive eigenpairs of . Then satisfies and ; since the positive spectra of and agree, holds the leading eigenvectors of . If , spans , so any orthonormal completion (, ) lies in and keeps the hybrid risk minimal. Among completions, the retained key energy is with , which is maximized by the leading right singular directions of (all orthogonal to , since ). This construction therefore returns a basis that is optimal for and, among those, best for . Page scoring evaluates at cost per page; values enter only the basis construction, never scoring.
Implementation. is rescaled to unit mean diagonal before the eigendecomposition, which leaves unchanged. Directions with zero eigenvalue are set to zero instead of being completed. For , , so and these directions carry no key energy: the rebuilt keys are the same as with the completion. At the two can differ, but only when .
The same basis rebuilds the keys; a PCA basis rebuilds the values
Idea. The key basis and its coefficients form a rank- factorization of the centered keys. Attending with the rebuilt keys perturbs each logit by exactly the error that scoring already makes, so the analysis above covers key reconstruction with no new term.
Proposition 14 (The key risk is the reconstruction error). Let be the keys rebuilt from the key basis. Then and
Attending with instead of perturbs every logit of the page by exactly , so Theorems 8 and 12 bound the output and mass errors of key reconstruction as well as those of scoring.
Proof. , and for the symmetric idempotent . The logits of are .
At the basis gives the Eckart–Young optimal rank- key reconstruction; for it trades key energy for output sensitivity in the proportion set by (Theorem 13). The deployed rank is 8, and the stored bases are bfloat16.
The value basis (§ 3.3) is the rank- PCA basis of the centered page values with the page mean kept exactly; by Eckart–Young it minimizes over all reconstructions . With attention weights the output error is , so only the discarded value directions contribute. Since , , so for every rank rebuilds the values exactly. Such a basis is lossless but larger than the page: at it stores B per page, more than the 8192 B of the exact values, so we do not use it. The deployed rank, , keeps half of these directions at 5376 B (66% of the exact values) and is nearly lossless in practice; lower ranks lose accuracy on every task (Table 4).
Beyond isotropic queries and uniform attention
Non-isotropic queries. Let , and , so that and .
Corollary 15 (Query-whitened basis). With , and , the leading rank- eigenspace of minimizes the hybrid risk in the whitened query coordinates.
Proof. , so the derivations of (16) apply with in place of , and Theorem 13 concludes.
At decode time the query code becomes with stored coefficients . A singular can be whitened on its support or regularized as .
Non-uniform within-page attention. The method linearizes at uniform attention. For a general reference , let . By Theorem 4, , which gives the Gauss–Newton risk
This yields a hierarchy: uniform attention gives one query-free eigenproblem (the method); a fixed non-uniform reference gives a frozen metric; and the risk above can be estimated from sampled queries, at the cost of losing the single closed-form eigenproblem.
Extended results: choosing and accuracy versus memory
This section extends three studies of the main text. The first compares the per-head rule with key PCA () on all three models (Section C.1). The second is the MATH500 accuracy–memory study that extends Figure 2a, with every arm and its memory (Section C.2). The third checks the fit of the endpoint rule (Section C.3). The first two report accuracy under the long-reasoning protocol (Table 9): samples per problem (seeds 42–49), rank-8 key bases and FreeKV’s problem files (Section D.2), on the evaluation set of Table 1. The third measures output error, not accuracy, on the held-out calibration traces (Section D.3).
The per-head rule against key PCA
Table 6 sets the per-head rule (OVAL in Table 1) against , each decoded in the same configuration: rank-8 keys, , the same problems and the same eight seeds (42–49), so every cell is an 8-seed mean for both arms, including the largest gaps (+6.67 and +8.50 on Llama-8B). The rule values are the OVAL runs of Table 1 and the values are those of the shared- ablation (Table 4) for Qwen-7B; Llama-8B and Qwen-14B were run at in the same configuration. The rule is at or above in all nine (model, task) cells, by +2.91 avg@8 points on average. An exact two-sided sign test over the nine cells (ties excluded; eight positive, one tie) gives , significant at the 5% level. The test treats the cells as independent, although cells of one model share its calibration table.
Accuracy–memory study: every arm
Figure 4 and Table 7 show every arm of the matched-budget study on MATH500 with R1-Distill Qwen-7B, which extends the AIME24 study of Figure 2a; the arms and the memory model are defined in Section D.4. OVAL reaches the accuracy of FullKV (71.75 avg@8) at 1236.5 KiB, or 66.0% of FullKV’s memory. With its bases and coefficients quantized to 4 bits (Table 5), it reaches 71.50 avg@8 at 776.0 KiB, or 41.4% of FullKV’s memory.
Per-head : fit of the rule
The endpoint rule (Eq. (12)) sets from the output errors measured at and on calibration traces 1–4 (Section D.3). This section checks the quadratic model against the output error measured over the full range. Everything is in the OVAL setting: rank-8 key bases and rank-16 PCA value bases.
Fit of the endpoint model. On the two held-out MATH500 calibration traces (5 and 6), which are not used to set , we measure each head’s output error on a 21-point grid of and compare it with fitted on traces 1–4 (Figure 5). For most heads follows the measured curve and the rule lands at or next to its minimum. Figure 6 summarizes all heads by the held-out error at the rule’s relative to the best grid value. On Qwen-7B the median excess is 0.08%, 44% of heads sit exactly at the grid optimum, and 90% are within 4.8%. On Llama-8B the median is 0.76% and 90% are within 10.2%. The remaining tail comes from heads whose measured error is not convex in (e.g. Llama-8B layer 5, head 2 in Figure 5); the two-point model cannot resolve such heads and places them at the wrong endpoint. Resolving them would require measuring interior values of , at the cost of more calibration passes.
Figure 5. Endpoint model versus measured output error on MATH500, six heads per model chosen at quantiles of . Dots: output error on held-out calibration traces over 21 values of (% above its minimum). Line: fitted on traces 1–4. Star: the rule’s .
Experimental reference
This section states each setting once. Table 8 gives the switches that turn each piece of OVAL on and Table 9 the benchmark protocols. The video experiments have their own protocol and baseline ports (Section D.2). The subsections that follow give only what differs from these tables.
Table 8: Switches of the patched harness. Each ablation differs from OVAL only in the switches it varies. Baselines are selected by –page_rep (quest, arkv) or –method (raas, full).
| Piece | Switches |
| Retrieval | –page_rep oval –oval_rank 8 –GQA_policy avgSM |
| Key reconstruction | –oval_recon: selected keys rebuilt as from the scoring basis; –oval_recon_rank rebuilds at rank while scoring stays at rank 8 (key-rank ablation only; all other runs rebuild at rank 8) |
| Value basis | –oval_vrank 16 –vbasis pca: selected values rebuilt from a rank-16 PCA basis; unset: exact values |
| Shared | –eta , one value for every head ( is page-local key PCA) |
| Per-head | –eta_table T.json, a [n_layers][n_kv_heads] table that overrides –eta |
| Fixed in every run | –page_size 32 –skip_layer 1 –sparsity 1 –last_layer_budget 0 –batch_size 1; OVAL_QUANT=0; KVC_MAX_TOKENS 32,768 (reasoning) or 65,536 (LongBench v2) |
Table 8.
Harness, models and the switches of OVAL
OVAL is implemented inside the accuracy harness of FreeKV [39] (pure PyTorch) and, for latency, inside FreeKV’s efficient engine (CUDA extension). The method (bases, scoring, value bases, per-head tables, the endpoint rule) is a separate module imported by one patch to the harness (Section D.7). Every run in this harness uses batch size 1. The video experiments run in a separate harness for the two video LLMs (Section D.2); the switches below refer to the text harness.
Models. R1-Distill Llama-8B, Qwen-7B and Qwen-14B (deepseek-ai/DeepSeek-R1-Distill-* on the Hugging Face hub) for reasoning; Llama-3.1-8B-Instruct (NousResearch/Meta-Llama-3.1-8B-Instruct), Qwen2.5-7B-Instruct and Qwen2.5-14B-Instruct (Qwen/... ) for long context. All are loaded in bfloat16 with eager attention, device_map=auto and the slow tokenizer, with a 65,536-token context limit; stop ids come from each checkpoint’s GenerationConfig. The video LLMs are LLaVA-Video-7B-Qwen2 and Qwen2.5-VL-7B-Instruct (Section D.2).
Bases. Pages hold tokens and . Bases are built in float32 when a page completes and stored in bfloat16 (OVAL_QUANT=0). is formed in the token domain (Section B.4). Page scores are combined over the GQA group by avgSM, and layer 0 stays dense. Sink and recent tokens are never paged and stay exact under every switch.
Benchmark protocols and statistics
Long reasoning: same setting as FreeKV. All long-reasoning runs use the data files shipped with the FreeKV harness, unmodified: the 50-problem MATH500 subset (math50.jsonl, SHA-256 prefix 6614a226), the 30 problems of AIME 2024 (aime24.jsonl, 68866ba7) and the 50-problem GPQA subset (gpqa50c.jsonl, 164808b8). Decoding follows FreeKV: , top-p 0.95, up to 16,384 generated tokens, seeds 42–49 (), a 2048-token budget that includes 512 exact sink and 512 exact recent tokens (1024 selected tokens), 32-token pages, layer 0 dense, and bfloat16. The prompt is the problem, an instruction to reason step by step and to put the final answer in \boxed{†}, then \think†, with no chat template. Each seed gives one sampled generation per problem. avg@k averages accuracy over the generations and the problems; pass@k is the fraction of problems solved by at least one generation.
LongBench v2. The prompt is the benchmark’s Oshot.txt, without chain of thought or retrieval; longer inputs keep their first and last 32,768 tokens. Short, Medium and Long use the benchmark’s own length labels, and scoring follows its result.py.
LongGenBench. CR is the completion rate (reference_parse_blocks and calculate_completion_rate); Acc is judged by Qwen3-32B served with vLLM, the judge FreeKV uses.
Video understanding. Two video LLMs, LLaVA-Video-7B-Qwen2 and Qwen2.5-VL-7B-Instruct, are evaluated on two benchmarks. Video-MME is run without subtitles on all 2700 questions of its 900 videos; the metric is accuracy per duration split (Short, Medium, Long) and overall. LVBench is run on all 1549 questions of its 103 videos, frames only; the metric is overall accuracy. Each video is represented by uniformly sampled frames. LLaVA-Video encodes each frame into 210 tokens (13,440 visual tokens; about 14,043 prefill tokens on Video-MME). Qwen2.5-VL encodes pairs of adjacent frames into 32 temporal groups; its visual-token count depends on the video’s resolution (mean 13,133 on Video-MME, range 12,480–14,336), and it keeps its own 3-D M-RoPE positions. The video is cached before the question is seen (query-agnostic protocol, § 4.4). Decoding is greedy in bfloat16. As a sanity check, streamed dense inference matches question-in-prompt dense inference on 97 (LLaVA-Video) and 98 (Qwen2.5-VL) of the first 100 Long Video-MME questions; the LLaVA-Video differences are bfloat16 near-ties with logit margins below 0.25.
Video budgets. Quest, FreeKV and SnapKV† keep the full cache, and OVAL keeps the page bases in its place; all four attend to 2048 tokens per decoding step: 1792 selected tokens plus 128 exact sink and 128 exact recent tokens, with 32-token pages and a dense first layer. This is 15.2% of the visual tokens for LLaVA-Video and 15.6% (mean) for Qwen2.5-VL. OVAL uses rank-8 key bases for scoring and key reconstruction, rank-16 PCA value bases, and one table per model (Section D.3). SnapKV cannot see the question, so its observation window is the last 32 tokens of the video prefill; the selected pages are then kept fixed (†, Section A). The video-specific methods and FullKV with fewer frames reduce what is cached: FullKV with frames, VisionZip at 50% or 25% of the visual tokens, InfiniPot-V memory-matched (50%) and at about 2K tokens (about 2.1K for Qwen2.5-VL, 2.7K for LLaVA-Video, text prefix included), and ReKV, which keeps the full cache, answers from 8 frames (LLaVA-Video) or 4 temporal groups (Qwen2.5-VL), 1.6K–2.0K tokens with sink and recent (recorded cache lengths).
Video-specific baselines (our ports). No official implementation of VisionZip, InfiniPot-V, or ReKV supports both models on our stack, so we port each method’s core step. VisionZip: the score is the attention each visual token receives at the last vision-encoder layer (head mean, summed over queries); the dominant tokens are a global top-, and 5% of the tokens are contextual tokens formed by merging the remaining tokens into their most similar target by key (cosine). Retention 50% uses 45% dominant tokens (the official setting) and 25% uses 20%. For LLaVA-Video, which uses a SigLIP encoder without a CLS token, the same score is taken at the encoder layer the model reads and pooled to its grid; the row-separator tokens are always kept. For Qwen2.5-VL, the kept tokens keep their M-RoPE positions. InfiniPot-V: combines the two official scores, temporal redundancy (negative cosine similarity of keys at the same spatial position between the newest 25% of frames and older frames) and value norm, 50/50, per layer and KV head during block-wise prefill. ReKV: one block per frame (per temporal group for Qwen2.5-VL), represented by its mean key; the mean query of the question tokens scores the blocks once per question, and the top blocks (8 frames for LLaVA-Video, 4 groups for Qwen2.5-VL) plus the 128 sink and 128 recent tokens form the cache used for answering. Unlike the official code, keys keep their original positions, since contiguous re-indexing has no M-RoPE equivalent. InfiniPot-V and ReKV run on the Hugging Face attention path; dense attention on that path matches our harness (LLaVA-Video: −0.04 points [−0.33, +0.26] on Video-MME; Qwen2.5-VL: identical outputs on 100 of 100 questions).
Per-frame token selection. Figure 7 shows the share of each frame’s visual tokens that OVAL selects on the Long split of Video-MME. Selection concentrates at the start and end of the video. Figure 8 shows the same quantity on one video per benchmark for both models. Each tile is one Qwen2.5-VL temporal group (two adjacent frames; the first is shown), and its value is the share of the tile’s visual tokens that OVAL selects, averaged over decoding steps, layers, heads, and all questions of the video; for LLaVA-Video the two frames are pooled. Both models sample the same 64 frames. The videos are not hand-picked: in each benchmark we show the video whose per-tile profiles are closest to the benchmark-wide mean profiles (Video-MME: among the 300 Long videos; LVBench: among all 103).
Figure 7. Per-frame token selection. Share of each frame’s visual tokens selected by OVAL, averaged over decoding steps, layers, heads, and all 900 Long Video-MME questions. The first and last four frames receive 2.66× (LLaVA-Video) and 1.97× (Qwen2.5-VL) the share of the middle frames. Single-video examples are in Figure 8.
Figure 8. Per-frame selection of OVAL on one video per benchmark, both models. Tiles are washed out and shaded in proportion to the share of their visual tokens that OVAL selects; the strip under each tile gives the first frame index and that share. Selection concentrates on the first and last tiles for both models and both benchmarks; on these videos OVAL selects 12.4% (LLaVA-Video) and 14.3% (Qwen2.5-VL) of all visual tokens on Video-MME, and 12.5% and 14.3% on LVBench.
Statistics. Each configuration is run once (one generation per seed), and a table that reuses a run says so: the OVAL entry of Table 7 and the Rule column of Table 6 are the OVAL cells of Table 1, and the FullKV and baseline values of Table 1 and Table 2 are those reported by FreeKV (Section A). Equal values across different runs (e.g. 71.75 on MATH500 for several arms) are expected and do not indicate shared results: avg@8 on 50 problems moves in steps of 0.25 points (30 problems: 0.42 points), and under the long-reasoning protocol every arm attends the full cache until a trace exceeds 2048 tokens.
Calibration of
Each table is calibrated once per model, offline, on data disjoint from every evaluation set.
Capture. The model generates six calibration traces (long reasoning: six MATH500 problems outside the evaluation subset, 6144 tokens each, seed 7); traces 1–4 set and traces 5–6 are held out to evaluate the rule (Section C.3). Keys and values are read from the cache, and windows of 96 queries are taken near the end of each trace.
Endpoint errors. For each window, OVAL at and , in the deployed configuration (rank-8 keys, rank- values, the same budget, sink and recent tokens), is compared with dense attention through (Eq. (10)).
Rule. The accumulated over traces 1–4 give (Eq. (12)), stored as one table per model.
Other settings. The same procedure is applied per model and benchmark for long context (LongBench-Pro documents for LongBench v2; non-evaluated LongGenBench items) and per video model under the query-agnostic protocol (six LLaVA-Video-178K clips not in Video-MME or LVBench, four to set and two held out, capturing the prefill). On the held-out clips, the median head’s output error at is within 2% of its grid-search best.
Accuracy–memory study: arms and memory model
Arms. All arms attend the same number of tokens (reasoning protocol, MATH500). MATH500 prompts fit inside the 512-token sink, so every page holds generated tokens. Table 10 defines each arm. H2O, TOVA and SnapKV are † arms (Section A); since the prompt lies in the sink, H2O and SnapKV anchor their selection at the first selection step.
| Arm | Definition |
| OVAL | Pages scored with rank-8 output-aware key bases; keys and values stored as rank-8 key bases and rank-16 PCA value bases; selected pages rebuilt from the bases. |
| OVAL (4-bit) | As OVAL, with the basis columns, key coefficients and value coefficients quantized KIVI-style at 4 bits (Section D.4, memory model). |
| OVAL (Retv. only) | Pages scored with rank-8 output-aware key bases with the per-head ; selected pages attended with their exact keys and values (the basis is only an index). |
| Oracle | Chooses pages by the true attention mass of the current query; needs all exact keys, so it is a ceiling, not a method. |
| Oracle | As Oracle, with the previous step’s query. |
| Quest | Per-page channel-wise min and max of the keys; upper-bound score. |
| ArkVale | Per-page bounding box (center ± spread) of the keys. |
| FreeKV | Quest-style page digest, as in FreeKV [39]. |
| Loki () | Keys projected on one shared low-rank basis calibrated offline; pages scored in that basis. |
| Centroid | Page mean key (rank 0); score . |
| 4-bit keys | Keys stored at 4 bits per channel and used for both scoring and attention. |
| SparQ | Reads the keys only on the top query dimensions to score. |
| InfLLM | Four representative tokens per page (largest key norm). |
| ShadowKV | Page centroid plus outlier tokens kept exact. |
| RocketKV | Two stages: coarse centroid filter, then exact scoring of the survivors. |
| H2O{sup}†` | Accumulated attention each page received so far. |
| TOVA{sup}†` | Attention each page received at the previous step. |
| SnapKV{sup}†` | Attention from an observation window, frozen once selection starts. |
| Expected Attention | Attention expected under a query distribution estimated from the prompt (per-head mean and covariance). |
| K-norm | Key magnitude only, no query. |
| PyramidKV | Quest pages with a budget that falls linearly over the layers (1.5× to 0.5×). |
| RaaS | Reasoning-aware eviction: keeps pages that were attended recently. |
| StreamingLLM | Sink and recent tokens only, no selection. |
| FullKV | Full attention over the exact cache. |
Table 10. What each arm of the accuracy–memory study does. All arms attend the same number of tokens; they differ in what they store per page and how they choose pages.
Memory model. Memory is the resident KV state of one KV head in one layer, in bytes, on one fixed reference sequence for all arms: tokens (the FullKV mean trace length), , 2 bytes per element, so one token of keys or values takes 256 B. The length is fixed on purpose: weaker memory methods generate longer traces, and charging each arm its own length would count accuracy twice. The 1024 sink and recent tokens stay exact for every arm. The paged region holds selectable pages; the one leftover token stays exact. Digests are written when a page completes, even inside the recent window, so pages carry one. FullKV stores all 3745 tokens. Retrieval arms store the exact cache plus one digest per page; eviction arms store the 2048 survivors plus their digests. OVAL stores each selectable page as a rank-8 key basis (which is also its digest) and a rank-16 PCA value basis, 8192 B per page instead of 16384 B, plus a 2816 B key basis for each of the 16 digested pages still in the recent window, giving 1235.6 KiB, 66.0% of FullKV (1872.5 KiB). The quantized arms (Table 5) apply KV-style [40] quantization at 4 or 2 bits to the paged entries (FreeKV) or to the bases and coefficients (OVAL), with per-group bfloat16 scales; this gives 988 and 818 KiB for FreeKV and 776 and 691 KiB for OVAL.
AIME24, R1-Distill Qwen-14B (Figure 2a). The same memory model, on a reference sequence of tokens (the FullKV mean trace length, rounded) gives 283 selectable and 299 digested pages. FullKV stores 5050.0 KiB;
FreeKV, Quest and ArkVale (512 B digests) 5199.5 KiB (103.0%); ShadowKV (256 B) 5124.8 KiB (101.5%); RaaS keeps 2048 tokens, 1040.1 KiB; and OVAL 2830.0 KiB (56.0%). At 4 and 2 bits, FreeKV stores 2086.5 and 1520.5 KiB (41.3% and 30.1%) and OVAL 1361.0 and 1090.2 KiB (27.0% and 21.6%).
Scope of the memory model. The model counts stored bytes, computed from the configuration (Section A). For the video and robot tables (Table 3, Table 12), the same per-page accounting is applied to every layer and KV head of the model (28 layers, 4 KV heads, bfloat16) at each question’s own final length, and reported in MiB per question. There, OVAL keeps the 128 sink and 128 recent tokens and the dense first layer exact (scales: Section A).
Latency
Latency is measured in FreeKV’s efficient engine on one RTX A6000, batch 1, greedy decoding, with the same 2048-token budget as the accuracy runs (512 sink, 512 recent, 1024 selected tokens) and the KV pages offloaded to host memory. The metric is the mean time per generated token over 16,384 tokens of AIME24 problem 0, after one warm-up generation (Figure 2b,Figure 2c). OVAL stores and scores only the page bases and rebuilds the selected pages. is computed once per model, offline, and is not part of the decode time. OVAL takes 40 and 47 ms per token on R1-Distill Qwen-7B and Llama-8B, FreeKV 36 and 42 ms, and ArkVale 72 and 143 ms.
Prefill time
OVAL builds key-value bases for every page when the page is completed, so a long prompt pays for all of its pages at prefill. We measure the prefill time (time to first token) in the engine and configuration of the latency study (Section D.5), with 32-token pages and rank-8 key bases with the model’s table (calibrated on MATH500). The prompt is the engine’s gov_report document, truncated from the middle to K tokens; each configuration runs one warm-up generation and one timed generation, three times, and we report the median. Figure 9 shows the result. Building the bases adds 13% to 9% to FreeKV’s prefill time on R1-Distill Qwen-7B and 32% to 22% on Llama-8B as the prompt grows from 4K to 32K tokens; Llama-8B has twice as many KV heads per layer, hence twice as many bases per page. The overhead falls with because the bases cost , two fixed-size eigenproblems per page, while prefill attention grows faster than linearly in . The cost is paid once per prompt; decoding is unaffected (Section D.5).
Figure 9. Prefill time versus prompt length in FreeKV’s engine (one RTX A6000, batch 1; median of three runs). (a, b) Time to first token. (c) OVAL’s prefill time relative to FreeKV; the overhead of building the bases falls as grows.
Reproducing the results
OVAL is applied as a patch to a pinned commit of the FreeKV harness. The code is available at https://github.com/Ashkan13776/oval-kv, together with the setup, drivers and scorers of every experiment.
LIBERO Watch-and-Do: robot-episode recall, executed by a VLA policy
Construction. Watch-and-Do uses the ten LIBERO-Goal tasks [37], which share one kitchen scene, and their demonstrations in the LeRobot release [7] (third-person camera, 256×256 pixels, 10 fps). A session draws three distinct tasks and one random demonstration of each and plays them back to back as one video (about 30 s). Each of the 80 sessions has three instructions: repeat the task performed first, the one performed last, or one task that was present (240 episodes). The planner chooses among four commands: the target and three other LIBERO-Goal tasks (the two other session tasks and one task not in the session for first and last, tasks not in the session for present). We use three tasks per session; with six tasks per session, even FullKV chose the right command near chance. Construction is seeded (seed 0), and the session list is released with the code.
Planner and execution. The planner is each video LLM under each KV method, run as in Table 3: 64 frames, the query-agnostic protocol, the same budgets and tables. The chosen command is executed by OpenVLA-7B fine-tuned on LIBERO-Goal [28], with the official OpenVLA LIBERO evaluation loop unchanged (center crop, 10 no-op steps, at most 300 policy steps, seed 7, reset before every rollout), from the LIBERO initial state of the target task assigned to the episode. An episode succeeds if the simulator’s goal check of the target task passes; none of the 432 distinct wrong-command rollouts succeeded. Rollouts are keyed by (command, target, initial state) and shared across arms, so two arms that choose the same command in an episode get the same outcome. The oracle row executes the target command, and the random row a uniformly drawn option.
Statistics and memory. Paired differences in success of OVAL against the other arms: Qwen2.5-VL: FullKV +1.67, Quest +0.42, FreeKV −0.42, ReKV +2.92, InfiniPot-V +4.58, SnapKV +4.58; LLaVA-Video: FullKV −1.25, Quest −3.75, FreeKV −1.67, ReKV +6.67, InfiniPot-V +6.67, SnapKV +0.83. Stored KV follows the memory model of Section D.4 at each episode’s final length (about 14K tokens), as for the video tables; token pruning and fewer frames were not run on this task.
LIBERO-Recall: robot-episode memory
Construction. LIBERO-Recall is built from the LIBERO demonstrations [37] in the LeRobot release [7]: 40 tasks in four suites (LIBERO-10, -Goal, -Object, -Spatial), 1693 episodes, third-person camera, 256×256 pixels at 10 fps. A session draws eight distinct tasks uniformly from the 40 and one random demonstration of each, and plays them back to back as one video (1.6–3.2 minutes, mean 2.2). There are 100 sessions and six four-way questions per session, one of each type: present (which task did the robot perform; one session task and three tasks not in the session), absent (which task did it not perform; one task not in the session and three session tasks), first and last (four session tasks, one of them the first or last), and after and before (which task came right after or before a named session task ; the true successor or predecessor and three other session tasks, never ). Options not in the session are drawn from the same suite as the correct option where possible, so they share the scene and objects and cannot be ruled out from the scene alone. Option order is a random permutation (answer letters A/B/C/D: 161/148/153/138). Every answer follows from the dataset’s task labels and the episode order; nothing is annotated by hand. Construction is seeded (seed 0); the session list with episode indices and frame spans is released with the code. The evaluated models are the video LLMs that a robot would query about its own history; the version in which a VLA policy executes the recalled command is described in Section E.
Protocol and statistics. Sessions are stored in the LVBench format and run with the LVBench runners unchanged: 64 uniformly sampled frames, the query-agnostic protocol of § 4.4, the same budgets, baselines, and tables (no calibration on LIBERO). KV memory is the stored KV cache per question at the final length (memory model of Section D.4).
Results. Table 12 gives overall accuracy and stored KV cache; FullKV reaches 40.50%. OVAL stores about half the memory of Quest and FreeKV (407–412 vs. 791–801 MiB) at similar accuracy: 0.83 and 1.17 points above them on Qwen2.5-VL; on LLaVA-Video it ties FreeKV and trails Quest by 2.00. It trails FullKV by 2.17 and 3.33 points. At the same budget it is 2.50 points above ReKV on both models, 5.50 and 3.83 above InfiniPot-V at about 2K stored tokens, and 3.33 above SnapKV on Qwen2.5-VL (within 0.2 on LLaVA-Video). Token pruning and fewer frames reach similar or higher accuracy at similar or lower storage (Table 14 combines pruning with OVAL).
Results by question type. Table 13 gives accuracy per type (100 questions per type). FullKV () reaches 40.50% on both models; after and before are the hardest types (26–29% for FullKV). The spread between methods is largest on first (21–24 points between the best and worst budgeted arm).
Video: paired statistics, composition with token pruning, and more frames
Paired statistics for § 4.4. Intervals are paired 95% intervals as defined in Section A (bootstrap over sessions for the robot tasks). Against Quest and FreeKV, OVAL’s per-setting differences on Video-MME and LVBench (both models) range from −1.11 to +0.71 and from −1.29 to +1.23; one of the eight intervals excludes zero, Video-MME with Qwen2.5-VL against Quest (−1.11 [−2.11, −0.07]). Averaged over the four settings, VisionZip-50% and InfiniPot-V-50% are 0.98 [0.34, 1.64] and 0.76 [0.06, 1.46] points above OVAL, and OVAL is 0.89 [0.09, 1.71] points above FullKV with frames. At 128 frames, OVAL is 0.11 points above VisionZip-50% [−1.78, +2.00] (Table 15). In Watch-and-Do, of OVAL’s six command-accuracy differences to FullKV, Quest, and FreeKV, only LLaVA-Video against Quest excludes zero (−5.00 [−9.58, −0.42]); no task-success interval excludes zero (LLaVA-Video: −3.75 to −1.25).
Composition with token pruning. Token pruning and OVAL act on different axes. Pruning decides which visual tokens enter the cache; OVAL changes how the cached pages are stored and retrieved, whichever tokens they hold, so the two compose. We run OVAL, in the configuration of Table 3, on the cache that VisionZip keeps at 50% retention (Table 14). The combination stores 27–28% of FullKV, about half of VisionZip-50% alone. In all six (model, benchmark) settings it is within 0.6 points of VisionZip-25%, which stores about the same. Against OVAL alone, the combination is 1.81 points lower on LVBench with Qwen2.5-VL (paired 95% interval [0.26, 3.36]); in the other five settings the paired intervals contain zero. VisionZip-25% reads every token it keeps; the combination reads 2048 tokens per step.
Spending the saved memory on more frames. OVAL stores about half the cache, so at about the same memory it can watch twice as many frames. We run Qwen2.5-VL with frames on the 900 questions of the Video-MME Long split, in the configuration of Table 3, and compare at the storage of FullKV with (Table 15). OVAL with 128 frames stores 104% of that cache and scores 2.1 points higher, within 0.5 points of FullKV with 128 frames, which stores twice as much. VisionZip-50% with 128 frames, at 100%, gains a similar 2.0 points, 0.1 below OVAL. Neither gain over FullKV with has a paired 95% interval that excludes zero (OVAL: +2.11 [−0.22, +4.44]; VisionZip-50%: +2.00 [−0.11, +4.11]). The two differ in what is read per decoding step: OVAL still attends 2048 tokens, while VisionZip-50% with 128 frames attends every token it keeps, 13,240 on average (6.5×). At ,
VisionZip-50% reads as many tokens per step as OVAL on average over the four video settings (–; – if OVAL’s dense layer 0 is counted).
References
- [1]Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyansky, Federico Lebron, and Sumit Sanghai. GQA: Training generalized multi-query transformer models from multi-head checkpoints. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 4895–4901, Singapore, 2023. Association for Computational Linguistics.
- [2]Yash Akhauri, Ahmed F AbouElhamayed, Yifei Gao, Chi-Chih Chang, Sameh Gobriel, Nilesh Jain, and Mohamed S. Abdelfattah. TokenButler: Token importance is predictable, 2026.arxiv.org/abs/2503.07518
- [3]Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2.5-VL technical report, 2025.arxiv.org/abs/2502.13923
- [4]Yushi Bai, Shangqing Tu, Jiajie Zhang, Hao Peng, Xiaozhi Wang, Xin Lv, Shulin Cao, Jiazheng Xu, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. LongBench v2: Towards deeper understanding and reasoning on realistic long-context multitasks. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3639–3664, Vienna, Austria, 2025. Association for Computational Linguistics.arxiv.org/abs/2412.15204
- [5]Luca Benfenati, Matteo Risso, Andrea Vannozzi, Ahmet Caner Yüzügüler, Lukas Cavigelli, Enrico Macii, Daniele Jahier Pagliari, and Alessio Burrello. Don’t be so stiff! learning KV cache low-rank approximation over the stiefel manifold, 2026.arxiv.org/abs/2601.21686
- [6]Priyansh Bhatnagar, Ashkan Moradifirouzabadi, Se-Hyun Yang, Seungjae Lee, Jungwook Choi, and Mingu Kang. STAR-KV: Low-rank KV cache compression via soft thresholding for adaptive rank control. In Proceedings of the 43rd International Conference on Machine Learning, pages 7941–7960. PMLR, 2026.arxiv.org/abs/2606.08382
- [7]Remi Cadene, Simon Alibert, Alexander Soare, Quentin Gallouedec, Adil Zouitine, Steven Palma, Pepijn Kooijmans, Michel Aractingi, Mustafa Shukor, Dana Aubakirova, Martino Russi, Francesco Capuano, Caroline Pascale, Jade Choghari, Khalil Meftah, Maxime Ellerbach, Jess Moss, and Thomas Wolf. LeRobot: State-of-the-art machine learning for real-world robotics in PyTorch. https://github.com/huggingface/lerobot, 2024.
- [8]Liang Chen, Haozhe Zhao, Tianyu Liu, Shuai Bai, Junyang Lin, Chang Zhou, and Baobao Chang. An image is worth 1/2 tokens after layer 2: Plug-and-play inference acceleration for large vision-language models. In Computer Vision – ECCV 2024, pages 19–35, Cham, 2025. Springer Nature Switzerland.arxiv.org/abs/2403.06764
- [9]Renze Chen, Zhuofeng Wang, Beiquan Cao, Tong Wu, Size Zheng, Xiuhong Li, Xuechao Wei, Shengen Yan, Meng Li, and Yun Liang. ArkVale: Efficient generation LLM inference with recallable key-value eviction. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
- [10]Zhuoming Chen, Ranajoy Sadhukhan, Zihao Ye, Yang Zhou, Jianyu Zhang, Niklas Nolte, Yuandong Tian, Matthijs Douze, Leon Bottou, Zhihao Jia, and Beidi Chen. MagicPIG: LSH sampling for efficient LLM generation. In The Thirteenth International Conference on Learning Representations, 2025.
- [11]Keqi Deng, Shaoshi Ling, Ruchao Fan, and Jinyu Li. UNIQUE: Universal top-k sparse attention for training-free inference and sparsity-aware training, 2026.
- [12]Shangzhe Di, Zhelun Yu, Guanghao Zhang, Haoyuan Li, Tao Zhong, Hao Cheng, Bolin Li, Wanggui He, Fangxun Shu, and Hao Jiang. Streaming video question-answering with in-context video KV-cache retrieval. In International Conference on Learning Representations, pages 42115–42127, 2025.
- [13]Ky Fan. On a theorem of Weyl concerning eigenvalues of linear transformations I. Proceedings of the National Academy of Sciences, 35(11):652–655, 1949.
- [14]Yuan Feng, Junlin Lv, Yukun Cao, Xike Xie, and S. Kevin Zhou. Ada-KV: Optimizing KV cache eviction by adaptive budget allocation for efficient LLM inference. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
- [15]Yuan Feng, Junlin Lv, Haoyu Guo, Yukun Cao, S Kevin Zhou, and Xike Xie. CriticalKV: Optimizing KV cache eviction from an output perturbation perspective. In Proceedings of the 43rd International Conference on Machine Learning, pages 30221–30246. PMLR, 2026.
- [16]Chaoyou Fu, Yuhan Dai, Yongdong Luo, Lei Li, Shuhai Ren, Renrui Zhang, Zihan Wang, Chenyu Zhou, Yunhang Shen, Mengdan Zhang, Peixian Chen, Yanwei Li, Shaohui Lin, Sirui Zhao, Ke Li, Tong Xu, Xiawu Zheng, Enhong Chen, Caifeng Shan, Ran He, and Xing Sun. Video-MME: The first-ever comprehensive evaluation benchmark of multi-modal LLMs in video analysis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24108–24118, 2025.
- [17]Yao Fu. Challenges in deploying long-context transformers: A theoretical peak performance analysis, 2024.arxiv.org/abs/2405.08944
- [18]Yizhao Gao, Zhichen Zeng, DaYou Du, Shijie Cao, Peiyuan Zhou, Jiaxing Qi, Junjie Lai, Hayden So, Ting Cao, Fan Yang, and Mao Yang. SeerAttention: Self-distilled attention gating for efficient long-context prefilling. In Advances in Neural Information Processing Systems, pages 55846–55869. Curran Associates, Inc., 2025.
- [19]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravanakumar, Artem Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aurelien Rodriguez, Austen Gergerson, Ava Spataru, Baptiste Roziere, Bethany Biron, Binh Tang, Bobbie Chern, Charlotte Caucheteux, Chaya Nayak, Chloe Bi, Chris Marra, Chris McConnell, Christian Keller, Christophe Touret, Chunyang Wu, Corinne Wong, Cristian Canton Ferrer, Cyrus Nikolaidis, Damien Allonsius, Daniel Song, Danielle Pintz, Danny Livshits, Danny Wyatt, David Esibiou, Dhruv Choudhary, Dhruv Mahajan, Diego Garcia-Olano, Diego Perino, Diewuke Hukpes, Egor Lakomkin, Ehab AlBadawy, Elina Lobanova, Emily Dinan, Eric Michael Smith, Filip Radenovic, Francisco Guzmán, Frank Zhang, Gabriel Synnaeve, Gabrielle Lee, Georgia Lewis Anderson, Govind Thattai, Graeme Nail, Gregoire Mialon, Guan Pang, Guillem Cucurell, Hailey Nguyen, Hannah Korevaar, Hu Xu, Hugo Touvron, Iliyan Zarov, Imanol Arrieta Ibarra, Isabel Kloumann, Ishan Misra, Ivan Evtimov, Jack Zhang, Jade Copet, Jaewon Lee, Jan Geffert, Jana Vranes, Jason Park, Jay Mahadeokar, Jeet Shah, Jelmer van der Linde, Jennifer Billock, Jenny Hong, Jenya Lee, Jeremy Fu, Jianfeng Chi, Jianyuan Huang, Jiawen Liu, Jie Wang, Jiecao Yu, Joanna Bitton, Joe Spisak, Jongsoo Park, Joseph Rocca, Joshua Johnston, Joshua Saxe, Junteng Jia, Kalyan Vasuden Alwala, Karthik Prasad, Kartikeya Upasani, Kate Plawiak, Ke Li, Kenneth Heafield, Kevin Stone, Khalid El-Arini, Krithika Iyer, Kshitiz Malik, Kuenley Chiu, Kunal Bhalla, Kushal Lakhotia, Lauren Rantala-Yeary, Laurens van der Maaten, Lawrence Chen, Liang Tan, Liz Jenkins, Louis Martin, Lovish Madaan, Lubo Malo, Lukas Blecher, Lukas Landzaat, Luke de Oliveira, Madeline Muzzi, Mahesh Pasupuleti, Mannat Singh, Manohar Paluri, Marcín Kardas, Maria Tsimpoukelli, Mathew Oldham, Mathieu Rita, Maya Pavlova, Melanie Kambadur, Mike Lewis, Min Si, Mitesh Kumar Singh, Mona Hassan, Naman Goyal, Narjes Torabi, Nikolay Bashlykov, Nikolay Bogoychev, Niladri Chatterji, Ning Zhang, Olivier Duchenne, Onur Çelebi, Patrick Alrassy, Pengchuan Zhang, Pengwei Li, Petar Vasic, Peter Weng, Prajjwal Bhargava, Pratik Dubal, Praveen Krishnan, Punit Singh Koura, Puxin Xu, Qing He, Qingxiao Dong, Ragavan Srinivasan, Raj Ganapathy, Ramon Calderer, Ricardo Silveira Cabral, Robert Stojnic, Roberta Raileanu, Rohan Maheshwari, Rohit Girdhar, Rohit Patel, Romain Sauvestre, Ronnie Polidoro, Roshan Sumbaly, Ross Taylor, Ruan Silva, Rui Hou, Rui Wang, Saghar Hosseini, Sahana Chennabasappa, Sanjay Singh, Sean Bell, Seohyun Sonia Kim, Sergey Edunov, Shaoliang Nie, Sharan Narang, Sharath Raparthy, Sheng Shen, Shengwe Wan, Shruti Bhosale, Shun Zhang, Simon Vandenhende, Soumya Batra, Spencer Whitman, Sten Sootla, Stephane Collot, Suchin Gururangan, Sydney Borodinsky, Tamar Herman, Tara Fowler, Tarek Sheasha, Thomas Georgiou, Thomas Scialom, Tobias Speckbacher, Todor Mihaylov, Tong Xiao, Ujjwal Karn, Vedanaj Goswami, Vibhor Gupta, Vignesh Ramanathan, Viktor Kerkez, Vincent Gonguet, Virginie Do, Vish Vogeti, Vítor Albiero, Vladan Petrovic, Weiwei Chu, Wenhan Xiong, Wenyin Fu, Whitney Meers, Xavier Martinet, Xiaodong Wang, Xiaofang Wang, Xiaoqing Ellen Tan, Xide Xia, Xinfeng Xie, Xuchao Jia, Xuewei Wang, Yaelle Goldschlag, Yashesh Gaur, Yasmin Babaei, Yi Wen, Yiven Song, Yuchen Zhang, Yue Li, Yuning Mao, Zacharie Delpierre Coudert, Zheng Yan, Zhengxing Chen, Zoe Papakipos, Aaditya Singh, Aayushi Srivastava, Abha Jain, Adam Kelsey, Adam Shajnfeld, Adithya Gangidi, Adolfo Victoria, Ahuva Goldstand, Ajay Menon, Ajay Sharma, Alex Boesenberg, Alexei Baevski, Allie Feinstein, Amanda Kallet, Amit Sangani, Amos Teo, Anam Yunus, Andrei Lupu, Andres Alvarado, Andrew Caples, Andrew Gu, Andrew Ho, Andrew Poulton, Andrew Ryan, Ankit Ramchandani, Annie Dong, Annie Franco, Anuj Goyal, Aparajita Saraf, Arkabandhu Chowdhury, Ashley Gabriel, Ashwin Bharambe, Assaf Eisenman, Azadeh Yazdan, Beau James, Ben Maurer, Benjamin Leonhardi, Bernie Huang, Beth Loyd, Beto De Paola, Bhargavi Paranjape, Bing Liu, Bo Wu, Boyu Ni, Braden Hancock, Bram Wasti, Brandon Spence, Brani Stojkovic, Brian Gamido, Britt Montalvo, Carl Parker, Carly Burton, Catalina Mejia, Ce Liu, Changhan Wang, Changkyu Kim, Chao Zhou, Chester Hu, Ching-Hsiang Chu, Chris Cai, Chris Tindal, Christoph Feichtenhofer, Cynthia Gao, Damon Civin, Dana Beaty, Daniel Kreym er, Daniel Li, David Adkins, David Xu, Davide Testuggine, Delia David, Devi Parikh, Diana Liskovich, Didem Foss, Dingkang Wang, Duc Le, Dustin Holland, Edward Dowling, Elissa Jamil, Elaine Montgomery, Eleonora Presani, Emily Hahn, Emily Wood, Eric-Tuan Le, Erik Brinkman, Esteban Arcaute, Evan Dunbar, Evan Smothers, Fei Sun, Felix Kreuk, Feng Tian, Filippos Kokkinos, Firat Ozgenel, Francesca Caggioni, Frank Kanayet, Frank Seide, Gabriela Medina Florez, Gabriella Schwarz, Gada Badeer, Georgia Swee, Gil Halpern, Grant Herman, Grigory Sizov, Guangyi Zhang, Guna Lakshminarayanan, Hakan Inan, Hamid Shojanazeri, Han Zou, Hannah Wang, Hanwen Zha, Haroun Habeeb, Harrison Rudolph, Helen Suk, Henry Aspegren, Hunter Goldman, Hongyuan Zhan, Ibrahim Damlaj, Igor Molybog, Igor Tufanov, Ilias Leontiadis, Irina-Elena Veliche, Itai Gat, Jake Weissman, James Geboski, James Kohli, Janice Lam, Japhet Asher, Jean-Baptiste Gaya, Jeff Marcus, Jeff Tang, Jennifer Chan, Jenny Zhen, Jeremy Reizenstein, Jeremy Teboul, Jessica Zhong, Jian Jin, Jingyi Yang, Joe Cummings, Jon Carvill, Jon Shepard, Jonathan McPhie, Jonathan Torres, Josh Ginsburg, Junjie Wang, Kai Wu, Kam Hou U, Karan Saxena, Kartikay Khandelwal, Katayoun Zand, Kathy Matosich, Kaushik Veeraghavan, Kelly Miche lena, Keqian Li, Kiran Jagadeesh, Kun Huang, Kunal Chawla, Kyle Huang, Lailin Chen, Lakshya Garg, Lavender A, Leandro Silva, Lee Bell, Lei Zhang, Liangpeng Guo, Licheng Yu, Liron Moshkovich, Luca Wehrstedt, M adian Khabsa, Manav Avalani, Manish Bhatt, Martynas Mankus, Matan Hasson, Matthew Lennie, Matthias Reso, Maxim Groshev, Maxim Naumov, Maya Lathi, Meghan Keneally, Miao Liu, Michael L. Seltzer, Michal Valko, Michelle Restrepo, Mihir Patel, Mik Vyatskov, Mikayel Samvelyan, Mike Clark, Mike Macey, Mike Wang, Miquel Jubert Hermoso, Mo Metanat, Mohammad Rastegari, Munish Bansal, Nandhini Santhanam, Natascha Parks, Natasha White, Navyata Bawa, Nayan Singhal, Nick Egebo, Nicolas Usunier, Nikhil Mehta, Nikolay Pavlovich Laptev, Ning Dong, Norman Cheng, Oleg Chernoguz, Olivia Hart, Omkar Salpekar, Ozlem Kalinli, Parkin Kent, Parth Parekh, Paul Saab, Pavan Balaji, Pedro Rittner, Philip Bontrager, Pierre Roux, Piotr Dollar, Polina Zvyagina, Prashant Ratanachandani, Pritish Yuvraj, Qian Liang, Rachad Alao, Rachel Rodriguez, Rafi Ayub, Raghotham Murthy, Raghu Nayani, Rahul Mitra, Rangaprabhu Parthasarathy, Raymond Li, Rebekkah Hogan, Robin Battey, Rocky Wang, Russ Howes, Ruty Rinott, Sachin Mehta, Sachin Siby, Sai Jayesh Bondu, Samyak Datta, Sara Chugh, Sara Hunt, Sargun Dhillon, Sasha Sidorov, Satadru Pan, Saurabh Mahajan, Saurabh Verma, Seiji Yamamoto, Sharadh Ramaswamy, Shaun Lindsay, Sheng Feng, Shenghao Lin, Shengxin Cindy Zha, Shishir Patil, Shiva Shankar, Shuqiang Zhang, Sinong Wang, Sneha Agarwal, Soji Sajuyigbe, Soumith Chintala, Stephanie Max, Stephen Chen, Steve Kehoe, Steve Satterfield, Sudarshan Govindaprasad, Sumit Gupta, Summer Deng, Sungmin Cho, Sunny Virk, Suraj Subramanian, Sy Choudhury, Sydney Goldman, Tal Remez, Tamar Glaser, Tamara Best, Thilo Koehler, Thomas Robinson, Tianhe Li, Tianjun Zhang, Tim Matthews, Timothy Chou, Tzook Shaked, Varun Vontimitta, Victoria Ajayi, Victoria Montanez, Vijay Mohan, Vinay Satish Kumar, Vishal Mangla, Vlad Ionescu, Vlad Poenaru, Vlad Tiberiu Mihailescu, Vladimir Ivanov, Wei Li, Wenchen Wang, Wenwen Jiang, Wes Bouaziz, Will Constable, Xiaocheng Tang, Xiaojian Wu, Xiaolan Wang, Xilun Wu, Xinbo Gao, Yaniv Kleinman, Yanjun Chen, Ye Hu, Ye Jia, Ye Qi, Yenda Li, Yilin Zhang, Ying Zhang, Yossi Adi, Youngjin Nam, Yu Wang, Yu Zhao, Yuchen Hao, Yundi Qian, Yunlu Li, Yuzi He, Zach Rait, Zachary DeVito, Zef Rosnbr ick, Zhaoduo Wen, Zhenyu Yang, Zhiwei Zhao, and Zhiyu Ma. The llama 3 herd of models, 2024.arxiv.org/abs/2407.21783
- [20]Yuzhe Gu, Xiyu Liang, Jiao jiao Zhao, and Enmao Diao. OBCache: Optimal brain KV cache pruning for efficient long-context LLM inference. In Proceedings of the 43rd International Conference on Machine Learning, pages 37110–37136. PMLR, 2026.arxiv.org/abs/2510.07651
- [21]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z. F. Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu, Bing Xue, Bingxuan Wang, Bochao Wu, Bei Feng, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chong Ruan, Damai Dai, Deli Chen, Dongjie Ji, Erhang Li, Fangyun Lin, Fucong Dai, Fuli Luo, Guangbo Hao, Guanting Chen, Guowei Li, H. Zhang, Hanwei Xu, Honghui Ding, Huazuo Gao, Hui Qu, Hui Li, Jianshong Guo, Jiashi Li, Jingchang Chen, Jingyang Yuan, Jinhao Tu, Junjie Qiu, Junlong Li, J. L. Cai, Jiaqi Ni, Jian Liang, Jin Chen, Kai Dong, Kai Hu, Kaichao You, Kaige Gao, Kang Guan, Kexin Huang, Kuai Yu, Lean Wang, Lecong Zhang, Liang Zhao, Litong Wang, Liyue Zhang, Lei Xu, Leyi Xia, Mengchuan Zhang, Minghua Zhang, Minghui Tang, Mingxu Zhou, Meng Li, Miaojun Wang, Mingming Li, Ning Tian, Panpan Huang, Peng Zhang, Qiancheng Wang, Qinyu Chen, Qiushi Du, Ruiqi Ge, Ruisong Zhang, Ruizhe Pan, Runji Wang, R. J. Chen, R. L. Jin, Ruyi Chen, Shanghao Lu, Shangyan Zhou, Shanhuang Chen, Shengfeng Ye, Shiyu Wang, Shuiping Yu, Shunfeng Zhou, Shuting Pan, S. S. Li, Shuang Zhou, Shaoqing Wu, Tao Yun, Tian Pei, Tianyu Sun, T. Wang, Wangding Zeng, Wen Liu, Wenfeng Liang, Wenjun Gao, Wenqin Yu, Wentao Zhang, W. L. Xiao, Wei An, Xiaodong Liu, Xiaohan Zhang, Xiaokang Chen, Xiaotao Nie, Xin Cheng, Xin Liu, Xin Xie, Xingchao Liu, Xinyu Yang, Xinyuan Li, Xuecheng Su, Xuheng Lin, X. Q. Li, Xiangyue Jin, Xiaojin Shen, Xiaosha Chen, Xiaowen Sun, Xiaoxiang Wang, Xinnan Song, Xinyi Zhou, Xianzhu Wang, Xinxia Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Yang Zhang, Yanhong Xu, Yao Li, Yao Zhao, Yaofeng Sun, Yaohui Wang, Yi Yu, Yichao Zhang, Yifan Shi, Yiliang Xiong, Ying He, Yishi Piao, Yisong Wang, Yixuan Tan, Yiyang Ma, Yiyuan Liu, Yongqiang Guo, Yuan Ou, Yuduan Wang, Yue Gong, Yuheng Zou, Yujia He, Yunfan Xiong, Yuxiang Luo, Yuxiang You, Yuxuan Liu, Yuyang Zhou, Y. X. Zhu, Yanping Huang, Yaohui Li, Yi Zheng, Yuchen Zhu, Yunxian Ma, Ying Tang, Yukun Zha, Yuting Yan, Z. Z. Ren, Zehui Ren, Zhangli Sha, Zhe Fu, Zhean Xu, Zhenda Xie, Zhengyan Zhang, Zhewen Hao, Zhicheng Ma, Zhigang Yan, Zhiyu Wu, Zihui Gu, Zijia Zhu, Zijun Liu, Zilin Li, Ziwei Xie, Ziyang Song, Zizheng Pan, Zhen Huang, Zhipeng Xu, Zhongyu Zhang, and Zhen Zhang. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081):633–638, 2025.DOI
- [22]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, 2021.
- [23]Coleman Hooper, Sehoon Kim, Hiva Mohammadzaeh, Michael W Mahoney, Yakun Sophia Shao, Kurt Keutzer, and Amir Gholami. KVQuant: Towards 10 million context length LLM inference with KV cache quantization. In Advances in Neural Information Processing Systems, 2024.arxiv.org/abs/2401.18079
- [24]Junhao Hu, Wenrui Huang, Weidong Wang, Zhenwen Li, Tiancheng Hu, Zhixia Liu, Xusheng Chen, Tao Xie, and Yizhou Shan. RaaS: Reasoning-aware attention sparsity for efficient LLM reasoning. In Findings of the Association for Computational Linguistics: ACL 2025, pages 2577–2590, Vienna, Austria, 2025. Association for Computational Linguistics.arxiv.org/abs/2502.11147
- [25]Junsung Hwang. LOCKS: Page-local compact key summaries for efficient long-context decoding, 2026.
- [26]Jang-Hyun Kim, Jinuk Kim, Sangwoo Kwon, Jae W. Lee, Sangdoo Yun, and Hyun Oh Song. KVZip: Query-agnostic KV cache compression with context reconstruction. In Advances in Neural Information Processing Systems, pages 167563–167591. Curran Associates, Inc., 2025.
- [27]Minsoo Kim, Kyuhong Shim, Jungwook Choi, and Simyung Chang. InfiniPot-V: Memory-constrained KV cache compression for streaming video understanding. In Advances in Neural Information Processing Systems, pages 138983–139013. Curran Associates, Inc., 2025.arxiv.org/abs/2506.15745
- [28]Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti, Ted Xiao, Ashwin Balakrishna, Suraj Nair, Rafael Rafailov, Ethan P. Foster, Pannag R. Sanketi, Quan Vuong, Thomas Kollar, Benjamin Burchfiel, Russ Tedrake, Dorsa Sadigh, Sergey Levine, Percy Liang, and Chelsea Finn. OpenVLA: An open-source vision-language-action model. In Proceedings of The 8th Conference on Robot Learning, pages 2679–2713. PMLR, 2025.arxiv.org/abs/2406.09246
- [29]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pages 611–626. Association for Computing Machinery, 2023.arxiv.org/abs/2309.06180
- [30]Wonbeom Lee, Jungi Lee, Junghwan Seo, and Jaewoong Sim. InfiniGen: Efficient generative inference of large language models with dynamic KV cache management. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24), pages 155–172, Santa Clara, CA, 2024. USENIX Association.arxiv.org/abs/2406.19707
- [31]Damien Lesens, Beheshtheh T. Rakhshan, and Guillaume Rabusseau. KQ-SVD: Compressing the KV cache with provable guarantees on attention fidelity. In Proceedings of The 29th International Conference on Artificial Intelligence and Statistics, pages 3556–3564. PMLR, 2025.arxiv.org/abs/2512.05916
- [32]Wenhao Li, Jinhao Dong, Hailin Zhang, Wenhang Shi, Wei Lu, and Xiaoyong Du. RaBitQCache: Rotated binary quantization for KVCache in long context LLM inference. In Proceedings of the 43rd International Conference on Machine Learning, pages 66762–66786. PMLR, 2026.arxiv.org/abs/2606.31519
- [33]Yuhong Li, Yingbin Huang, Bowen Yang, Bharat Venkitesh, Acyr Locatelli, Hanchen Ye, Tianle Cai, Patrick Lewis, and Deming Chen. SnapKV: LLM knows what you are looking for before generation. In Advances in Neural Information Processing Systems, pages 22947–22970. Curran Associates, Inc., 2024.arxiv.org/abs/2404.14469
- [34]Yucheng Li, Huiqiang Jiang, Qianhui Wu, Xufang Luo, Surin Ahn, Chengruodong Zhang, Amir H. Abdi, Dongsheng Li, Jianfeng Gao, Yuqing Yang, and Lili Qiu. SCBench: A KV cache-centric analysis of long-context methods. In The Thirteenth International Conference on Learning Representations, 2025.arxiv.org/abs/2412.10319
- [35]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In The Twelfth International Conference on Learning Representations, 2024.arxiv.org/abs/2305.20050
- [36]Chaofan Lin, Jiaming Tang, Shuo Yang, Hanshuo Wang, Tian Tang, Boyu Tian, Ion Stoica, Song Han, and Mingyu Gao. Twilight: Adaptive attention sparsity with hierarchical top-p pruning. In Advances in Neural Information Processing Systems, 2025.arxiv.org/abs/2502.02770
- [37]Bo Liu, Yifeng Zhu, Chongkai Gao, Yihao Feng, Qiang Liu, Yuke Zhu, and Peter Stone. LIBERO: Benchmarking knowledge transfer for lifelong robot learning. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2023.arxiv.org/abs/2306.03310
- [38]Guangda Liu, Chengwei Li, Jieru Zhao, Chenqi Zhang, and Minyi Guo. ClusterKV: Manipulating LLM KV cache in semantic space for recallable compression. In Proceedings of the 62nd ACM/IEEE Design Automation Conference (DAC), pages 1–7, San Francisco, CA, USA, 2025. IEEE.arxiv.org/abs/2412.03213
- [39]Guangda Liu, Chengwei Li, Zhenyu Ning, Jing Lin, Yiwu Yao, Danning Ke, Minyi Guo, and Jieru Zhao. FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inference. In International Conference on Learning Representations, 2026.arxiv.org/abs/2505.13109
- [40]Zirui Liu, Jiayi Yuan, Hongjin Ji, Shaochen Zhong, Zhaozhuo Xu, Vladimir Braverman, Beidi Chen, and Xia Hu. KIVI: A tuning-free asymmetric 2bit quantization for KV cache. In Proceedings of the 41st International Conference on Machine Learning, pages 32332–32344. PMLR, 2024.DOI
- [41]Enzhe Lu, Zhejun Jiang, Jingyuan Liu, Yulun Du, Tao Jiang, Chao Hong, Shaowei Liu, Weiran He, Enming Yuan, Yuzhi Wang, Zhiqi Huang, Huan Yuan, Suting Xu, Xinran Xu, Guokun Lai, Yanru Chen, Huabin Zheng, Junjie Yan, Jianlin Su, Yuxin Wu, Yutao Zhang, Zhilin Yang, Xinyu Zhou, Mingxing Zhang, and Jiezhong Qiu. MoBA: Mixture of block attention for long-context LLMs. In Advances in Neural Information Processing Systems, pages 17790–17815. Curran Associates, Inc., 2025.arxiv.org/abs/2502.13189
- [42]Junlin Mu, Hantao Huang, Jihang Zhang, Minghui Yu, Tao Wang, and Yidong Li. SALS: Sparse attention in latent space for KV cache compression. In Advances in Neural Information Processing Systems, pages 384–403. Curran Associates, Inc., 2025.
- [43]Yanlin Qi, Xinhang Chen, Huiqiang Jiang, Qitong Wang, Botao Peng, and Themis Palpanas. ParisKV: Fast and drift-robust KV-cache retrieval for long-context LLMs. In Proceedings of the 43rd International Conference on Machine Learning, pages 100229–100248. PMLR, 2026.arxiv.org/abs/2602.07721
- [44]Minghao Qin, Yan Shu, Peitian Zhang, Kun Lun, Huaying Yuan, Juenjie Zhou, Shitao Xiao, Bo Zhao, and Zheng Liu. Task-aware KV compression for cost-effective long video understanding. arXiv preprint arXiv:2506.21184, 2025.arxiv.org/abs/2506.21184
- [45]Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxing Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report, 2025.arxiv.org/abs/2412.15115
- [46]David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanze Pang, Julien Dirani, Julian Michael, and Samuel R. Bowman. GPQA: A graduate-level google-proof q&a benchmark. In First Conference on Language Modeling, 2024.arxiv.org/abs/2311.12022
- [47]Luka Ribar, Ivan Chelombiev, Luke Hudlass-Galley, Charlie Blake, Carlo Luschi, and Douglas Orr. SparQ attention: Bandwidth-efficient LLM inference. In Proceedings of the 41st International Conference on Machine Learning, pages 42558–42583. PMLR, 2024.arxiv.org/abs/2312.04985
- [48]Xiaoqian Shen, Yunyang Xiong, Changsheng Zhao, Lemeng Wu, Jun Chen, Chenchen Zhu, Zechun Liu, Fanyi Xiao, Balakrishnan Varadarajan, Florian Bordes, Zhuang Liu, Hu Xu, Hyunwoo J. Kim, Bilge Soran, Raghunarman Krishnamoorthi, Mohamed Elhoseiny, and Vikas Chandra. Long VU: Spatiotemporal adaptive compression for long video-language understanding. In Proceedings of the 42nd International Conference on Machine Learning, pages 54582–54599. PMLR, 2025.
- [49]Prajwal Singhania, Siddharth Singh, Shwai He, Soheil Feizi, and Abhinav Bhatele. Loki: Low-rank keys for efficient sparse attention. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.arxiv.org/abs/2406.02542
- [50]Hanshi Sun, Li-Wen Chang, Wenlei Bao, Size Zheng, Ningxin Zheng, Xin Liu, Harry Dong, Yuejie Chi, and Beidi Chen. ShadowKV: KV cache in shadows for high-throughput long-context LLM inference. In Proceedings of the 42nd International Conference on Machine Learning, pages 57355–57373. PMLR, 2025.arxiv.org/abs/2410.21465
- [51]Hanlin Tang, Yang Lin, Jing Lin, Qinsen Han, Danning Ke, Shikuan Hong, Yiwu Yao, and Gongyi Wang. RazorAttention: Efficient KV cache compression through retrieval heads. In The Thirteenth International Conference on Learning Representations, 2025.arxiv.org/abs/2407.15891
- [52]Jiaming Tang, Yilong Zhao, Kan Zhu, Guangxuan Xiao, Baris Kasikci, and Song Han. QUEST: Query-aware sparsity for efficient long-context LLM inference. In Proceedings of the 41st International Conference on Machine Learning, pages 47901–47911. PMLR, 2024.arxiv.org/abs/2406.10774
- [53]Keda Tao, Can Qin, Haoxuan You, Yang Sui, and Huan Wang. DyCoke: Dynamic compression of tokens for fast video large language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 18992–19001, 2025.arxiv.org/abs/2411.15024
- [54]Keda Tao, Haoxuan You, Yang Sui, Can Qin, and Huan Wang. Plug-and-play 1.x-bit KV cache quantization for video large language models. arXiv preprint arXiv:2503.16257, 2025.arxiv.org/abs/2503.16257
- [55]Weihan Wang, Zehai He, Wenyi Hong, Yean Cheng, Xiaohan Zhang, Ji Qi, Ming Ding, Xiaotao Gu, Shiyu Huang, Bin Xu, Yuxiao Dong, and Jie Tang. LVBench: An extreme long video understanding benchmark. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 22958–22967, 2025.arxiv.org/abs/2406.08035
- [56]Yuhao Wu, Ming Shan Hee, Zhiqiang Hu, and Roy Ka-Wei Lee. LongGenBench: Benchmarking long-form generation in long context LLMs. In International Conference on Learning Representations, pages 6851–6872, 2025.arxiv.org/abs/2409.02076
- [57]Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In The Twelfth International Conference on Learning Representations, 2024.arxiv.org/abs/2309.17453
- [58]Guangxuan Xiao, Jiaming Tang, Jingwei Zuo, Junxian Guo, Shang Yang, Haotian Tang, Yao Fu, and Song Han. DuoAttention: Efficient long-context LLM inference with retrieval and streaming heads. In The Thirteenth International Conference on Learning Representations, 2025.arxiv.org/abs/2410.10819
- [59]Qingyue Yang, Jie Wang, Xing Li, Zhihai Wang, Chen Chen, Lei Chen, Xianzhi Yu, Wulong Liu, Jianye Hao, Mingxuan Yuan, and Bin Li. AttentionPredictor: Temporal patterns matter for KV cache compression. In Advances in Neural Information Processing Systems, 2025.arxiv.org/abs/2502.04077
- [60]Senqiao Yang, Yukang Chen, Zhuotao Tian, Chengyao Wang, Jingyao Li, Bei Yu, and Jiaya Jia. VisionZip: Longer is better but not necessary in vision language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 19792–19802, 2025.arxiv.org/abs/2412.04467
- [61]Jingyang Yuan, Huazuo Gao, Damai Dai, Junyu Luo, Liang Zhao, Zhengyan Zhang, Zhenda Xie, Yuxing Wei, Lean Wang, Zhiping Xiao, Yuqing Wang, Chong Ruan, Ming Zhang, Wenfeng Liang, and Wangding Zeng. Native sparse attention: Hardware-aligned and natively trainable sparse attention. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 23078–23097, Vienna, Austria, 2025. Association for Computational Linguistics.arxiv.org/abs/2502.11089
- [62]Vincent-Daniel Yun, Woosang Lim, Minsoo Cheong, Sunwoo Lee, Murali Annavaram, Sai Praneeth Karimireddy, and Sungjoo Yoo. Output-aware rotation for int2 KV-cache quantization, 2026.arxiv.org/abs/2608.02691
- [63]Di Zhang, Xiaoshui Huang, Dongzhan Zhou, Yuqiang Li, and Wanli Ouyang. Accessing GPT-4 level mathematical Olympiad solutions via Monte Carlo tree self-refine with LLaMa-3 8B, 2024.arxiv.org/abs/2406.07394
- [64]Di Zhang, Jianbo Wu, Jingdi Lei, Tong Che, Jiatong Li, Tong Xie, Xiaoshui Huang, Shufei Zhang, Marco Pavone, Yuqiang Li, Wanli Ouyang, and Dongzhan Zhou. LLaMA-berry: Pairwise optimization for olympiad-level mathematical reasoning via Q1-like Monte Carlo tree search. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 7315–7337, Albuquerque, New Mexico, 2025. Association for Computational Linguistics.
- [65]Hailin Zhang, Xiaodong Ji, Yilin Chen, Fangcheng Fu, Xupeng Miao, Xiaonan Nie, Weipeng Chen, and Bin Cui. PQCache: Product quantization-based KVCache for long context LLM inference. Proc. ACM Manag. Data, 3(3), 2025.arxiv.org/abs/2407.12820
- [66]Yuanhan Zhang, Jinming Wu, Wei Li, Bo Li, Zejun Ma, Ziwei Liu, and Chunyuan Li. LLaVA-Video: Video Instruction Tuning with Synthetic Data. Transactions on Machine Learning Research, 2025.arxiv.org/abs/2410.02713
- [67]Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher Ré, Clark Barrett, Zhangyang "Atlas" Wang, and Beidi Chen. H2O: Heavy-hitter oracle for efficient generative inference of large language models. In Advances in Neural Information Processing Systems, pages 34661–34710. Curran Associates, Inc., 2023.arxiv.org/abs/2306.14048






