atlas

Research map / Learning theory and algorithms / Kernels and regression theory

How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?

ICLR 2024 · Learning theory and algorithms › Kernels and regression theory · approach: High-dimensional asymptotic generalization · 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 theoretically that a single-layer linear attention model (one-step GD with matrix stepsize) pretrained by SGD on Gaussian-prior linear regression needs only a dimension-independent number of tasks, and nearly matches Bayes-optimal ridge regression at inference when context lengths match.

Problem

How many independent pretraining tasks are needed for in-context learning of linear regression with a Gaussian prior, and how close does a pretrained single-layer linear attention model get to the Bayes-optimal (optimally tuned ridge) predictor?

Approach

Reparameterizes single-layer linear attention as one-step GD with a matrix stepsize, gives a sharp task-complexity bound for SGD pretraining via an operator method extended to 8th-order tensors (using diagonalization and operator polynomials), and shows the pretrained attention matches ridge regression risk when pretraining and inference context lengths are close.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase the number of independent pretraining tasksOne-step GD ICL · Exponential and polynomial spectra; M = N = 200MSEHelped
Increase the number of independent pretraining tasksThree-layer transformer · Polynomial spectrum λᵢ = i⁻⁴; M = NICL errorHelped
Use an inference context length close to the pretraining context lengthOptimally pretrained single-layer linear attention · Linear regression with Gaussian prioraverage regression riskHelped
Use an inference context length much smaller than the pretraining context lengthOptimally pretrained single-layer linear attention · Linear regression with Gaussian prioraverage regression risk versus tuned ridge regressionHurt
Increase ambient dimension d (ablation)One-step GD ICL · Fast-decaying covariance spectra (λᵢ ∼ 2⁻ⁱ and λᵢ ∼ i⁻²)ICL performanceNo clear effect
Replace Gaussian additive noise with uniform noise of matched variance (ablation)One-step GD ICL · Uniform-noise misspecificationICL performanceNo clear effect
Replace the linear mean with a sigmoid of βᵀx (ablation)One-step GD ICL · Sigmoid misspecificationICL performanceHurt
Replace the linear mean with (βᵀx)² (ablation)One-step GD ICL · Square-mean misspecificationICL performanceHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian linear regression tasks

Benchmarks: synthetic linear regression with Gaussian prior

Metrics: excess ICL risk regression MSE

Baselines: optimally tuned ridge regression ordinary least squares uniform convergence pretraining bound (Ahn et al.)

Builds on: Garg et al. in-context learning of linear regression Ahn et al. linear attention as one-step GD with matrix stepsize Bach and Moulines / Jain et al. operator method for SGD

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