NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$\mathcal{O}(\log N)$ Latent Dimension Suffices for Universal Approximation of Permutation-invariant Function

Min Zhou, Enming Liang, Minghua ChenICML 2026

TL;DR

Theoretical bounds for set-based neural networks (like DeepSets) previously suggested that the network's width must grow linearly with the number of input elements ($N$). This paper proves that for "well-behaved" functions—those stable under small distributional shifts—the required width actually only grows logarithmically ($O(\log N)$). This provides the first rigorous mathematical explanation for why compact architectures work so effectively on massive datasets like point clouds.

What Problem Does This Paper Address?

In deep learning, processing unordered sets (like a collection of 3D points or a batch of samples) requires permutation invariance: the output shouldn't change if you shuffle the input order. The standard solution is the "sum-decomposable" architecture (e.g., DeepSets), which transforms each element independently and then sums them up.

However, a major theoretical "linear barrier" has haunted this field. Existing proofs for universal approximation—the guarantee that a network can learn any function—required the latent dimension (the width of the network before the sum) to be at least as large as the set size $N$. If you have a point cloud with 100,000 points, theory suggested you might need a width of 100,000, which is computationally impossible. Yet, in practice, engineers use small, fixed widths (like 256) and achieve great results. This paper bridges that gap between pessimistic theory and successful practice.

Methods

The authors shift the perspective from combinatorial injectivity (trying to distinguish every possible unique set) to geometric stability.

  1. Wasserstein Stability: They focus on functions that are Lipschitz continuous with respect to the Wasserstein-1 metric. Essentially, if two sets represent similar underlying probability distributions, the function's output should be similar.
  2. Metric Entropy: By treating sets as empirical measures, they show that the "geometric volume" (covering number) of the input space grows only logarithmically with $N$.
  3. Multiscale Random Fourier Feature (RFF) Encoder: They construct a novel encoder using RFFs at different frequency scales. This allows the network to be stable (Lipschitz) while still being able to distinguish between different sets on a discrete "net" in the measure space.
  4. McShane-extended Hölder Decoder: They use a constructive mathematical technique (the McShane extension) to build a decoder that interpolates values from the discrete net to the entire continuous space, ensuring the approximation holds everywhere.

Datasets

The paper uses two primary testbeds to validate the theory:

  • Geometric Median Estimation: A synthetic task where the model must find the "middle" point of a set. This is a naturally Wasserstein-stable task.
  • MNIST Digit-Sum: A set-based version of MNIST where the model receives a set of 10 handwritten digit images and must predict their sum. To handle the high-dimensional images, they use a pre-trained CNN autoencoder to compress images into a 16D latent space first.

Key Insights and Ideas

  • The "Aha" Moment: The linear $O(N)$ requirement in prior work comes from trying to distinguish sets that are infinitesimally close to each other. By assuming the target function is stable (Wasserstein-stable), we don't need to distinguish those sets perfectly. This allows us to "compress" the input space.
  • Information Saturation: For stable functions, the information content of a set saturates. Once the network is wide enough to resolve the "geometric resolution" of the distribution, adding more width to account for more points ($N$) provides diminishing returns.
  • Manifold Relief: The authors note that while their bound depends on the element dimension $D$, if the data lies on a low-dimensional manifold (intrinsic dimension $d \ll D$), the required width scales even more favorably.

Key Results

  • The Main Theorem: They prove that a latent dimension of $m = \mathcal{O}(C_D\varepsilon^{-(3D+4)}\log(N+\varepsilon^{-D}))$ is sufficient for a uniform approximation error of $\varepsilon$. Crucially, the dependence on $N$ is inside a logarithm.
  • Empirical Confirmation: In the geometric median task, they showed that the "critical width" needed to achieve low error stabilizes at a very small value (around 8) even as the set size $N$ increases from 100 to 100,000.
  • DeepSets vs. Sequence Models: On the MNIST task, DeepSets reached high accuracy with very small latent dimensions, whereas a parameter-matched LSTM (which processes elements in order) failed to generalize as effectively.

Limitations and Future Work

  • The Curse of Dimensionality: While the scaling with $N$ is great (logarithmic), the scaling with the element dimension $D$ is still polynomial/exponential. Tightening the dependency on $D$ remains an open challenge.
  • Scope of Stability: The proof relies on global Wasserstein stability. Some set functions (like finding the exact maximum value in a set) are not Wasserstein-stable and thus fall outside these specific bounds.
  • Attention Mechanisms: The authors suggest that extending this logarithmic-in-$N$ logic to Self-Attention layers could explain why Transformers are so efficient even with compressed representations.

Summary updated

BibTeX
@inproceedings{zhou2026mathcal,
  author = {Min ZHOU and Enming Liang and Minghua Chen},
  title = {{$\textbackslash\{\}mathcal\{O\}(\textbackslash\{\}log N)$ Latent Dimension Suffices for Universal Approximation of Permutation-invariant Function}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ojghzKHmLw},
}
Figure