Bayesian Robust Matrix Factorization for Image and Video Processing

Naiyan Wang, Dit-Yan Yeung

Introduction

Matrix factorization is a fundamental technique in computer vision, essential for tasks ranging from "structure from motion" to background subtraction in video. The core objective is to decompose a large data matrix into a low-rank basis and corresponding coefficients that capture the underlying structure. While traditional methods like Singular Value Decomposition (SVD) perform well on clean data, they struggle with outliers—such as moving vehicles or occluding text—which they attempt to average into the model.

Existing "robust" methods often use the $l_1$ norm to ignore large errors, but they typically treat every pixel as independent and rely on point estimation. This can lead to instability and artifacts in high-noise environments.

The Bayesian Robust Matrix Factorization (BRMF) Framework

To address these limitations, this research introduces Bayesian Robust Matrix Factorization (BRMF) and its Markovian extension, MBRMF. The proposed framework incorporates three primary innovations:

  1. Full Bayesian Treatment: Instead of finding a single Maximum A Posteriori (MAP) solution, the model estimates the entire probability distribution of parameters. This hierarchical approach, visualized in the graphical models below, enhances stability and flexibility.
  2. Advanced Noise Modeling: By employing a Laplace mixture combined with a Generalized Inverse Gaussian (GIG) distribution, the authors derive a non-convex loss function. This approach is significantly more aggressive at suppressing outliers than the standard $l_1$ norm used in Principal Component Pursuit (PCP).
  3. Spatial-Temporal Modeling (MBRMF): Recognizing that outliers in video are typically structured objects rather than random noise, the authors integrate a Markov Random Field (MRF). This ensures that if a pixel is identified as an outlier, its spatial and temporal neighbors are likely to be treated similarly.
Graphical models comparing the simpler PRMF (a) to the proposed hierarchical BRMF (b).

Key Insights: The Power of Non-Convexity

A significant finding of this work is that the "non-convex" nature of the Bayesian model provides superior robustness. While convex problems are often preferred for their ease of optimization, they can be easily distracted by outliers. As shown in the comparison of loss functions, the BRMF model effectively ignores large errors that would skew traditional convex methods.

Comparison of loss functions: BRMF's non-convex approach provides superior outlier rejection compared to convex methods like PCP and SPCP.

Experimental Results

The models were tested across diverse scenarios, including synthetic text removal and the Statistical Background Subtraction (SABS) dataset.

  • Text Removal: MBRMF achieved a 33.01 dB PSNR, significantly outperforming the next best competitor, DECOLOR (29.38 dB).
  • Video Background Subtraction: In the SABS benchmark, MBRMF secured the highest F-measure in 7 out of 8 categories, proving particularly effective in challenging "Camouflage" and "Noisy Night" scenarios.
  • Noise Robustness: Unlike many competitors, the Bayesian approach maintained high visual quality without "ghosting" artifacts, even under heavy additive Gaussian noise, thanks to its robust noise modeling.

Conclusion and Future Directions

While BRMF offers state-of-the-art robustness by modeling structured outliers, its reliance on Markov Chain Monte Carlo (MCMC) sampling results in higher computational costs. Currently, processing takes between 1 and 10 seconds per step, making it unsuitable for real-time applications. Future work will focus on developing online versions for streaming data and leveraging GPU acceleration to scale the framework for high-resolution video processing.

Summary updated

BibTeX
@inproceedings{wang2013bayesian,
  author = {Naiyan Wang and Dit-Yan Yeung},
  title = {{Bayesian Robust Matrix Factorization for Image and Video Processing}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.224},
}
Figure