[Paper Review] Large-Scale Distributed Bayesian Matrix Factorization using Stochastic Gradient MCMC
This paper proposes DSGLD, a scalable distributed Bayesian matrix factorization method using stochastic gradient Markov chain Monte Carlo (SGMCMC) that combines the predictive accuracy of Bayesian inference with the efficiency of stochastic gradient descent. By leveraging distributed, asynchronous updates across multiple chains and data blocks, DSGLD achieves Gibbs-sampling-level accuracy up to 10× faster and reduces RMSE by 4.1% on Netflix and 1.8% on Yahoo Music compared to distributed SGD.
Despite having various attractive qualities such as high prediction accuracy and the ability to quantify uncertainty and avoid over-fitting, Bayesian Matrix Factorization has not been widely adopted because of the prohibitive cost of inference. In this paper, we propose a scalable distributed Bayesian matrix factorization algorithm using stochastic gradient MCMC. Our algorithm, based on Distributed Stochastic Gradient Langevin Dynamics, can not only match the prediction accuracy of standard MCMC methods like Gibbs sampling, but at the same time is as fast and simple as stochastic gradient descent. In our experiments, we show that our algorithm can achieve the same level of prediction accuracy as Gibbs sampling an order of magnitude faster. We also show that our method reduces the prediction error as fast as distributed stochastic gradient descent, achieving a 4.1% improvement in RMSE for the Netflix dataset and an 1.8% for the Yahoo music dataset.
Motivation & Objective
- Address the computational infeasibility of Bayesian matrix factorization (BMF) at scale due to expensive MCMC inference.
- Overcome the limitations of traditional MCMC methods in distributed settings, where full posterior sampling is prohibitively slow.
- Integrate the efficiency of stochastic gradient descent with the uncertainty quantification and overfitting control of Bayesian inference.
- Enable scalable, distributed posterior sampling for large-scale recommender systems using minimal communication and asynchronous updates.
- Achieve high prediction accuracy comparable to Gibbs sampling while maintaining the speed of stochastic optimization methods.
Proposed method
- Adapt Stochastic Gradient Langevin Dynamics (SGLD) to a distributed, block-wise matrix factorization setting using mini-batches of user-item ratings.
- Distribute the rating matrix across workers, where each worker updates only a subset of parameters (U and V) for a block of users or items.
- Run multiple independent MCMC chains in parallel across workers, each exploring different modes of the posterior distribution.
- Use asynchronous or weakly-synchronous updates to allow scalable, high-throughput sampling without global synchronization.
- Maintain detailed balance and convergence guarantees by incorporating noise terms and step-size schedules into the SGLD update rule.
- Leverage the fact that SGLD approximates the posterior by combining stochastic gradients with injected Gaussian noise, enabling efficient posterior exploration at scale.
Experimental results
Research questions
- RQ1Can stochastic gradient MCMC be effectively scaled to distributed, large-scale matrix factorization while preserving Bayesian inference quality?
- RQ2How does the prediction accuracy of distributed SGLD compare to standard MCMC (e.g., Gibbs sampling) and optimization-based methods (e.g., DSGD) on real-world recommendation datasets?
- RQ3To what extent does parallel sampling across multiple chains improve posterior exploration and reduce prediction variance compared to single-chain MCMC?
- RQ4How does the method scale with increasing latent dimensionality D, and does it maintain performance gains as model complexity grows?
- RQ5Can the method achieve both high accuracy and high throughput in practice, especially when compared to state-of-the-art distributed optimization and sampling techniques?
Key findings
- DSGLD achieves prediction accuracy on par with Gibbs sampling—reducing RMSE to 1.0339 on the Netflix dataset—while being approximately 10× faster.
- On the Netflix dataset, DSGLD reduces RMSE by 4.1% compared to distributed SGD, demonstrating superior predictive performance despite similar training speed.
- On the Yahoo Music dataset, DSGLD achieves a 1.8% RMSE improvement over distributed SGD, with consistent gains across different latent dimensions.
- As the latent dimension D increases, DSGLD continues to improve in performance, while optimization-based methods (SGD, DSGD) show inconsistent or deteriorating results due to hyperparameter sensitivity.
- Gibbs sampling becomes impractically slow at scale: for D=100 on Yahoo Music, it generated only 8 samples in 300K seconds, while DSGLD generated 460 samples in the same time.
- The relative improvement of DSGLD over DSGD is 3.6%–4.6% on Netflix and 1.8%–3.9% on Yahoo Music, highlighting its ability to combine accuracy and scalability effectively.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.