mlsanityData to 7 Oct 2026

Universal Approximation Under Constraints is Possible with Transformers

arXiv 2110.03303 ↗First posted 7 Oct 2021cs.LG cs.AI cs.NEcited by 32

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  3. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
  4. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
  5. 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,131
  6. 2016Geometric deep learning: going beyond Euclidean datacited by 1,042
  7. 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
  8. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  9. 2019Generalized Sliced Wasserstein Distancescited by 205
  10. 2019Universal Approximation with Deep Narrow Networkscited by 198
  11. 2018Universality of Deep Convolutional Neural Networkscited by 176
  12. 2021Model-Based Domain Generalizationcited by 103
25 more
  1. 2019Error bounds for approximations with deep ReLU neural networks in Ws,p normscited by 95
  2. 2016First-order Methods for Geodesically Convex Optimizationcited by 92
  3. 2020Minimum Width for Universal Approximationcited by 92
  4. 2019The phase diagram of approximation rates for deep neural networkscited by 86
  5. 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
  6. 2017A Random Matrix Approach to Neural Networkscited by 80
  7. 2018geomstats: a Python Package for Riemannian Geometry in Machine Learningcited by 71
  8. 2020Neural Network Approximation: Three Hidden Layers Are Enoughcited by 63
  9. 2020Approximation Bounds for Random Neural Networks and Reservoir Systemscited by 52
  10. 2020Differentiating through the Fr'echet Meancited by 52
  11. 2020Probably Approximately Correct Constrained Learningcited by 47
  12. 2021Universal Approximation Theorems for Differentiable Geometric Deep Learningcited by 41
  13. 2017Universal discrete-time reservoir computers with stochastic inputs and linear readouts using non-homogeneous state-affine systemscited by 39
  14. 2018Equivalence of approximation by convolutional neural networks and fully-connected networkscited by 38
  15. 2021Elementary superexpressive activationscited by 35
  16. 2021Complexity Lower Bounds for Nonconvex-Strongly-Concave Min-Max Optimizationcited by 34
  17. 2020Non-Euclidean Universal Approximationcited by 29
  18. 2018Optimal Transport: Fast Probabilistic Approximation with Exact Solverscited by 27
  19. 2020Globally Injective ReLU Networkscited by 23
  20. 2020Discrete-time signatures and randomness in reservoir computingcited by 23
  21. 2019Risk bounds for reservoir computingcited by 22
  22. 2019Differentiable reservoir computingcited by 20
  23. 2021On the Regularity of Attentioncited by 9
  24. 2019Low-Rank plus Sparse Decomposition of Covariance Matrices using Neural Network Parametrizationcited by 6
  25. 2014Most Convex Functions Have Unique Minimizerscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 4; 2023: 6; 2024: 6; 2025: 6; 2026: 9.

32 papers.

Sort:

  1. 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
  2. 2024HardNet: Hard-Constrained Neural Networks with Universal Approximation Guaranteescited by 29
  3. 2023Pretrained Language Models as Visual Planners for Human Assistancecited by 28
  4. 2023Approximation Rate of the Transformer Architecture for Sequence Modelingcited by 28
  5. 2024Measure-to-measure interpolation using Transformerscited by 28
  6. 2022Designing Universal Causal Deep Learning Models: The Geometric (Hyper)Transformercited by 22
  7. 2025Pinet: Optimizing hard-constrained neural networks with orthogonal projection layerscited by 17
  8. 2021On the rate of convergence of a classifier based on a Transformer encodercited by 16
  9. 2023A Brief Survey on the Approximation Theory for Sequence Modellingcited by 15
  10. 2022Small Transformers Compute Universal Metric Embeddingscited by 12
  11. 2024Universal Approximation of Mean-Field Models via Transformerscited by 7
  12. 2022Do ReLU Networks Have An Edge When Approximating Compactly-Supported Functions?cited by 6
20 more
  1. 2025Transformers Can Overcome the Curse of Dimensionality: A Theoretical Study from an Approximation Perspectivecited by 5
  2. 2023Structure-Preserving Transformers for Sequences of SPD Matricescited by 4
  3. 2022Why self-attention is Natural for Sequence-to-Sequence Problems? A Perspective from Symmetriescited by 3
  4. 2025Approximation of Permutation Invariant Polynomials by Transformers: Efficient Construction in Column-Sizecited by 3
  5. 2025A unified framework for establishing the universal approximation of transformer-type architecturescited by 2
  6. 2023Sampled Transformer for Point Setscited by 1
  7. 2024How Out-of-Distribution Detection Learning Theory Enhances Transformer: Learnability and Reliabilitycited by 1
  8. 2026Riemannian Liquid Spatio-Temporal Graph Networkcited by 1
  9. 2026Measure-to-measure Regression with Transformerscited by 1
  10. 2024Dynamic Universal Approximation Theory: The Basic Theory for Transformer-based Large Language Modelscited by 0
  11. 2024Automatic Classification of Sleep Stages from EEG Signals Using Riemannian Metrics and Transformer Networkscited by 0
  12. 2025Data Uniformity Improves Training Efficiency and More, with a Convergence Framework Beyond the NTK Regimecited by 0
  13. 2025Large Language Models as Universal Predictors? An Empirical Study on Small Tabular Datasetscited by 0
  14. 2026Geometry-Preserving Neural Architectures on Manifolds with Boundarycited by 0
  15. 2026Stochastic Dimension Implicit Functional Projections for Global Integral Conservation in High-Dimensional PINNscited by 0
  16. 2026Progressive Approximation in Deep Residual Networks: Theory and Validationcited by 0
  17. 2026Approximation Error Upper and Lower Bounds for H"older Class with Transformerscited by 0
  18. 2026Structure-Preserving Reconstruction of Convex Lipschitz Functionals on Hilbert Spaces from Finite Samplescited by 0
  19. 2026How Many Different Outputs Can a Transformer Generate?cited by 0
  20. 2026Universal Approximation of Measure-to-Measure Operators by Pushforwardscited by 0