Learning functions on symmetric matrices and point clouds via lightweight invariant features

Ben Blum-Smith, Ningyuan Huang, Marco Cuturi, Soledad Villar

Abstract

In this work, we present a mathematical formulation for machine learning of (1) functions on symmetric matrices that are invariant with respect to the action of permutations by conjugation, and (2) functions on point clouds that are invariant with respect to rotations, reflections, and permutations of the points. To achieve this, we construct $O(n^2)$ invariant features derived from generators for the field of rational functions on $n \times n$ symmetric matrices that are invariant under joint permutations of rows and columns. We show that these invariant features can separate all distinct orbits of symmetric matrices except for a measure zero set; such features can be used to universally approximate invariant functions on almost all weighted graphs. For point clouds in a fixed dimension, we prove that the number of invariant features can be reduced, generically without losing expressivity, to $O(n)$, where $n$ is the number of points. We combine these invariant features with DeepSets to learn functions on symmetric matrices and point clouds with varying sizes. We empirically demonstrate the feasibility of our approach on molecule property regression and point cloud distance prediction.

Introduction

Representing data with complex symmetries—such as graphs, molecules, and 3D point clouds—remains a fundamental challenge in deep learning. While Graph Neural Networks (GNNs) and equivariant architectures have made significant strides, the underlying invariant theory often faces a steep trade-off between computational efficiency and expressive power. Finding a complete set of features that can distinguish between any two non-identical graphs is as difficult as the Graph Isomorphism problem, and universal methods for point clouds often scale at $O(n^d)$ or $O(n^{d+1})$, where $d$ is the dimension. This complexity makes them impractical for large-scale datasets in fields like astronomy or molecular biology.

This paper introduces a "Galois theorem for machine learning" to bridge the gap between abstract algebra and practical deep learning. By relaxing the requirement of "universal" separation to "generic" separation (distinguishing almost all data points), the authors construct lightweight invariant features that significantly reduce computational overhead while maintaining high performance.

Methodology

The Galois Connection and Generic Separation

The core contribution is a framework inspired by Galois theory that provides a recipe for extending invariants from a large group to a smaller subgroup. Instead of attempting to separate every possible orbit, the authors focus on "generic" separation. This means the features distinguish all orbits except for a "bad set" that is mathematically negligible (measure zero and closed). This shift allows for a dramatic reduction in the number of required features.

Invariants for Symmetric Matrices

For $n \times n$ symmetric matrices (such as graph adjacency matrices), the framework utilizes $O(n^2)$ invariant features. These include:

  • Sorted diagonal elements.
  • Sorted off-diagonal elements.
  • A specific quadratic feature $f^*(X) = \sum_{i \neq j} X_{ii} X_{ij}$.

These features are integrated into a DeepSets-based architecture called DS-CI (DeepSet for Conjugation Invariance), designed to handle varying matrix sizes.

Scaling Point Clouds to $O(n)$

For point clouds in a fixed dimension $d$, the authors exploit the fact that the resulting Gram matrix is low-rank. By utilizing "d-equivariant identifiers" (such as k-means centroids), they compress the $O(n^2)$ information typically found in distance matrices into just $O(n)$ features. This enables the OI-DS ($O(d)$-Invariant DeepSet) model to scale linearly with the number of points without losing the ability to distinguish generic point clouds.

Empirical Evaluation

Molecular Property Regression (QM7b)

The authors evaluated the DS-CI+ model (using a binary expansion of features) on the QM7b dataset, which contains 7,211 molecules. The task involved regressing 14 physical properties, such as atomization energy and ionization potential, based on the Coulomb Matrix representation. The model achieved competitive results, often outperforming established baselines like Kernel Ridge Regression (KRR) and Deep Tensor Neural Networks (DTNN) across several targets.

Point Cloud Distance Prediction (ModelNet10)

To test the scalability and expressivity of the $O(n)$ approach, the authors used the ModelNet10 dataset of 3D CAD models. The goal was to approximate the Gromov-Wasserstein (GW) distance between different shapes. The OI-DS model maintained a high rank correlation (0.73 on the test set) while demonstrating significantly better scalability than traditional $O(n^2)$ alternatives.

Discussion and Future Work

The move from "universal" to "generic" guarantees represents a pragmatic shift in invariant theory for ML. By bypassing the computational bottlenecks of complete invariants, this approach enables symmetry-aware learning on much larger datasets. However, several avenues for future research remain:

  1. The "Bad Set": While the set of indistinguishable orbits is measure-zero, further study is needed to determine if real-world data—which often possesses structural regularities—is more likely to fall into these regions.
  2. Equivariance: This work focuses on invariants (scalar outputs). Extending these lightweight features to equivariant maps (vector outputs that transform with the input) is a natural next step.
  3. Numerical Stability: While the features are continuous, optimizing them for bi-Lipschitz stability would ensure that small input perturbations do not lead to disproportionately large output changes, enhancing robustness for engineering applications.

In conclusion, by leveraging Galois theory to construct generically separating features, this work provides a scalable and mathematically grounded path forward for learning on symmetric data structures.

Summary updated

Abstract

In this work, we present a mathematical formulation for machine learning of (1) functions on symmetric matrices that are invariant with respect to the action of permutations by conjugation, and (2) functions on point clouds that are invariant with respect to rotations, reflections, and permutations of the points. To achieve this, we construct $O(n^2)$ invariant features derived from generators for the field of rational functions on $n\times n$ symmetric matrices that are invariant under joint permutations of rows and columns. We show that these invariant features can separate all distinct orbits of symmetric matrices except for a measure zero set; such features can be used to universally approximate invariant functions on almost all weighted graphs. For point clouds in a fixed dimension, we prove that the number of invariant features can be reduced, generically without losing expressivity, to $O(n)$, where $n$ is the number of points. We combine these invariant features with DeepSets to learn functions on symmetric matrices and point clouds with varying sizes. We empirically demonstrate the feasibility of our approach on molecule property regression and point cloud distance prediction.
BibTeX
@misc{blumsmith2024learning,
  author = {Ben Blum-Smith and Ningyuan Huang and Marco Cuturi and Soledad Villar},
  title = {{Learning functions on symmetric matrices and point clouds via lightweight invariant features}},
  year = {2024},
  eprint = {2405.08097},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.08097},
}
Figure