Block-Approximated Exponential Random Graphs

Florian Adriaens, Alexandru Mara, Jefrey Lijffijt, Tijl De Bie

TL;DR

Exponential Random Graphs (ERGs) are powerful tools for network modeling but have historically been crippled by poor scalability and mathematical "degeneracy." This paper introduces a framework that uses fast matrix block-approximation to fit ERGs to massive networks with millions of nodes. By grouping nodes into blocks with similar structural roles, the authors create a model that is both computationally efficient and highly interpretable, rivaling state-of-the-art graph embedding methods in link prediction tasks.

What Problem Does This Paper Address?

In the world of network science, we often want to find a mathematical model that "looks like" a real-world network (e.g., a social network or a protein interaction map). Exponential Random Graphs (ERGs) are the gold standard for this because they are based on the principle of Maximum Entropy—they provide the most unbiased distribution of graphs that match specific observed statistics, like average degree or the number of triangles.

However, ERGs have two massive "deal-breaker" problems:

  1. Computational Intractability: Calculating the "partition function" (a normalizing constant) requires summing over all possible graphs, which is $2^{\Theta(n^2)}$. For a network with a million nodes, this is impossible.
  2. Degeneracy: Traditional ERGs often fail during estimation, producing "degenerate" models that only predict either completely empty or completely full graphs.

Because of these issues, researchers have largely moved toward "black box" graph embeddings (like Node2vec), which are fast but offer little insight into why an edge exists. This paper aims to bring the interpretability of ERGs back to the big-data era.

Methods

The authors propose a "dyadic independence" version of ERGs. In this setup, every edge is treated as an independent Bernoulli trial, but the probability of that edge is informed by both local information (node degrees) and global information (triangles, clustering, etc.).

The "secret sauce" is Block-Approximation:

  • Spectral Clustering: Instead of treating every node as a unique entity, the authors use a fast eigendecomposition of the adjacency matrix followed by k-means clustering. This groups nodes into $k$ "blocks" that share similar structural properties.
  • Parameter Reduction: By assuming that nodes within the same block behave similarly regarding global constraints, they reduce the number of free variables from $O(n)$ to roughly $O(\sqrt{kn})$. For a sparse graph, this makes the optimization problem significantly smaller.
  • Optimization: They use the L-BFGS algorithm to minimize the convex Lagrange dual function, which is much more stable and faster than the MCMC sampling methods traditionally used for ERGs.

Datasets

The authors evaluated their approach on a diverse set of nine real-world networks, ranging from small relational datasets to massive social networks:

  • Small/Medium: StudentDB, Facebook, PPI (Protein-Protein Interaction), Wikipedia, GR-QC (Collaboration network).
  • Large-Scale: BlogCatalog, DBLP, and the massive YouTube (1.1M nodes) and Flickr (80k nodes, 11M edges) datasets.

Key Insights and Ideas

  • The Best of Both Worlds: The model achieves "dyadic independence" (which prevents degeneracy) while still "smuggling in" global structural information like triangle counts through the feature matrices.
  • Geometry of the Graph: The authors show that for sparse graphs, the number of unique degrees within a block is small. This mathematical property is what allows the $O(\sqrt{kn})$ scaling, making it possible to process millions of nodes on a standard server.
  • Interpretable Link Prediction: Unlike embeddings, where a vector represents a node in an abstract space, the parameters in this model (Lagrange multipliers) directly correspond to the importance of specific structural features (e.g., "how much does being part of a triangle increase the chance of an edge?").

Key Results

  • Scalability: The block-approximated models successfully ran on all datasets, including those with millions of nodes, where "full" MaxEnt models and several embedding methods failed or timed out.
  • Accuracy: In link prediction (AUC), the MaxEnt models were highly competitive, often outperforming or matching state-of-the-art methods like Node2vec, DeepWalk, and AROPE. For example, on the YouTube dataset, the MaxEnt model achieved an AUC of 0.9919.
  • Goodness-of-Fit: Qualitatively, the model captured complex network statistics (like the "triad census") much better than simpler benchmarks like the Chung-Lu model or the BTER model.

Limitations and Future Work

  • Label Leakage: The authors warn against using the adjacency matrix itself as a feature for link prediction, as the model might simply "memorize" the graph rather than learn its underlying structure.
  • Geodesic Distances: While the model captures local clusters well, the block-approximation can sometimes struggle to perfectly replicate the exact shortest-path (geodesic) distances across the entire network compared to a non-approximated model.
  • Future Directions: The authors suggest extending this framework to directed graphs and incorporating node or edge attributes (like user demographics in a social network) directly into the feature matrices.

Summary updated

BibTeX
@inproceedings{adriaens2020block,
  author = {Florian Adriaens and Alexandru Mara and Jefrey Lijffijt and Tijl De Bie},
  title = {{Block-Approximated Exponential Random Graphs}},
  booktitle = {DSAA},
  year = {2020},
  url = {https://openreview.net/forum?id=nBJ0wWqrDzy},
}
Figure