potentialpaper

Looped Transformers with Layer Normalization Provably Learn the Power Method

Lyumin Wu, Chenyang Zhang, Yuan Cao

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Transformers have achieved remarkable success across a wide range of applications, and a growing body of work suggests that part of their strength comes from their ability to learn and execute algorithmic procedures. However, our understanding of how transformers learn such algorithms remains limited, especially in the presence of layer normalization (LN). In this work, we study principal component prediction as a concrete testbed for understanding the training dynamics of transformers with LN. We prove that a looped linear transformer with LN, trained by gradient descent, converges to a solution that implements the power method, with each self-attention layer performing one power iteration. Notably, the model is trained only for principal component prediction, rather than being explicitly supervised to implement the power method. Our finding thus reveals an ``algorithmic implicit bias'' of looped transformers with LN: principal-component prediction can in principle be achieved by many mechanisms, yet gradient descent selects one that realizes the power method. We further provide a concrete comparison between transformers with and without LN: even with layerwise guidance from power iterations, a transformer without LN cannot exactly learn the power method, whereas the corresponding transformer with LN can, leading to a provable performance gap in principal component prediction. Our results provide, to our knowledge, the first theoretical analysis of the training dynamics of looped and single-layer transformers with LN, and shed light on the role of LN in transformer models.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Thank you to the authors for the submission and to the reviewers for their careful reports. The purpose of this initial meta-review is to identify the key concerns raised by the reviewers, which are likely to play an important role in the evaluation of the paper. Addressing these concerns should therefore be a priority.

The reviews recognize the novelty of analyzing transformer training dynamics with an RMSNorm-style normalization, but raise concerns about how broadly the conclusions apply:

  1. Scope of the implicit-bias claim (related to BB9h, Weaknesses 2–3; jcY4, Weakness 1). Theorem 3.1 characterizes gradient descent from a particular initialization on a low-dimensional invariant manifold and proves that the trajectory remains on a two-dimensional invariant manifold. However, the full objective in Section 3.1 admits finite zero-loss solutions. Please clarify whether the statements that the loss has no finite minimizer and that gradient descent “selects” the power method apply only within this invariant manifold. If so, the abstract, introduction, and conclusion should state this explicitly.

  2. Negative result without normalization (BB9h, Weakness 3). Theorem 3.2 also appears to establish an initialization-specific optimization result rather than a limitation of the unnormalized model class. Please either argue for robustness to other initializations or narrow the claim from “transformers without LN cannot learn the power method” to a separation between the two specified gradient-descent trajectories.

  3. Correctness conditions for Theorem 3.3 (related to BB9h, Weakness 5). Assumption 2.2 and Example 2.3 allow XX⊤=IXX^\top = I, in which case Υ3=0\Upsilon_3=0 and the claimed parameter divergence does not hold. Moreover, DtD_t can be negative in Appendix E and should constrain η\eta. Please add the necessary nondegeneracy and step-size assumptions, or change the proof.

  4. Scope and limitations (BB9h, Weaknesses 2–3; jcY4, Weakness 1). How much of the story survives when considering more realistic settings, with softmax attention, MLPs, untied layers, realistic data, and finite-sample SGD—raised in BB9h, Weaknesses 1 and 4–5; jcY4, Weaknesses 1–3 and Questions 1–3; and waSX’s questions? Authors should provide a precise discussion of scope and limitations.

If some of these concerns are based on misunderstanding, the authors should state so and provide a detailed explanation. I further encourage the authors to address the other concerns not listed above that were raised by the different reviewers.

Final meta-review: The reviewers agreed that the paper is technically solid and identified as its main strength the novel analysis of transformer training dynamics with layer normalization, but differed substantially on the significance of the stylized setting. The rebuttal clarified that the main results are specific to the considered initialization and architecture, appropriately narrowed several claims, and added a missing condition and experiments. During discussion, one reviewer maintained a reject recommendation because of the limited theoretical scope, while the other two remained positive overall.

I recommend acceptance. The paper provides a technically sound and original contribution on an important topic. The rebuttal adequately addresses the main correctness and presentation concerns, and the remaining objections primarily concern generality and practical relevance rather than the validity of the core theoretical contribution.

Final justification

See meta-review.

Area Chair xtnM · Meta-reviewOpenReview ↗
Final justification
See meta-review.
Read meta-review
Meta-review

