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

A Singly-Exponential Time Algorithm for Computing Nonnegative Rank

Ankur Moitra

Abstract

Nonnegative Matrix Factorization (NMF) is a vital tool for interpretable data representation, yet determining the exact nonnegative rank of a matrix has long been a significant computational bottleneck. This paper presents the first singly-exponential time algorithm for this problem, achieving a complexity of $(nm)^{O(r^2)}$. By reducing the number of variables required to define a valid factorization from exponential to quadratic, the author bridges a significant gap in computational complexity theory. This result is nearly optimal under the Exponential Time Hypothesis, providing a theoretical upper bound that closely matches known lower bounds.

Introduction

Nonnegative Matrix Factorization (NMF) has become a cornerstone of modern data science, favored for its ability to produce "parts-based" representations. Unlike standard Singular Value Decomposition (SVD), which allows for negative entries, NMF requires the factor matrices to be entirely non-negative. This constraint is essential for applications where the data represents physical quantities that cannot be negative, such as word frequencies in topic modeling, pixel intensities in image processing, or gene expression levels in biology.

Despite its utility, a major theoretical hurdle has persisted: the difficulty of computing the nonnegative rank exactly. The nonnegative rank of a matrix $M$ is the smallest $r$ such that $M = AW$ for non-negative matrices $A$ and $W$. While the problem is known to be NP-hard, researchers have sought algorithms that are efficient when the target rank $r$ is small. Previous exact algorithms were either exponential in the dimensions of the matrix ($m$ and $n$) or "doubly-exponential" in the rank $r$ (e.g., $2^{2^r}$). This paper successfully brings that complexity down to a "singly-exponential" $2^{poly(r)}$.

Methodology: Overcoming the Variable Bottleneck

The author approaches the problem by treating NMF as a search for a solution to a system of polynomial inequalities. The primary challenge in solving such systems is the number of variables involved.

1. The Variable Bottleneck

Standard solvers for polynomial systems, such as Renegar’s algorithm, have a running time that is exponential in the number of variables but only polynomial in the number of equations. To achieve a faster algorithm, the number of variables used to describe the matrix factorization must be minimized.

2. Establishing a Normal Form

The paper proves that any valid NMF can be converted into a "stable" or "normal form." In this form, a very small subset of entries in the $A$ and $W$ matrices uniquely determines all other entries. This structural rigidity suggests that NMF is not merely a loose collection of numbers but possesses a specific algebraic structure that can be exploited for optimization.

3. Algebraic Dependence and Cramer’s Rule

By exploiting the fact that most entries in the factorization are algebraically dependent on a few "core" entries, the author utilizes Cramer’s Rule to express the entire factorization using only $2r^2$ variables. This is a massive reduction from previous work, which required $2r^{2^r}$ variables to describe the problem. By plugging this reduced system into existing solvers, the author achieves a singly-exponential time complexity of $(nm)^{O(r^2)}$.

The Fragility of Nonnegative Rank

A significant insight of this work is the discovery that nonnegative rank behaves very differently from standard rank. In linear algebra, if a large matrix has rank $r$, there is always a small $r \times r$ submatrix that also has rank $r$. The author proves that this property does not hold for nonnegative rank.

One can construct a matrix where every reasonably sized submatrix has a low nonnegative rank, yet the matrix as a whole has a high nonnegative rank. This "fragility" explains why NMF is fundamentally more difficult to compute than standard SVD; the rank cannot be easily certified by looking at local properties of the matrix.

Key Results and Complexity

The primary contribution of the paper is the leap in computational efficiency. The algorithm runs in $(nm)^{O(r^2)}$ time, a substantial improvement over the previous best of $(nm)^{2^{r^2}}$.

Furthermore, the author notes that this algorithm is nearly optimal. Under the Exponential Time Hypothesis (ETH)—a standard assumption in complexity theory—no algorithm can run in time $(nm)^{o(r)}$ without implying that 3-SAT can be solved in sub-exponential time. Additionally, the algorithm is robust enough to return approximate factors $\tilde{A}$ and $\tilde{W}$ that are entry-wise close to the true factors within an additive error $\delta$, with only a logarithmic dependence on $1/\delta$ in the running time.

Limitations and Future Work

While "singly-exponential" is a major milestone for theoretical computer science, the $r^2$ term in the exponent means the algorithm remains practical only for very small values of $r$ (typically $r < 10$). For the large-scale $r$ values often encountered in deep learning, exact computation remains out of reach.

The discovery of the "fragility" of nonnegative rank also opens new research avenues. Since small submatrices cannot certify nonnegative rank, identifying what can certify it remains an open question. Future work characterizing which families of matrices allow for easier certification could lead to more robust heuristics for practical NMF applications.

Summary updated

BibTeX
@article{moitra2012singly,
  author = {Ankur Moitra},
  title = {{A Singly-Exponential Time Algorithm for Computing Nonnegative Rank}},
  journal = {Electron. Colloquium Comput. Complex.},
  year = {2012},
}
Figure