Solvable dynamics model of in-context learning
Ruoran Bai, Haiping Huang
Key points
From the paper's conclusion- Our work adds insights toward understanding the mechanism of in-context learning, especially from a learning dynamics perspective.
Abstract
Pretrained Transformer architectures display a surprising in-context learning ability without additional training. How the learning process guides the network to achieve this intriguing capability remains unsolved. In this study, we focus on a single-layer, single-head linear attention model, where empirical risk minimization is defined for learning. Given a finite amount of training examples, we determine the exact solution of network parameter dynamics, which is linked to the training error and generalization error, characterizing how memorization and generalization emerge from learning and how these transitions are related to curvatures of the empirical risk landscape. Furthermore, we calculate a data-dependent free energy, from which the training and generalization errors in the long-time limit of learning dynamics can be well predicted. Our work adds insights toward understanding the mechanism of in-context learning, especially from a learning dynamics perspective.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- What can linear attention learn from nonlinear teachers in-context?arXiv · 2026
- Distinct mechanisms underlying in-context learning in transformersPhysical Review X · 2026
- In-context learning of solution to simple linear regression task using transformer with masked linear self-attentionarXiv · 2026
- In-context Learning of Single-index Targets: Comparing Kernel and Feature LearnersarXiv · 2026
- You Don't Need Feature Learning to Do In-Context LearningarXiv · 2026
- When Thoughts Become Memory: Unifying In-Context Learning and Fine-TuningarXiv · 2026