Thank you to the authors for the submission and to the reviewers for their careful reports. The purpose of this initial meta-review is to identify the key concerns raised by the reviewers, which are likely to play an important role in the evaluation of the paper. Addressing these concerns should therefore be a priority.

The reviews recognize the novelty of analyzing transformer training dynamics with an RMSNorm-style normalization, but raise concerns about how broadly the conclusions apply:

  1. Scope of the implicit-bias claim (related to BB9h, Weaknesses 2–3; jcY4, Weakness 1). Theorem 3.1 characterizes gradient descent from a particular initialization on a low-dimensional invariant manifold and proves that the trajectory remains on a two-dimensional invariant manifold. However, the full objective in Section 3.1 admits finite zero-loss solutions. Please clarify whether the statements that the loss has no finite minimizer and that gradient descent “selects” the power method apply only within this invariant manifold. If so, the abstract, introduction, and conclusion should state this explicitly.

  2. Negative result without normalization (BB9h, Weakness 3). Theorem 3.2 also appears to establish an initialization-specific optimization result rather than a limitation of the unnormalized model class. Please either argue for robustness to other initializations or narrow the claim from “transformers without LN cannot learn the power method” to a separation between the two specified gradient-descent trajectories.

  3. Correctness conditions for Theorem 3.3 (related to BB9h, Weakness 5). Assumption 2.2 and Example 2.3 allow XX⊤=IXX^\top = I, in which case Υ3=0\Upsilon_3=0 and the claimed parameter divergence does not hold. Moreover, DtD_t can be negative in Appendix E and should constrain η\eta. Please add the necessary nondegeneracy and step-size assumptions, or change the proof.

  4. Scope and limitations (BB9h, Weaknesses 2–3; jcY4, Weakness 1). How much of the story survives when considering more realistic settings, with softmax attention, MLPs, untied layers, realistic data, and finite-sample SGD—raised in BB9h, Weaknesses 1 and 4–5; jcY4, Weaknesses 1–3 and Questions 1–3; and waSX’s questions? Authors should provide a precise discussion of scope and limitations.

If some of these concerns are based on misunderstanding, the authors should state so and provide a detailed explanation. I further encourage the authors to address the other concerns not listed above that were raised by the different reviewers.

Final meta-review: The reviewers agreed that the paper is technically solid and identified as its main strength the novel analysis of transformer training dynamics with layer normalization, but differed substantially on the significance of the stylized setting. The rebuttal clarified that the main results are specific to the considered initialization and architecture, appropriately narrowed several claims, and added a missing condition and experiments. During discussion, one reviewer maintained a reject recommendation because of the limited theoretical scope, while the other two remained positive overall.

I recommend acceptance. The paper provides a technically sound and original contribution on an important topic. The rebuttal adequately addresses the main correctness and presentation concerns, and the remaining objections primarily concern generality and practical relevance rather than the validity of the core theoretical contribution.

1 comment
Authors · CommentOpenReview ↗

Dear AC,

Thank you for handling our paper. As the discussion period is coming to an end, we would like to summarize our response to the four key concerns you identified.

1. scope of the implicit-bias claim & 2. negative result without LN. Results rely on specific initialization.

We acknowledge that our implicit-bias analysis of looped models with LN and our negative results for models without LN rely on the specific initialization considered in our work. In the revision, we will tone down the claims and emphasize that our results concern the training dynamics under this particular initialization.

Please note that such initialization dependence is natural in analyses of transformer training dynamics, and is common in literature [1–5]. Our goal is to characterize the model training behavior in a concrete and tractable setting. The initialization we consider serves this purpose: it is simple enough to enable a precise training analysis, yet strong enough to show that models with LN can be trained to achieve good performance, including on out-of-distribution test data.

As mentioned in our response A3 to Reviewer BB9h, comparing models with/without LN is challenging because they cannot be fully separated from the perspective of expressive power. In particular, for any finite-time normalized model covered by Theorem 3.3, one can construct an unnormalized model that produces the same output direction and hence achieves the same canonical angle after looping as in Theorem 3.6. This motivates our focus on the training dynamics induced by LN, which are arguably more challenging to analyze. Nevertheless, under the controlled training setup, we show that GD leads models with/without LN to qualitatively different solutions. We believe that demonstrating the difference between models with/without LN through this more challenging training-dynamics analysis is a strength of our work, rather than a weakness.

