Galois Theory Challenges Weisfeiler Leman: Invariant Features for Symmetric Matrices and Point Clouds

Beatrix Yaxin Wen, Caio Netto, Thabo Samakhoana, Soledad Villar, Ningyuan HuangNPGML @ NeurIPS 2025

TL;DR

This paper investigates the expressive power of a new machine learning model for graph isomorphism testing based on invariant features. They theoretically show this model is less powerful than standard Graph Neural Networks (GNNs) on undirected graphs. To address this, they propose an augmented version with an additional invariant function, which empirically demonstrates improved performance, matching or exceeding GNNs in certain tasks.

What Problem Does This Paper Address?

The paper tackles the challenge of determining if two graphs are structurally identical (isomorphic), a fundamental problem in computer science and graph theory. Recent work introduced a machine learning approach using "invariant features" derived from symmetric matrices representing graphs. This method aims to capture graph properties that remain unchanged under node relabeling, a key characteristic of graph isomorphism. However, the expressive power of this original method, particularly its ability to distinguish between non-isomorphic graphs, was not fully understood and was suspected to be limited compared to established methods like Graph Neural Networks (GNNs). The authors aim to rigorously analyze this expressive power and propose improvements.

Methods

The core of the paper involves:

  • Theoretical Analysis of Expressive Power: The authors theoretically prove that the original invariant feature model (referred to as IFG) is strictly less expressive than message-passing GNNs on undirected graphs. This means there are pairs of graphs that GNNs can distinguish but IFG cannot.
  • Introduction of Augmented IFG (AIFG): To overcome the limitations of IFG, the researchers propose a modified model, AIFG. This augmentation involves adding a new invariant function, $f^\dagger(X) = \sum_{i,j,k} X_{ij}X_{jk}$, to the existing set of invariant features. This new function, which represents a sum over paths of length two, is computationally efficient to compute (O(n²)).
  • Empirical Evaluation: Both the original IFG and the proposed AIFG are evaluated empirically on two distinct tasks: molecular property prediction and point cloud distance prediction. They compare their methods against baselines, including GNNs and the original IFG formulation.

Datasets

The paper uses the following datasets for evaluation:

  • QM7b dataset: A benchmark dataset for molecular property regression, containing 7211 molecules. Molecules are represented by their symmetric Coulomb matrices.
  • ModelNet10 dataset: Used for point cloud distance prediction. Pairs of point clouds from different object classes are used to predict Gromov-Wasserstein (GW) distances.

Key Insights and Ideas

  • IFG's Expressive Limitation: The theoretical finding that IFG is strictly worse than GNNs on undirected graphs is a significant insight. It highlights that while invariant features are useful, the specific set used in IFG might not capture all the structural nuances that message-passing GNNs can.
  • The Power of Path-Based Invariants: The introduction of the $f^\dagger$ invariant, which implicitly considers paths of length two, proves to be a crucial addition. This suggests that incorporating information about local connectivity patterns (beyond simple edge counts or node degrees) is key to enhancing the expressive power of invariant feature-based models.
  • Computational Efficiency vs. Expressivity Trade-off: The paper demonstrates that it's possible to improve expressive power without significantly increasing computational cost. The new invariant $f^\dagger$ has a manageable complexity and integrates well with existing IFG computations.
  • AIFG as a Viable Alternative: The empirical results suggest that AIFG offers a compelling alternative, providing competitive or superior performance to GNNs in certain scenarios, especially when computational efficiency is a concern.

Key Results

  • Theoretical Result: IFG is proven to be strictly less expressive than message-passing GNNs on undirected graphs.
  • Empirical Performance (Molecular Properties): On the QM7b dataset, AIFG (referred to as DS-CAI) achieved competitive or better results than the original IFG (DS-CI+) and other baselines on 11 out of 14 regression tasks. It particularly improved performance on tasks where the original IFG struggled.
  • Empirical Performance (Point Clouds): On the ModelNet10 dataset for point cloud distance prediction, AIFG (DS-CAI) demonstrated advantages over DS-CI+, OI-DS, and a shallow GIN model, achieving higher rank correlation and lower mean square error.
  • Computational Efficiency: The new invariant $f^\dagger$ has a computational complexity of O(n²) and integrates efficiently into the IFG framework, not adding significant overhead. The paper notes that GIN models, while powerful, can have higher training times.

Limitations and Future Work

  • "Bad Set" for IFG: The paper acknowledges that IFG, like many invariant-based methods, can fail to distinguish graphs on a "measure-zero bad set." While AIFG improves upon this, the existence of such sets remains a theoretical consideration.
  • Broader Graph Classes: The theoretical result of IFG being worse than GNNs is specifically for undirected graphs. The authors suggest exploring whether this holds for larger classes of graphs.
  • Quantifying Improvement: The paper poses the question of whether the improvement from adding $f^\dagger$ can be theoretically quantified.
  • Leveraging Graph Homomorphisms: The authors express interest in combining functions that can leverage graph homomorphisms for further improvements, a direction explored in related work.

Summary updated

BibTeX
@inproceedings{wen2025galois,
  author = {Beatrix Yaxin Wen and Caio Netto and Thabo Samakhoana and Soledad Villar and Ningyuan Huang},
  title = {{Galois Theory Challenges Weisfeiler Leman: Invariant Features for Symmetric Matrices and Point Clouds}},
  booktitle = {NPGML @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=RBXxXM0VKX},
}
Figure