- Rating
- 5
- Clarity
- 4
- Confidence
- 3
- Originality
- 4
- Quality
- 4
- Significance
- 4
Read review
Summary
The authors present a theoretical study of gated attention and prove how it can be represented as hierarchical mixture of experts (HMoE). In this process, they also show that vanilla self-attention is sample inefficient, specifically that it requires exponentially many data points as compared to the gated attention, which requires only a polynomial number of those data points for the same error bound. As a result, this work provides theoretical scaffolding for the gated attention mechanism as an improved version of the vanilla multi-head self-attention.
Strengths and weaknesses
Strengths:
-
The reduction of the gated attention unit into a three-level hierarchical MoE is non-trivial and clever. The proof represents softmax weights as routers, and value maps as experts thereby using MoE estimation theory to theoretically validate gated attention.
-
The concrete proof of how gated attention is more sample-efficient than multi-head self-attention theoretically cements the practical implications of using gated attention over vanilla attention - which is impactful for all machine learning practitioners.
-
The authors also falsifiably show the placement of non-linearity in the scaled dot product attention - something that was empirically found by Qiu et al in their work, but this paper proves the theoretical groundwork for this design choice.
Weaknesses:
-
The authors initially motivate their work by mentioning the attention sink phenomenon and the low-rank bottleneck in vanilla attention heads - both which are mitigated by gated attention. However, they avoid further theoretical discussion or analytical proof of how gated attention solves these two phenomena.
-
Connected to the previous point, the attention sink phenomenon ,which itself is predominantly a multi-layer, autoregressive effect, is perhaps not discussed because the formulation presented by the authors only deals with single layer multi-head attention. This limits the applicability of the findings of this work to real-world multi-layer networks.
Questions
-
Can the authors shed light on whether their HMoE formulation can provide any theoretical justification for the mitigation of attention sink phenomenon and low-rank bottleneck in SDPA?
-
Can the authors also talk about what implications their formulation might have on multi-layer gated attention networks?
Limitations
Yes
Paper formatting concerns
NA
Final justification
I believe the work is important for the community and the authors were successful in answering my questions during rebuttal, hence I maintain my original score, and vote to accept this work.
Dear Reviewer bv6f,
Thanks for your constructive feedback and for giving excellent (4) grade to the quality, clarity, significance, and originality of our paper. In the sequel, we will provide our response to your questions regarding the paper and hope that it will completely address your concerns.
Answer. We thank the Reviewer for raising this insightful question.
We first restate the empirical findings of Qiu et al. [25] regarding the benefits of Gated Attention. Gated Attention introduces non-linearity into the low-rank mappings underlying softmax attention and produces sparse, input-dependent gating scores that modulate the MHA output. While the former improves the expressive power of MHA, the latter helps mitigate the “attention sink” phenomenon and thereby enhances long-context extrapolation.
Our theoretical framework provides a direct explanation for the benefit of introducing non-linearity into the low-rank mapping. In Gated Attention, the activation function is applied either to the output of the value projection or to the SDPA output, thereby breaking the purely linear composition between WV,h and WO,h. Under the HMoE formulation in Equation (2), this corresponds to breaking the linear interaction between ωh,k∗ and ah,i,k∗. More specifically, Value Gated Attention and SDPA Gated Attention transform the linear expert functions (ah,i,k∗)⊤x into non-linear functions of the form φ((ah,i,k∗)⊤x) or φ(fG∗h,k(x)), respectively. This non-linearity eliminates the PDE-type interaction characterized in Equation (4), allowing Gated Attention to achieve polynomial sample complexity.
By contrast, placing the activation function after the query or key projections leaves the corresponding expert functions linear. Consequently, the PDE-type interaction in Equation (4) remains, and no improvement in sample efficiency is obtained. Overall, our theory provides a theoretical justification for why introducing non-linear activations at the value-projection or SDPA-output positions yields the most substantial benefits.
Regarding sparsity, our theoretical results also provide an intuitive explanation. In Gated Attention, sparsity arises when the gating mechanism assigns near-zero weights to irrelevant value projections while allocating larger weights to informative ones. In the HMoE interpretation, this is equivalent to assigning higher scores to useful experts and suppressing uninformative experts. Achieving such selective weighting requires the gating mechanism to distinguish accurately between helpful and unhelpful components. Since our analysis shows that Gated Attention has lower sample complexity than standard MHA, its gating parameters can be estimated more accurately from a given number of samples. Consequently, the resulting gating scores are more reliable, enabling the model to suppress irrelevant experts more effectively and thereby produce a sparser score pattern.
Answer. We thank the Reviewers for this insightful question. Our analysis focuses on a single Gated Attention block to isolate the statistical mechanism through which nonlinearity improves sample complexity. Nevertheless, the proposed formulation can be naturally extended to multi-layer architectures. Conditional on the representations generated by preceding layers, each Gated Attention block retains the same HMoE interpretation. Accordingly, a deep Gated Attention network may be viewed as a compositional HMoE, in which representations are sequentially routed through layer-specific experts. This perspective suggests that the beneficial nonlinearity by our analysis may arise locally at each layer and accumulate throughout the network depth.
However, a comprehensive multi-layer analysis would also need to account for the joint learning of intermediate representations and their interactions with residual connections, normalization layers, feed-forward modules, and causal masking. Promising directions for future work include establishing layer-wise and path-wise expert identifiability, analyzing how estimation errors propagate with network depth, and determining whether gating is most effective when applied at every layer or only at selected layers.
References
[25] Qiu et al. Gated attention for large language models: Non-linearity, sparsity, and attention-sink-free. NeurIPS, 2025