Bayesian adaptive matrix factorization with automatic model selection

Peixian Chen, Naiyan Wang, Nevin L. Zhang, Dit-Yan Yeung

Abstract

Low-rank matrix factorization is essential for various computer vision tasks, yet its efficacy typically depends on the manual specification of two critical parameters: the rank of the factor matrices and the underlying noise distribution. This paper introduces Bayesian Adaptive Matrix Factorization (AMF), a fully Bayesian framework that automates these selections. By integrating Automatic Relevance Determination (ARD) with a non-parametric Dirichlet Process Gaussian Mixture Model (DP-GMM), AMF dynamically determines the optimal rank and models complex, multimodal noise distributions. Experimental results on synthetic and real-world datasets, including face shadow removal, demonstrate that AMF significantly outperforms state-of-the-art methods in both accuracy and robustness.

Introduction

Decomposing a corrupted data matrix $Y$ into a low-rank component $UV^T$ and a noise component $E$ is a foundational technique in computer vision, applied to tasks such as face recognition, motion segmentation, and image restoration. However, traditional methods face two primary challenges. First, the noise in real-world data is often complex and non-Gaussian (e.g., shadows, specularities, or occlusions), making simple Gaussian or Laplacian models inadequate. Second, determining the intrinsic rank $R$ of the data is non-trivial; an incorrect rank leads to either overfitting or the loss of structural information. Bayesian Adaptive Matrix Factorization (AMF) addresses these issues by providing a self-tuning mechanism for both noise complexity and model capacity.

Methodology

The AMF framework models the observation as $Y = UV^T + E$. The innovation lies in the hierarchical priors placed on the noise and factor matrices:

Non-parametric Noise Modeling

Rather than assuming a fixed noise distribution, AMF utilizes a Dirichlet Process Gaussian Mixture Model (DP-GMM). This non-parametric approach allows the model to approximate any continuous noise distribution by adaptively determining the number of Gaussian components required. Using a "stick-breaking" construction, the model can theoretically accommodate an infinite number of components, though it naturally settles on a finite set that best describes the observed corruption.

Automatic Rank Selection

To determine the optimal rank, AMF employs Automatic Relevance Determination (ARD). By placing a zero-mean Gaussian prior on the columns of the factor matrices $U$ and $V$, the model encourages sparsity in the column variances. During inference, the variances of irrelevant columns are driven toward zero, effectively pruning unnecessary dimensions and identifying the true underlying rank of the data.

Variational Inference

To ensure computational efficiency, the authors derive a Variational Bayes (VB) inference algorithm. This approach provides a deterministic approximation of the posterior distribution, offering a significant speed advantage over traditional Markov Chain Monte Carlo (MCMC) sampling methods while maintaining the benefits of a fully Bayesian treatment.

Experimental Results

The performance of AMF was evaluated against several state-of-the-art methods, including Principal Component Pursuit (PCP) and Mixture of Robust Principal Component Analysis (MRPCA).

Synthetic Data and Text Removal

In synthetic experiments involving matrices corrupted by mixture noise and missing data (up to 20%), AMF consistently achieved lower relative errors than competing methods. In text removal tasks, where overlaid text acts as structured outlier noise, AMF successfully separated the text from the background by accurately modeling the non-Gaussian nature of the corruption.

Face Shadow Removal

A key test for AMF was the Extended Yale B database, which features faces under diverse lighting conditions. Standard methods often struggle with the complex, non-linear shadows present in these images.

Comparison of AMF against standard Gaussian and Laplace noise models on face shadow removal. AMF (d, e) effectively captures complex noise distributions and recovers finer details.

As shown in Figure 4, AMF's ability to model noise as a mixture of Gaussians allows it to remove harsh shadows while preserving intricate facial features like skin texture and facial hair. Unlike methods restricted to simple noise models, AMF's adaptive nature ensures that it does not over-smooth the underlying signal.

Conclusion

Bayesian Adaptive Matrix Factorization (AMF) represents a significant step forward in making low-rank modeling more robust and autonomous. By eliminating the need for manual parameter tuning for rank and noise models, it provides a "universal" solution for data recovery. While the current model assumes spatial independence of noise, future work involving spatial correlations, such as Markov Random Fields, could further enhance its ability to handle structured outliers in video and complex imagery.

Summary updated

BibTeX
@inproceedings{chen2015bayesian,
  author = {Peixian Chen and Naiyan Wang and Nevin L. Zhang and Dit-Yan Yeung},
  title = {{Bayesian adaptive matrix factorization with automatic model selection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7298733},
}
Figure