AI Paper Atlas

Research map / Architectures and efficiency / Attention and transformers

What Can Transformers Learn In-Context? A Case Study of Simple Function Classes

NeurIPS 2022 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 58 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's title only (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train Transformer from scratch on random linear-function promptsGPT-2 style Transformer · Linear functions d=20squared error: error 0.0006 at 40 examples vs least squares 0Helped
scale test prompt inputs by 3 (distribution shift)linear-function Transformer · Linear, k=40squared error: 0.0006 -> 0.58Hurt
scale test weight vector (1/3, 1/2, 2, 3)linear-function Transformer · Linear, k=40squared error: 0.0012, 0.0008, 0.0016, 0.0278No clear effect
place in-context inputs and query in different orthantslinear-function Transformer · Linear, k=40squared error: 0.0006 -> 0.004No clear effect
skewed covariance for test inputslinear-function Transformer · Linear, skewed covariancesquared errorHurt
add label noise to in-context examples (trained noiseless)linear-function Transformer · Noisy linear regressionsquared errorNo clear effect
curriculum learning (growing subspace and prompt length) (ablation)Transformer training · Linear d=50training speed / lossHelped
curriculum learning (ablation)Transformer training · Linear d=20accuracy and robustnessNo clear effect
increase model capacity (ablation)Transformer · Linear functions, 2d examplessquared errorHelped
restrict training to n_w = 10k distinct weight vectors (vs 32M) (ablation)Transformer training · Linear d=20squared errorNo clear effect
restrict training to n_p=100k prompts or n_w=1k functions (ablation)Transformer training · Linear d=20squared errorHurt
use Transformer instead of greedy/XGBoost for decision-tree promptsdecision tree in-context learning · Decision trees depth 4, k=100squared error: 0.62 -> 0.12Helped

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