You Don't Need Feature Learning to Do In-Context Learning
Joseph Turnbull, Jamie Simon
Key points
From the paper's conclusion- Third, transformers empirically trained to do ICL are shown to memorize tasks through the higher-order statistics of the training tasks that the kernel-based theory predicts, suggesting it applies even to models capable of feature learning.
Abstract
How should we understand memorization vs. generalization in in-context learning (ICL) tasks, and when does one happen vs. the other? To investigate, we study how rotation-invariant kernel machines learn the ICL linear regression task proposed by Raventos et al. (2023). By decomposing the task in the kernel eigenbasis, we obtain a spectral picture of learning in this ICL setting. This picture reveals that as sample size grows, kernel machines learn successively-higher-degree components of the memorizing solution, which depend upon successively-higher-degree statistics of the training task set. The generalizing solution is approximately a low-degree truncation of the memorizing solution, and so the model first generalizes, then degrades into memorization as training proceeds. The takeaways are threefold. First, if this case is indicative, learning a "generalizing" solution on an ICL task is really just underfitting the memorizing solution! Second, the fact that kernel machines can generalize on this task means that feature learning is inessential to ICL. Third, transformers empirically trained to do ICL are shown to memorize tasks through the higher-order statistics of the training tasks that the kernel-based theory predicts, suggesting it applies even to models capable of feature learning.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- In-context Learning of Single-index Targets: Comparing Kernel and Feature LearnersarXiv · 2026
- Transformers as Adaptive Kernel Learners across Tasks for In-Context LearningarXiv · 2026
- Characterizing In-Context Learning: When Can Transformers Match Standard Learning Algorithms?2026
- Solvable dynamics model of in-context learningarXiv · 2026
- Nonparametric In-Context Learning and Inference via Measure-Indexed Kernel Ridge RegressionarXiv · 2026
- A Circuit for In-Context LearningarXiv · 2026