Related Experiment Video
Updated: Sep 8, 2025

Measuring Attention and Visual Processing Speed by Model-based Analysis of Temporal-order Judgments
Published on: January 23, 2017
Asymptotic theory of in-context learning by linear attention
Yue M Lu1, Mary Letey1, Jacob A Zavatone-Veth1,2,3,4
1The John A. Paulson School of Engineering and Applied Sciences, Harvard University, Cambridge, MA 02138.
Transformers exhibit in-context learning (ICL) without prior training. This study precisely models ICL in linear attention, revealing a double-descent curve and a phase transition impacting generalization versus memorization.
Area of Science:
- Artificial Intelligence
- Machine Learning
- Deep Learning
Background:
- Transformers demonstrate in-context learning (ICL), a key capability for task execution without explicit training.
- Unresolved questions persist regarding sample complexity, pretraining task diversity, and context length crucial for effective ICL.
Purpose of the Study:
- To precisely answer questions about ICL requirements using an exactly solvable model.
- To analyze the impact of pretraining task diversity and sample complexity on Transformer generalization.
Main Methods:
- Developed an exactly solvable model of ICL for a linear regression task using linear attention.
- Derived sharp asymptotics for the learning curve in a specific scaling regime (infinite token dimension, proportional context length and task diversity, quadratic pretraining examples).
Main Results:
- Demonstrated a double-descent learning curve as pretraining examples increase.
- Identified a phase transition between low and high task diversity regimes, distinguishing memorization from genuine ICL and generalization.
Conclusions:
- Theoretical insights into ICL mechanisms were derived and validated empirically.
- High task diversity is essential for Transformers to achieve genuine ICL and generalize beyond pretrained tasks.
More Related Videos
08:05Measuring Statistical Learning Across Modalities and Domains in School-Aged Children Via an Online Platform and Neuroimaging Techniques
Published on: June 30, 2020
07:36Eye Tracking During Visually Situated Language Comprehension: Flexibility and Limitations in Uncovering Visual Context Effects
Published on: November 30, 2018
Related Concept Videos
Cognitive Learning
E. C. Tolman's theory of purposive behavior emphasizes that much behavior is goal-directed. He argued that to understand behavior, we must look at the entire sequence of actions leading to a goal. For instance, high school students study hard, not just due to past reinforcement but also to achieve the goal of getting into a good college.
Tolman introduced the idea that behavior is influenced by...
Purposive Learning
Associative Learning
Classical conditioning, also known...
Observational Learning
Linear time-invariant Systems
The input-output behavior of an LTI system can be fully defined by its response to an impulsive excitation at its input. Once this impulse response is known, the system's reaction to any other input can be...
Higher Mental Functions of Brain: Learning and Memory