NetGAN without GAN: From Random Walks to Low-Rank Approximations

Luca Rendsburg, Holger Heidrich, Ulrike von LuxburgICML 2020

This ICML 2020 paper is a masterclass in algorithmic simplification. It takes a popular, complex deep learning model and systematically strips away its "black box" components to reveal a surprisingly simple mathematical core.

The TL;DR

The authors demonstrate that the success of NetGAN—a state-of-the-art graph generative model—doesn't actually stem from its Generative Adversarial Network (GAN). By replacing the complex GAN and LSTM architecture with a simple low-rank matrix approximation, they created CELL, an algorithm that matches NetGAN’s performance while being up to 1,000x faster and significantly more transparent.

The Problem with Black-Box Graph Generation

Graph generative models are designed to create new graphs that share the same structural "DNA" as a target graph (e.g., a social network or a protein map) without being exact copies. This capability is vital for data augmentation, privacy-preserving data sharing, and robustness testing.

Until recently, the gold standard for this task was NetGAN. NetGAN works by sampling millions of random walks from a graph and training a GAN to mimic those sequences. While highly effective, NetGAN operates as a "black box": it is computationally expensive (requiring hours on a GPU), difficult to interpret, and leaves researchers wondering why it generalizes so well instead of simply memorizing the input data.

Methodology: Stripping Down NetGAN

The authors performed a "step-by-step stripping" of NetGAN to isolate its essential components:

  1. Removing the GAN/LSTM: They hypothesized that the LSTM's internal "bottleneck" (low-rank projections) was the true source of its generalization capabilities. They replaced the entire neural network with a rank-constrained optimization problem.
  2. Bypassing Sampling: NetGAN samples millions of random walks to estimate edge frequencies. The authors used the stationary distribution of random walks to prove that this sampling is mathematically redundant. The same result can be achieved using the graph's adjacency matrix directly.
  3. The CELL Algorithm: The culmination of this simplification is Cross-Entropy Low-rank Logits (CELL). Instead of training a GAN, CELL solves a low-rank approximation of the transition matrix in the "logit space" using standard cross-entropy loss.
Comparison of the NetGAN and CELL pipelines.

Essentially, CELL finds a low-rank matrix $W$ such that the resulting transition probabilities are as close as possible to the original graph's probabilities in terms of Kullback-Leibler (KL) divergence.

Key Insights

  • The "Secret Sauce" is Low-Rank: The GAN architecture was largely a distraction. The implicit inductive bias that allows the model to "generalize" (create new, plausible edges) is simply the constraint that the logit transition matrix must be low-rank.
  • KL-Divergence is Key: The paper reveals that NetGAN effectively minimizes the KL-divergence between transition matrices, explaining why it captures local structures so accurately.
  • Simplicity Equals Speed: By removing the need for a GAN and the millions of sampled walks, the authors turned a "heavy" deep learning task into a "light" optimization task.
  • Transparency: Because CELL is based on matrix factorization rather than a deep neural network, researchers can theoretically analyze the model's "bias," knowing exactly what kind of graph structures it prefers to generate.

Key Results

The authors evaluated CELL and NetGAN on five standard network datasets (CORA-ML, CITESEER, POLBLOGS, RT-GOP, and WEB-EDU) to compare graph statistics and link prediction performance.

Visual comparison of graphs generated by NetGAN and CELL.
  • Massive Speedup: On the CORA-ML dataset, NetGAN took 7,478 seconds (over 2 hours) on a GPU. CELL achieved similar results in just 21 seconds on a standard CPU.
  • Equivalent Performance: CELL matched or slightly outperformed NetGAN across almost all graph statistics (Max Degree, Assortativity, Triangle Count, etc.) and link prediction tasks (ROC-AUC).
  • Resource Efficiency: CELL eliminates the need for expensive high-end GPUs for this class of graph generation, democratizing access to the technique.

Limitations and Future Work

While CELL is a massive leap forward in efficiency and transparency, it has limitations. The current objective function rewards the model for placing edges where they exist in the input, but only indirectly penalizes it for placing edges where they don't. This can lead to "bad" edges in graphs with very strict spatial constraints (like neighborhood graphs).

The authors suggest a "Local CELL" variant to fix this distance issue, but more work is needed to integrate domain-specific constraints into the low-rank framework. Furthermore, while the paper identifies the low-rank bias, a full theoretical characterization of which specific graph properties are preserved by this bias remains an open question.

Summary updated

BibTeX
@inproceedings{rendsburg2020netgan,
  author = {Luca Rendsburg and Holger Heidrich and Ulrike von Luxburg},
  title = {{NetGAN without GAN: From Random Walks to Low-Rank Approximations}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure