- Rating
- 6
- Clarity
- 3
- Confidence
- 5
- Originality
- 4
- Quality
- 3
- Significance
- 4
Read review
Summary
There have been previous works on transformers and its learnability and dynamics. There have been limitations missing component of analyisis- layer normalization (LN). Previous works are analysis without layer normalization, but it seems necessary for practical.
In this paper, it try to explain transformers with layer normalization through principal component prediction. Using the simplified transformers structure represented by self-attention (without MLP), it was shown that their elements converge to one power iteration through the gradient descent process. This paper shows that the power method cannot exactly learnable a transformers without layer normalization which can be example for boderline of layer normalization working.
This paper should be milestone of transformer dynamics with layer normalization.
Strengths and weaknesses
Strength
- This paper try to solve that training phenomena of Transformers' attention with layer normalization. The layer normalization is known empirically important role in Transformers training. In the case of previous works, this part is omitted. It should be milestone for understanding training with layer normalization.
- This paper shows strong examples - power iteration - a transformer without layer normalization cannot learn but with layer normalization can.
Weakness
- There are missing points for components of Transformers – embedding, MLP with non-linear activation function etc. This paper argue that attention with layer normalization.
Questions
- Is it also applicable to the case where the parameters vary for each layer (i.e. multi-layer transformers with layer normalization at each layer) if stacking is done without looping?
- The assumption 2.2 restrict the embedding function? At main paper doesn't argue that embedding functions which main components of Transformers.
Limitations
This paper discuss about that without MLP on this work. But, this paper doesn't argue that embedding function and non-linear activation function etc.
Paper formatting concerns
No concerns.
Final justification
As I commented below,
this paper proposed the range that can be proved mathematically in a rigorous manner. I gave it a high score because, as my review suggests, I expect this paper to serve as a milestone for future proofs of looped transformers. It should be contribute about a further understanding for looped transformers architecture.
Thank you for your constructive and positive feedback! We provide a detailed explanation below, hoping to address your concern.
W1. There are missing points for components of Transformers – embedding, MLP with non-linear activation function etc. This paper argue that attention with layer normalization.
A1. We agree with the reviewer that our analysis relies on a stylized linear looped transformer and a specific initialization. That said, several closely related theoretical works that study transformer training guarantees for performing various tasks or algorithms adopt comparable assumptions, including linear attention and structured nonzero initialization [1–4,8]. Moreover, most of these works focus on single-layer architectures. Our work builds on this established framework while extending it in two important directions: (i) to our knowledge, it provides the first training guarantees for both looped and single-layer transformers with LN; and (ii) through a parallel analysis of the corresponding models without LN, it demonstrates the structural necessity of LN for exactly learning the power method in our setting. We provide a detailed comparison below to clarify these distinctions.
Furthermore, although our setting is stylized, we believe our work has meaningful implications for practical transformers in at least two respects.
Our results directly imply that practical transformer variants, especially those based on linear attention [7] and ReLU-based attention [6], have the expressive power to perform the power method.
Moreover, prior work suggests that linear transformers can reproduce several prominent training-dynamics phenomena observed in full Transformers [5]. Thus, although our setting is stylized, our analysis may provide broader insight. In particular, our results show that LN can allow transformers to remain well-behaved even in the presence of large or diverging parameters, and can substantially change the training loss landscape. This may help explain the role of LN in practical transformers.
Q1. Is it also applicable to the case where the parameters vary for each layer (i.e. multi-layer transformers with layer normalization at each layer) if stacking is done without looping?
A2. Thank you for this insightful question. We believe that the underlying mechanism extends naturally to a depth-L Transformer with untied weights, although our current end-to-end optimization theorem is established only for the looped, weight-sharing architecture.
Let (Wℓ,Vℓ) denote the parameters of layer ℓ. Under the same data distribution and initialization scheme, the argument based on Schur’s lemma can be applied independently to each layer. This observation suggests that the parameters of each layer remain constrained to the following form:
\begin{pmatrix} 0 & w_{\ell} I_d \\\\ 0 & 0 \end{pmatrix}, \qquad V_{\ell} = \begin{pmatrix} 0 & 0 \\\\ v_{\ell} I_d & 0 \end{pmatrix}.$$ Writing $\rho_\ell=w_\ell v_\ell$, an untied normalized layer would implement $$a_\ell=\frac{(I_d+\rho_\ell XX^\top)a_{\ell-1}} {\left\\|(I_d+\rho_\ell XX^\top)a_{\ell-1}\right\\|_2}.$$ Consequently, stacking $L$ independently parameterized layers gives $$a_L=\frac{ \displaystyle\prod_{\ell=1}^{L}(I_d+\rho_\ell XX^\top)\\,a }{\left\\| \displaystyle\prod_{\ell=1}^{L}(I_d+\rho_\ell XX^\top)\\,a \right\\|_2}.$$ What remains unresolved is the end-to-end training dynamics of the untied model. In the looped architecture, parameter sharing reduces the optimization dynamics to two scalar variables, $w_t,v_t$, and Theorem 3.1 establishes that their product diverges, thereby yielding the exact power-method limit. In contrast, with independent layers, the reduced dynamics would involve $2L$ coupled scalar variables, $\\{w_{\ell,t}, v_{\ell,t}\\}_{\ell=1}^L$. Characterizing their joint evolution would therefore require a substantially more involved analysis. We also emphasize that looped Transformer architectures with shared weights constitute a standard theoretical model studied in prior work [8–11]. In addition to improving analytical tractability, weight sharing admits a particularly clear algorithmic interpretation: the network repeatedly applies the same learned update rule, so characterizing the shared layer directly identifies the iterative algorithm implemented by the model. We will clarify this distinction in the revised manuscript. Although the layerwise algebraic mechanism and symmetry reduction extend naturally to untied, multilayer Transformers, proving that end-to-end gradient descent drives some layer toward the power-method limit would require a new analysis of the resulting coupled dynamics. **Q2**. The assumption 2.2 restrict the embedding function? At main paper doesn't argue that embedding functions which main components of Transformers. **A3**. Thank you for this insightful question. You are correct that, if $X$ is interpreted as the output of an embedding function, then Assumption 2.2 effectively imposes conditions on the outputs of that function. We also believe that our setting is more naturally interpreted as one in which the embedding function is omitted. This is a common setup in theoretical studies of Transformers as algorithm executors [1–2,4,8-12]: the input is determined directly by the underlying numerical task, and the Transformer is analyzed as learning or implementing an algorithm on that input. Under this interpretation, Assumption 2.2 concerns the data distribution associated with the principal-component prediction task, rather than the output of a learned embedding function. We will revise the relevant discussion in Section 2 to clarify the role of the embedding function in our setting. **References:** [1] Trained Transformers Learn Linear Models In-Context. JMLR 2024 [2] Transformers learn to implement multi-step gradient descent with chain of thought. ICLR 2025 [3] Training Dynamics of In-Context Learning in Linear Attention. ICML 2025 [4] Task Descriptors Help Transformers Learn Linear Models In-Context. ICLR 2025 [5] Linear attention is (maybe) all you need (to understand transformer optimization). ICLR 2024 [6] Replacing softmax with ReLU in Vision Transformers. ArXiv 2023 [7] Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models. ArXiv 2024 [8] Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning? ICML 2024 [9] Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descent. AISTAT 2025 [10] Reasoning with Latent Thoughts: On the Power of Looped Transformers. ICLR 2025 [11] On the Role of Depth and Looping for In-Context Learning with Task Diversity. ArXiv 2024 [12] Transformer Learns Optimal Variable Selection in Group-Sparse Classification. ICLR 2025