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

Computing a Nonnegative Matrix Factorization - Provably

Sanjeev Arora, Rong Ge, Ravi Kannan, Ankur Moitra

TL;DR

This paper tackles the Nonnegative Matrix Factorization (NMF) problem, a fundamental task in data analysis and machine learning. The authors provide the first provably polynomial-time algorithms for NMF under certain conditions, while also establishing theoretical limits on how much faster these problems can be solved in the general case. This work bridges a significant gap between heuristic approaches and theoretical guarantees in NMF.

What Problem Does This Paper Address?

Nonnegative Matrix Factorization (NMF) is the problem of decomposing a given nonnegative matrix $M$ into two nonnegative matrices $A$ and $W$ such that $M \approx AW$. This is widely used in applications like topic modeling, image analysis, and recommender systems, where the nonnegativity constraint is crucial for interpretability (e.g., representing parts of objects or topics). While heuristic algorithms (like Expectation-Maximization) are commonly used, their correctness and efficiency are not guaranteed. Previous work showed NMF is NP-hard for general $r$ (the inner dimension), but the question of whether it's efficiently solvable for small, constant $r$ remained open. This paper addresses this by developing provably efficient algorithms for NMF, especially for small $r$, and also by exploring conditions under which NMF can be solved efficiently.

Methods

The paper introduces several key algorithmic and theoretical contributions:

  • Polynomial-time algorithm for exact NMF with constant $r$: This is achieved by reducing the NMF decision problem to a system of polynomial inequalities and then using algorithms from algebraic geometry to determine if a solution exists. A novel "structure theorem" is key to reducing the number of variables required, making the problem tractable for constant $r$.
  • Hardness result: The authors prove that if exact NMF can be solved in time $(nm)^{o(r)}$, then 3-SAT has a sub-exponential time algorithm. This suggests that the polynomial-time algorithms for constant $r$ are close to optimal in terms of their dependence on $r$.
  • Algorithm for separable NMF: They develop a polynomial-time algorithm for NMF under the "separability" condition, which is a natural assumption in many applications. This condition implies that certain rows of $A$ can be permuted to form an identity matrix, simplifying the problem. This is the first provably polynomial-time algorithm for NMF under a non-trivial input condition.
  • Approximate NMF algorithm: An algorithm is presented that finds a factorization $A'W'$ that approximates $M$ within a certain error bound, even if an exact factorization doesn't exist.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithms and hardness results for general matrices, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Bridging the gap for small $r$: The most significant insight is that NMF, while NP-hard in general, becomes solvable in polynomial time for a fixed inner dimension $r$. This is crucial because in many real-world applications, $r$ is indeed small.
  • The power of algebraic geometry: The paper demonstrates how tools from algebraic geometry, specifically quantifier elimination for real-valued polynomials, can be effectively applied to solve combinatorial problems like NMF.
  • The importance of structural conditions: The "separability" condition, while seemingly restrictive, is shown to be natural and sufficient for polynomial-time solvability. This highlights how understanding the underlying structure of the problem can lead to efficient algorithms.
  • Theoretical limits are tight: The hardness result shows that improvements to the polynomial-time algorithms for constant $r$ are unlikely, suggesting that the proposed algorithms are near-optimal in their dependence on $r$.

Key Results

  • Exact NMF for constant $r$: An algorithm with time complexity $O((nm)^{O(r^{2^{2^r}})})$ for exact NMF (and approximate NMF) for any constant $r$.
  • Hardness result: If exact NMF can be solved in time $(nm)^{o(r)}$, then 3-SAT has a sub-exponential time algorithm.
  • Separable NMF: A polynomial-time algorithm for computing a separable NMF, given that one exists.
  • Approximate NMF: An algorithm that finds an $\epsilon$-approximation to $M$ in time $2^{poly(r \log(1/\epsilon))} poly(n, m)$.

Limitations and Future Work

  • Dependence on $r$: While the algorithms are polynomial in $n$ and $m$ for constant $r$, the dependence on $r$ can be exponential or worse. The hardness result suggests this is inherent for exact NMF.
  • Specific conditions: The polynomial-time algorithm for separable NMF relies on the separability condition. The paper suggests exploring other plausible conditions that might allow for efficient factorization in real-life applications.
  • Noise tolerance: While an algorithm for approximate NMF is presented, the paper also discusses extending the separable NMF algorithm to handle noise, suggesting this is an important direction for practical applications.
  • Theoretical study of nonnegative rank: The authors hope their work will spur further theoretical investigation into nonnegative rank.

Summary updated

BibTeX
@article{arora2011computing,
  author = {Sanjeev Arora and Rong Ge and Ravi Kannan and Ankur Moitra},
  title = {{Computing a Nonnegative Matrix Factorization - Provably}},
  journal = {SIAM Journal on Computing},
  year = {2011},
  url = {https://openreview.net/forum?id=B3jVhki7hW6V},
}
Figure