atlas

Research map / Learning theory and algorithms / Prediction and decision losses

Transformers can optimally learn regression mixture models

ICLR 2024 · Learning theory and algorithms › Prediction and decision losses · approach: Theory of neural network sensitivity · 1 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 decoder-only transformers trained on prompts from a discrete mixture of linear regressions approach the Bayes-optimal posterior-mean predictor, and proves constructively that a transformer can implement that predictor.

Problem

Learning mixtures of linear regressions from batched in-context prompts, where each batch comes from one unknown subpopulation; existing algorithms are model-specific and need problem parameters.

Approach

Train autoregressive transformers on prompts drawn from a discrete mixture of linear regressions; show empirically their predictions track the decision-theoretic posterior-mean (exponential-weights) predictor, and give an explicit construction of a transformer that computes that posterior mean exactly.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use a trained transformer instead of OLSmixtures of linear regressions · mixture of linear regressionsnormalized MSEHelped
use a trained transformer instead of the oracle posterior meanmixtures of linear regressions · mixture of linear regressionsnormalized MSENo clear effect
use a trained transformer instead of the oracle argmin proceduremixtures of linear regressions · mixture of linear regressionsnormalized MSENo clear effect
train a transformer with a fixed training set size rather than using model-specific proceduresmixtures of linear regressions · fixed training set sizesmean-squared errorNo clear effect
compare transformer predictions with the posterior mean using oracle weightstrained transformer · simulated mixtures with noise level σ = 1.0squared prediction distanceHelped
evaluate with covariates scaled by κ ∈ {0.33, 0.5, 2}trained transformer · covariate scaling shiftnormalized MSENo clear effect
evaluate with covariate shifts much larger than κ ∈ {0.33, 0.5, 2}trained transformer · covariate scaling shiftnormalized MSEHurt
scale mixture weights away from their training valuestrained transformer · weight scaling shiftnormalized MSEHurt
apply a small additive weight shift (ε = 0.25)trained transformer · additive weight shiftnormalized MSENo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic discrete mixture of linear regressions prompts

Benchmarks: synthetic mixture of linear regressions prompts

Metrics: normalized mean squared error squared distance between predictors d_k^sq MSE under covariate and weight shifts

Baselines: ordinary least squares argmin oracle posterior mean with oracle weights posterior mean with EM weights posterior mean with SA weights

Builds on: in-context learning of linear regression by transformers batch expectation-maximization subspace algorithm for batched mixed linear regression RAW operator transformer construction

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