atlas

Research map / Architectures and efficiency / Attention and transformers

MLPs Learn In-Context on Regression and Classification Tasks

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 2 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 vanilla MLPs and MLP-Mixers can learn in-context on synthetic regression and classification tasks at compute comparable to Transformers, and outperform Transformers on psychology-style relational reasoning tasks.

Problem

In-context learning is often assumed to be unique to attention-based Transformers; it is unknown whether MLPs can learn in-context and how they compare to Transformers under equal compute on synthetic ICL and relational reasoning tasks.

Approach

Evaluates vanilla MLPs and MLP-Mixers against Transformers on controlled ICL regression/classification tasks (compute-matched, online training), showing MLPs learn in-context, and on classical relational tasks (match-to-sample, sphere/line oddball) where MLPs outperform Transformers, plus a relationally bottlenecked MLP baseline.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a vanilla MLP instead of a TransformerICL regression · Unrestricted regression distributionMSENo clear effect
Use an MLP-Mixer instead of a vanilla MLPICL regression · Unrestricted regression with long contextsexcess MSEHelped
Increase context lengthVanilla MLP · Unrestricted ICL regressionexcess MSEHurt
Increase data diversityMLP, Mixer, and Transformer · ICL regressionMSE on the unrestricted distributionHelped
Use a vanilla MLP instead of a TransformerICL classification · Classification with k = 2048, B = 4, L = 8cross entropy lossNo clear effect
Increase context lengthMLP-Mixer · ICL classificationcross entropy lossHurt
Increase data diversityMLP, Mixer, and Transformer · ICL classificationaccuracyHelped
Use a vanilla MLP instead of a TransformerMatch to sample · Match-to-samplecross entropy lossHelped
Use a relationally bottlenecked MLP instead of a vanilla MLPMatch to sample · Match-to-samplecross entropy lossHelped
Test on a different circle radius after training at unit radiusTransformer · Match-to-sample OOD radiusaccuracyHurt
Use a vanilla MLP instead of a TransformerSphere oddball · Sphere oddballcross entropy lossHelped
Test at longer oddball distances than trainingVanilla MLP or RB MLP instead of Transformer · Sphere oddball OOD distanceaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic in-context regression data synthetic in-context classification (Gaussian mixture) data match-to-sample synthetic task sphere and line oddball synthetic tasks same-different task

Benchmarks: in-context regression (MSE vs Bayes-optimal Ridge) in-context classification (cross entropy, IWL vs ICL accuracy) match-to-sample sphere oddball line oddball simple regression simple classification

Metrics: mean squared error cross entropy loss accuracy excess MSE compute (PFLOPs)

Baselines: Transformer MLP-Mixer relationally bottlenecked MLP Ridge regression (Bayes optimal) dMMSE estimator

Builds on: Transformers in-context learning (Garg et al.) MLP-Mixer relational bottleneck (Webb et al.) Boix-Adsera et al. relational impossibility

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