What can linear attention learn from nonlinear teachers in-context?
Mary Letey, Arman Rysmakhanov, Yue M. Lu, Cengiz Pehlevan, Jacob Zavatone-Veth
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 w)+ . 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.
Create a lesson
Related papers
In-context classification: Calibration and noise in linear attention with softmax readout
Shared title terminology · Arman Rysmakhanov, Mary Letey, Yue M. Lu et al.
MediPFN: Amortized In-Context Nuisance Learning and Inference for Causal Mediation Analysis
Shared title terminology · Shi Bo, Jiaming Hu
Amortized Bayesian Experimental Design with In-Context Knowledge Conditioning
Shared title terminology · Zhanghu Zhao, Daolang Huang, Xinyi Wen et al.
Beyond Discrete Ancestry Groups: Distribution-Aware In-Context Learning for Cancer Outcome Prediction Across the Genetic Ancestry Continuum
Shared title terminology · Weizhi Li, Yan Cui
Not All Dimensions Are Equal: Outlier-Aware Attention Linearization with Grouped Quadratic Kernels
Shared title terminology · Weiqi Sun, Qianyue Wu, Wenjia Wang et al.
Softmax Attention on Gaussian Mixtures: Linear When It Can, Selective When It Must
Shared title terminology · Simon Gabet, Etienne Boursier, Claire Boyer