Pith. sign in

REVIEW 2 cited by

Transformers Meet In-Context Learning: A Universal Approximation Theory

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2506.05200 v2 pith:ACZNFCNI submitted 2025-06-05 cs.LG math.STstat.MLstat.TH

Transformers Meet In-Context Learning: A Universal Approximation Theory

classification cs.LG math.STstat.MLstat.TH
keywords approximationin-contextlearninguniversaltheorytransformersalgorithmsexamples
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

Large language models are capable of in-context learning, the ability to perform new tasks at test time using a handful of input-output examples, without parameter updates. We develop a universal approximation theory to elucidate how transformers enable in-context learning. For a general class of functions (each representing a distinct task), we demonstrate how to construct a transformer that, without any further weight updates, can predict based on a few noisy in-context examples with vanishingly small risk. Unlike prior work that frames transformers as approximators of optimization algorithms (e.g., gradient descent) for statistical learning tasks, we integrate Barron's universal function approximation theory with the algorithm approximator viewpoint. Our approach yields approximation guarantees that are not constrained by the effectiveness of the optimization algorithms being mimicked, extending far beyond convex problems like linear regression. The key is to show that (i) any target function can be nearly linearly represented, with small $\ell_1$-norm, over a set of universal features, and (ii) a transformer can be constructed to find the linear representation -- akin to solving Lasso -- at test time.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Adaptivity Under Realizability Constraints: Comparing In-Context and Agentic Learning

    cs.LG 2026-05 unverdicted novelty 7.0

    Adaptivity never hinders uniform approximation of task families but its advantages vary across four scenarios when moving from unrestricted to ReLU-realizable regimes.

  2. Understanding In-Context Learning for Nonlinear Regression with Transformers: Attention as Featurizer

    cs.LG 2026-05 unverdicted novelty 6.0

    Transformers can be built to act as nonlinear featurizers via attention, supporting in-context regression with proven generalization bounds on synthetic tasks.