NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generalized Separable Nonnegative Matrix Factorization

Junjun Pan, Nicolas Gillis · DOI

Abstract

Nonnegative matrix factorization (NMF) is a linear dimensionality technique for nonnegative data with applications such as image analysis, text mining, audio source separation and hyperspectral unmixing. Given a data matrix $M$ and a factorization rank $r$, NMF looks for a nonnegative matrix $W$ with $r$ columns and a nonnegative matrix $H$ with $r$ rows such that $M \approx WH$. NMF is NP-hard to solve in general. However, it can be computed efficiently under the separability assumption which requires that the basis vectors appear as data points, that is, that there exists an index set $\mathcal{K}$ such that $W = M(:,\mathcal{K})$. In this paper, we generalize the separability assumption: We only require that for each rank-one factor $W(:,k)H(k,:)$ for $k=1,2,\dots,r$, either $W(:,k) = M(:,j)$ for some $j$ or $H(k,:) = M(i,:)$ for some $i$. We refer to the corresponding problem as generalized separable NMF (GS-NMF). We discuss some properties of GS-NMF and propose a convex optimization model which we solve using a fast gradient method. We also propose a heuristic algorithm inspired by the successive projection algorithm. To verify the effectiveness of our methods, we compare them with several state-of-the-art separable NMF algorithms on synthetic, document and image data sets.

Introduction

Nonnegative Matrix Factorization (NMF) is a cornerstone of modern data science, particularly for extracting interpretable features from high-dimensional datasets such as document corpora or image libraries. By decomposing a nonnegative matrix $M$ into two smaller nonnegative matrices $W$ and $H$, NMF identifies latent structures. However, the general NMF problem is NP-hard and often plagued by non-unique solutions and local minima.

To circumvent these issues, researchers frequently rely on the separability assumption. This assumption posits that the basis vectors (the columns of $W$) are actually present within the dataset itself (as columns of $M$). While this makes the problem tractable, it is often too restrictive for real-world applications. For instance, in text mining, it assumes that for every topic, there exists at least one "pure" document containing only that topic. This paper introduces Generalized Separable NMF (GS-NMF), a framework that relaxes this constraint by allowing the basis to be drawn from either the columns or the rows of the original data matrix.

The GS-NMF Framework

The core innovation of GS-NMF is the flexibility in selecting basis vectors. Instead of restricting the basis to columns (e.g., representative documents), GS-NMF allows for a combination of representative columns and representative rows (e.g., anchor words). This dual approach is particularly powerful when a dataset lacks "pure" columns but contains "pure" rows, or vice versa.

Mathematically, for each rank-one factor $W(:,k)H(k,:)$, we require that either $W(:,k)$ is a column of $M$ or $H(k,:)$ is a row of $M$. This generalization significantly expands the class of matrices that can be efficiently compressed and reconstructed compared to standard separable NMF.

Methodology

The authors propose two distinct algorithmic approaches to solve the GS-NMF problem:

1. Convex Optimization (GS-FGM)

Identifying the optimal subset of rows and columns is inherently a combinatorial problem (an $L_0$ norm minimization). The authors relax this into a convex optimization model by minimizing the trace of the transformation matrices, which serves as a proxy for the $L_1$ norm. This smooth, convex problem is solved using Nesterov’s Fast Gradient Method (FGM). This approach is robust and capable of avoiding the bad local minima that often trap standard NMF algorithms.

2. Heuristic Successive Projection (GSPA)

While the convex model is highly accurate, its computational complexity—$O(mn^2 + nm^2)$—can be prohibitive for massive datasets. To address this, the authors developed the Generalized Successive Projection Algorithm (GSPA). Inspired by the standard SPA, GSPA iteratively identifies the column or row with the largest $L_2$ norm, extracts it as a basis vector, and projects the remaining data onto its orthogonal complement. GSPA is significantly faster, operating in $O(mnr)$ time, making it suitable for large-scale applications.

Experimental Results

The effectiveness of GS-NMF was evaluated across synthetic, text, and image datasets:

  • Synthetic Data: In controlled environments with low-to-moderate noise, the GS-FGM algorithm achieved 100% accuracy in identifying the ground-truth rows and columns. It significantly outperformed standard NMF and Minimum-Volume NMF (MV-NMF) in recovering the underlying factors.
  • Document Datasets: Testing on 15 text datasets (including TDT30 and various clustering benchmarks) showed that GS-FGM consistently achieved superior approximation quality. The model successfully identified both "pure" documents and highly specific "anchor words" (e.g., "iraq", "lewisnky") to reconstruct topics.
  • Facial Image Datasets: Using databases like CBCL and Yale, GS-NMF demonstrated "dual interpretability." While standard separable NMF identifies representative faces, GS-NMF identifies both representative faces and critical representative pixels (e.g., edge vs. center pixels), leading to lower approximation errors.

Discussion and Conclusion

GS-NMF represents a significant step forward in making NMF both more flexible and more robust. By allowing the basis to be drawn from both dimensions of the data, it achieves higher compression potential and better handles datasets where traditional separability fails.

However, challenges remain. The convex GS-FGM model is computationally intensive, often requiring pre-processing steps like hierarchical clustering for very large matrices. Additionally, while the GSPA heuristic is fast, it lacks the rigorous mathematical recovery guarantees currently available for standard SPA. Future research will focus on developing faster algorithms with provable guarantees, aiming to bring the theoretical maturity of GS-NMF in line with its practical potential.

Summary updated

BibTeX
@article{pan2019generalized,
  author = {Junjun Pan and Nicolas Gillis},
  title = {{Generalized Separable Nonnegative Matrix Factorization}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2019},
  doi = {10.1109/tpami.2019.2956046},
}
Figure