Analogies between Transformer Layers and Power Method
Not on the map. Why?
Abstract (arXiv)
In the paper we show that there is an analogy between the operations occurring in a layer of a transformer (projections and layer normalizations, disregarding the feedforward neural network) and a step in the power method. Coherently with this analogy, we show that passing through a layer the tokens tend to be tilted towards the principal eigenvector of a matrix which is the product of the output and value weight matrices of that layer. In the special case of a transformer with shared weights (i.e., in which all layers have identical weights) then the alignment with this principal eigenvector is particularly evident empirically, and can also be shown analytically. The analogy also suggests a method to steer the output of the transformer towards an arbitrary desired direction in token space.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 29 of its 35 references that are in the map. First posted on arXiv 25 May 2026.
Builds on
29 of 35 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2022Editing Models with Task Arithmeticcited by 1,076
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2023A mathematical perspective on Transformerscited by 160
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
17 more
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 136
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
- 2023The emergence of clusters in self-attention dynamicscited by 133
- 2024The Prompt Report: A Systematic Survey of Prompt Engineering Techniquescited by 115
- 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 108
- 2022Revisiting Over-smoothing in BERT from the Perspective of Graphcited by 71
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
- 2021On the Expressive Power of Self-Attention Matricescited by 44
- 2024Dynamic metastability in the self-attention modelcited by 42
- 2023Mitigating Over-smoothing in Transformers via Regularized Nonlocal Functionalscited by 31
- 2024Residual Connections and Normalization Can Provably Prevent Oversmoothing in GNNscited by 31
- 2021Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systemscited by 29
- 2024Setting the Record Straight on Transformer Oversmoothingcited by 19
- 2025Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisationcited by 15
- 2024The Asymptotic Behavior of Attention in Transformerscited by 12
- 2025Multistability of Self-Attention Dynamics in Transformerscited by 6
- 2025A Theoretical Study of (Hyper) Self-Attention through the Lens of Interactions: Representation, Training, Generalizationcited by 4
Built on by
Not cited yet.