atlas

Research map / Architectures and efficiency / Attention and transformers

How do Transformers Perform In-Context Autoregressive Learning ?

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Efficient language transformers · 0 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.

Trains linear Transformers on next-token prediction for first-order AR processes s_{t+1}=W s_t with orthogonal/unitary context matrices, and characterizes the minima showing in-context learning as gradient descent (augmented tokens) or trigonometric geometric relations with orthogonal heads (non-augmented).

Problem

Understanding how Transformers perform in-context learning of autoregressive processes, i.e., how a trained causal Transformer estimates the context-dependent transition matrix W in-context and then predicts the next token.

Approach

Frames in-context autoregressive learning as a two-step procedure (in-context mapping estimating W, then a prediction mapping) and analytically characterizes the global minima of a one-layer linear attention model's next-token loss under commutativity assumptions, showing a gradient-descent step (augmented tokens) or an orthogonal multi-head solution with trigonometric structure (non-augmented tok

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use softmax attention instead of linear attention (ablation)Transformer on commuting context matrices · Autoregressive next-token predictionin-context mapping fitHurt
Increase the number of attention heads (ablation)Non-augmented linear Transformer · Autoregressive next-token predictionMSENo clear effect
Duplicate token representations across dimensions (ablation)Non-augmented linear Transformer · Autoregressive next-token predictionMSEHelped
Use multiple linear Transformer layers instead of the same number of inner-loss gradient descent steps (ablation)Augmented-token linear Transformer · Autoregressive next-token predictionMSEMixed
Add softmax attention and component-wise MLP layers (ablation)Vanilla Transformer · Augmented-token autoregressive next-token predictionMSEHelped
Shuffle tokens across sequences instead of preserving their order (ablation)Autoregressive-process fit · Moby Dick token representationssequences with fitting error above 10^-12: 4 times moreHurt
Increase μ, narrowing the context-matrix distribution (ablation)Positional encoding-only model · Autoregressive process with λ = e^{i θ / μ}positional encoding smoothnessHelped

Surprising findings

Limitations

Experimental setup

Datasets: Moby Dick text (GPT-2 token embeddings) for validating AR process choice synthetic orthogonal AR process sequences

Metrics: mean squared error population loss

Baselines: gradient descent on inner loss softmax attention Transformer cosine absolute positional encoding

Builds on: Transformers learn in-context by gradient descent One-step gradient descent is optimal in-context learner for linear self-attentio

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