NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Topology-aware Graph Diffusion Model with Persistent Homology

Joonhyuk Park, Donghyun Lee, Yujee Song, Guorong Wu, Won Hwa KimNeurIPS 2025

Generating realistic graphs—such as brain networks, molecular structures, or social networks—is notoriously difficult. While modern generative models excel at creating realistic images or text, they often miss the "big picture" global structure when it comes to graphs.

This paper introduces TAGG (Topology-Aware Graph Generation), a novel diffusion model that leverages persistent homology—a concept from algebraic topology—to explicitly teach the network about global shapes, loops, and connectivity. The result is a significant leap forward in generating highly realistic synthetic graphs.

The Challenge: Missing the Forest for the Trees

Graph generation aims to create synthetic networks that share the same characteristics as a set of reference graphs. This is incredibly useful in fields where real data is expensive, scarce, or privacy-restricted, such as generating structural brain connectomes from MRI data or discovering new drug molecules.

Recently, diffusion models have become the gold standard for this task. However, existing graph diffusion models primarily focus on approximating the joint distribution of individual nodes and edges. By focusing so heavily on local connections, they often overlook topological properties—the global, invariant characteristics of a graph, like the number of connected components or loops.

Consider a human brain network: it features a very specific global wiring system, including sparse but critical connections between the left and right hemispheres. If a generative model only looks at local edge probabilities, it might generate a graph with the right average number of connections but completely fail to connect the two hemispheres, rendering the synthetic brain network biologically useless.

Methodology: Bridging Topology and Diffusion

To force the model to care about global structure, the authors bridge Topological Data Analysis (TDA) with a discrete diffusion model. They propose two major novelties to guide the generation process:

Overview of the TAGG architecture, highlighting the Topology-aware Attention Module (TAM) and Persistence Diagram Matching (PDM) loss.

1. Topology-aware Attention Module (TAM)

Standard graph transformers use edge embeddings to help the attention mechanism, but this only provides local structural information. The authors extract a "homological feature vector" using a TDA technique called persistence landscapes, which tracks how holes and components appear and disappear as a graph is built.

This vector is injected into the attention mechanism as a global bias, giving the network a macro-level view of the graph. Because the homological feature vector of the original graph can be pre-computed during data preprocessing, it minimizes the computational overhead during the actual training loop.

2. Persistence Diagram Matching (PDM) Loss

During training, it's not enough to just penalize the model for guessing the wrong edges. The authors introduce a custom loss function that calculates the 1-Wasserstein distance between the topological features (persistence diagrams) of the generated graph and the original graph. This explicitly penalizes the model if the "shape" of its output doesn't match the ground truth.

Datasets and Experiments

The authors evaluated TAGG on a mix of standard benchmarks and complex real-world datasets:

  • Community-small: Synthetic graphs with two distinct communities.
  • Ego-small: Small sub-graphs from the Citeseer citation network.
  • ENZYMES: Protein tertiary structures from the BRENDA database.
  • ADNI (Alzheimer's Disease Neuroimaging Initiative): A real-world dataset of structural brain connectivity graphs (160 regions of interest). This serves as the primary testbed for complex, dense, real-world network generation.

Key Results and Qualitative Success

TAGG consistently outperformed strong baselines (like DiGress, GDSS, and GraphRNN) across Maximum Mean Discrepancy (MMD) metrics for degree, clustering, and orbits. On the complex ADNI brain dataset, TAGG achieved an average MMD of 0.427, blowing past the next best model (DiGress at 0.683).

When measuring pure topological similarity using metrics like ATOL KL-divergence, TAGG showed a 30.3% reduction in error compared to the second-best method. It also closely matched the real "Betti numbers" (counts of loops and components) of the test data.

Visualization of a generated brain network, demonstrating TAGG's ability to preserve complex global structures like inter-hemisphere connections.

Visually, TAGG was the only model that successfully preserved the symmetry of the brain networks and reliably generated the sparse inter-hemisphere connections. Baseline models tended to generate messy, disconnected blobs that lacked this critical biological structure.

Limitations and Future Work

While TAGG represents a major step forward, the authors note a few limitations:

  • Compute Bottlenecks: While pre-computing helps, calculating persistent homology and the Wasserstein distance for the PDM loss is currently CPU-bound. Existing Python TDA libraries lack GPU support, making this the primary bottleneck for scaling the method to massive graphs.
  • Black-Box Features: It is difficult to disentangle exactly which individual topological features (e.g., a specific loop vs. a specific connected component) are driving the improvements in the denoising network.

Future directions include exploring other vectorization methods for persistent homology beyond persistence landscapes to see if different topological representations yield even better or faster results.

Summary updated

BibTeX
@inproceedings{park2025topology,
  author = {Joonhyuk Park and Donghyun Lee and Yujee Song and Guorong Wu and Won Hwa Kim},
  title = {{Topology-aware Graph Diffusion Model with Persistent Homology}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=sye27MizdM},
}
Figure