atlas

Research map / Optimization / Implicit bias and generalization

In-Context Deep Learning via Transformer Models

ICML 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 (2N+4)L-layer ReLU transformer (and a 4L-layer softmax transformer) can implicitly simulate L steps of gradient descent for training an N-layer network via in-context learning, with approximation and convergence guarantees and small synthetic experiments.

Problem

Whether transformers can simulate the training of a deep neural network by gradient descent purely through in-context learning, without parameter updates at inference.

Approach

Derives an explicit gradient-descent expression for N-layer feed-forward networks, then constructs a transformer (with an element-wise multiplication layer) that approximates each GD step term by term using sum-of-ReLU approximations, extending in-context gradient descent from shallow models to deep networks.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use an ICL transformer instead of direct training6-layer NN · 6-layer NNFLOPs: 3.3 billion vs. 7.6 billion FLOPsHelped
Train the 6-layer NN through ICL rather than direct training6-layer NN · 6-layer NNR-squaredNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian mixture inputs (d=20) labeled by random 3-, 4-, 6-layer ReLU networks

Benchmarks: synthetic regression on 3-, 4-, 6-layer networks

Metrics: R-squared

Baselines: In-context gradient descent for two-layer networks (prior ICGD construction with Transformer in Transformer (TINT)

Builds on: in-context gradient descent transformers learn in context by gradient descent Transformers in Transformers (TINT)

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