acceptodds
Under review as a conference paper at ICLR 2027

Spectral Attention Coresets via Vector Balancing

Abstract

The key–value (KV) cache is a major memory bottleneck in long-context inference. Attention coresets compress the cache to a small set of KV pairs while preserving the attention output within of the full cache for every query of norm at most . For keys and values in the unit ball of , the recent work of lak2026 establishes a coreset size of . We extend this framework to matrix-valued values, measuring approximation error in operator norm, which uniformly controls all quadratic forms and eigenvalues of the retrieved matrix; for covariance-valued attention, these include every predicted variance. Our bound yields a coreset size of , where is the key dimension and is the spectral Gaussian width of the span of the values. Experiments with a practical greedy variant of the walk, which the online theorem does not cover, show – lower maximum held-out-query error than uniform sampling on electroencephalography (EEG) covariance matrices for , and – fewer pairs to reach selected error targets on synthetic values.

Then back it, or bet against it.

Related papers

Open the market on this paper to see 7 more related papers.