3. Correctness conditions for Theorem 3.3.

We clarify that the first issue is a misunderstanding. Definition 2.1 assumes that the multiplicity of the largest eigenvalue satisfies r(X)∈1,…,d−1r(X)\in\\{1,\ldots,d-1\\}, and therefore excludes XX⊤=IXX^\top=I. We will revise Assumption 2.2 and Example 2.3 to state this nondegeneracy condition explicitly and avoid any ambiguity.

The second point is correct. To ensure Dt>0D_t>0, Theorem 3.3 should additionally impose the condition η<d/(2n)\eta<d/(2n), consistent with the assumptions on η\eta for L=1L=1 in Theorem 3.1. We thank the reviewer and the AC for identifying this typo and will fix it.

4. Scope and limitations.

For softmax attention, MLPs, and realistic data, we explain in our response A4 to Reviewer jcY4 that softmax does not break our rotational symmetry argument based on Schur’s lemma. Nevertheless, our full theory does not directly extend to softmax transformers because softmax attention is less naturally aligned with power iteration. In our response A4 to Reviewer BB9h, we also conduct new experiments on MNIST images. The low training and test losses suggest that the model learns to approximate power iteration on image-derived features, despite incorporating nonlinear softmax attention, multiple heads, and an MLP.

For untied layers, as discussed in our response A1 to Reviewer waSX, our proof based on Schur’s lemma can be applied independently to each layer. This suggests that, even in the untied-weight setting, the weight matrices of individual layers still lie on the same manifold identified in our analysis. However, characterizing the joint evolution of layer-wise variables would require a more involved analysis.

For finite-sample SGD, we discuss in our response A3 to Reviewer jcY4 a possible theoretical route for extending our analysis: a uniform-convergence argument that controls the gap between empirical and population gradients. Our finite-sample experiments already provide empirical support for this extension. We expect, however, that such an analysis would be substantially more involved and would require extensive perturbation arguments.

Our current theoretical scope ((looped) linear transformer, no MLP, population loss) is aligned with comparable prior works [1-5], which often adopt similar simplifications to enable rigorous training analysis. In the revision, we will more clearly discuss the scope and limitations of our theory, as well as potential extensions to more general settings and the technical challenges involved in such extensions.

Thank you very much for your time and consideration.

[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] Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning? ICML 2024

Reviewer waSXOpenReview ↗
Rating
6/6
Confidence
5/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
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.

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.

Formatting concerns

No concerns.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

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.

Paper Shallow or Deep Fully trainable WW and VV OOD LN
[1] Shallow ✓ ✓ ×
[2] Shallow with CoT × ✓ ×
[3] Shallow ✓ × ×
[4] Shallow ✓ × ×
[8] Deep Looped × ✓ ×
Ours Deep Looped ✓ ✓ ✓

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-LL Transformer with untied weights, although our current end-to-end optimization theorem is established only for the looped, weight-sharing architecture.

Let (Wℓ,Vℓ)(W_\ell, V_\ell) denote the parameters of layer ℓ\ell. 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:

