NervePool: A Simplicial Pooling Layer

Sarah McGuire Scullen, Ernst Röell, Elizabeth Munch, Bastian Rieck, Matthew HirnarXiv 2023

TL;DR

NervePool is a novel pooling layer designed for simplicial complexes, which are mathematical structures that generalize graphs to include higher-order relationships like triangles and tetrahedra. By leveraging the topological "nerve complex" construction, NervePool allows deep learning models to downsample complex topological data while deterministically preserving its multi-dimensional structural integrity.

What Problem Does This Paper Address?

While Graph Neural Networks (GNNs) have revolutionized deep learning on non-Euclidean data, they are fundamentally limited to pairwise interactions (edges between vertices). Many real-world systems—such as protein structures, social networks, and sensor arrays—involve higher-order interactions that are better modeled as simplicial complexes.

A major hurdle in building deep architectures for these complexes is pooling. In standard CNNs or GNNs, pooling reduces the size of the data to improve efficiency and prevent overfitting. However, simply applying graph pooling to a simplicial complex often "breaks" the topology, typically collapsing the higher-order structures back into a simple graph. The authors address the challenge of creating a coarsening scheme that respects the multi-dimensional nature of the data, ensuring the output is still a valid simplicial complex that retains meaningful topological features.

Methods

NervePool introduces a two-step process for simplicial pooling:

  1. Vertex Partitioning: The layer starts with a partition of the vertices (either learned through a GNN or fixed). These clusters represent the "meta-vertices" of the pooled complex.
  2. Topological Extension via the Nerve: To determine how higher-order simplices (edges, triangles, etc.) should be pooled, the authors use the Nerve Complex construction. For each vertex cluster, they define an "extended cover" based on the star of the vertices (the set of all simplices containing those vertices). The intersections of these covers then define the simplices in the new, coarsened complex.
A visual representation of NervePool showing the transition from input complex to pooled output via matrix operations and the nerve complex construction.

Crucially, while the motivation is purely topological, the implementation is handled through efficient matrix operations. The authors define "down" and "right" updates to extend a vertex assignment matrix to all higher dimensions, allowing the entire pooling process to be integrated into standard deep learning frameworks like PyTorch Geometric.

Datasets

The authors evaluated NervePool across two distinct types of tasks:

  • Standard Graph Classification: They used the TU Datasets (Proteins, DD, Enzymes, and MUTAG). These serve as a baseline to show that NervePool is competitive even on data that doesn't explicitly highlight higher-order structures.
  • Manifold Classification: They used the MANTRA dataset, which consists of 2-manifolds (triangulated surfaces) with up to 10 nodes. This dataset is specifically designed to test a model's ability to distinguish between different topological shapes.

Key Insights and Ideas

  • Deterministic Coarsening: One of the most powerful aspects of NervePool is that you only need to learn how to cluster the vertices. Once the vertex clusters are decided, the pooling of edges, triangles, and higher-order simplices is handled deterministically by the topology.
  • Structural Integrity: Unlike previous methods that might lose higher-order information during downsampling, NervePool is mathematically guaranteed to produce a valid simplicial complex.
  • Adjacency Generalization: The paper highlights that adjacency in simplicial complexes is more nuanced than in graphs. Simplices can be "upper adjacent" (sharing a common higher-dimensional face) or "lower adjacent" (sharing a common lower-dimensional face).
Figure 2: For simplex σ, geometrically realized as an edge, its four different types of adjacent simplices are: boundary adjacent, coboundary adjacent, lower adjacent, and upper adjacent.

Key Results

  • Topological Superiority: On the MANTRA manifold classification task, NervePool achieved an accuracy of 0.92, vastly outperforming graph-based pooling methods like DiffPool (0.47) and SAGPool (0.89). This demonstrates that preserving simplicial structure is vital for tasks where topology is the primary signal.
  • Competitive Graph Performance: On standard graph benchmarks, NervePool consistently ranked as the second-best method (behind only DiffPool). This is significant because NervePool is a more general framework; its strong performance on graphs suggests it is a robust "drop-in" replacement for standard pooling layers.

Limitations and Future Work

  • Computational Bottlenecks: The current implementation considers all possible "virtual" simplices in the pooled complex. As the number of clusters ($C$) grows, the number of candidate simplices grows exponentially, leading to memory constraints.
  • Learning from Higher Dimensions: Currently, the vertex clustering is learned primarily from the 1-skeleton (the graph part). The authors suggest that incorporating signals from higher-order simplices directly into the clustering logic could further improve performance.
  • Orientation: The current framework assumes non-oriented simplices. Future iterations could track simplex orientation, which is often critical in physics-based simulations and directed network analysis.

Summary updated

BibTeX
@misc{scullen2023nervepool,
  author = {Sarah McGuire Scullen and Ernst Röell and Elizabeth Munch and Bastian Rieck and Matthew Hirn},
  title = {{NervePool: A Simplicial Pooling Layer}},
  year = {2023},
  eprint = {2305.06315},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.06315},
}
Figure