Directed Graph Generation with Heat Kernels

Marc T. Law, Karsten Kreis, Haggai Maron

Introduction

Directed graphs (digraphs) are fundamental structures for representing asymmetric relationships, such as causal links, chronological events, or Markov chains. Despite their importance, generating digraphs remains a significant challenge in machine learning. Most existing graph generation methods focus on undirected graphs, which benefit from symmetric Laplacian matrices and real eigenvalues. In contrast, digraphs result in non-symmetric matrices with complex eigenvalues, rendering standard spectral techniques ineffective. Furthermore, many current models rely on slow, error-prone autoregressive processes that build graphs node-by-node, often leading to global structural inconsistencies.

The DGDK Framework

To address these challenges, this paper introduces DGDK (Digraph Generation with Diffusion Kernels), a novel one-shot generative model based on a denoising autoencoder framework. Unlike traditional autoencoders, DGDK utilizes a mathematically grounded, "hard-coded" encoder based on the physics of heat diffusion.

The DGDK pipeline: from adjacency matrix to noisy representation via heat diffusion, followed by neural reconstruction.

Methodology

The DGDK pipeline consists of several key stages:

  1. Heat Diffusion Encoder: The model corrupts a digraph by simulating heat diffusion over its nodes using the random walk Laplacian matrix. As the diffusion time ($T$) increases, node representations transition toward a state of maximum entropy. This process is defined by a closed-form expression, ensuring efficiency and eliminating the need for learned parameters in the encoding stage.
  2. Theoretical Foundation (RKBS): To handle the non-symmetry of digraphs, the authors leverage Reproducing Kernel Banach Spaces (RKBS). This provides a geometric foundation for diffusion kernels that remains valid even when the underlying matrices are not symmetric.
  3. Denoising Decoder: A neural network, specifically a Set Transformer, is trained to reverse the diffusion process. It takes the noisy representation and predicts the entire reconstructed adjacency matrix in a single step.
  4. Scalability via Low-Rank Approximation: For larger graphs, the model employs a truncated Singular Value Decomposition (SVD) of the heat kernel. This reduces memory requirements from quadratic to linear relative to the number of nodes.

Experimental Evaluation

The authors evaluated DGDK on synthetic digraph datasets designed to test specific structural properties, including Erdős-Rényi (ER) graphs, Stochastic Block Models (SBM), and Multimodal Categories.

Key Results

  • Structural Fidelity: DGDK significantly outperformed state-of-the-art baselines like GRAN and SwinGNN in matching global topological properties. On SBM graphs, DGDK achieved a Spectrum Maximum Mean Discrepancy (MMD) of $6.2 \times 10^{-6}$, a substantial improvement over the next best baseline ($3.6 \times 10^{-4}$).
  • Diversity and Novelty: The model achieved 100% uniqueness and novelty across all tests, demonstrating that it learns the underlying distribution rather than simply memorizing training samples.
  • Efficiency: As a one-shot model, DGDK is highly scalable. It can be trained on graphs with up to 200 nodes in approximately one hour on a single consumer-grade GPU (RTX 3090).

Insights and Future Work

A key insight of this work is the advantage of global over local information. By utilizing the Laplacian matrix, the model captures the entire graph's topology, allowing it to preserve complex structures like connected components more effectively than models that only look at local neighborhoods. Furthermore, the model naturally aligns with the most informative singular vectors of the Laplacian, which act as the structural "skeleton" of the graph.

While DGDK shows great promise, future work will focus on scaling the model to large-scale real-world digraph datasets and exploring stochastic decoding architectures to further enhance generative variety.

Summary updated

BibTeX
@article{law2025directed,
  author = {Marc T. Law and Karsten Kreis and Haggai Maron},
  title = {{Directed Graph Generation with Heat Kernels}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure