Scalable Variational Bayesian Matrix Factorization with Side Information

Yong-Deok Kim, Seungjin ChoiAISTATS 2014

Abstract

Bayesian Matrix Factorization (BMF) is a powerful tool for collaborative filtering, offering robustness against overfitting through probabilistic modeling. However, standard variational inference algorithms suffer from cubic time complexity ($O(K^3)$), making them impractical for web-scale datasets. This paper introduces VBMFSI-CA, a scalable inference framework that reduces complexity to linear ($O(K)$) by employing an element-wise independence assumption and a novel residual-update trick. Experimental results on massive datasets, including Netflix and Yahoo! Music, demonstrate that VBMFSI-CA achieves state-of-the-art accuracy while being orders of magnitude faster than traditional Bayesian methods.

Introduction

In recommendation systems, the goal is to predict missing entries in a sparse user-item rating matrix. While methods like Stochastic Gradient Descent (SGD) are efficient, they often require extensive hyperparameter tuning to avoid overfitting. Variational Bayesian Matrix Factorization (VBMF) automates this process by treating parameters as probability distributions, effectively eliminating the need for manual regularization tuning.

Historically, the primary bottleneck for VBMF has been its computational cost. Traditional "matrix-wise" independence assumptions lead to a complexity of $O(|\Omega|K^2 + IK^3)$, where $|\Omega|$ is the number of ratings, $I$ is the number of users, and $K$ is the latent dimension. Incorporating high-dimensional side information (e.g., user demographics or item taxonomies) further exacerbates this, often leading to $O(M^3)$ complexity for $M$ features, making it impossible to use on datasets with billions of ratings.

Methodology

The authors propose VBMFSI-CA (Coordinate Ascent), which addresses scalability through two primary innovations:

  1. Fully Factorized Variational Distribution: By assuming element-wise independence for latent factors, the mathematical complexity of the updates is significantly reduced. The authors found that because posterior covariances are often nearly diagonal in practice, this stricter assumption results in negligible information loss.
  2. Residual Update Trick: Instead of recomputing sums over all $K$ factors for every update, the algorithm maintains a residual matrix $R_{ij} = X_{ij} - \sum_k u_{ik}v_{jk}$. Updating a single factor then only requires constant-time adjustments to the residuals, bringing the total complexity down to $O(|\Omega|K)$.
Graphical representation of the VBMFSI model.

The model integrates side information by using it to define the means of the Gaussian priors for the latent factors $u_i$ and $v_j$, allowing the system to learn from both explicit ratings and metadata.

Experimental Setup

The algorithm was evaluated on four large-scale benchmarks to test its limits:

  • MovieLens 10M: 10 million ratings with movie genres and tags.
  • Douban: 17 million ratings including social network data.
  • Netflix: 100 million ratings using implicit feedback (the pattern of which movies a user chose to rate) as side information.
  • Yahoo! Music: 263 million ratings utilizing a complex 117,789-dimensional music taxonomy.

Results and Discussion

The experimental results highlight the efficiency and effectiveness of the proposed approach across all metrics.

Scalability and Speed

VBMFSI-CA demonstrates a dramatic reduction in training time. On the Netflix dataset with $K=50$, VBMFSI-CA required only 158 seconds per iteration. In contrast, the traditional VBMF-BCA (Block Coordinate Ascent) took 66 minutes per iteration, representing a speedup of over 25x. This linear scaling allows the model to handle the massive Yahoo! Music dataset, which would crash traditional Bayesian implementations.

Performance comparison of VBMFSI-CA against baselines in terms of iterations and wall-clock time.

Accuracy

Despite the simplified independence assumption, VBMFSI-CA maintains or improves upon the accuracy of more complex models. On the Yahoo! Music dataset, the inclusion of taxonomy and implicit feedback led to a 1.87% improvement in Root Mean Square Error (RMSE) over non-Bayesian baselines. The authors noted that implicit feedback was particularly powerful on the Netflix dataset, providing a more significant boost than explicit metadata.

Conclusion

VBMFSI-CA provides a scalable path for Bayesian Matrix Factorization on massive datasets. By achieving linear complexity, it enables the use of high-dimensional side information that was previously computationally prohibitive. While the model currently relies on linear relationships for side information, it sets a strong foundation for future work involving non-linear deep learning hybrids to capture more complex feature interactions.

Summary updated

BibTeX
@inproceedings{kim2014scalable,
  author = {Yong-Deok Kim and Seungjin Choi},
  title = {{Scalable Variational Bayesian Matrix Factorization with Side Information}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2014},
}
Figure