atlas

Research map / Architectures and efficiency / Attention and transformers

Transformers are Universal In-context Learners

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability · 2 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 deep transformers with fixed embedding dimension and head count proportional to dimension are universal approximators of continuous in-context mappings over probability measures of tokens, for arbitrarily many tokens, in both unmasked and causal settings.

Problem

Expressivity of transformers as in-context mappings over an arbitrarily large (even infinite) number of context tokens, which prior universality results only handled with embedding dimension growing with token count.

Approach

Represents token sets as probability measures (empirical measures for finite n), defines continuity via weak* / Wasserstein topology, and proves universality using a Stone-Weierstrass argument on cylindrical functions built from single-head 1-D attention; masked (causal) case handled via space-time lifting with Wasserstein-Lipschitz contexts.

Key results

Limitations

Experimental setup

Builds on: Transformers as measure-to-measure mappings Stone-Weierstrass theorem

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