What can linear attention learn from nonlinear teachers in-context?
Mary Letey, Arman Rysmakhanov, Yue M. Lu, Cengiz Pehlevan, Jacob Zavatone-Veth
Key points
From the paper's conclusion- These results identify a limitation of the reduced linear-attention model and provide a tractable starting point for studying nonlinear in-context learning.
Abstract
Linear attention is a tractable model for understanding the mechanisms governing in-context learning in transformers. For linear regression tasks, recent asymptotic analyses have characterised its learning and generalisation behaviour. We extend this theory to nonlinear single-index targets, $y=f(x^\top w)+\varepsilon $. Our main result establishes a nonlinearity-noise equivalence: linear attention extracts only the linear Hermite component of $f$, while the remaining nonlinear structure contributes to the generalisation error as effective noise. This reduction allows results from the corresponding linear theory to be transferred to nonlinear tasks. We illustrate its implications for finite pretraining data and for the transition from task memorisation to task generalisation as task diversity increases. These results identify a limitation of the reduced linear-attention model and provide a tractable starting point for studying nonlinear in-context learning.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Transformers as Adaptive Kernel Learners across Tasks for In-Context LearningarXiv · 2026
- In-context Learning of Single-index Targets: Comparing Kernel and Feature LearnersarXiv · 2026
- Solvable dynamics model of in-context learningarXiv · 2026
- Emergent Inverse-Depth Scaling From Nonlinearity In AttentionarXiv · 2026
- In-context learning of solution to simple linear regression task using transformer with masked linear self-attentionarXiv · 2026
- Characterizing In-Context Learning: When Can Transformers Match Standard Learning Algorithms?2026