atlas

Research map / Optimization / Implicit bias and generalization

On the Learn-to-Optimize Capabilities of Transformers in In-Context Sparse Recovery

ICLR 2025 · Optimization › Implicit bias and generalization · approach: In-context learning as gradient descent · 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.

Shows that a K-layer decoder-only Transformer can implement a LISTA-type learning-to-optimize algorithm (LISTA-VM) for in-context sparse recovery, with provable linear-in-K convergence and generalization across measurement matrices.

Problem

Understanding whether Transformers' in-context learning can be explained as learning-to-optimize (L2O) algorithms, specifically for in-context sparse recovery (LASSO), where prior work gives only sublinear convergence and L2O methods require fixed measurement matrices between training and testing.

Approach

Construct a K-layer decoder-based Transformer whose attention layers implement context-dependent LISTA updates with D_n = (1/(2n+1)) X_{1:n}^T M^T, so the learned matrix adapts to each in-context measurement matrix; this gives linear convergence in K and generalization to varying measurement matrices and prompt lengths.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LISTA-VM instead of classical LISTA-type methods on varying measurement matricesIn-context sparse recovery · Varying Xlabel prediction lossHelped
Use GPT-2 instead of Small TFIn-context sparse recovery · Varying Xlabel prediction lossHelped
Test classical LISTA-type algorithms with measurement matrices varying from trainingLISTA, LISTA-CP, and ALISTA · Varying Xlabel prediction lossHurt
Use the same measurement matrix at test time as during trainingClassical LISTA-type algorithms · Fixed Xlabel prediction lossHelped
Meta-train LISTA and LISTA-CP across measurement matrices rather than train with a fixed matrixLISTA and LISTA-CP · Varying Xlabel prediction lossHurt
Restrict sparse-vector support to the first 10 entries (ablation)Small TF and GPT-2 · In-context sparse recovery, support restricted to first 10 entrieslabel prediction lossHelped
Restrict sparse-vector support to the first 10 entries (ablation)Baseline algorithms · In-context sparse recovery, support restricted to first 10 entrieslabel prediction lossNo clear effect
Use LISTA-VM-SS by zeroing measurement-matrix columns outside the known support (ablation)LISTA-VM · In-context sparse recovery, support restricted to first 10 entriesprediction error: approximately 0.07; almost 10 × better than the standard version of LISTA-VMHelped
Use query read-out instead of linear read-out (ablation)Small TF · In-context sparse recovery, label predictionlabel prediction errorHelped
Increase the number of in-context measurements when comparing linear and query read-outs (ablation)Small TF · In-context sparse recovery, label predictionlabel prediction errorNo clear effect
Use Query Readout† instead of Query Readout (ablation)Small TF · In-context sparse recovery, label predictionlabel prediction errorNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic in-context sparse recovery instances

Benchmarks: synthetic in-context sparse recovery (d=20, N=10, S=3)

Metrics: label prediction loss sparse vector estimation error

Baselines: ISTA FISTA LISTA LISTA-CP ALISTA GPT-2

Builds on: LISTA LISTA-CP ALISTA ISTA 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