arXiv:2610.21874math.OCOct 2026

Manuscript Offprint

arXiv:2610.21874

Strong NP-Hardness of Rank-2 Nonnegative Matrix Factorization

Arnaud Vandaele

Abstract

Nonnegative matrix factorization (NMF) approximates a nonnegative matrix by the product of two nonnegative matrices with a prescribed inner dimension r. The existence of an exact NMF can be decided in polynomial time for every fixed r, and a best rank-1 NMF in the Frobenius norm can be obtained from a truncated singular value decomposition. We prove that computing a best rank-2 NMF in the Frobenius norm is strongly NP-hard. Our proof uses a polynomial-time reduction from CLIQUE that produces symmetric positive-definite, completely positive matrices with polynomially bounded integer entries. The same reduction also establishes strong NP-hardness of rank-2 symmetric NMF.

1 Introduction

Given a nonnegative matrix X∈R≥0m×nX \in \mathbb{R}_{\geq 0}^{m \times n} and an integer r≥1r \geq 1, NMF seeks nonnegative factors W∈R≥0m×rW \in \mathbb{R}_{\geq 0}^{m \times r} and H∈R≥0r×nH \in \mathbb{R}_{\geq 0}^{r \times n} whose product approximates XX. Introduced by Paatero and Tapper [21] and popularized by Lee and Seung [15], NMF has become a standard tool for extracting interpretable, parts-based representations of nonnegative data; see the monograph [5] and the references therein. Measuring the error in the Frobenius norm leads to the optimization problem

min⁡W∈Rm×r,H∈Rr×n∥X−WH∥F2s.t.W≥0, H≥0.(1)\min_{W\in\mathbb{R}^{m\times r},H\in\mathbb{R}^{r\times n}}\|X-W H\|_{F}^{2}\quad s.t.\quad W\geq0,\ H\geq0. \tag{1}

Without the nonnegativity constraints, (1) is solved by a truncated singular value decomposition (SVD). Indeed, by the Eckart–Young–Mirsky theorem, the truncated SVD provides a best rank-r approximation in every unitarily invariant norm [4, 18], and it can be computed by iterative methods at a cost of O(mnr)O(mnr) operations per iteration [11]. With the nonnegativity constraints, the truncated SVD is in general infeasible, since its factors may have negative entries, and (1) becomes a nonconvex problem. Standard algorithms, such as multiplicative updates and block coordinate descent methods based on alternating nonnegative least squares, are local methods: at best, they guarantee convergence to stationary points [5]. This raises a natural algorithmic question:

for which values of r can a global minimizer of (1) be computed in polynomial time?

The case r = 2 is of particular interest. Rank-2 NMF is the building block of hierarchical clustering methods that recursively split the data into two clusters, for instance, in document clustering [14], hyperspectral imaging [9], and the characterization of brain-tumor tissues [16, 22]. For r = 2, the subproblems of alternating schemes are particularly simple: when one factor is fixed, the problem decouples into nonnegative least squares problems in two variables, which can be solved exactly [14]. More recently, Lindy, Noferini, and Van Dooren [17] studied the structure of rank-2 nonnegative factorizations and proposed an SVD-based initialization for alternating nonnegative least squares. They also noted that whether computing a best rank-two NMF is NP-hard was, to their knowledge, an open problem. In this paper, we prove that this problem is strongly NP-hard.

*Department of Mathematics and Operational Research, University of Mons, Mons, Belgium. Email: arnaud.vandaele@umons.ac.be.

References (19)