Nonparametric Bayesian Matrix Factorization by Power-EP

Nan Ding, Yuan (Alan) Qi, Rongjing Xiang, Ian M. Molloy, Ninghui LiAISTATS 2010

Introduction

Matrix Factorization (MF) is a fundamental technique in machine learning, used to decompose an observed data matrix ($X$) into two latent matrices ($Z$ and $A$). A persistent challenge in MF is determining the optimal dimensionality ($K$), or the number of hidden features. Selecting a $K$ that is too small results in missing critical structures, while a $K$ that is too large leads to overfitting.

Nonparametric Bayesian methods, particularly the Indian Buffet Process (IBP), offer a theoretical solution by allowing $K$ to be infinite in principle and determined by the data in practice. However, traditional inference for these models is computationally expensive. Markov Chain Monte Carlo (MCMC) methods are slow, and existing Variational Inference (VI) approaches often impose rigid constraints that degrade performance compared to simpler finite models.

Methodology

This paper proposes two primary innovations to make IBP-based matrix factorization both practical and efficient:

  1. New Equivalence Classes: Standard IBP theory utilizes "left-ordered" matrices to manage the infinite prior. However, this ordering introduces dependencies between columns, hindering the use of independent factor assumptions necessary for efficient variational inference. The authors introduce a new equivalence class that ignores ordering, allowing columns to be treated as independent factors. This shift significantly simplifies the mathematics and accelerates inference.
  2. Power-EP for Non-negativity: Many applications, such as image processing, require non-negative factors. Incorporating non-negativity into Bayesian models typically involves truncated Gaussian priors, which can cause standard variational lower bounds to fail. The authors employ the Power Expectation Propagation (Power-EP) framework to unify variational inference with expectation propagation, providing a robust method for handling these "hard" constraints.

The resulting algorithms, IMF (Inference for Matrix Factorization) and INMF (Inference for Non-negative Matrix Factorization), adaptively increase the number of bases as long as the marginal likelihood lower bound (the "evidence") improves.

Experimental Evaluation

The researchers evaluated their methods across three distinct domains:

  • Synthetic Image Decomposition: Testing the model's ability to recover the true number of latent features ($K=4$) and their original shapes.
  • Jester Dataset: A collaborative filtering benchmark where the model's recommendation accuracy was measured via Normalized Mean Absolute Error (NMAE).
  • Role Mining (Domino & Firewall): Real-world binary matrices representing user-permission assignments, where the goal was to discover latent "roles" to simplify security administration.

Key Results

Efficiency and Convergence

The proposed IMF and INMF methods demonstrate superior convergence speeds compared to traditional Gibbs sampling and Particle Filtering (PF). By leveraging the factorized variational distributions enabled by the new equivalence classes, the models reach lower error rates in a fraction of the time required by MCMC-based approaches.

Convergence efficiency of IMF and INMF compared to traditional methods.

Accuracy and Complexity Control

Unlike standard SVD or NMF, which require manual tuning of $K$, the proposed model uses Bayesian evidence maximization to automatically determine the appropriate complexity.

  • Feature Recovery: On synthetic data, the model precisely identified the 4 latent bases.
  • Collaborative Filtering: On the Jester dataset, IMF and INMF achieved lower NMAE than standard NMF and SVD.
  • Role Mining: In security administration tasks, INMF significantly outperformed competing methods. On the Domino dataset, it achieved an Area Under the Curve (AUC) of 0.9869, surpassing SVD (0.9518) and other IBP variations.
Performance comparison across role mining datasets showing INMF's superior AUC.

Conclusion

By moving away from the restrictive "left-ordered" constraints of the original IBP and adopting the Power-EP framework, the authors have created a scalable, accurate, and non-parametric approach to matrix factorization. This work demonstrates that Bayesian models can incorporate hard constraints like non-negativity without sacrificing inference logic or computational tractability. Future work may focus on scaling these techniques to massive datasets through stochastic optimization.

Summary updated

BibTeX
@article{ding2010nonparametric,
  author = {Nan Ding and Yuan (Alan) Qi and Rongjing Xiang and Ian M. Molloy and Ninghui Li},
  title = {{Nonparametric Bayesian Matrix Factorization by Power-EP}},
  journal = {AISTATS},
  year = {2010},
}
Figure