Fast Bayesian Non-Negative Matrix Factorisation and Tri-Factorisation

Thomas Brouwer, Jes Frellsen, Pietro LiòarXiv 2016

Overview

Matrix factorisation is a fundamental technique in machine learning used to uncover latent structures within complex datasets, such as identifying topics in text or functional clusters in genomic data. While standard Non-negative Matrix Factorisation (NMF) is widely used for its interpretability, it typically relies on point estimates that are susceptible to overfitting and fail to quantify uncertainty.

Bayesian approaches address these shortcomings by providing a full probability distribution over latent factors. However, traditional Bayesian inference via Gibbs sampling is computationally expensive, requiring extensive "burn-in" periods and thinning to manage correlated samples. This paper introduces a fast Variational Bayesian (VB) framework for both NMF and Matrix Tri-Factorisation (NMTF). By reframing inference as a deterministic optimization problem, the authors achieve significant speedups while maintaining the robustness of probabilistic modeling.

The Variational Bayesian Approach

The core contribution of this work is the development of a VB algorithm that replaces stochastic sampling with optimization. Unlike Gibbs sampling, which explores the posterior distribution through random walks, VB approximates the complex true posterior with a simpler, factorised distribution (the mean-field assumption).

Key technical features include:

  • Non-negativity Constraints: The model utilizes truncated normal distributions for latent factors to enforce non-negativity.
  • NMTF Complexity: Tri-factorisation captures complex inter-type relationships by decomposing a matrix into three parts. The authors derived specific variational updates to handle the intricate covariance terms introduced by this three-way interaction.
  • Deterministic Convergence: By maximizing the Evidence Lower Bound (ELBO), the algorithm provides a clear stopping criterion, removing the ambiguity associated with MCMC convergence diagnostics.

Experimental Evaluation

The researchers evaluated the VB framework against state-of-the-art methods using both synthetic and real-world biological datasets:

  1. Toy Datasets: Synthetic data with known latent factors and Gaussian noise were used to benchmark convergence speed and accuracy.
  2. GDSC (Genomics of Drug Sensitivity in Cancer): A large-scale dataset featuring 138 drugs and 622 cell lines.
  3. CCLE (Cancer Cell Line Encyclopedia): A secondary drug sensitivity dataset used to validate predictive performance on sparse, real-world data.

Performance and Convergence

The VB approach demonstrates a transformative improvement in efficiency, particularly for the more complex NMTF models. In wall-clock time, the VB method is approximately four times faster than Gibbs sampling. Furthermore, it converges in significantly fewer iterations compared to other state-of-the-art algorithms.

As shown in the figure above, the VB method (red line) consistently reaches lower Mean Squared Error (MSE) faster than competing methods across both toy and real-world datasets. This efficiency makes Bayesian NMTF practical for large-scale applications where it was previously computationally prohibitive.

Robustness and Predictive Accuracy

A critical advantage of the Bayesian framework is its resilience to noise and data sparsity. The VB models significantly outperform non-probabilistic versions when data is incomplete. For instance, on the GDSC dataset, Bayesian NMF achieved lower MSE than non-probabilistic methods and even surpassed complex models utilizing additional side information.

Impact of missing data and noise on MSE for NMF and NMTF models.

The analysis of robustness (above) indicates that these models maintain high predictive power even when up to 70% of the data is missing. However, the authors noted a limitation in NMTF: the VB method may struggle to converge to the optimal solution when sparsity exceeds 50%.

Conclusion

This work successfully bridges the gap between the robustness of Bayesian matrix factorisation and the need for computational efficiency. By providing a deterministic VB framework, the authors offer a tool that is not only faster but also more accessible, removing the need for expert-level tuning of MCMC parameters. Future work will focus on addressing local optima through more principled initialization and scaling the framework to massive datasets through parallelization.

Summary updated

BibTeX
@misc{brouwer2016fast,
  author = {Thomas Brouwer and Jes Frellsen and Pietro Liò},
  title = {{Fast Bayesian Non-Negative Matrix Factorisation and Tri-Factorisation}},
  year = {2016},
  eprint = {1610.08127},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.08127},
}
Figure