Abstract
Bayesian inference for exponential family random graph models (ERGMs) is a doubly-intractable problem because of the intractability of both the likelihood and posterior normalizing factor. Auxiliary variable based Markov Chain Monte Carlo (MCMC) methods for this problem are asymptotically exact but computationally demanding, and are difficult to extend to modified ERGM families. In this work, we propose a kernel-based approximate Bayesian computation algorithm for fitting ERGMs. By employing an adaptive importance sampling technique, we greatly improve the efficiency of the sampling step. Though approximate, our easily parallelizable approach yields comparable accuracy to state-of-the-art methods with substantial improvements in compute time on multi-core hardware. Our approach also flexibly accommodates both algorithmic enhancements and extensions to non-standard cases such as inference from non-sufficient statistics. We demonstrate the performance of this approach on two well-known network data sets, comparing its accuracy and efficiency with results obtained using the approximate exchange algorithm. Our tests show a wallclock time advantage of up to 50% with five cores, and the ability to fit models in 1/5th the time at 30 cores.
Introduction: The Challenge of Network Modeling
Exponential Family Random Graph Models (ERGMs) are the primary framework for understanding the formation of complex networks, from social ties and political alliances to biological pathways. However, performing Bayesian inference on these models presents a significant computational hurdle known as the "doubly-intractable" problem.
To calculate the likelihood of a specific network configuration, one must compute a normalizing constant—a value that involves summing over every possible configuration of the network. For even a small network of 15 nodes, there are $2^{105}$ possible configurations, a number exceeding the estimated number of atoms in a human body. Standard Bayesian methods require calculating this constant repeatedly, making them prohibitively slow. Current state-of-the-art methods, such as the Approximate Exchange Algorithm (AEA), rely on serial Markov Chain Monte Carlo (MCMC) processes that cannot easily leverage modern multi-core computing architectures.
Methodology: Kernel-based ABC with Adaptive Importance Sampling
To overcome these limitations, we propose a Kernel-based Approximate Bayesian Computation (K-ABC) approach. This method shifts the focus from direct likelihood calculation to a simulation-based framework that is inherently parallelizable.
1. Approximate Bayesian Computation (ABC)
Instead of evaluating complex likelihoods, ABC generates thousands of simulated networks using different parameter sets. Parameters that produce networks closely resembling the observed data are retained, while others are discarded.
2. Gaussian Kernels for Weighting
Rather than a binary "keep or toss" rule, our approach employs a Gaussian kernel to weight simulations. This allows for a more nuanced inference process where simulations that are very close to the real data receive high weights, while those further away contribute less to the final posterior distribution.
3. Adaptive Importance Sampling (AIS)
Standard ABC can be inefficient if it spends too much time exploring low-probability regions of the parameter space. Our K-ABC-AIS algorithm operates in iterative rounds. It uses the results of initial simulations to "learn" the high-probability regions, focusing subsequent rounds on the most promising areas of the parameter space. This adaptation ensures that the computational budget is spent where it matters most.
4. Massive Parallelism
Unlike MCMC-based methods, which are inherently sequential, every simulation in the K-ABC framework is independent. This makes the algorithm "embarrassingly parallel," allowing it to scale linearly with the number of available CPU cores.
Experimental Evaluation
We evaluated the K-ABC-AIS method against two classic benchmarks in network science:
- Zachary’s Karate Club: A social network of 34 members representing a real-world community.
- Faux Mesa High School: A synthetic undirected friendship network of 205 students, used to test the model's ability to capture "homophily" (the tendency of individuals to form ties with others in the same grade).
Key Results
Computational Efficiency
The primary advantage of K-ABC-AIS is its speed on modern hardware. On a 30-core system, the algorithm fitted models in 1/5th to 1/7th of the time required by the AEA method. Even with a modest 5-core setup, it demonstrated a 50% wallclock time advantage. This suggests that as researchers gain access to more cores, the time required for complex network modeling will continue to drop significantly.
Accuracy and Robustness
Despite being an "approximate" method, K-ABC-AIS produced posterior distributions that were nearly identical to the "ground truth" and the results produced by the more computationally expensive AEA. Furthermore, the adaptive version (K-ABC-AIS) significantly outperformed non-adaptive versions, proving that learning the parameter space during execution is vital for efficiency.
Flexibility
Traditional ERGM methods are often restricted to "sufficient statistics." K-ABC is more flexible, allowing for inference even when researchers only have partial data or wish to use non-standard summary statistics that do not fit the traditional exponential family requirements.
Conclusion and Future Directions
By moving from serial algorithms to a parallelized, simulation-based approach, we demonstrate that approximate methods can be practically superior for large-scale network analysis. While the current implementation uses a heuristic for bandwidth selection, future work will explore automated selection methods to further refine accuracy. Additionally, we see potential in integrating machine learning techniques—such as neural networks or random forests—to better estimate the relationship between parameters and network features, particularly in high-dimensional spaces where the "curse of dimensionality" affects ABC methods. This framework provides a scalable path forward for modeling increasingly complex systems, including temporal networks and models with latent variables.
Summary updated