Wℓ=(0wℓId00),Vℓ=(00vℓId0).W_{\ell} = \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 ρℓ=wℓvℓ\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 LL 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, wt,vtw_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 2L2L coupled scalar variables, wℓ,t,vℓ,tℓ=1L\\{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 XX 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

Reviewer waSX · CommentOpenReview ↗

Response to Authors

Dear authors,

Thanks for thoughtful rebuttal.

I agree with other reviewers mentioned limitations of proofs. However, 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. The author hopes to clearly describe these limitations.

Authors · CommentOpenReview ↗

Thank you for your thoughtful response and for recognizing the value of our theoretical results. We will clearly describe the limitations of our results in the revision. We appreciate your time and consideration.

Reviewer jcY4OpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proves that looped linear transformers with Layer Normalization, trained on principal component prediction, implicitly converge to the power method, with each self-attention layer performing one power iteration. It further shows that the corresponding model without LN cannot exactly learn the power method even with layerwise guidance, demonstrating that LN is structurally crucial for algorithmic implicit bias.

Strengths and weaknesses

Strength

  1. This is the first training-dynamics analysis for transformers that explicitly incorporates LN. Prior work typically ignores LN, so this closes a meaningful theory-practice gap.

  2. The algorithmic implicit bias is not hand-crafted: gradient descent naturally selects the power method among many possible solutions, which is a genuinely emergent finding.

  3. The numerical experiments corroborate the theory well — parameter structure, t^{1/4} growth, and the normalized-vs-unnormalized separation are all visible in practice.

Weakness

  1. The setting is highly stylized: linear attention, no MLP, no depth stacking, and population-loss training. How much survives in realistic transformers is unclear.

  2. The data models are narrow (uniform on sphere, discrete basis vectors). It is not obvious the power method would emerge as the implicit algorithm on real-world data with different spectral structure.

  3. No finite-sample guarantees are provided. The weight structure and convergence rates under stochastic gradient descent remain unproven.

Questions
  1. Do you expect the core conclusion to survive under standard softmax attention? Would the softmax nonlinearity break the Schur's lemma argument that underpins the exact power-method equivalence?

  2. A looped transformer is a special case of a standard depth-L transformer with tied weights. What does studying the looped architecture reveal that would be harder to see with independent per-layer parameters?

  3. As the paper is primarily theoretical, what are the main practical insights for someone training or designing a real-world transformer model?

Limitations

yes

Final justification

I agree that this paper is a theoretically solid paper. However, I have no idea about how the theoretical understanding in this paper can be used in practice.

Formatting concerns

NA

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We sincerely appreciate your thoughtful feedback. Below, we respond to the weaknesses you identified and provide detailed answers to your specific questions.

W1&Q3. The setting is highly stylized: linear attention, no MLP, no depth stacking, and population-loss training. How much survives in realistic transformers is unclear. What are the main practical insights for someone training or designing a real-world transformer model?

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.

Paper Shallow or Deep Fully trainable WW and VV OOD LN
[1] Shallow ✓ ✓ ×
[2] Shallow with CoT × ✓ ×
[3] Shallow ✓ × ×
[4] Shallow ✓ × ×
[8] Deep Looped × ✓ ×
Ours Deep Looped ✓ ✓ ✓

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.

W2. The data models are narrow (uniform on the sphere, discrete basis vectors). It is not obvious the power method would emerge as the implicit algorithm on real-world data with different spectral structure.

A2. We appreciate this comment. Our work is intended as a case study of training dynamics of transformers with LN. The data assumptions allow us to characterize the full training dynamics cleanly and, in particular, to isolate a sharp difference between transformers with and without LN under the same training setup. Similar assumptions are common in theoretical analyses of neural-network and transformer optimization, where they make it possible to identify mechanisms that would otherwise be difficult to study rigorously. We agree that extending the analysis to more realistic data distributions with heterogeneous spectral structures is an important direction. We will narrow our claims and make clear that the current result establishes the emergence of the power method under the specified data model in the revision.

W3. No finite-sample guarantees are provided. The weight structure and convergence rates under stochastic gradient descent remain unproven.

A3. We acknowledge that the population loss objective facilitates our theoretical analysis by ensuring a highly sparse structure for WW and VV.

That said, we expect the results to extend to the empirical-loss setting. On the theoretical side, one possible route is a uniform convergence analysis that controls the discrepancy between empirical and population gradients. A formal proof would likely involve demonstrating that all blocks, excluding V21V_{21} and W12W_{12}, remain negligible throughout the optimization process. However, we do expect that the analysis will be much more complicated, requiring a significant amount of perturbation analysis.

On the empirical side, our finite-sample experiments already provide supporting evidence for this extension: they display the same qualitative behavior predicted by the population-level theory, with the learned matrices consistently converging toward the same sparse structure. This suggests that the finite-sample regime remains well captured by our framework.

We will add a discussion in the revision.

Q1. Do you expect the core conclusion to survive under standard softmax attention? Would the softmax nonlinearity break the argument based on Schur’s lemma that underpins the exact power-method equivalence?

A4. We distinguish two separate ingredients in our theory: the blockwise scalar reduction and the exact power method.

First, softmax does not break the rotational symmetry underlying the Schur’s lemma argument. In Lemma C.3 (Lines 621–646), we use the invariance F(A,B)=F(QAQ⊤,QBQ⊤)F(A,B)=F(QAQ^\top,QBQ^\top) to show that the gradients of the active blocks commute with every orthogonal QQ and hence are scalar multiples of IdI_d. For the softmax replacement VE Softmax(E⊤WE)VE\,\mathrm{Softmax}(E^\top WE), the same equivariance holds. With TQ=diag⁡(Q,Q)T_Q=\operatorname{diag}(Q,Q), simultaneously transforming E↦TQEE\mapsto T_QE, W↦TQWTQ⊤W\mapsto T_QWT_Q^\top, and V↦TQVTQ⊤V\mapsto T_QVT_Q^\top leaves the logits unchanged, since (TQE)⊤(TQWTQ⊤)(TQE)=E⊤WE(T_QE)^\top(T_QWT_Q^\top)(T_QE)=E^\top WE. The softmax weights are therefore unchanged, while the output rotates by TQT_Q. Column-wise normalization and the loss are also rotation equivariant. Consequently, if every block is initialized as Wij=wijIdW_{ij}=w_{ij}I_d and Vij=vijIdV_{ij}=v_{ij}I_d, the population gradients preserve this form. Thus, softmax still permits a reduction to at most eight scalar block coefficients.

That said, we believe that our full theory does not directly extend to softmax Transformers. Compared with linear attention, softmax attention may be less naturally aligned with power iterations, similar to prior observations that linear or ReLU Transformers can more naturally solve in-context linear regression [1-4]. In practice, a softmax Transformer may require sufficient model capacity to approximate power-method-like behavior.

Q2. A looped transformer is a special case of a standard depth-L transformer with tied weights. What does studying the looped architecture reveal that would be harder to see with independent per-layer parameters?

A5. Thanks for the great question. The looped architecture with weight sharing gives a clean interpretation as repeatedly executing the same learned update rule. Thus, identifying the shared layer directly reveals the iterative algorithm implemented by the network. In contrast, for a standard depth-LL transformer with independent parameters, matching the output of LL power iterations does not imply that each layer has learned a reusable one-step power-iteration rule, since different layers may perform distinct and compensating computations.

The looped formulation also makes the training dynamics more tractable: it suffices to analyze one shared pair of weight matrices, whereas an untied depth-LL transformer involves LL coupled, layer-dependent parameter trajectories. Establishing that these layers learn compatible power-method-like updates would require a substantially more complex analysis.

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

Reviewer jcY4 · CommentOpenReview ↗

Thank you for your rebuttals. I agree that this paper is a theoretically solid paper.

However, I have no idea about how the theoretical understanding in this paper can be used in practice. So I suggest the authors to provide some insights and takeaways for practitioners in the revision.

Overall, I will update the score to 4.

Authors · CommentOpenReview ↗

Thank you for your response to our rebuttal and for raising your score to 4. We also appreciate your recognition of the theoretical and technical soundness of our work. In the revision, we will ensure that the main contributions of the paper are presented as theoretical, and we will avoid overclaiming. At the same time, we will add a detailed discussion of the practical implications of our findings. Specifically, our study establishes a concrete training guarantee for linear-attention transformers with normalizations [1-3]. We also demonstrate the capability of transformers with LN to serve as a power-method operator. More broadly, our work provides insights into how LN can change the loss landscape of transformers, and offers a simple and concrete demonstration that architectural choices can affect the performance of transformers through optimization properties and implicit bias, rather than through expressive power (please refer to our response A3 to Reviewer BB9h).

[1] Choose a transformer: Fourier or Galerkin. NeurIPS 2021

[2] Various lengths, constant speed: efficient language modeling with lightning attention, ICML 2024

[3] Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models. ArXiv 2024

Reviewer BB9hOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies the algorithm induced by the learned parameters obtained from training with gradient descent on the population for a looped transformer. For principal component prediction, they show that layer normalization is needed for the learned weights to implement the power method.

Strengths and weaknesses

Strengths

Rather than just demonstrating expressivity, the paper shows that the power method cannot actually be learned from training using gradient descent. Moreover, the paper makes a conceptually clear comparison between normalized and unnormalized attention models by proving how LN changes the limiting optimization behavior and have a positive impact on the model's performance. The paper addresses a real gap in current theory as most theoretical analyses of transformers remove layer normalization to keep the mathematics tractable. The proofs in this paper can therefore be helpful for future work on transformer training dynamics with layer normalization.

Weaknesses

  1. The setting is rather stylized which limits the significance of the presented results. Namely, the architecture removes softmax, uses linear attention, a simplified RMSNorm-like normalization, tied (looped) weights, and a very particular initialization. It seems these choices make the mathematics tractable, but they weaken the connection to practical transformers.

  2. The emergence of the power-method-like iteration is not very surprising given the looped residual update, the restricted parametrization in the linear attention head, and the layer normalization. The paper presents the learned power iteration as an implicit bias of transformers with layer normalization but this conclusion seems to merely be an implicit bias of a very constrained model.

  3. The unnormalized model is evaluated in a restricted parametrization and it is not clear that the negative result (namely that transformers without layer normalization cannot learn the power method) reflects an inherent limitation of transformers without layer normalization, rather than an artifact of the specific choices made for mathematical tractability.

  4. The experiments are limited to synthetic PCA tasks and only verify the predicted matrix structure and convergence trends. They do not demonstrate whether the same power method iteration is learned in realistic architectures where softmax attention, MLP layers, etc, are incorporated.

  5. It is shown that the power method is learned since the learned parameters diverge. However, in practical training the parameters of a neural network do not diverge in magnitude, in fact this is generally something that is guarded against. This discontinuity between practical training of neural networks lessens the connection between the stylized setting and realistic training regimes.

Questions

Please see weaknesses above for questions. If some of the weaknesses are addressed, I could be inclined to increase my score.

Limitations

yes

Formatting concerns

It appears that the spacing between figures and surrounding text is too small.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your valuable feedback and careful review. We address your questions as follows.

W1. stylized setting, connection to practice

A1. We agree that our analysis relies on a stylized setting. That said, several closely related theoretical works that study transformer training guarantees adopt comparable assumptions, including linear attention and structured nonzero initialization [1–4,13]. Moreover, most of these works focus on single-layer models. Our work extends this established framework in two 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:

Paper Shallow or Deep Fully trainable WW and VV OOD LN
[1] Shallow ✓ ✓ ×
[2] Shallow with CoT × ✓ ×
[3] Shallow ✓ × ×
[4] Shallow ✓ × ×
[13] Deep Looped × ✓ ×
Ours Deep Looped ✓ ✓ ✓

Furthermore, we believe our work has meaningful implications for practical transformers in two aspects:

  • 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.

W2. Power iteration relies on the model setup; not surprising

A2. Thanks for the comment. We will revise the wording to make the scope explicit in the revision.

However, we respectfully disagree that the power method is hard-coded into the model architecture or follows immediately from it.

To avoid confusion, we clarify that the weight matrices WW and VV are fully trainable. We do not manually freeze any blocks or enforce any structure. The structure identified in Theorem 3.1 is a consequence of training, rather than a constraint. As discussed in A1, our parameterization is common in the theoretical literature and is already relatively less constrained than those in these existing works.

Moreover, the residual architecture does not directly induce the power method. For example, the looped model with parameter matrices specified in Theorem 3.1 with finite αt\alpha_t and βt\beta_t can also approximate the leading eigenvector, but it is not exactly the power method. Our result shows that LN encourages gradient descent to drive parameters to infinity, thereby selecting the exact power-method update in the training limit.

Furthermore, to the best of our knowledge, our work is the first to demonstrate the emergence of the power method iteration through training. We note that prior work [8] studies the expressive power of multi-layer ReLU transformers without LN for implementing a power-method-based sequential eigenvector estimation and deflation procedure. Importantly, although [8] gives very solid approximation analysis on transformers without LN, the construction is highly elaborate, and is derived from universal approximation arguments. In comparison, our transformer implementation of power iteration is substantially simpler and arguably more intuitive. The fact that this simple implementation has not appeared in prior literature suggests that the emergence of the power-method-like iteration in our analysis is not merely an immediate or unsurprising consequence of the architecture. We therefore believe that identifying this mechanism, together with proving that it emerges through training, constitutes a meaningful contribution.

W3. negative result without LN relies on restricted parameterization

A3. We appreciate this comment. We will revise the paper to narrow the statement to emphasize that our result should be interpreted as a training-dynamics separation between the normalized and unnormalized models under the same controlled setting.

Please note that our goal is not to show that unnormalized transformers are incapable of representing power-method-like updates in general. In fact, in our setting, representability alone does not separate the normalized and unnormalized models: for any finite-time normalized model covered by Theorem 3.3, one can construct an unnormalized model that produces the same output direction, and hence achieves the same canonical angle after looping as in Theorem 3.6. This makes the comparison more challenging.

Despite the challenge, we show that, although both models can represent equally good iterative updates, gradient descent leads them to qualitatively different solutions under the same controlled training setup. We feel that being able to showcase the difference between models with and without LN under this more challenging setting based on training analysis is a strength of our work, not a weakness.

W4. Experiments limited to synthetic PCA, realistic architectures?

A4. We conduct an experiment based on the setting of Experiments in Appendix I.1, while modifying both the architecture and the data. Specifically, we replace linear attention with four-head softmax attention, aggregate the head outputs by averaging, and add a two-layer GELU MLP with residual connections. We further replace the synthetic data with MNIST images. The digit labels are not provided to the model. Each image is randomly projected to dd dimensions and then normalized, and the context matrix XX is constructed from the resulting features. After 1000010000 SGD iterations, we obtain the following losses:

Feature dimension dd Context size nn Training MSE Test MSE
16 64 0.0309 0.0329
16 32 0.0596 0.0599
8 64 0.0394 0.0409
8 32 0.0634 0.0771
8 16 0.1319 0.1402

The low training and test losses show that the model learns an approximation to the power iteration on image-derived features, despite the use of nonlinear softmax attention, multiple heads, and MLP. We will add more comprehensive experiments in the revision.

W5. Parameters do not diverge in practice

A5. We would like to clarify that our result should not be read as claiming that practical training requires parameters to diverge. Rather, the divergence appears in the infinite-time limit of a stylized setting and serves as a mathematical tool for characterizing the solution selected by gradient descent.

Please note that this type of asymptotic analysis is standard and widely used in a rich line of theoretical work [9–12], especially in the literature on implicit bias [9-11], where parameter divergence in the infinite-time limit is a classical setup for characterizing the solution selected by gradient-based optimization. In our setting, this limiting characterization allows us to prove that the learned parameter structure implements the power-method update.

Importantly, the behavior predicted by our theory also arises at finite parameter magnitudes. In Figures 1(c,f) and 4(c,f), ∣W∣max⁡\\|W\\|_{\max} and ∣V∣max⁡\\|V\\|_{\max} remain below 10, yet the learned structure and training behavior are already qualitatively consistent with the theoretical predictions.

In the revision, we will clarify that the infinite-time analysis is used to obtain a clean and rigorous characterization, while the corresponding phenomenon is visible well before parameters become extremely large.

The AC mentioned a related question in the initial meta-review:

(1) Assumption 2.2 and Example 2.3 allow XX⊤=IXX^\top=I, in which case Υ3=0\Upsilon_3=0 and the claimed parameter divergence does not hold. (2) DtD_t can be negative in Appendix E and this should constrain η\eta.

We thank the reviewer/AC for pointing this out. The first issue is a misunderstanding. Definition 2.1 assumes that the multiplicity of the largest eigenvalue satisfies r(X)∈1,…,d−1r(X)\in\\{1,\ldots,d-1\\}, and therefore excludes XX⊤=IXX^\top=I. In that degenerate case, the principal subspace is the entire space and every nonzero vector is already a principal component, so we exclude this setting. We will revise Assumption 2.2 and Example 2.3 to state this nondegeneracy condition explicitly and avoid any ambiguity.

The second point is correct. To ensure Dt>0D_t>0, Theorem 3.3 should additionally impose the condition η<d/(2n)\eta<d/(2n). We thank the reviewer/AC for identifying this omission and will revise the theorem statement in the revision.

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] Learning spectral methods by transformers. ArXiv 2025

[9] The Implicit Bias of Gradient Descent on Separable Data. JMLR 2018

[10] The implicit bias of gradient descent on nonseparable data. COLT 2019

[11] Gradient Descent Maximizes the Margin of Homogeneous Neural Networks. ICLR 2020

[12] Benign Overfitting without Linearity: Neural Network Classifiers Trained by Gradient Descent for Noisy Linear Data. COLT 2022

[13] Can Looped Transformers Learn to Implement Multi-step Gradient Descent for In-context Learning? ICML 2024

Authors · CommentOpenReview ↗

Dear Reviewer BB9h,

Thank you for your time and effort in reviewing our paper. As the discussion period is coming to an end, we would like to kindly follow up on our rebuttal and see whether it has addressed your comments and questions. We would greatly appreciate it if you could review our responses and let us know if you have any remaining questions or concerns. Thank you again for your time and valuable feedback.

Best regards,

Authors of Submission 30336

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…