analiza aiqbench
This research proposes an exact mathematical solution for compressing Key-Value cache projections in attention mechanisms by optimizing the reconstruction of attention outputs rather than raw values. The study distinguishes this approach from standard quantization methods, offering a precise error metric based on discarded eigenvalues that is particularly relevant for improving inference efficiency in large language models.
Attention-Weighted Value Projection for KV-Cache Compression
De la arXiv
Text integralRank reduction discards dimensions; quantization keeps them at lower precision. Comparing the two requires a choice of what compression should preserve. For attention values, we study reconstruction of the attention output rather than reconstruction of the values alone. With fixed attention weights, the optimal orthogonal rank- projection uses the leading eigenvectors of , and its error is exactly the discarded eigenvalue sum. We extend this objective to calibration datasets and grouped query attention, and describe rank allocation under an additive local error budget.
We also examine the limits of using local error to predict downstream loss. Historical weight-perturbation experiments favor coefficient rounding over the value projections tested, but do not establish a comparison at equal cache storage. The resulting distinction is practical: the projection objective has an exact solution, while a comparison with cache quantization requires separate activation-level experiments.
Text integral sub licența deschisă a publicației · 140 cuvinte