# Looped Transformers with Layer Normalization Provably Learn the Power Method

*Lyumin Wu, Chenyang Zhang, Yuan Cao*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149678) · [Open on the map](../papers.html#p149678)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Transformer Attention Theory](../pgroup/150.md) · Type: theory · Keywords: transformer, layer normalization, power method, principal component prediction, algorithmic implicit bias, theoretical analysis

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Transformer Structural Properties

## Summary
Looped transformers with layer normalization provably learn the power method, converging to a solution that implements iterative power iterations for principal component prediction.

## Explained to a 5-year-old
Scientists looked at a kind of computer brain that reads words. It had a trick to keep its numbers from getting too big. When it tried to find the biggest pattern in data, it ended up doing a simple repeat of multiplying numbers. This trick is like repeatedly picking the biggest direction. The study shows that this works only when the special trick is used.

## Explained to a 5-year-old, longer
A computer program that reads many words was studied by researchers. This program had a special way to stop its numbers from becoming too large, which helped it stay stable. When the program was asked to find the biggest pattern in some data, it started doing a simple process of multiplying numbers over and over again. This process is similar to repeatedly choosing the strongest direction in the data. The study found that this simple process only worked correctly when the special way of keeping numbers small was present. Without that special way, the program could not perfectly carry out the process. This shows that the way numbers are handled can change how the program learns.

## For a technical reader
We analyze a looped linear transformer with layer normalization trained on principal component prediction. Gradient descent on this model converges to implement the power method, with each attention layer performing one iteration. A comparative analysis shows that without layer normalization, the model cannot exactly learn the power method, leading to a provable performance gap. These results provide the first theoretical insight into how layer normalization influences algorithmic learning in transformers.

## Problem
It is not well understood how transformers with layer normalization learn algorithmic procedures such as iterative methods for principal component prediction.

## Method
The approach studies a looped linear transformer equipped with layer normalization, trained via gradient descent on a principal component prediction task, and provides a theoretical analysis of its training dynamics.

## Results
The approach converges to implement the power method, and transformers with layer normalization can exactly learn it while those without cannot, resulting in a provable performance gap in principal component prediction.

## Contributions
The paper provides the first theoretical analysis of training dynamics for looped and single-layer transformers with layer normalization, revealing an algorithmic implicit bias that selects the power method for principal component prediction, and demonstrates a provable advantage of layer normalization over models without it.

## Research questions this paper is counted under

- [How do activation statistics and gradient dynamics evolve across transformer layers during initialization and training?](../q/718.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149678)
