atlas

Research map / Architectures and efficiency / Attention and transformers

Nonlinear transformers can perform inference-time feature learning

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design

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 single-layer softmax transformer pretrained by one gradient step plus ridge regression can perform inference-time feature learning for Gaussian single-index models, achieving in-context sample complexity r^{Θ(ge)} that beats kernel and CSQ bounds.

Problem

Whether pretrained transformers can perform in-context learning of single-index functions with per-prompt varying feature vectors, with end-to-end optimization and statistical guarantees, and surpass kernel and CSQ sample complexity.

Approach

Softmax attention's exponential transformation of labels, exp(y/ρ), reduces the effective information exponent of the link function to its generative exponent, so the attention extracts the per-prompt feature direction β from in-context examples, enabling inference-time sample complexity independent of the information exponent.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a pretrained Softmax transformer with nonlinear attention instead of fixed-basis kernel methodsGaussian single-index learning · Gaussian single-index modelsinference-time sample complexity: rΘ(deg(σ∗)) -> rΘ(ge(σ∗))Helped
Use nonlinear Softmax attention instead of a CSQ learnerGaussian single-index learning · Gaussian single-index modelsinference-time sample complexity: dΘ(ie(σ∗)) -> rΘ(ge(σ∗))Helped
Pretrain GPT-2 for in-context feature learning rather than fit a Gaussian RBF kernel from scratchGaussian single-index task with σ∗(·) = He3(·) · Synthetic Gaussian single-index tasksgeneralization error versus context length: ddeg(σ∗) = d3Helped
Pretrain GPT-2 to learn the task’s feature direction in-contextGaussian single-index task with σ∗(·) = He3(·) · Synthetic Gaussian single-index tasksinference-time sample-complexity scaling: n ≃ d1.1; kernel lower bound of d3; CSQ lower bound of n ≳ d1.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian single-index tasks

Benchmarks: synthetic Gaussian single-index task (He3 link)

Metrics: generalization error (squared error) minimal test prompt length to reach error threshold

Baselines: kernel ridge regression Oko et al. 2024b ICL construction

Builds on: Oko et al. 2024b in-context single-index learning Damian et al. 2024 generative exponent Lee et al. 2024 data reuse / generative exponent Garg et al. 2022 ICL of functions

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