A Deterministic Partition Function Approximation for Exponential Random Graph Models

Wen Pu, Jaesik Choi, Yunseong Hwang, Eyal AmirIJCAI 2015

Abstract

Exponential Random Graphs Models (ERGM) are common, simple statistical models for social network and other network structures. Unfortunately, inference and learning with them is hard even for small networks because their partition functions are intractable for precise computation. In this paper, we introduce a new quadratic time deterministic approximation to these partition functions. Our main insight enabling this advance is that subgraph statistics is sufficient to derive a lower bound for partition functions given that the model is not dominated by a few graphs. The proposed method differs from existing methods in its ways of exploiting asymptotic properties of subgraph statistics. Compared to the current Monte Carlo simulation based methods, the new method is scalable, stable, and precise enough for inference tasks.

Introduction

Exponential Random Graph Models (ERGMs) serve as a foundational tool in social network analysis, enabling researchers to model the probability of a network structure based on local configurations such as edges, triangles, and k-stars. However, the practical application of ERGMs is severely limited by the intractability of the partition function—a normalizing constant that requires summing over all possible graphs of a given size. For a network with just $n=40$ nodes, this involves $2^{780}$ possible graphs, a number far exceeding the atoms in the observable universe.

Traditional approaches rely on Markov Chain Monte Carlo (MCMC) simulations to estimate this constant. Unfortunately, MCMC is computationally expensive, requires careful tuning, and is prone to "degeneracy," where the simulation converges to unrealistic, extreme graph structures (e.g., completely empty or full graphs).

Methodology: Edge Count Search (ECS)

We propose Edge Count Search (ECS), a deterministic $O(n^2)$ algorithm that approximates the log partition function by transforming a massive summation into a manageable optimization problem. The core of ECS lies in two theoretical pillars:

  1. Concentration of Measure: In probabilistic graph theory, for a fixed number of edges, most graphs exhibit similar subgraph statistics. Their densities concentrate around an expected value, allowing us to group graphs by features rather than individual instances.
  2. Deterministic Optimization: Instead of stochastic sampling, ECS iterates through all possible edge counts $u \in [0, n(n-1)/2]$ to identify the count that maximizes a specific lower bound of the log partition function.

Unlike previous analytic approximations that required restrictive assumptions on model coefficients, ECS utilizes weaker convergence results, making it applicable to a broader range of real-world modeling scenarios. Furthermore, the authors introduce a "scale-free" meta-parameter $\xi$ by scaling model parameters $\theta$ at a rate of $\Theta(n^2)$, ensuring the model remains robust across varying network sizes.

Experimental Evaluation

The performance of ECS was evaluated against synthetic and real-world datasets, including the kapferer2 tailor shop network, the prison inmate network, the dolphins association network, and the sanjuansur rural social network.

Stability and Robustness

In synthetic tests involving 1,296 sampled networks, ECS demonstrated remarkable stability. While MCMC (specifically Bridge Regression) failed or produced mathematically impossible likelihoods in approximately 30% of cases—failing the "Upper Bound test"—ECS remained consistently within realistic bounds.

Comparison of log-likelihood estimates between ECS and Bridge Regression (BR). Red triangles indicate where BR fails the upper bound test, while ECS remains stable.

Real-World Performance

When applied to real-world social networks, ECS-fitted models often outperformed MCMC-based models. In several instances, MCMC simulations degenerated, failing to capture the underlying structure of the network. In contrast, ECS provided stable fits that accurately reflected the observed subgraph statistics and node degree distributions.

Comparison of MCMC and ECS on real-world networks. ECS provides a more stable fit, avoiding the degeneracy often seen in MCMC simulations.

Conclusion

Edge Count Search (ECS) offers a scalable, stable, and deterministic alternative to MCMC for ERGM inference. By leveraging the concentration of subgraph statistics, ECS achieves quadratic-time performance while avoiding the degeneracy issues that plague stochastic methods. Future work will explore the extension of this approach to include nodal attributes and more complex network features.

Summary updated

BibTeX
@inproceedings{pu2015deterministic,
  author = {Wen Pu and Jaesik Choi and Yunseong Hwang and Eyal Amir},
  title = {{A Deterministic Partition Function Approximation for Exponential Random Graph Models}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2015},
  url = {https://openreview.net/forum?id=HyWioXfd-B},
}
Figure