Statistical Optimization of Non-Negative Matrix Factorization

Anoop Korattikara Balan, Levi Boyles, Max Welling, Jingu Kim, Haesun ParkAISTATS 2011

Abstract

Non-Negative Matrix Factorization (NMF) is a fundamental technique in machine learning for discovering "sum-of-parts" representations in high-dimensional data. However, standard algorithms like Block Principal Pivoting (BPP) become computationally prohibitive as datasets scale to millions of entries. This paper proposes BPP with Sub-Sampling (BPP-SS), a statistical optimization framework that uses adaptive sub-sampling and hypothesis testing to drastically reduce computational costs. By treating data as a stochastic process, the algorithm identifies the minimum amount of data required to guarantee a correct update direction, achieving 4–5x speedups on large-scale benchmarks while maintaining high precision.

Introduction

Non-Negative Matrix Factorization (NMF) is widely used for tasks such as face recognition and text mining. The state-of-the-art framework, Alternating Non-negative Least Squares (ANLS), iteratively updates matrices $W$ and $H$. The most efficient variant, Block Principal Pivoting (BPP), requires solving massive least-squares problems using the entire dataset in every iteration. This paper argues that such full-data processing is wasteful, especially during early learning stages when high precision is not yet required to determine the general direction of optimization.

Methodology: BPP with Sub-Sampling (BPP-SS)

The authors introduce a dynamic approach to data usage through three core mechanisms:

  1. Adaptive Sub-sampling: The algorithm begins with a small fraction of the data (e.g., 500 samples) and increases the sample size only as needed.
  2. Hypothesis Testing: Leveraging the asymptotic normality of least-squares estimators, the authors perform a frequentist hypothesis test. This test determines if the update direction derived from the sub-sample is within 90 degrees of the "true" direction (the direction expected with infinite data) with high probability.
  3. Dynamic Scaling and Stopping: If the hypothesis test fails, the sample size is doubled. The algorithm stops when the test fails even after utilizing the entire dataset, indicating that the statistical limit of the data has been reached.
Mean P-value as a function of sample size W for various iterations t. The stabilization of p-values informs the adaptive sampling strategy.

Key Insights: Optimization as Estimation

A central theme of this work is the distinction between mathematical optimization and statistical estimation. The authors argue that optimizing an empirical loss to extreme precision is often unnecessary because data contains an intrinsic "noise floor."

  • Precision as Progress: Early in the optimization process, very little data is needed to identify the correct descent direction. High precision is only required as the algorithm nears the optimum.
  • The Directional Test: Instead of testing for magnitude convergence, the authors test if the sub-sample estimate points into the correct half-space. This "directional" approach is more robust for high-dimensional updates.
Illustration of the directional hypothesis test. The shaded region $\rho_t$ represents the valid half-space for the update direction relative to the estimated mean $\mu_t$.

Experimental Results

The BPP-SS algorithm was evaluated on three datasets: AT&T Faces, MNIST Digits, and a massive HOG features dataset (1 million rows).

  • Performance: On the 1-million-row HOG dataset, BPP-SS achieved a 4–5x speedup over standard BPP.
  • Efficiency: In early iterations, the algorithm made significant progress using as little as 0.05% of the total data.
  • Accuracy: The final residuals were virtually identical to those of the full-data BPP algorithm, proving that sub-sampling does not sacrifice final model quality.

Conclusion

The "statistical optimization" philosophy presented here offers a general framework for scaling machine learning algorithms. While challenges remain regarding extremely sparse matrices and complex tensor factorizations, the success of BPP-SS suggests that adaptive sub-sampling and hypothesis testing could be broadly applied to other optimization problems like SVMs, Logistic Regression, and LASSO.

Summary updated

BibTeX
@article{balan2011statistical,
  author = {Anoop Korattikara Balan and Levi Boyles and Max Welling and Jingu Kim and Haesun Park},
  title = {{Statistical Optimization of Non-Negative Matrix Factorization}},
  journal = {AISTATS},
  year = {2011},
}
Figure