atlas

Research map / Architectures and efficiency / Attention and transformers

Attention Mechanism, Max-Affine Partition, and Universal Approximation

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Theory of self-attention dynamics · 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 single softmax attention layer (single head, with a prepended sum-of-linear layer) is a universal approximator for continuous and Lebesgue-integrable sequence-to-sequence functions, via a max-affine partition interpretation of attention, and proves the first such result for cross-attention.

Problem

Whether attention alone (single layer, single head, no positional encodings, FFNs, or multi-head) can universally approximate sequence-to-sequence functions, under L_infinity and L_p norms, for self- and cross-attention.

Approach

Interpret single-head softmax attention (with a linear layer before it) as a max-affine partition of the input domain that assigns distinct values to each cell; engineer W_K, W_Q, W_V so the softmax acts as a near-hard argmax indicator and the value matrix outputs f on each cell, yielding universality with attention only.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase Gaussian noise in the training dataSingle-head self-attention on MNIST, CIFAR-10, and Fashion-MNIST · MNIST, CIFAR-10, Fashion-MNIST training setsW_K and W_Q weight scaleHurt

Limitations

Experimental setup

Datasets: MNIST CIFAR-10 Fashion-MNIST

Metrics: l2-norm of W_K and W_Q versus label-noise level

Baselines: Yun et al. transformer universal approximation Kratsios et al. universal approximation under constraints

Builds on: max-affine functions (convex function approximation) Lusin's theorem transformer universal approximation results

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