Dist2Cycle: A Simplicial Neural Network for Homology Localization

Alexandros Dimitrios Keros, Vidit Nanda, Kartic Subr

Dist2Cycle: A Simplicial Neural Network for Homology Localization

Introduction

In data science, relationships are often modeled as graphs. However, graphs are limited to capturing pairwise interactions. To understand higher-order structures—such as the "voids" in a 3D sensor cloud or "cycles" in a chemical molecule—researchers turn to simplicial complexes. A fundamental challenge in Topological Data Analysis (TDA) is homology localization: identifying the precise location of these holes. While detecting the existence of a hole is computationally feasible, finding the "optimal" or "shortest" cycle surrounding it is often an NP-hard optimization problem. Dist2Cycle is a novel graph neural network (GNN) framework designed to localize these topological features by learning to predict the distance of any point in a complex to its nearest optimal homology generator.

Methods and Architecture

The Dist2Cycle architecture transforms a simplicial complex into a computational graph optimized for topological inference. The pipeline involves several key stages:

  1. Spectral Inversion: Standard diffusion on a graph typically highlights well-connected regions. However, topological holes reside in the nullspace (eigenvalues of zero) of the Hodge Laplacian ($L_d$). To make these features accessible to a GNN, the authors employ a "shifted inverted" operator: $\tilde{L}_d^+ = (I + L_d)^+$. This transformation "flips" the spectrum, making homology-related information the most prominent signal.
  2. Hodge Laplacian Graphs: The space of $d$-simplices (e.g., edges in a 3D mesh) is represented as nodes in a new graph. Edges are determined by the sparsity of the Hodge Laplacian, ensuring the GNN respects the original topology while maintaining computational efficiency.
  3. Feature Engineering: Each node is initialized with local features (Betti numbers of its "link") and global features (spectral embeddings from the top $k$ singular vectors of the inverted Laplacian).
  4. Architecture: A 12-layer Message Passing GNN (MPGNN) aggregates these features to predict a normalized "distance-to-cycle" value for every simplex.
Dist2Cycle Pipeline: From input simplicial complex to MPGNN processing and final distance-to-cycle output.

Key Insights: The Power of the Nullspace

The central innovation of Dist2Cycle is the realization that homology lives in the "quiet" part of the Laplacian spectrum. By inverting the operator, the model transforms a difficult search into a prominent signal detection task. Instead of a binary classification ("is this part of a hole?"), the model learns a continuous distance field, providing a global view of the complex's relationship to its voids.

Comparison of the standard Hodge Laplacian and the inverted Laplacian across different ranks. The inverted operator significantly clarifies the topological signal.

Datasets and Results

The model was evaluated on the TORI Dataset, consisting of 2,000 simplicial complexes generated from point clouds sampled from various torus manifolds with added Gaussian noise. Ground truth was established using the "shortloop" algorithm, a high-quality but slow combinatorial method.

Dist2Cycle achieved a Mean Squared Error (MSE) of 3.81% in 2D and 4.47% in 3D, significantly outperforming the primary baseline (hom_emb), which had errors of 7.86% and 8.89%, respectively. Crucially, the GNN's inference time is nearly independent of the total number of simplices, offering a scalable alternative to combinatorial methods that typically scale at $O(N^4)$.

Limitations and Future Work

While successful, the model can "hallucinate" holes in complexes where none exist. Additionally, the output distance function exhibits some variance due to the GNN producing smoother outputs than the piecewise constant target. Future work may explore more sophisticated spectral sparsification techniques and extending evaluation to higher-dimensional voids ($d > 1$).

Summary updated

BibTeX
@inproceedings{keros2022dist,
  author = {Alexandros Dimitrios Keros and Vidit Nanda and Kartic Subr},
  title = {{Dist2Cycle: A Simplicial Neural Network for Homology Localization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20673},
}
Figure