atlas

Research map / Learning theory and algorithms / Sample complexity

Pretrained Transformer Efficiently Learns Low-Dimensional Target Functions In-Context

NeurIPS 2024 · Learning theory and algorithms › Sample complexity · approach: PAC learnability theory · 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 a one-layer transformer with a ReLU MLP embedding, pretrained by layer-wise gradient descent, learns Gaussian single-index functions in context with prompt length depending only on the target-subspace dimension r rather than the ambient dimension d.

Problem

In-context learning of nonlinear function classes (single-index models) by transformers: whether pretraining lets the model be statistically more efficient than estimators that only see the test prompt, which need n ≳ d samples.

Approach

Uses a linear-attention transformer with a nonlinear MLP embedding; one gradient step on the MLP weights aligns features with the r-dimensional subspace containing the index vectors, and the attention layer then performs regression on a polynomial basis of size r^{Θ(P)} in context.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Pretrain GPT-2 on Gaussian single-index tasksGPT-2 · Gaussian single-index tasks, r=8, d=16 and 32in-context prediction riskHelped
Increase ambient dimension from d=16 to d=32 or 64 while holding r=8Pretrained GPT-2 · Gaussian single-index tasks, r=8in-context prediction riskNo clear effect
Increase target subspace dimension rPretrained GPT-2 · Gaussian single-index tasksin-context sample complexityHurt
Increase ambient dimension dKernel ridge regression and two-layer neural network · Gaussian single-index tasks, r=8, d=16 and 32in-context prediction riskHurt
Use a pretrained transformer rather than learning directly from the test promptGPT-2 versus KRR and two-layer NN · Gaussian single-index tasks, r=8, d=16 and 32in-context sample complexityHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian single-index regression tasks

Benchmarks: synthetic Gaussian single-index regression

Metrics: in-context prediction risk

Baselines: kernel ridge regression two-layer neural network trained with Adam

Builds on: linear transformer in-context learning analysis single-index model feature learning (information exponent) GPT-2

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