atlas

Research map / Architectures and efficiency / Attention and transformers

Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyond

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 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.

Analyzes the optimization landscape of in-context linear regression for 1-layer linear attention and H3 under correlated designs (RAG, task-feature alignment) and low-rank/LoRA parameterization, showing both implement one-step preconditioned GD and deriving risk bounds.

Problem

Prior theory of in-context learning with linear attention assumes IID task and feature vectors and fully parameterized attention weights, leaving open correlated designs, alternative architectures (SSMs like H3), low-rank parameterization, and LoRA adaptation under distribution shift.

Approach

Under odd-moment-zero assumptions, 1-layer linear attention and 1-layer H3 are shown to reduce to one-step preconditioned GD (and sample-weighted PGD for H3); correlated designs (RAG with alpha-correlation, task-feature alignment) are analyzed, yielding an effective sample size amplification factor alpha^2 d + 1, and low-rank/LoRA optimal risks are derived via covariance spectrum.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use H3 instead of linear attention with a convolutional sample-weighting filter1-layer linear ICL · Averaged context lengths 1 to n_maxtest riskHelped
Use H3 instead of linear attention with a convolutional sample-weighting filter1-layer linear ICL · Evolving task vectortest riskHelped
Correlate RAG demonstrations with the queryIn-context linear estimation · RAGeffective sample size: α²d+1Helped
Align features with the task vectorIn-context linear estimation · Task-feature alignmenteffective sample size: α²d+1Helped
Restrict attention weights to rank at most r (ablation)Linear attention · Independent linear dataoptimal riskHurt
Adapt the pretrained attention weights with rank-r LoRA (ablation)Linear attention · Shift to a new task distributionriskHelped
Use linear attention instead of H31-layer linear ICL · Independent, RAG, and task-feature alignment dataoptimal riskNo clear effect

Surprising findings

Experimental setup

Datasets: synthetic linear regression in-context prompts (independent, RAG, task-feature alignment)

Benchmarks: synthetic linear regression ICL

Metrics: normalized test risk (divided by d)

Baselines: fully parameterized linear attention independent-data PGD baseline

Builds on: linear attention as preconditioned gradient descent H3 LoRA

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