Bayesian inference on random simple graphs with power law degree distributions

Juho Lee, Creighton Heaukulani, Zoubin Ghahramani, Lancelot F. James, Seungjin ChoiICML 2017

TL;DR

This paper introduces a practical Bayesian framework for modeling "scale-free" networks—graphs where a few "hub" nodes have many connections while most have very few. By utilizing a specific class of heavy-tailed random variables (BFRY) alongside a scalable stochastic variational inference algorithm, the authors provide a robust method to automatically learn a network's power-law behavior and significantly improve predictions for missing links.

What Problem Does This Paper Address?

Many real-world networks, from social media friendships to protein interactions and flight routes, are "scale-free." This means their degree distributions follow a power law: the probability of a node having $k$ connections is proportional to $k^{-\tau}$.

While mathematicians have developed theoretical frameworks for these graphs (like the generalized random graph), these models often lack practical ways to perform statistical inference. If you have a real dataset, how do you actually estimate the underlying parameters? Furthermore, standard Bayesian models for graphs often scale poorly—likelihood computations typically require $O(n^2)$ operations for $n$ nodes—making them unusable for large networks. The challenge is to create a model that is mathematically rigorous regarding power laws but also computationally efficient.

Methods

The authors propose a model based on Bertoin–Fujita–Roynette–Yor (BFRY) random variables. These variables are naturally heavy-tailed, making them perfect for generating the "hubs" seen in power-law graphs.

Key technical components include:

  • The Model: They parameterize the odds of a link between two nodes as a product of node-specific weights derived from BFRY variables. They introduce a discount parameter ($\alpha$) to control the power-law exponent (the heaviness of the tail) and a sparsity parameter ($\beta$) to control the overall density of the graph.
Degree distribution for different alpha values
  • Latent Factors: They show how to extend the model to include "clusters" or "features" (similar to Stochastic Blockmodels) without breaking the power-law degree distribution.
  • Scalable Inference: To handle large graphs, they use Stochastic Variational Inference (SVI).
  • They approximate the complex BFRY posterior using a simpler "rectified gamma" distribution.
  • They use minibatches of edges rather than the full adjacency matrix, allowing the algorithm to scale to much larger datasets.
  • They use stochastic gradient ascent to automatically learn the best $\alpha$ and $\beta$ directly from the data.

Datasets

The authors evaluated their model on simulated data and four real-world network datasets:

  1. 500Air: Flight connections between the 500 busiest US airports.
  2. openflights: A larger dataset of international flight connections.
  3. polblogs: Hyperlinks between political blogs during the 2004 US election.
  4. Facebook107: A "friendship" network from a Facebook app.

Key Insights and Ideas

  • Decoupling Tail and Density: One of the most useful features of this model is the ability to separate the "heaviness" of the tail (how extreme the hubs are) from the overall sparsity of the network. This is achieved by truncating the BFRY variables at a level determined by the number of nodes.
  • Power Laws Matter for Prediction: The experiments show that if a network truly follows a power law, using a model that explicitly accounts for it (BFRY) leads to significantly better predictions of missing edges compared to standard models (like Gamma-based models) that have lighter tails.
  • Automatic Discovery: The inference routine can "discover" the power-law nature of a dataset. For example, it correctly identified that the Facebook dataset had the heaviest tails ($\alpha \approx 0.0$), while the flight networks had lighter tails.

Key Results

  • Predictive Accuracy: In all real-world datasets, the BFRY model achieved higher test log-likelihoods than the Gamma baseline. For example, on the 500Air dataset, the BFRY model reached a max test log-likelihood of -1628.51 versus -1842.10 for the baseline.
Predictive accuracy on real datasets
  • Parameter Recovery: In simulations, the inference routine was able to accurately recover the true $\alpha$ values used to generate the data, proving that the variational approximation is robust.
  • Scalability: By using minibatches, the authors demonstrated that Bayesian inference on these complex distributions is feasible for networks with thousands of nodes and tens of thousands of edges.

Limitations and Future Work

  • Numerical Stability: The authors noted numerical issues when the sparsity parameter $\beta$ exceeded 1.4, suggesting there are limits to how dense the modeled graphs can be before the math becomes unstable.
  • Latent Factor Implementation: While the paper provides the mathematical framework for incorporating latent factors (clustering), the experimental section focused primarily on the degree distribution. Implementing and testing the full latent-feature version of this model remains a task for future research.
  • Sparsity Inference: While $\alpha$ was inferred via gradients, the sparsity parameter $\beta$ was selected via cross-validation. The authors suggest that finding a way to perform direct gradient-based inference on $\beta$ would be a valuable improvement.

Summary updated

BibTeX
@inproceedings{lee2017bayesian,
  author = {Juho Lee and Creighton Heaukulani and Zoubin Ghahramani and Lancelot F. James and Seungjin Choi},
  title = {{Bayesian inference on random simple graphs with power law degree distributions}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=B1WwuiWuWH},
}
Figure