Improved SVD-based initialization for nonnegative matrix factorization using low-rank correction

Syed Muhammad Atif, Sameer Qazi, Nicolas Gillis · DOI

TL;DR

This paper introduces a novel initialization method for Nonnegative Matrix Factorization (NMF) called NNSVD-LRC. It improves upon existing SVD-based methods by reducing initial error, generating sparser factors, and being computationally more efficient, leading to faster convergence for NMF algorithms.

What Problem Does This Paper Address?

Nonnegative Matrix Factorization (NMF) is a powerful technique for decomposing a nonnegative matrix $X$ into two nonnegative matrices $W$ and $H$ ($X \approx WH$). The performance of NMF algorithms heavily relies on the initial guess for $W$ and $H$. While Singular Value Decomposition (SVD) is a popular basis for initialization, existing SVD-based methods like NNDSVD and SVD-NMF suffer from a key drawback: their approximation error increases as the desired rank $r$ of the factorization increases. This is counterintuitive, as a higher rank should ideally lead to a better approximation. This paper aims to address this by proposing an SVD-based initialization that ensures the error decreases with increasing rank, while also offering other desirable properties.

Methods

The core of the proposed method, NNSVD-LRC (Nonnegative SVD with Low-Rank Correction), lies in a more sophisticated use of the SVD. Instead of discarding SVD components that lead to negative values, NNSVD-LRC:

  • Uses a truncated SVD of a lower rank: It computes a truncated SVD of rank $p = \lfloor r/2 \rfloor + 1$, which is smaller than the target factorization rank $r$. This is computationally cheaper.
  • Leverages the first rank-one factor: The first rank-one factor from the SVD (which is guaranteed to be positive due to the Perron-Frobenius theorem) is used to initialize the first columns of $W$ and rows of $H$ by taking their absolute values.
  • Utilizes discarded SVD information: The remaining $r-1$ rank-one factors from the truncated SVD are used to construct the rest of the $W$ and $H$ matrices. Crucially, it cleverly uses the positive and negative parts of these factors to achieve an average sparsity of around 50%.
  • Applies a low-rank NMF refinement: To further improve the initial factors, a few iterations of an accelerated hierarchical alternating least squares (A-HALS) algorithm are applied to a low-rank approximation of the original matrix $X$ (derived from the truncated SVD). This refinement step is computationally inexpensive compared to running NMF on the full matrix.

Datasets

The paper evaluates its method on a combination of dense and sparse datasets:

  • Biometric Datasets (Dense):
    • AT&T Faces
    • IITD Iris
    • TD Fingerprints
  • Document Datasets (Sparse):
    • Sports
    • Reviews
    • Hitech

Key Insights and Ideas

  • Error Decreases with Rank: The most significant insight is that NNSVD-LRC successfully achieves an initialization where the approximation error decreases as the factorization rank $r$ increases, unlike previous SVD-based methods. This aligns with the expectation that higher ranks should yield better approximations.
  • Sparsity from SVD Components: By intelligently combining the positive and negative parts of SVD factors, the method achieves a desirable level of sparsity (around 50%) in the initial factors, which can lead to more interpretable and efficient representations.
  • Computational Efficiency through Low-Rank Approximation: Using a truncated SVD of a lower rank ($p < r$) and then refining the factors on this low-rank approximation significantly reduces the computational cost of initialization.

Key Results

  • Lower Initial Error: NNSVD-LRC consistently produces initial factors with a lower relative error compared to NNDSVD and SVD-NMF across all tested datasets and ranks. For instance, on the AT&T Faces dataset with $r=100$, NNSVD-LRC achieves an error of 15.29%, while NNDSVD and SVD-NMF are around 21.35% and 27.76% respectively.
  • Improved Sparsity: The method generates factors with an average sparsity of around 45-58%, which is comparable to NNDSVD and significantly better than SVD-NMF (which produces dense factors).
  • Faster Initialization: NNSVD-LRC is computationally faster than NNDSVD and SVD-NMF due to the use of a smaller truncated SVD and a computationally cheaper refinement step.
  • Better Convergence: When used with standard NMF algorithms (like multiplicative updates), NNSVD-LRC leads to faster convergence to a stationary point, often achieving a lower final error than other initializations, especially after a few iterations.

Limitations and Future Work

  • No Guarantee of Global Optimum: The authors acknowledge that NMF is a non-convex optimization problem, and while NNSVD-LRC provides a better starting point, there's no guarantee it will lead to the globally optimal solution. They recommend using multiple initializations and selecting the best result.
  • Future Work: The paper suggests that NNSVD-LRC can be used in conjunction with other NMF algorithms beyond multiplicative updates and A-HALS. The effectiveness of this initialization with different NMF algorithms and on a wider range of datasets could be explored further.

Summary updated

BibTeX
@article{atif2019improved,
  author = {Syed Muhammad Atif and Sameer Qazi and Nicolas Gillis},
  title = {{Improved SVD-based initialization for nonnegative matrix factorization using low-rank correction}},
  journal = {Pattern Recognition Letters},
  year = {2019},
  doi = {10.1016/j.patrec.2019.02.018},
}
Figure