Topological Zigzag Spaghetti for Diffusion-based Generation and Prediction on Graphs

Yuzhou Chen, Yulia GelICLR 2025

Graph diffusion models have recently emerged as powerful tools for generative artificial intelligence on graphs, with applications ranging from drug design to traffic forecasting. However, despite their high potential, most existing models struggle to holistically describe intrinsic, higher-order topological properties.

To address this, researchers have introduced a novel mathematical framework that makes graph diffusion models "topologically aware." By combining the rigorous machinery of algebraic topology with generative deep learning, the authors propose a new descriptor called Zigzag Spaghetti (ZS). This stable and differentiable topological summary captures higher-order graph features across multiple resolutions and time steps, leading to performance gains of up to 10% and substantially higher robustness in downstream tasks.

The Problem: Topological Blindness

Graph diffusion models are excellent at modeling local node-to-node interactions but often suffer from "topological blindness." They struggle to capture the "global shape" of a network—the higher-order loops, voids, and connectivity patterns that define a graph's core identity.

Existing tools like Persistent Homology (PH) can describe these shapes, but they are usually limited to a single static graph. When dealing with sequences of graphs (such as a traffic network evolving over time) or the noisy intermediate steps of a diffusion process, traditional PH falls short. Furthermore, previous topological summaries were often non-differentiable or required manual tuning of "resolution" scales, making them difficult to plug seamlessly into modern deep learning pipelines.

Methodology: Introducing Zigzag Spaghetti

The core innovation of this paper is the Zigzag Spaghetti (ZS) descriptor. It builds on Zigzag Persistence (ZP), a powerful branch of topology that allows for the simultaneous evaluation of a sequence of graphs where edges and nodes can be both added and removed.

Key components of the proposed architecture include:

  • Zigzag Spaghetti (ZS): A new summary that stacks topological features across time and multiple resolution scales into a single matrix. Unlike previous methods, ZS is Lipschitz continuous (mathematically stable) and differentiable, allowing it to be used as a standard layer in a neural network.
  • Mixed-Up Graph Construction (MGC): To capture both local and global structure, the model creates a "mixed-up" graph by combining the original input with a $k$-hop neighbor graph using an attention mechanism.
  • ZS-Aware Diffusion (ZS-DM): The authors integrate ZS features directly into the denoising process of a diffusion model. As illustrated in the pipeline below, the model extracts ZS descriptors at each step of the diffusion process to guide the reconstruction of the graph.
The forward process of the ZS-aware diffusion model, showing how ZS summaries are extracted at each step.

Key Insights

  • Stability is Robustness: The authors provide a theoretical proof that ZS is stable. In the context of diffusion models—which are inherently noisy—this stability ensures that small amounts of noise do not lead to wild changes in the topological signature, making the model much more robust than standard Graph Neural Networks (GNNs).
  • The "Spaghetti" Advantage: The name "spaghetti" is borrowed from Earth sciences, referring to diagrams that show many possible paths. Here, it signifies that ZS looks at all resolution scales simultaneously, removing the need for researchers to guess which scale is "correct" for their specific dataset.
  • Uncertainty Quantification: The paper introduces a bootstrap method for ZS. This allows the model to quantify how "certain" it is about a specific topological feature, marking a significant step toward more reliable and interpretable graph AI.

Key Results

The authors evaluated their model across three distinct domains: spatio-temporal traffic (PeMSD3 and PeMSD8), molecular/chemical graphs (MUTAG, BZR, COX2, NCI1, PROTEINS, DD, PTC_MR, PTC_FM), and large-scale benchmarks (ogbg-molhiv).

The ZS-DM model consistently outperformed state-of-the-art (SOTA) baselines:

  • Traffic Forecasting: On the PeMSD8 dataset, ZS-DM achieved a 14% improvement in Mean Absolute Percentage Error (MAPE) compared to the previous best probabilistic models.
  • Molecular Classification: As seen in the performance table below, ZS-DM outperformed 15 different baselines across almost all molecular datasets, often with statistically significant margins.
  • Robustness: When subjected to 5% Gaussian noise, ZS-DM maintained its performance far better than standard diffusion models (DDM), highlighting the protective power of topological features.
Performance comparison on molecular and chemical graphs, showing ZS-DM consistently outperforming SOTA baselines.

Limitations and Future Work

While ZS is more efficient than previous zigzag methods, the authors acknowledge that computational complexity remains a challenge for extremely dense graphs. The current best complexity for 1D features is $O(m \log^2 N)$, which may still be slow for massive networks.

Future directions suggested by the authors include scaling the approach using more efficient "witness complexes" or landmarks, extending the ZS framework to hypergraphs and dynamic multilayer networks, and exploring applications in more complex generative tasks like 3D protein folding.

Summary updated

BibTeX
@inproceedings{chen2025topological,
  author = {Yuzhou Chen and Yulia Gel},
  title = {{Topological Zigzag Spaghetti for Diffusion-based Generation and Prediction on Graphs}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=mYgoNEsUDi},
}
Figure