Weisfeiler and Lehman Go Topological: Message Passing Simplicial Networks

Cristian Bodnar, Fabrizio Frasca, Yuguang Wang, Nina Otter, Guido F. Montúfar, Pietro Lió, Michael M. Bronstein

The pairwise interaction paradigm of graph machine learning has predominantly governed the modeling of relational systems. However, standard Graph Neural Networks (GNNs) have a fundamental theoretical ceiling: they are bounded by the Weisfeiler-Lehman (WL) graph isomorphism test. This means they cannot distinguish between certain non-isomorphic graphs, such as those differing only in their number of triangles or cliques.

Furthermore, many real-world systems—like protein structures, social groups, or fluid dynamics—involve multi-level interactions that a simple graph of nodes and edges cannot naturally represent. While higher-dimensional "k-WL" tests exist to address this, they are often computationally prohibitive and lose the "locality" that makes GNNs so efficient.

To overcome these limitations, researchers have introduced Message Passing Simplicial Networks (MPSNs), a new class of neural networks that operate on simplicial complexes to capture higher-order interactions beyond simple pairs.

Moving from Graphs to Topology

To capture higher-order structures, the authors propose moving from standard graphs to simplicial complexes (SCs). A simplicial complex is a topological space constructed from "simplices" of varying dimensions: 0-simplices (vertices), 1-simplices (edges), 2-simplices (triangles), and so on.

By "lifting" a standard graph into its clique complex (treating every $(k+1)$-clique as a $k$-simplex), models gain access to rich structural information that standard GNNs simply ignore.

Message Passing Simplicial Networks (MPSNs)

Unlike standard GNNs that only pass messages between adjacent nodes, MPSNs perform message passing across all dimensions of the complex. They define four distinct types of local adjacencies for any given simplex:

  1. Boundary: The relationship to lower-dimensional constituent parts (e.g., an edge's relationship to its two vertices).
  2. Co-boundary: The relationship to higher-dimensional structures it is part of (e.g., a vertex's relationship to the edges it belongs to).
  3. Lower-adjacency: Neighbors that share a common lower-dimensional boundary (e.g., two edges sharing a common vertex).
  4. Upper-adjacency: Neighbors that share a common higher-dimensional co-boundary (e.g., two vertices sharing a common edge).
Message passing illustrated for a vertex and an edge in a simplicial complex.

The Simplicial Weisfeiler-Lehman (SWL) Test

To rigorously measure the expressivity of these networks, the authors developed the SWL test, a topological version of the traditional WL coloring algorithm. They mathematically prove that an MPSN with injective aggregators is exactly as powerful as the SWL test.

Crucially, the authors prove that SWL (and thus MPSNs) is strictly more powerful than the standard 1-WL test and not less powerful than the 3-WL test. This is a major theoretical breakthrough, as 3-WL is widely considered the gold standard for high-order graph learning.

Orientation Equivariance

For data defined on oriented simplices—such as fluid flow, traffic networks, or edge currents—the authors demonstrate how to make MPSNs orientation equivariant. This ensures the model's output remains consistent even if the arbitrary "direction" of an edge or triangle is flipped, provided the underlying physical signal is maintained.

Key Results and Applications

The proposed models, particularly the Simplicial Isomorphism Network (SIN), were evaluated on a diverse set of challenging benchmarks:

  • Isomorphism Testing on Strongly Regular (SR) Graphs: SR graphs are notoriously difficult for standard isomorphism tests. Where standard GNNs (like GIN) fail completely with a 100% failure rate, the SIN model successfully distinguished the majority of pairs across all 9 families of synthetic SR graphs.
An example of a strongly regular graph. MPSNs can distinguish complex non-isomorphic pairs of these graphs where standard GNNs fail.
  • Flow Classification: On a real-world dataset of ocean drifter trajectories around Madagascar, orientation-equivariant MPSNs achieved ~73% accuracy. This significantly outperformed standard GNNs (~63.5%), which are "unaware" of the higher-order triangular structures that influence ocean flow.
  • Graph Classification: On standard TUDatasets (like IMDB-BINARY and IMDB-MULTI) which are rich in triangles, the SIN model achieved state-of-the-art or highly competitive results, proving that topological features translate to practical performance gains on real-world data.

Limitations and Future Work

While MPSNs represent a significant leap forward, they come with computational considerations. The process of "lifting" a graph by listing its cliques is efficient for sparse graphs, but the number of simplices can grow exponentially in very dense graphs, increasing computational overhead.

The authors suggest that exploring other topological structures, such as cubical complexes or cell complexes, could be a promising next step for different types of data like grids or manifolds. Additionally, while the paper provides bounds for the functional complexity (number of linear regions) of MPSNs, a more careful analysis of rank conditions could yield even tighter theoretical bounds in the future.

Summary updated

BibTeX
@inproceedings{bodnar2021weisfeiler,
  author = {Cristian Bodnar and Fabrizio Frasca and Yuguang Wang and Nina Otter and Guido F. Montúfar and Pietro Lió and Michael M. Bronstein},
  title = {{Weisfeiler and Lehman Go Topological: Message Passing Simplicial Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=HbVtEquLe5},
}
Figure