paper-with-me

홈 › Papers

Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation

2025-05-30 · Alessio Giorlandino, Sebastian Goldt

Finding the right initialisation for neural networks is crucial to ensure smooth training and good performance. In transformers, the wrong initialisation can lead to one of two failure modes of self-attention layers: rank collapse, where all tokens collapse into similar representations, and entropy collapse, where highly concentrated attention scores lead to training instability. While the right initialisation has been extensively studied in feed-forward networks, an exact description of signal propagation through a full transformer block has so far been lacking. Here, we provide an analytical theory of signal propagation through vanilla transformer blocks with self-attention layers, layer normalisation, skip connections and ReLU MLP. To treat the self-attention layer, we draw on a formal parallel with the Random Energy Model from statistical physics. We identify and characterise two regimes governed by the variance of the query and key initialisations: a low-variance regime, where we recover the known rank collapse behaviour; and a previously unexplored high-variance regime, where signal is preserved but \textit{entropy collapse} occurs. In the low-variance regime, we calculate the critical strength for the residual connection to ensure signal propagation. Our theory yields trainability diagrams that identify the correct choice of initialisation hyper-parameters for a given architecture. Experiments with BERT-style models trained on TinyStories validate our predictions. Our theoretical framework gives a unified perspective on the two failure modes of self-attention and gives quantitative predictions on the scale of both weights and residual connections that guarantees smooth training.

📄 PDF Abstract BibTeX arXiv:2505.24333

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Understanding the Failure Modes of Transformers through the Lens of Graph Neural Networks

2025-12-09 · Hunjae Lee arxiv

Transformers and more specifically decoder-only transformers dominate modern LLM architectures. While they have shown to work exceptionally well, they are not without issues, resulting in surprising failure modes and pre…

Graph Neural Network

PRIME: Prioritizing Interpretability in Failure Mode Extraction

2023-09-29 · Keivan Rezaei, Mehrdad Saberi, Mazda Moayeri, Soheil Feizi

In this work, we study the challenge of providing human-understandable descriptions for failure modes in trained image classification models. Existing works address this problem by first identifying clusters (or directio…

image-classificationImage Classification

UltraViCo: Breaking Extrapolation Limits in Video Diffusion Transformers

2025-11-25 · Min Zhao, Hongzhou Zhu, Yingze Wang, Bokai Yan 외 arxiv

Despite advances, video diffusion transformers still struggle to generalize beyond their training length, a challenge we term video length extrapolation. We identify two failure modes: model-specific periodic content rep…

Multiparty Dynamics and Failure Modes for Machine Learning and Artificial Intelligence

2018-10-16 · David Manheim

An important challenge for safety in machine learning and artificial intelligence systems is a~set of related failures involving specification gaming, reward hacking, fragility to distributional shifts, and Goodhart's or…

BIG-bench Machine Learning

Transformers Remember First, Forget Last: Dual-Process Interference in LLMs

2026-02-27 · Sourav Chattaraj, Kanak Raj arxiv

When large language models encounter conflicting information in context, which memories survive -- early or recent? We adapt classical interference paradigms from cognitive psychology to answer this question, testing 39 …