Universal Approximation Under Constraints is Possible with Transformers
Not on the map. Why?
Abstract (arXiv)
Many practical problems need the output of a machine learning model to satisfy a set of constraints, K. Nevertheless, there is no known guarantee that classical neural network architectures can exactly encode constraints while simultaneously achieving universality. We provide a quantitative constrained universal approximation theorem which guarantees that for any non-convex compact set K and any continuous function f:ℝnrightarrow K, there is a probabilistic transformer hatF whose randomized outputs all lie in K and whose expected output uniformly approximates f. Our second main result is a "deep neural version" of Berge's Maximum Theorem (1963). The result guarantees that given an objective function L, a constraint set K, and a family of soft constraint sets, there is a probabilistic transformer hatF that approximately minimizes L and whose outputs belong to K; moreover, hatF approximately satisfies the soft constraints. Our results imply the first universal approximation theorem for classical transformers with exact convex constraint satisfaction. They also yield that a chart-free universal approximation theorem for Riemannian manifold-valued functions subject to suitable geodesically convex constraints.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 37 of its 96 references that are in the map. First posted on arXiv 7 Oct 2021.
Builds on
37 of 96 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,131
- 2016Geometric deep learning: going beyond Euclidean datacited by 1,042
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2019Generalized Sliced Wasserstein Distancescited by 205
- 2019Universal Approximation with Deep Narrow Networkscited by 198
- 2018Universality of Deep Convolutional Neural Networkscited by 176
- 2021Model-Based Domain Generalizationcited by 103
25 more
- 2019Error bounds for approximations with deep ReLU neural networks in Ws,p normscited by 95
- 2016First-order Methods for Geodesically Convex Optimizationcited by 92
- 2020Minimum Width for Universal Approximationcited by 92
- 2019The phase diagram of approximation rates for deep neural networkscited by 86
- 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
- 2017A Random Matrix Approach to Neural Networkscited by 80
- 2018geomstats: a Python Package for Riemannian Geometry in Machine Learningcited by 71
- 2020Neural Network Approximation: Three Hidden Layers Are Enoughcited by 63
- 2020Approximation Bounds for Random Neural Networks and Reservoir Systemscited by 52
- 2020Differentiating through the Fr'echet Meancited by 52
- 2020Probably Approximately Correct Constrained Learningcited by 47
- 2021Universal Approximation Theorems for Differentiable Geometric Deep Learningcited by 41
- 2017Universal discrete-time reservoir computers with stochastic inputs and linear readouts using non-homogeneous state-affine systemscited by 39
- 2018Equivalence of approximation by convolutional neural networks and fully-connected networkscited by 38
- 2021Elementary superexpressive activationscited by 35
- 2021Complexity Lower Bounds for Nonconvex-Strongly-Concave Min-Max Optimizationcited by 34
- 2020Non-Euclidean Universal Approximationcited by 29
- 2018Optimal Transport: Fast Probabilistic Approximation with Exact Solverscited by 27
- 2020Globally Injective ReLU Networkscited by 23
- 2020Discrete-time signatures and randomness in reservoir computingcited by 23
- 2019Risk bounds for reservoir computingcited by 22
- 2019Differentiable reservoir computingcited by 20
- 2021On the Regularity of Attentioncited by 9
- 2019Low-Rank plus Sparse Decomposition of Covariance Matrices using Neural Network Parametrizationcited by 6
- 2014Most Convex Functions Have Unique Minimizerscited by 2
Built on by
Citing papers per year: 2021: 1; 2022: 4; 2023: 6; 2024: 6; 2025: 6; 2026: 9.
32 papers.
Sort:
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
- 2023Pretrained Language Models as Visual Planners for Human Assistancecited by 28
- 2023Approximation Rate of the Transformer Architecture for Sequence Modelingcited by 28
- 2024Measure-to-measure interpolation using Transformerscited by 28
- 2022Designing Universal Causal Deep Learning Models: The Geometric (Hyper)Transformercited by 22
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 17
- 2021On the rate of convergence of a classifier based on a Transformer encodercited by 16
- 2023A Brief Survey on the Approximation Theory for Sequence Modellingcited by 15
- 2022Small Transformers Compute Universal Metric Embeddingscited by 12
- 2024Universal Approximation of Mean-Field Models via Transformerscited by 7
- 2022Do ReLU Networks Have An Edge When Approximating Compactly-Supported Functions?cited by 6
20 more
- 2025Transformers Can Overcome the Curse of Dimensionality: A Theoretical Study from an Approximation Perspectivecited by 5
- 2023Structure-Preserving Transformers for Sequences of SPD Matricescited by 4
- 2022Why self-attention is Natural for Sequence-to-Sequence Problems? A Perspective from Symmetriescited by 3
- 2025Approximation of Permutation Invariant Polynomials by Transformers: Efficient Construction in Column-Sizecited by 3
- 2025A unified framework for establishing the universal approximation of transformer-type architecturescited by 2
- 2023Sampled Transformer for Point Setscited by 1
- 2024How Out-of-Distribution Detection Learning Theory Enhances Transformer: Learnability and Reliabilitycited by 1
- 2026Riemannian Liquid Spatio-Temporal Graph Networkcited by 1
- 2026Measure-to-measure Regression with Transformerscited by 1
- 2024Dynamic Universal Approximation Theory: The Basic Theory for Transformer-based Large Language Modelscited by 0
- 2024Automatic Classification of Sleep Stages from EEG Signals Using Riemannian Metrics and Transformer Networkscited by 0
- 2025Data Uniformity Improves Training Efficiency and More, with a Convergence Framework Beyond the NTK Regimecited by 0
- 2025Large Language Models as Universal Predictors? An Empirical Study on Small Tabular Datasetscited by 0
- 2026Geometry-Preserving Neural Architectures on Manifolds with Boundarycited by 0
- 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNscited by 0
- 2026Progressive Approximation in Deep Residual Networks: Theory and Validationcited by 0
- 2026Approximation Error Upper and Lower Bounds for H"older Class with Transformerscited by 0
- 2026Structure-Preserving Reconstruction of Convex Lipschitz Functionals on Hilbert Spaces from Finite Samplescited by 0
- 2026How Many Different Outputs Can a Transformer Generate?cited by 0
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwardscited by 0
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Measure-to-measure Regression with Transformers27 May 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026Structure-Preserving Reconstruction of Convex Lipschitz Functionals on Hilbert Spaces from Finite Samples8 May 2026
- 2026Approximation Error Upper and Lower Bounds for H"older Class with Transformers8 May 2026
- 2026Progressive Approximation in Deep Residual Networks: Theory and Validation27 Apr 2026
- 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNs31 Mar 2026
- 2026Geometry-Preserving Neural Architectures on Manifolds with Boundary3 Feb 2026
- 2026Riemannian Liquid Spatio-Temporal Graph Network20 Jan 2026
- 2025Large Language Models as Universal Predictors? An Empirical Study on Small Tabular Datasets24 Aug 2025
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layers14 Aug 2025
- 2025Data Uniformity Improves Training Efficiency and More, with a Convergence Framework Beyond the NTK Regime30 Jun 2025
20 more
- 2025A unified framework for establishing the universal approximation of transformer-type architectures30 Jun 2025
- 2025Transformers Can Overcome the Curse of Dimensionality: A Theoretical Study from an Approximation Perspective18 Apr 2025
- 2025Approximation of Permutation Invariant Polynomials by Transformers: Efficient Construction in Column-Size17 Feb 2025
- 2024Measure-to-measure interpolation using Transformers7 Nov 2024
- 2024Automatic Classification of Sleep Stages from EEG Signals Using Riemannian Metrics and Transformer Networks18 Oct 2024
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guarantees14 Oct 2024
- 2024Universal Approximation of Mean-Field Models via Transformers6 Oct 2024
- 2024Dynamic Universal Approximation Theory: The Basic Theory for Transformer-based Large Language Models1 Jul 2024
- 2024How Out-of-Distribution Detection Learning Theory Enhances Transformer: Learnability and Reliability13 Jun 2024
- 2023Structure-Preserving Transformers for Sequences of SPD Matrices14 Sep 2023
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?26 Jul 2023
- 2023Approximation Rate of the Transformer Architecture for Sequence Modeling29 May 2023
- 2023Pretrained Language Models as Visual Planners for Human Assistance17 Apr 2023
- 2023Sampled Transformer for Point Sets28 Feb 2023
- 2023A Brief Survey on the Approximation Theory for Sequence Modelling27 Feb 2023
- 2022Why self-attention is Natural for Sequence-to-Sequence Problems? A Perspective from Symmetries13 Oct 2022
- 2022Small Transformers Compute Universal Metric Embeddings14 Sep 2022
- 2022Do ReLU Networks Have An Edge When Approximating Compactly-Supported Functions?24 Apr 2022
- 2022Designing Universal Causal Deep Learning Models: The Geometric (Hyper)Transformer31 Jan 2022
- 2021On the rate of convergence of a classifier based on a Transformer encoder29 Nov 2021
- 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
- 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
- 2023Pretrained Language Models as Visual Planners for Human Assistancecited by 28
- 2023Approximation Rate of the Transformer Architecture for Sequence Modelingcited by 28
- 2024Measure-to-measure interpolation using Transformerscited by 28
- 2022Designing Universal Causal Deep Learning Models: The Geometric (Hyper)Transformercited by 22
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 17
- 2021On the rate of convergence of a classifier based on a Transformer encodercited by 16
- 2023A Brief Survey on the Approximation Theory for Sequence Modellingcited by 15
- 2022Small Transformers Compute Universal Metric Embeddingscited by 12
- 2024Universal Approximation of Mean-Field Models via Transformerscited by 7
- 2022Do ReLU Networks Have An Edge When Approximating Compactly-Supported Functions?cited by 6
12 most cited of 32 All 32 (JSON)
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Measure-to-measure Regression with Transformers27 May 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026Structure-Preserving Reconstruction of Convex Lipschitz Functionals on Hilbert Spaces from Finite Samples8 May 2026
- 2026Approximation Error Upper and Lower Bounds for H"older Class with Transformers8 May 2026
- 2026Progressive Approximation in Deep Residual Networks: Theory and Validation27 Apr 2026
- 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNs31 Mar 2026
- 2026Geometry-Preserving Neural Architectures on Manifolds with Boundary3 Feb 2026
- 2026Riemannian Liquid Spatio-Temporal Graph Network20 Jan 2026
- 2025Large Language Models as Universal Predictors? An Empirical Study on Small Tabular Datasets24 Aug 2025
- 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layers14 Aug 2025
- 2025Data Uniformity Improves Training Efficiency and More, with a Convergence Framework Beyond the NTK Regime30 Jun 2025
12 newest of 32 All 32 (JSON)