paper-with-me

홈 › Papers

Mechanism and Emergence of Stacked Attention Heads in Multi-Layer Transformers

2024-11-18 · Tiberiu Musat

In this paper, I introduce the retrieval problem, a simple yet common reasoning task that can be solved only by transformers with a minimum number of layers, which grows logarithmically with the input size. I empirically show that large language models can solve the task under different prompting formulations without any fine-tuning. To understand how transformers solve the retrieval problem, I train several transformers on a minimal formulation. Successful learning occurs only under the presence of an implicit curriculum. I uncover the learned mechanisms by studying the attention maps in the trained transformers. I also study the training process, uncovering that attention heads always emerge in a specific sequence guided by the implicit curriculum.

📄 PDF Abstract BibTeX arXiv:2411.12118

Code (0)

등록된 구현이 없습니다.

Tasks

Retrieval

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 설명 없음

Similar Papers 제목 키워드 기반

Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization

2026-05-29 · Felipe Urrutia, Juan José Alegría, Cinthia Sanchez Macias, Jorge Salas 외 arxiv

Transformer-based language models are widespread in today's society. As such, understanding the mechanisms by which they solve structured tasks and predicting how they may behave in novel scenarios is of great importance…

GAPNet: Graph Attention based Point Neural Network for Exploiting Local Feature of Point Cloud

2019-05-21 · Can Chen, Luca Zanotti Fragonara, Antonios Tsourdos

Exploiting fine-grained semantic features on point cloud is still challenging due to its irregular and sparse structure in a non-Euclidean space. Among existing studies, PointNet provides an efficient and promising appro…

Graph Attention

Emergence of Computational Structure in a Neural Network Physics Simulator

2025-04-16 · Rohan Hitchcock, Gary W. Delaney, Jonathan H. Manton, Richard Scalzo 외

Neural networks often have identifiable computational structures - components of the network which perform an interpretable algorithm or task - but the mechanisms by which these emerge and the best methods for detecting …

Iteration Head: A Mechanistic Study of Chain-of-Thought

2024-06-04 · Vivien Cabannes, Charles Arnal, Wassim Bouaziz, Alice Yang 외

Chain-of-Thought (CoT) reasoning is known to improve Large Language Models both empirically and in terms of theoretical approximation power. However, our understanding of the inner workings and conditions of apparition o…

Debiasing LLMs by Masking Unfairness-Driving Attention Heads

2025-10-11 · Tingxu Han, Wei Song, Ziqi Ding, Ziming Li 외 arxiv

Large language models (LLMs) increasingly mediate decisions in domains where unfair treatment of demographic groups is unacceptable. Existing work probes when biased outputs appear, but gives little insight into the mech…