Multi-Head Self Attention is a Parameter Identification Mechanism

📅 2026-09-01
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
本文证明了多头自注意力机制可视为参数识别策略,探讨了更多头数如何提高模型的识别度,并通过数学和实验验证了这一理论。
📝 Abstract
We prove that a multi-head scaled dot product attention can be viewed as a parameter identification strategy. The ratio of unidentified parameters to the total number of parameters scales like the reciprocal of the number of heads ($1/2 \to 1/(2H)$), meaning models with more heads are structurally more identified. A subtle side effect of the mathematics observation that attention can never be fully identified. Similarly we also show that some bias terms can have no effect on softmax-based attention layers in both the single- and multiple-head settings, though this is mostly a curiosity that should have a marginal effect on model size and model training/prediction efficiency. We also touch on modern improvements to transformers including RoPE and GQA from this perspective, illustrating how those as well can improve the ratio of ``meaningful'' parameters to all parameters. Simple numerical examples demonstrate that training can indeed involve updates that overlap model-invariant subspaces that arise from a lack of identification. As part of our experiments we use a ``rebalancing'' approach that can ``fix'' updates that overlap unindentified subspaces but do not try to present evidence this should actually be adopted. Instead we simply view our numerical results as exploring and confirming the theoretical results. As a whole we discuss a purely mathematical/statistical explanation, identification, for why specific architectural choices in transformers may have improved performance.
Problem

Research questions and friction points this paper is trying to address.

multi-head self-attention
parameter identification
unidentified parameters
bias terms
transformers
Innovation

Methods, ideas, or system contributions that make the work stand out.

multi-head self-attention
parameter identification
RoPE
GQA
model-invariant subspaces
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
W
W. Ross Morrow