NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Collapsed Variational Bayes Inference of Infinite Relational Model

Katsuhiko Ishiguro, Issei Sato, Naonori UedaarXiv 2014

TL;DR

This paper introduces a faster, more reliable way to perform inference on the Infinite Relational Model (IRM) using Collapsed Variational Bayes (CVB). By developing a novel "Averaged CVB" (ACVB) technique, the authors provide the first convergence-guaranteed algorithm for this class of models, while a new linear-time implementation allows IRM to scale to massive, sparse datasets like Netflix and MovieLens.

What Problem Does This Paper Address?

Relational data—think social network links, purchase histories, or protein interactions—is often analyzed using the Infinite Relational Model (IRM). IRM is powerful because it performs "bi-clustering," simultaneously grouping both the rows and columns of a data matrix to uncover hidden block structures.

A visualization of how IRM discovers "block" structures in relational data by permuting object indices.

However, IRM has a major usability hurdle: inference. Traditionally, researchers use Collapsed Gibbs Sampling, which is stochastic and notoriously slow to "mix" (reach a stable state). It’s also hard for non-experts to tell when it has actually converged. While Variational Bayes (VB) offers a faster, deterministic alternative, it hadn't been derived for IRM, and standard VB often gets stuck in poor local optima compared to "collapsed" methods that integrate out nuisance parameters.

Methods

The authors bridge this gap by deriving two versions of Collapsed Variational Bayes for IRM:

  1. CVB (2nd-order): Uses a Taylor expansion to approximate the posterior, accounting for variance.
  2. CVB0 (0th-order): A simpler, often more stable version that ignores the variance term in the approximation.

To solve the "black box" problem of knowing when the algorithm is done, they introduce Averaged CVB (ACVB). This technique uses a simple annealing mechanism—averaging the variational posteriors over iterations—to theoretically guarantee convergence.

Finally, they tackle scalability. A naive implementation of IRM-CVB takes $O(N^2)$ time, which is a death sentence for large datasets. The authors developed a linear-time inference trick that exploits the sparsity of real-world data (where most possible relations are "0"), reducing the complexity to be linear relative to the number of objects and observed links.

Datasets

The authors evaluated their methods on a mix of synthetic and large-scale real-world relational datasets:

  • Synthetic: Two datasets (Synth1 and Synth2) with known cluster structures.
  • Enron Email: Monthly email transactions between 151 employees.
  • Last.fm: User-to-user friend relations and artist-to-tag relations.
  • MovieLens-10M: 10 million ratings of movies by users.
  • Netflix: Two subsets (rate1 and rate5) containing up to 23 million relations.

Key Insights and Ideas

  • The Convergence Gap: Before this paper, CVB was widely used for topic models (like LDA), but its convergence behavior was poorly understood and never guaranteed. ACVB provides a mathematically sound stopping rule.
  • CVB0 > CVB: In line with findings in other fields, the simpler CVB0 often outperformed the more complex 2nd-order CVB in both speed and accuracy for IRM.
  • Sparsity is a Feature: By caching membership counts, the authors showed that you don't need to iterate over every "zero" in a sparse matrix. This makes IRM practical for datasets with millions of entries.
  • Hyperparameter Automation: The paper derives update rules for the Dirichlet Process concentration parameter ($\alpha$) within the CVB framework, allowing the model to automatically tune its own complexity.
A summary of how this paper fills the gap in existing IRM inference literature.

Key Results

  • Accuracy: ACVB and ACVB0 consistently achieved higher test-data log-likelihoods than naive VB on large datasets, indicating better discovery of the underlying data structure.
  • Speed: ACVB0 was orders of magnitude faster than both naive VB and 2nd-order CVB. For example, on the Last.fm dataset, ACVB0 converged in roughly 400 seconds, while standard CVB took over 17,000 seconds.
  • Scalability: Using the linear-time algorithm, the authors successfully ran IRM on the Netflix-rate5 dataset (23 million relations), a feat previously considered impractical for standard IRM implementations.
Monitoring the Variational Lower Bound and Pseudo Log-Likelihood shows that ACVB provides clear, stable convergence signals.

Limitations and Future Work

The primary limitation of the linear-time algorithm is that it currently cannot handle missing data directly; it requires preprocessing to impute missing entries. Additionally, the linear-time trick only applies to the CVB0 variant, as the 2nd-order CVB requires variance terms that break the simplified summation.

For future work, the authors suggest exploring stochastic approximations (similar to Stochastic Gradient Descent) to further speed up inference on even larger "web-scale" datasets and extending these CVB methods to more complex models like the Mixed Membership Stochastic Blockmodel (MMSB).

Summary updated

BibTeX
@misc{ishiguro2014collapsed,
  author = {Katsuhiko Ishiguro and Issei Sato and Naonori Ueda},
  title = {{Collapsed Variational Bayes Inference of Infinite Relational Model}},
  year = {2014},
  eprint = {1409.4757},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1409.4757},
}
Figure