Graph model selection using maximum likelihood

Ivona Bezáková, Adam Kalai, Rahul Santhanam

Introduction

In the mid-2000s, network science saw a proliferation of random graph models designed to explain the structure of the Internet, social networks, and biological systems. However, comparing these models was largely a subjective exercise. Researchers would often "eye-ball" properties—such as checking if a model produced a power-law degree distribution or a "small-world" diameter—and declare success if the simulated curves resembled real-world data.

This paper argues that such an approach is highly application-dependent and lacks statistical rigor. To address this, the authors propose using Maximum Likelihood (ML)—the gold standard in statistical model selection—to objectively rank random graph models. The primary challenge in applying ML to graphs is that most generative models (like Preferential Attachment) depend on the chronological order in which nodes are added. Because real-world network data rarely includes a "timestamp" for every node, calculating the likelihood requires accounting for all $n!$ possible node orderings, a computationally explosive task.

Methodology

The core contribution of this work is a set of algorithms designed to estimate the likelihood $P(G | \text{Model})$ for four major graph families:

  1. Erdős-Rényi (ER): The baseline uniform random graph, where likelihood is straightforward to calculate exactly.
  2. Power-Law Random Graph (PRG): A model where degrees are sampled from a power-law distribution and then randomly connected.
  3. Preferential Attachment (PA): A generative model where new nodes preferentially link to existing high-degree "hubs."
  4. Small-World (SW): A grid-based model with added long-range random links.

To overcome the $n!$ permutation hurdle for the PA model, the authors designed a novel Markov Chain Monte Carlo (MCMC) algorithm. Instead of summing over all permutations of node arrivals, they used a random walk to sample permutations that are highly probable given the observed graph structure. By employing a "card-shuffling" analogy—removing a node and reinserting it elsewhere—they ensured the chain converged quickly to a representative distribution. For the SW model, which proved even more computationally demanding, they utilized Simulated Annealing to find the "best-fit" grid alignment, providing a reliable upper bound on the likelihood.

Datasets and Key Insights

The authors evaluated their ML framework on three snapshots of the AS-level Internet topology (the network of Autonomous Systems forming the Internet's backbone) from 1997, 1999, and 2001. These datasets ranged from approximately 3,000 to 11,000 nodes.

Applying ML to these massive, singular data points revealed several key insights:

  • Graphs as Single Items: Unlike standard machine learning with thousands of independent samples, a graph is often a single massive data point, making traditional train/test splits difficult and justifying the use of ML on the entire structure.
  • Symmetrization: To make models comparable, the authors "symmetrized" them, calculating the probability that a model would produce the observed graph regardless of specific node labels.
  • Property Significance: By ranking models, researchers can infer which structural properties are most fundamental. If a generative model beats a purely descriptive one, it suggests the generative mechanism captures deeper structural truths.

Key Results

The models were ranked by their negative log-likelihood per edge (where lower values indicate a higher probability and better fit). The ranking was remarkably consistent across all three years of Internet data.

Negative log-likelihood per edge across models for 1997, 1999, and 2001 datasets

As shown in the comparison above, the models consistently ranked in the following order:

  1. Preferential Attachment (PA): Best fit.
  2. Power-Law Random Graph (PRG): Close runner-up.
  3. Small-World (SW): Third place (using upper bounds).
  4. Erdős-Rényi (ER): Worst fit.
Detailed likelihood scores and fitted parameters for the 1999 dataset

The specific numerical breakdown for the 1999 dataset further illustrates this gap, with PA achieving the lowest negative log-likelihood score (8.55) compared to ER's baseline (12.93). The fact that PA outperformed PRG is particularly significant; it suggests that the generative process of preferential attachment captures intrinsic properties of the Internet's structure that simply imposing a static power-law degree distribution does not.

Limitations and Future Work

While groundbreaking, the MCMC approach is computationally intensive. Processing the 2001 dataset required about a week of computation on a cluster of 35-50 computers. This currently limits the approach to graphs with tens of thousands of nodes, posing a challenge for modern networks with billions of edges. Additionally, the inability to calculate exact likelihoods for the SW model highlights a need for better sampling techniques for spatial models. Future work could extend this rigorous ML framework to more complex, modern models involving community structures or rich node attributes.

Summary updated

BibTeX
@inproceedings{bezakova2006graph,
  author = {Ivona Bezáková and Adam Kalai and Rahul Santhanam},
  title = {{Graph model selection using maximum likelihood}},
  booktitle = {International Conference on Machine Learning},
  year = {2006},
  doi = {10.1145/1143844.1143858},
}
Figure