Random Attention Pattern Learning Enables Emergent Capabilities
Vatsal Baherwani, Charlie Chen, Shikai Qiu, Andrew Wilson, Pavel Izmailov
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Transformer In-Context Reasoning · Type: empirical study · Keywords: emergent capabilities, attention pattern learning, transformer scaling, synthetic tasks, model architecture
Areas: LLM Reasoning › Efficient Reasoning › Transformer Circuits; Model Architectures & Sequence Modeling › Language Model Architectures › Attention Geometry
Summary
Random Attention Pattern Learning reveals that emergent capabilities in transformers arise abruptly when task-relevant attention patterns are learned, linking capability emergence to the difficulty of learning sparse patterns.
Explained to a 5-year-old
When big computer programs learn to understand things, they sometimes suddenly get new skills. The researchers watched these programs learn and found that the new skills appear when the program starts paying attention to certain patterns. They used simple puzzles to see how the program learns. They found that having more attention heads helps it learn faster, while making the attention bigger doesn't help much after a point. They also tried a different kind of program and found it could do better on some puzzles.
Explained to a 5-year-old, longer
Big computer programs, like the ones that write text, get better as they learn more. Usually, their mistakes get smaller slowly, but sometimes they suddenly start doing things they couldn't do before. The researchers wanted to find out why these new abilities appear all at once. They looked at how the programs pay attention to information while they are learning. They discovered that when the program learns to notice certain patterns, that's when the new skills show up. To study this, they created simple games that involve patterns and rules. In these games, the program had to guess missing parts or figure out hidden relationships. They tried different sizes of the program, and found that larger programs learned the new skills earlier. They also tried changing how many attention heads the program has, and more heads helped it learn faster. They found that making the attention calculations bigger didn't help much after a certain point. They also tested a different kind of computer architecture called MLP-Mixer and saw it could do better on some of the puzzles. This helped them understand that learning certain patterns is the key to sudden improvements in abilities.
For a technical reader
The paper investigates why large transformer language models sometimes develop new capabilities abruptly during training, rather than improving smoothly. By training models on synthetic tasks that require pattern completion and indirect object identification, the authors isolate the role of attention pattern learning. They find that larger models acquire these capabilities earlier, that increasing the number of attention heads improves learning efficiency, and that head dimension yields diminishing returns beyond a minimum capacity. The study also shows that alternative architectures like MLP-Mixer can outperform transformers on tasks with complex patterns.
Problem
Understanding why downstream capabilities in large language models emerge abruptly rather than smoothly, and what underlying mechanisms drive these sudden improvements.
Method
The approach trains transformer models on synthetic linear map and cellular automata tasks to isolate how learning of sparse attention patterns relates to capability emergence, and examines the effects of context length, pattern sparsity, number of attention heads, and head dimension. It also compares transformers with alternative architectures such as MLP-Mixer on tasks with complex patterns.
Contributions
Provides mechanistic evidence that emergent capabilities correspond to abrupt learning of sparse attention patterns, demonstrates the influence of context length, sparsity, and head count on this emergence, and shows that alternative architectures can surpass transformers on certain pattern-rich tasks.
Research questions this paper is counted under
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