Approximation capability of neural networks on spaces of probability measures and tree-structured domains

Tomás Pevný, Vojtech KovaríkarXiv 2019

Introduction

The Universal Approximation Theorem (UAT) is a cornerstone of deep learning theory, establishing that standard feed-forward neural networks can approximate any continuous function on a compact subset of Euclidean space. However, modern machine learning increasingly deals with data that does not naturally fit into fixed-length vectors, such as sets, nested lists, and hierarchical structures like JSON or XML. While architectures like "Deep Sets" and Multi-Instance Learning (MIL) frameworks have been developed to handle such data, their theoretical foundations remained incomplete. This paper provides the formal mathematical justification for these approaches, extending the UAT to spaces of probability measures and complex tree-structured domains.

The Challenge of Structured Data

Traditional machine learning algorithms typically require inputs to be represented as fixed-length vectors in $\mathbb{R}^n$. In contrast, real-world data is often "bag-like" or hierarchical. For example, a medical record might contain a variable number of lab results, or a fitness tracker might output a JSON object containing nested sets of workout data.

In Multi-Instance Learning (MIL), a single sample (a "bag") consists of multiple feature vectors ("instances"). Practitioners often use a two-stage neural network architecture: a first network processes individual instances, an aggregation step (such as averaging) combines these outputs into a single vector, and a second network processes that aggregate to produce a final prediction. While empirically successful, the question remained: can these architectures approximate any continuous function on these non-Euclidean spaces?

Methodology: Bridging the Theoretical Gap

The authors address this by treating structured data through the lens of measure theory and topology, utilizing the Stone-Weierstrass Theorem to prove density.

1. Probability Measures as Inputs

Instead of viewing a "bag" of data as a simple matrix, the authors treat it as a probability distribution. They define a class of neural networks, termed $\Sigma$-networks, specifically designed to operate on these distributions.

2. The Three-Layer Construction

The research proves that a network architecture consisting of two non-linear layers, a linear output layer, and a mean aggregation step in the middle is "dense" in the space of continuous functions on probability measures. This means that for any target function and any degree of precision, a network of this configuration exists that can approximate the function.

3. Recursive Extension to Trees

The logic is then extended to Cartesian products and nested structures. Since tree-structured data (like JSON) is essentially a recursive combination of sets and products, the authors use an inductive argument. They demonstrate that neural networks can be systematically constructed to approximate functions on any domain following a fixed tree schema.

Key Theoretical Insights

Mean Aggregation is Sufficient

A significant finding of this work is the proof that simple mean aggregation—averaging the outputs of the instance-level network—is theoretically sufficient to achieve universal approximation. While researchers often experiment with complex pooling mechanisms, this result shows that mean pooling is mathematically robust enough to capture the necessary information from a distribution.

Justifying AutoML for Structure

Because the proof applies to any fixed tree schema, it implies that neural network architectures can be automatically generated based on a data format (e.g., a Protobuf or JSON schema). If the schema defines a list, the generator inserts an aggregation layer; if it defines a dictionary, it uses a product layer. This provides a theoretical foundation for automated architecture search on structured data.

Bridging Kernels and Deep Learning

The paper highlights a parallel between MIL networks and "mean-map embedding" in kernel methods. The first part of the network acts as a feature extractor that embeds probability measures into a Euclidean space, but with the distinct advantage of allowing the embedding to be learned directly from the data rather than being fixed by a kernel function.

Conclusion and Limitations

This research provides the formal "missing link" for structured data processing, proving that MIL and Deep Sets architectures are not just clever heuristics but are fundamentally capable of representing any target function.

However, several areas for future work remain:

  • Continuity: The proof relies on the Stone-Weierstrass theorem, which assumes continuous activation functions. Extending this to non-continuous activations would align the theory with earlier proofs for standard feed-forward networks.
  • Fixed Schemas: The current universal approximation for trees assumes a known, fixed schema. Handling arbitrary, schema-less trees remains a theoretical challenge.
  • Efficiency: As with the original UAT, this paper proves the existence of a solution but does not address the size of the network required or the ease of training it via gradient descent.

Ultimately, this work validates the soundness of existing models and paves the way for more rigorous architectural designs in processing the world's inherently structured information.

Summary updated

BibTeX
@misc{pevny2019approximation,
  author = {Tomás Pevný and Vojtech Kovarík},
  title = {{Approximation capability of neural networks on spaces of probability measures and tree-structured domains}},
  year = {2019},
  eprint = {1906.00764},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.00764},
}
Figure