A Functional Perspective on Learning Symmetric Functions with Neural Networks

Aaron Zweig, Joan Bruna

Abstract

Symmetric functions, which take as input an unordered, fixed-size set, are known to be universally representable by neural networks that enforce permutation invariance. These architectures only give guarantees for fixed input sizes, yet in many practical applications, including point clouds and particle physics, a relevant notion of generalization should include varying the input size. In this work we treat symmetric functions (of any size) as functions over probability measures, and study the learning and representation of neural networks defined on measures. By focusing on shallow architectures, we establish approximation and generalization bounds under different choices of regularization (such as RKHS and variation norms), that capture a hierarchy of functional spaces with increasing degree of non-linear learning. The resulting models can be learned efficiently and enjoy generalization guarantees that extend across input sizes, as we verify empirically.

Introduction

In fields like particle physics, cosmology, and computer vision, data often arrives as unordered sets of varying sizes. While architectures such as DeepSets and PointNet successfully enforce permutation invariance, their theoretical guarantees typically assume a fixed input size $N$. This paper addresses the challenge of learning a single underlying symmetric function that generalizes across different input scales.

From Sets to Measures: A Functional Hierarchy

The authors propose treating input sets as empirical probability measures $\mu = \frac{1}{N} \sum \delta_{x_i}$. This shift allows the use of Wasserstein metrics and the theory of infinitely wide neural networks. They define a hierarchy of three functional spaces based on the degree of non-linear learning:

  • $S_1$ (Mean-Field/Fully Adaptive): The model learns both the internal features and their weights.
  • $S_2$ (Semi-Adaptive): The model selects from a large pool of fixed features.
  • $S_3$ (Kernel/Lazy Regime): Features are fixed at initialization, and only output weights are learned.

A critical insight is that normalization is essential: networks must use averages (measures) rather than sums to generalize across sizes. Sum-based architectures fail when $N$ changes because the scale of hidden activations shifts.

Theoretical Insights: Continuity and Adaptivity

For a symmetric function to be learnable across all input sizes, it must be uniformly continuous with respect to the Wasserstein-1 metric. This explains why functions like Mean generalize well, while Max is theoretically problematic due to its sensitivity to outliers. Furthermore, the authors prove generalization bounds for the $S_1$ space that do not depend on the input dimension $d$, suggesting that adaptive networks are uniquely suited for high-dimensional symmetric data.

Empirical Results

The hierarchy was evaluated on synthetic functions and Pointcloud MNIST. In almost all experiments, the fully trained $S_1$ architecture outperformed the $S_2$ and $S_3$ models.

As shown in the figures for Mean and Softmax, models trained on small sets (e.g., $N=4$) successfully generalized to larger sets (up to $N=20$). The gap between $S_1$ and $S_3$ highlights the "depth separation" where certain functions are exponentially difficult for kernel methods to learn compared to adaptive networks.

On Pointcloud MNIST, $S_1$ achieved a classification error of 5.62% at $N=200$, significantly better than the $S_3$ kernel baseline of 10.80%.

Conclusion

This work provides a formal functional framework for understanding symmetric functions across varying sizes. The results emphasize that feature adaptivity and measure-based normalization are key to breaking the curse of dimensionality in set-structured data. Future work will explore extending these proofs to deeper neural architectures.

Summary updated

BibTeX
@inproceedings{zweig2021functional,
  author = {Aaron Zweig and Joan Bruna},
  title = {{A Functional Perspective on Learning Symmetric Functions with Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=oTqXgs2kmS},
}
Figure