Skip to content
DraconiticResearch
Search Sources API
194,220 studies31 sourcesUpdated 2 min ago
PreprintCC BY 4.0arXiv

SAKI-RoPE: Score-Aware Low-Rank Key Indexing with RoPE-Aware Covariance and Random-Matrix Noise Analysis

Abstract

Existing low-rank KV-cache indexes preserve model weights or key variance, not the attention scores that determine retrieval. We derive the expected score distortion of key-side rank-r compression, a two-sided covariance-weighted low-rank problem that uses both query and key statistics, and solve it exactly: the optimum is an optimal rank-r linear score map, computed in closed form from two d x d covariances per head, and its predicted per-head score-MSE reduction matches measurement (Pearson r = 0.997). The resulting training-free index, SAKI, beats key-PCA at every rank on LLaMA-3.1-8B, Qwen2.5-7B, Mistral-7B and Llama-3.2-3B, at every context length from 4K to 64K, and in every calibration-domain pair (0.748 -> 0.799 recall@64 at r = 32 on LLaMA-3.1-8B). Because RoPE rotates keys by their distance from the query, we make the closed form RoPE-aware by averaging the query covariance over rotations; this SAKI-RoPE, our main method, raises recall to 0.861, beats PCA on every head of all four models, and needs only 28-39% of PCA's rank to match it at r = 32 across the four models. Random-matrix theory of the covariance estimation noise shows that 512 calibration tokens suffice and that clipping the Marchenko-Pastur noise bulk helps SAKI when calibration is short. We make no perplexity claim: with the attention sink pinned, perplexity differences between indexes are small and depend on model and text, and we show that any low-rank index calibrated on a long prefix drops the attention-sink token, which collapses 32K perplexity unless the sink is pinned.

Related

  1. Matrix-Aware Proper Scoring Rules and Significance Testing for Correlation and Covariance Forecasts in Python
    Vinh Nguyen
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  2. Covariance-Informed Ensemble Score Filtering: Embedding Localized Covariance Geometry into Score-Based Transport
    Siming Liang, Peter Jan van Leeuwen, Hristo G. Chipilski +3
    arXivPreprintarXiv licenceFull textAtmospheric science & meteorologyNumerical analysis & scientific computingarXiv
  3. Score-based confidence intervals for variance-covariance parameters in linear mixed models
    Matias Shedden, Karl Oskar Ekvall
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  4. A Beta-Based Heteroskedasticity-Consistent Covariance Matrix Estimator
    Marina O. Cunha, Francisco Cribari-Neto, Pedro R. D. Marinho
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  5. Change-point detection in variance-covariance matrix
    Ying Lin, Benjamin Poignard
    arXivPreprintarXiv licenceFull textStatisticsarXiv
BibTeX
@misc{zhang2026sakirope,
  title = {{SAKI-RoPE: Score-Aware Low-Rank Key Indexing with RoPE-Aware Covariance and Random-Matrix Noise Analysis}},
  author = {Lin Zhang},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2608.03228},
  eprint = {2608.03228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.03228},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - SAKI-RoPE: Score-Aware Low-Rank Key Indexing with RoPE-Aware Covariance and Random-Matrix Noise Analysis
AU  - Lin Zhang
PY  - 2026
DA  - 2026/10/25
PB  - arXiv
DO  - 10.48550/arxiv.2608.03228
UR  - https://arxiv.org/abs/2608.03228
AB  - Existing low-rank KV-cache indexes preserve model weights or key variance, not the attention scores that determine retrieval. We derive the expected score distortion of key-side rank-r compression, a two-sided covariance-weighted low-rank problem that uses both query and key statistics, and solve it exactly: the optimum is an optimal rank-r linear score map, computed in closed form from two d x d covariances per head, and its predicted per-head score-MSE reduction matches measurement (Pearson r = 0.997). The resulting training-free index, SAKI, beats key-PCA at every rank on LLaMA-3.1-8B, Qwen2.5-7B, Mistral-7B and Llama-3.2-3B, at every context length from 4K to 64K, and in every calibration-domain pair (0.748 -> 0.799 recall@64 at r = 32 on LLaMA-3.1-8B). Because RoPE rotates keys by their distance from the query, we make the closed form RoPE-aware by averaging the query covariance over rotations; this SAKI-RoPE, our main method, raises recall to 0.861, beats PCA on every head of all four models, and needs only 28-39% of PCA's rank to match it at r = 32 across the four models. Random-matrix theory of the covariance estimation noise shows that 512 calibration tokens suffice and that clipping the Marchenko-Pastur noise bulk helps SAKI when calibration is short. We make no perplexity claim: with the attention sink pinned, perplexity differences between indexes are small and depend on model and text, and we show that any low-rank index calibrated on a long prefix drops the attention-sink token, which collapses 32K perplexity unless the sink is pinned.
ER  -