arXiv

Looped Transformers with Layer Normalization Provably Learn the Power Method

Title: Theoretical Analysis Shows Loop-Structured Transformers with Layer Normalization Naturally Implement the Power Method

Recent studies indicate that the exceptional performance of Transformers across various domains stems partly from their capacity to acquire and execute algorithmic procedures. Despite this, the mechanisms by which these models internalize such algorithms remain poorly understood, particularly when Layer Normalization (LN) is involved. This study addresses this gap by utilizing principal component prediction as a specific framework to analyze the training dynamics of LN-equipped Transformers.

We demonstrate that a linear Transformer featuring a looped architecture and LN, when optimized via gradient descent, converges to a solution that effectively executes the power method. In this configuration, each self-attention layer corresponds to a single power iteration. Crucially, this behavior emerges without explicit supervision to implement the algorithm; the model is trained solely for the task of principal component prediction. This outcome highlights an "algorithmic implicit bias" inherent to looped Transformers with LN. While principal-component prediction can theoretically be accomplished through numerous distinct mechanisms, gradient descent specifically favors the solution that mirrors the power method.

Furthermore, we establish a clear distinction between Transformer architectures with and without LN. Our analysis shows that even when provided with layerwise guidance derived from power iterations, a Transformer lacking LN fails to learn the power method exactly. In contrast, the LN-enabled counterpart succeeds, resulting in a provable performance advantage in principal component prediction tasks. To our knowledge, this work offers the first theoretical examination of the training dynamics for both single-layer and looped Transformers incorporating LN, offering new insights into the functional role of normalization in these models.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...