arXiv AI By Katsuyuki Hagiwara

In-context learning of closed form solution to simple linear regression task using transformer with linear self-attention

Read the original on arXiv AI →

arXiv:2607. 15819v1 Announce Type: cross Abstract: In-context learning is a remarkable property of transformers and has recently received a lot of interest.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv Machine Learning
Oct 9

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

The paper extends linear attention theory from linear regression to nonlinear single‑index targets, showing that linear attention only captures the linear Hermite component of the nonlinearity while treating the rest as effective noise. This nonlinearity‑noise equivalence lets existing linear results be applied to nonlinear tasks, and the authors demonstrate how finite pretraining data and increasing task diversity affect the shift from memorisation to generalisation. The work highlights a limitation of reduced linear‑attention models and offers a tractable framework for future studies of nonlinear in‑context learning.

By Mary Letey, Arman Rysmakhanov, Yue M. Lu, Cengiz Pehlevan, Jacob Zavatone-Veth
arXiv Machine Learning
4d ago

When Does Depth Matter For In-Context Learning? Adaptive Inference in Deep Transformers

The paper investigates when stacking multiple attention‑feedforward layers in transformers benefits in‑context learning. It develops a theory of distributed inference for generalized linear attention transformers, showing that deeper models can progressively refine latent context variables through internal representations called function vectors. Experiments on linear regression tasks confirm that one‑layer transformers are optimal for Gaussian priors, while multi‑layer transformers outperform them for non‑Gaussian, tree‑like priors, and causal key‑patching demonstrates that intermediate layers mediate adaptive information routing.

By Ravin Raj, Gautam Reddy