On the Universality of Invariant Networks

Haggai Maron, Ethan Fetaya, Nimrod Segol, Yaron Lipman

This paper, originally presented at ICML 2019, provides a rigorous theoretical foundation for a question that has long hovered over the field of geometric deep learning: Can neural networks designed to respect specific symmetries actually learn any function that obeys those symmetries?

The short answer is yes—$G$-invariant neural networks are universal approximators. However, there is a significant catch: to achieve universality for any arbitrary symmetry group, the network must use high-order tensors. For certain groups, simple first-order layers are mathematically incapable of approximating all invariant functions.

The Tension Between Inductive Bias and Universality

In deep learning, we frequently bake "inductive biases" into our models to make them more efficient and data-efficient. For example, Convolutional Neural Networks (CNNs) are translation-invariant, and PointNets are permutation-invariant. These models are restricted to a specific class of functions—those that do not change their output when the input is transformed by a group $G$ (e.g., rotating an image or reordering a list of points).

While the classical Universal Approximation Theorem guarantees that a standard Multi-Layer Perceptron (MLP) can learn any continuous function, it was previously unclear if the same held true for these restricted "invariant" architectures. Specifically, if we restrict our linear layers to be strictly $G$-equivariant, do we lose the ability to represent certain complex functions? The authors tackle this question for any finite group $G$ that acts by permuting coordinates, a broad category encompassing sets, graphs, and grids.

Analyzing the Invariant Architecture

To investigate this, the authors analyze a standard invariant network architecture template consisting of three main stages:

  1. A series of linear equivariant layers (where the output transforms in the exact same way as the input).
  2. A linear invariant layer (which collapses the symmetry into a single invariant value or vector).
  3. A final Multi-Layer Perceptron (MLP) to process the invariant representation.
Standard invariant network architecture

To prove universality for this architecture, the authors rely on the Stone-Weierstrass Theorem. They demonstrate that $G$-invariant polynomials are dense in the space of continuous $G$-invariant functions. Therefore, if a neural network can approximate any $G$-invariant polynomial, it can approximate any continuous $G$-invariant function.

The mathematical "heavy lifting" involves constructing a network capable of representing these polynomials. Crucially, this construction requires the use of tensors of order $k$.

Visualizing tensor orders and group actions

While a standard layer might work with 1D vectors ($n$ elements), a second-order layer works with 2D matrices ($n \times n$), and a $k$-th order layer works with $n^k$ elements.

Key Insights and Theoretical Bounds

The Tensor Order Requirement

The most significant insight from the paper is that universality is inextricably tied to the "order" of the tensors used in the hidden layers. To approximate a polynomial of degree $k$, the network generally needs to utilize tensors of order $k$. The authors successfully prove that $G$-invariant networks are universal approximators for any subgroup of the symmetric group, provided this tensor order is sufficiently high. Specifically, they establish an upper bound, showing that a tensor order of $d = n(n-1)/2$ is sufficient for universality for any group $G \leq S_n$.

The Alternating Group ($A_n$) Lower Bound

Are high-order tensors truly necessary, or just a byproduct of the proof technique? The authors provide a definitive answer by proving a lower bound using the alternating group (the group of even permutations). They show that for $A_n$, a network must use tensors of order at least $(n-2)/2$ to be universal. This is the first formal proof that high-order tensors are unavoidable for certain groups, meaning "simple" first-order networks (like those used in many practical applications) are fundamentally limited.

2-Closed Groups

The paper also connects network expressivity to the algebraic concept of "2-closure." If a group $G$ is not 2-closed, a first-order network cannot distinguish between $G$ and a larger group $H$ that contains it. Consequently, the network becomes "too invariant"—it is forced to be invariant to $H$ even if the target function is only invariant to $G$. This establishes a necessary condition that a group must meet for a first-order network to even have a chance at being universal.

Limitations and the Path Forward

While the paper proves universality is theoretically possible, it highlights a massive gap between theory and practical implementability. The required tensor order can be astronomically high. While a tensor of order $n^2$ is often manageable, $n^{(n-2)/2}$ is computationally impossible for even modest values of $n$.

However, the authors note an important caveat regarding efficiency versus universality: while high-order tensors are needed for "worst-case" groups, many groups used in real-world machine learning (like those for sets or translation-invariant grids) might achieve universality with much lower-order tensors.

Future work in this domain points toward a complete classification of which groups allow for "first-order universality"—an open question in group theory. Additionally, since this study focuses on the standard linear-layer-plus-activation model, exploring entirely different, non-linear invariant building blocks may offer pathways to universal approximation without the crippling computational cost of high-order tensors.

Summary updated

BibTeX
@inproceedings{maron2019universality,
  author = {Haggai Maron and Ethan Fetaya and Nimrod Segol and Yaron Lipman},
  title = {{On the Universality of Invariant Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=HkUz3ZuZB},
}
Figure