atlas

Research map / Architectures and efficiency / RNNs and normalization

How Data Mixing Shapes In-Context Learning: Asymptotic Equivalence for Transformers with MLPs

NeurIPS 2025 · Architectures and efficiency › RNNs and normalization · approach: Layer-wise analysis of language models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that a linear-attention Transformer with a two-layer MLP head (first layer trained by one gradient step, second by ridge) is asymptotically equivalent in ICL error to a degree-p Hermite polynomial model, and uses this to analyze how data mixing of heterogeneous sources affects ICL and feature learning.

Problem

In-context learning theory mostly relies on simplified architectures (no MLPs), isotropic linear-regression data, and single-source training, which limits relevance to realistic Transformers trained on heterogeneous mixtures of data sources.

Approach

Under high-dimensional proportional asymptotics, a linear-attention Transformer with a trained nonlinear two-layer MLP head has the same ICL error as a finite-degree Hermite polynomial surrogate, which makes the effects of multi-source data mixing, data quality (noise, covariance structure) and feature learning analyzable in closed form.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a nonlinear MLP head instead of a linear TransformerTransformer for nonlinear ICL · Synthetic nonlinear ICLICL errorHelped
Replace the nonlinear MLP with its polynomial surrogateTransformer with nonlinear MLP · Synthetic nonlinear ICLICL errorNo clear effect
Increase the proportion of data from a source with structured input covarianceTransformer with nonlinear MLP · Synthetic nonlinear ICLICL errorHelped
Increase the proportion of data from a source with structured task covarianceTransformer with nonlinear MLP · Synthetic nonlinear ICLICL errorHelped
Lower the target noise variance of the second data sourceTransformer with nonlinear MLP · Synthetic nonlinear ICLICL errorHelped
Increase the first-layer gradient step size with isotropic task vectorsTransformer with nonlinear MLP · Synthetic ICL with structured input covarianceICL errorNo clear effect
Increase the first-layer gradient step size with structured task covarianceTransformer with nonlinear MLP · Synthetic ICL with structured task covarianceICL errorHelped
Increase context lengthTransformer with nonlinear MLP · Synthetic nonlinear ICLICL errorHelped
Increase the first-layer gradient step sizeTransformer with nonlinear MLP · Multilingual Amazon Reviews CorpusICL errorHelped
Increase the proportion of English reviews in the training mixtureTransformer with nonlinear MLP · Multilingual Amazon Reviews CorpusICL errorHelped

Surprising findings

Limitations

Experimental setup

Datasets: Multilingual Amazon Reviews Corpus

Benchmarks: Multilingual Amazon Reviews Corpus

Metrics: ICL error (squared loss)

Baselines: linear Transformer (linear attention without MLP) equivalent degree-p polynomial model

Builds on: linear attention reparameterization two-stage feature learning analysis of two-layer networks Gaussian equivalence

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy