arXiv:2610.10761stat.MLOct 2026

Manuscript Offprint

arXiv:2610.10761

What can linear attention learn from nonlinear teachers in-context?

Mary Letey, Arman Rysmakhanov, Yue M. Lu, Cengiz Pehlevan, Jacob Zavatone-Veth

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mary Letey ∗^{*}

Applied Mathematics, Harvard University

Kempner Institute, Harvard University

maryletey@fas.harvard.edu

Yue M. Lu

Applied Mathematics, Harvard University

yuelu@seas.harvard.edu

Arman Rysmakhanov ∗^{*} †^{\dagger}

Williams College

Applied Mathematics, Harvard University

ar21@williams.edu

Cengiz Pehlevan

Applied Mathematics, Harvard University

Kempner Institute, Harvard University

cpehlevan@seas.harvard.edu

Jacob A. Zavatone-Veth

Center for Brain Science, Harvard University

Society of Fellows, Harvard University

jzavatoneveth@fas.harvard.edu

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)+εy = f(\boldsymbol{x}^\top \boldsymbol{w}) + \varepsilon. Our main result establishes a nonlinearity–noise equivalence: linear attention extracts only the linear Hermite component of ff, 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.

1 Introduction

Linear attention is a useful setting for studying in-context learning because its simplified structure admits detailed analysis of the computations performed over prompt data. This led to work connecting in-context learning to regression and statistical estimation, including recent asymptotic analyses that describe generalisation in linear-regression tasks (Zhang et al., 2023; Von Oswald et al., 2023; Lu et al., 2025; Bordelon et al., 2025; Letey et al., 2026b,a).

At the same time, linear-attention mechanisms are becoming more prevalent in real-world models. Earlier work focused on computational efficiency and recurrent fast-weight interpretations

∗^{*}Equal contribution.

†^{\dagger}This work was performed while at Harvard University.

Code for figures is available on github.

40th Conference on Neural Information Processing Systems (NeurIPS 2026) Workshop: 2nd Workshop on Principles of Generative Modeling (PriGM) at NeurIPS 2026.

(Katharopoulos et al., 2020; Schlag et al., 2021), while more recent architectures introduce delta-rule updates and gating to improve recurrent memory (Yang et al., 2024, 2023). This motivates the study of in-context learning using linear attention; specifically, we must ask which components of a nonlinear task a linear-attention block can extract in-context, and which components must instead be supplied by the surrounding architecture.

We investigate an extension of the linear-regression ICL model induced by a reduced linear-attention block (Lu et al., 2025; Zhang et al., 2023). The key extension is the addition of nonlinear target functions, i.e., single-index targets. This is a classic extension of regression in statistical estimation (Mei and Montanari, 2022; Gerace et al., 2020), appearing in both the standard supervised-learning literature and more recent ICL results. Concurrent work by Gu et al. (2026) also studies this problem, with the addition of nonlinear readout on linear attention, thus adding expressivity to learn beyond the linear mode. Alternatively, we focus specifically on linear attention and highlight its limitations on this task. Oko et al. (2024) show that transformers learn single-index tasks in context at a rate governed by the information exponent of the link function, defined as the index of its first nonzero Hermite coefficient. Related dependence on the information exponent appears in non-ICL settings (Damian et al., 2023). We likewise analyse the link function by expanding it in Hermite polynomials (Joshi et al., 2026; Eftekhari et al., 2021; Dudeja and Hsu, 2018).

This work serves to formalise the following intuition: linear attention cannot learn beyond the linear Hermite mode of the link function. If no linear mode is present, all signal is indistinguishable from noise. This hypothesis is natural from standard results studying learnability of single-index targets (Li and Duan, 1989; Brillinger, 2011; Thrampoulidis et al., 2015): when the student and link function are not compatible the full target nonlinearity cannot be learned. We expect this to apply to our case of linear attention here, as due to the lack of explicit nonlinear activation in the linear attention architecture, it cannot represent nonlinear functions of the target label. This is precisely what we show in the following.

References (23)