Beyond Universal Approximation Theorems: Algorithmic Uniform Approximation by Neural Networks Trained with Noisy Data

Anastasis Kratsios, Tin Sum Cheng, Daniel RoyarXiv 2025 · DOI

Abstract Traditional Universal Approximation Theorems (UATs) often lack algorithmic constructivity and fail to account for noisy training data. This paper introduces a randomized training algorithm for transformer architectures that bridges the gap between existence proofs and practical engineering. By utilizing a three-phase approach—denoising, clustering via attention, and minimal-dimensional feature orthogonalization—the authors achieve minimax-optimal parameter counts and uniform approximation even under sub-Gaussian noise. Furthermore, the framework explains the efficiency of out-of-distribution (OOD) fine-tuning through the lens of "combinatorial symmetries," providing a theoretical basis for why transformers adapt so effectively to new tasks.

Introduction

For decades, Universal Approximation Theorems have served as the theoretical "security blanket" of deep learning, proving that neural networks can represent any continuous function. However, these theorems typically operate in a theoretical vacuum, assuming noiseless data and providing no constructive path for optimization via realistic algorithms like Stochastic Gradient Descent (SGD). This paper addresses these deficits by providing a concrete, three-phase algorithm that builds a transformer-based approximator from finite, noisy samples, ensuring both theoretical optimality and algorithmic realism.

Methodology: A Constructive Three-Phase Algorithm

The authors propose a specific transformer architecture and a corresponding randomized training algorithm designed to move from raw, noisy data to a high-fidelity approximator.

  1. Phase 0: Denoising: Before training, the algorithm performs local averaging of noisy samples within small "cubes" of the input space. This "purifies" the dataset, allowing the model to target the underlying ground-truth function rather than the noise.
  2. Phase 1: Clustering & Attention: The model uses a "max-temperature" attention mechanism to group inputs into clusters based on combinatorial symmetries—regions of the domain that should map to similar values.
  3. Phase 2 & 3: Feature Orthogonalization & Linear Regression: A randomized, frozen ReLU MLP maps these clusters into a well-conditioned, minimal-dimensional feature space. Finally, the last linear layer is trained using standard Ordinary Least Squares (OLS).
Overview of the proposed three-phase training algorithm, highlighting domain discovery through clustering and task adaptation via linear regression.

Unlike classical "random feature" models that rely on high-dimensional representations, this method uses a minimal-dimensional representation that guarantees the network can exactly interpolate the denoised training data while maintaining generalization.

Combinatorial Symmetries and OOD Adaptation

A core insight of this work is the concept of combinatorial symmetries. The authors argue that real-world data, such as images, possesses massive redundancy where many different inputs share the same output value. By coarsening the domain, the model identifies these symmetries, which significantly reduces the complexity of the learning task.

Illustration of combinatorial symmetries through image coarsening at different quantization levels (q).

This framework explains the success of sub-linear OOD fine-tuning. Because the attention layer learns the underlying structure of the domain (the symmetries), the model can adapt to a new, related task by only retraining the final linear layer. The number of samples needed for this new task scales with the number of symmetries ($\kappa$), which is often much smaller than the complexity of the original input space.

Key Results and Empirical Validation

The paper provides both theoretical proofs and empirical evidence for the algorithm's effectiveness:

  • Minimax Optimality: The constructed networks use the theoretically minimum number of trainable parameters required to achieve a target error level.
  • Algorithmic UAT: The authors prove that their algorithm produces a uniform approximator (converging in the $L^\infty$ norm) even when training labels are corrupted by sub-Gaussian noise.
  • Beating Spectral Bias: Standard neural networks trained with SGD often struggle with "spectral bias," learning low-frequency components first. In benchmarks involving sharp oscillations and singularities, the constructed transformer captures high-fidelity details much earlier than standard MLPs trained with ADAM.

Conclusion and Future Directions

While this work provides a rigorous "recipe" for building optimal approximators, it leaves open the central question of whether standard SGD naturally finds these same solutions. Future research may extend this combinatorial symmetry framework to non-Euclidean spaces and infinite-dimensional operator learning, further bridging the gap between the mathematical theory and the engineering reality of artificial intelligence.

Summary updated

BibTeX
@misc{kratsios2025beyond,
  author = {Anastasis Kratsios and Tin Sum Cheng and Daniel Roy},
  title = {{Beyond Universal Approximation Theorems: Algorithmic Uniform Approximation by Neural Networks Trained with Noisy Data}},
  year = {2025},
  eprint = {2509.00924},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.00924},
}
Figure