跳到正文
arXiv cs.AI· Sidharth S S·· 3 天前AI 评分33

跨头循环环方法减半多头自注意力 Query-Key 参数

Your Query Is My Key: Halving Attention Parameters via Cross-Head Cyclic Rings

AI 导读

arXiv 论文提出一种跨头循环环构造,利用每个头仅一个投影、其余从相邻头借用,去除多头自注意力中的 gauge 冗余,将 query-key 参数、GEMM 数量和 optimizer states 减半。

正文 · 原文

View PDF HTML (experimental)

Abstract:In multi-head self-attention, the logits depend solely on the bilinear product $U_h = W_{Q,h}W_{K,h}^{\top}$. This creates a $d_h^{2}$-dimensional gauge redundancy in each head. Thus, we ask: Can we remove half the query-key parameters without losing directional attention? If we keep $W_{Q,h} = W_{K,h}$, then it will remove half the parameters, but it will make the score matrix a symmetric positive semidefinite Gram matrix, which cannot express directional retrieval or negative self-scores. In this paper, we first derive the exact identity that comes with this redundancy, and thereafter, we describe the symmetry and sign constraints when we do direct tying. Then, we introduce a cross-head cyclic construction, which utilises only one projection per head and borrows the other from a neighbouring head to calculate the scores, forming a cyclic ring. It will reduce the query-key parameter count, GEMM count, and optimizer states by half. In the experimental part, we have covered associative recall, character-level language modelling, memory use, and some small-scale expressiveness tests. In these tested cases, the cyclic model achieved competitive performance with half the query-key parameters compared to a paired setting. These measurements do not establish any general advantage, but they have shown that the cyclic restriction can retain strong performance at the tested scale.
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.38680 [cs.AI]
  (or arXiv:2611.38680v2 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2611.38680

arXiv-issued DOI via DataCite

Submission history

From: Sidharth Ss [view email]
[v1] Sat, 28 Nov 2026 09:21:56 UTC (412 KB)
[v2] Tue, 1 Dec 2026 20:03:57 UTC (628 KB)

来源:arXiv cs.AI · arxiv.org