跳到正文
arXiv cs.AI· Irene Tenison, Abdulrahman Alabdulkareem, Daniel Karl I. Weidele, Nima Dehmamy, Dan Gutfreund·· 2026-10-21AI 评分41

RACE:基于 Query-Key 激活能量的 RoPE 对齐注意力压缩方法

RACE: RoPE-Aligned Attention Compression Based on Query-Key Activation Energies

AI 导读

arXiv 论文提出 RACE,一种后训练 KV cache 头维压缩方法,通过按 query-key 联合激活能量选择完整旋转对,与预训练 RoPE 变换兼容,无需推理时重建或专用 kernel。

正文 · 原文

View PDF HTML (experimental)

Abstract:Head-dimension compression can reduce the memory required by the key-value (KV) cache, but existing methods often reconstruct full-dimensional representations during inference, adding significant decoding FLOPs overhead. We formalize the design considerations for converting pretrained attention into a natively reduced-dimensional form that reduces both KV-cache storage and attention computation using a calibration set. Specifically, we consider reductions that (1) apply a shared projection to queries and keys so that they remain in a common reduced feature space, (2) derive this projection jointly from query and key activations to better preserve their interaction, and (3) are compatible with the pretrained RoPE transformation. To obtain a reconstruction-free realization of this reduction, we restrict it to coordinate selection and theoretically show that RoPE compatibility then holds if and only if complete rotary pairs are retained. Building on this characterization, we introduce RACE, a post-training method that selects rotary pairs using their joint query-key activation energy. We theoretically show that this criterion minimizes a separable, calibration-dependent upper bound on post-RoPE query-key product approximation error. The resulting reductions are folded into the model weights and require neither runtime reconstruction nor specialized kernels. Across three model families and different compression levels, RACE outperforms structured pruning and remains competitive with reconstruction-based methods on language-modeling, zero-shot, and long-context tasks. At 50% KV-cache retention and 256K context, RACE reduces total inference FLOPs by 47.8%, yielding 1.79x higher throughput, 43.2% lower time-to-first-token (TTFT), and 28.1% lower allocated GPU memory in comparison to an uncompressed model.
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.28385 [cs.AI]
  (or arXiv:2610.28385v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.28385

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Irene Tenison [view email]
[v1] Tue, 20 Oct 2026 15:34:02 UTC (6,380 KB)

来源:arXiv cs.AI · arxiv.org