Skip to main content
QUICK REVIEW

[Paper Review] Blockmodels: A R-package for estimating in Latent Block Model and Stochastic Block Model, with various probability functions, with or without covariates

Jean-Benoist Léger|arXiv (Cornell University)|Feb 24, 2016
Bayesian Methods and Mixture ModelsComputer Science9 references21 citations
TL;DR

This paper introduces the Blockmodels R package for estimating Latent Block Models (LBM) and Stochastic Block Models (SBM) with various probability distributions—Bernoulli, Gaussian, and Poisson—both with and without covariates. It implements a variational EM algorithm in C++ via RcppArmadillo for efficient computation, supports automatic group number selection using the ICL criterion, and enables scalable analysis of large networks (up to thousands of nodes) with parallelization and vectorized operations.

ABSTRACT

Analysis of the topology of a graph, regular or bipartite one, can be done by clustering for regular ones or co-clustering for bipartite ones. The Stochastic Block Model and the Latent Block Model are two models, which are very similar for respectively regular and bipartite graphs, based on probabilistic models. Initially developed for binary graphs, these models have been extended to valued networks with optional covariates on the edges. This paper present a implementation of a Variational EM algorithm for Stochastic Block Model and Latent Block Model for some common probability functions, Bernoulli, Gaussian and Poisson, without or with covariates, with some standard flavors, like multivariate extensions. This implementation allow automatic group number exploration and selection via the ICL criterion, and allow analyze networks with thousands of nodes in a reasonable amount of time.

Motivation & Objective

  • To develop a flexible, efficient R package for fitting Stochastic Block Models (SBM) and Latent Block Models (LBM) to complex networks.
  • To support multiple probability distributions (Bernoulli, Gaussian, Poisson) and incorporate covariates on edges for improved modeling of real-world network data.
  • To enable automatic selection of the optimal number of clusters using the ICL criterion, enhancing model robustness and interpretability.
  • To ensure scalability for large networks (thousands of nodes) through optimized C++ computation, vectorized operations, and parallel execution in R.
  • To provide a user-friendly R interface with full integration of non-computationally intensive tasks in R, while offloading CPU-heavy operations to C++.

Proposed method

  • Implements a variational EM algorithm for SBM and LBM, leveraging mean-field approximation to simplify intractable posterior computations.
  • Uses RcppArmadillo to interface C++ code with R, accelerating matrix operations critical for large-scale network estimation.
  • Supports multiple likelihood families: Bernoulli (binary), Gaussian (continuous), and Poisson (count) networks, both with and without covariates.
  • Applies vectorized E-step and M-step computations to improve efficiency, especially in the M-step where closed-form solutions are used when available.
  • Integrates automatic group number exploration via the ICL criterion, with reinitialization strategies to improve convergence to global optima.
  • Utilizes parallelization via the R parallel package to run multiple initializations simultaneously, enhancing reliability and speed.

Experimental results

Research questions

  • RQ1How can Stochastic Block Models and Latent Block Models be efficiently estimated for large-scale networks with diverse edge distributions?
  • RQ2To what extent does the inclusion of covariates improve model fit and interpretability in SBM and LBM for real-world networks?
  • RQ3Can automatic group number selection via the ICL criterion reliably identify the optimal number of clusters in SBM and LBM without prior knowledge?
  • RQ4What is the computational performance of the proposed implementation on networks with up to thousands of nodes, and how does it scale with model complexity?
  • RQ5How do different likelihood families (Bernoulli, Gaussian, Poisson) and their covariate-inclusive variants perform in terms of estimation speed and accuracy?

Key findings

  • The Blockmodels package successfully estimates SBM and LBM across multiple probability distributions, including Bernoulli, Gaussian, and Poisson, with and without covariates.
  • Execution times range from seconds to hours depending on model complexity: for example, the Poisson model with covariates on 200 nodes with 10 groups took approximately 3h 49m on average.
  • The Gaussian multivariate model with independent components achieved the fastest estimation time (5s for 100 nodes, 1m 3s for 200 nodes), demonstrating high efficiency.
  • The implementation supports networks with up to thousands of nodes and scales well with model complexity, thanks to vectorized operations and parallelization.
  • The use of the ICL criterion for automatic group number selection is effective, with reinitialization strategies improving convergence stability.
  • The package achieves high performance through C++ acceleration and efficient memory management, outperforming prior C++-only implementations in flexibility and model availability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.