Low-Rank Matrix Approximation with Weights or Missing Data Is NP-Hard

Nicolas Gillis, François Glineur · DOI

Abstract

Low-rank matrix approximation is a cornerstone of data science, usually solved efficiently via Singular Value Decomposition (SVD). However, this paper proves that simply adding weights to the entries or dealing with missing data—common requirements in real-world applications—makes the problem NP-hard, even for the simplest rank-one case.

Introduction

In an ideal world, we have complete, uniform data matrices. In this scenario, finding a low-rank approximation (like PCA) is computationally efficient because we have algorithms that always find the global optimum.

But real-world data is messy. In collaborative filtering (like the Netflix Prize), most entries are missing. In computer vision or signal processing, some data points are more reliable than others, requiring us to "weight" them differently. This leads to Weighted Low-Rank Approximation (WLRA). While researchers have long observed that WLRA algorithms often get stuck in local minima, a formal proof of the problem's computational complexity was missing. This paper demonstrates that computing an optimal rank-one WLRA is actually intractable (NP-hard).

Complexity via Reduction

The authors employ a classic theoretical computer science technique: polynomial-time reduction. They show that if you could solve the rank-one WLRA problem efficiently, you could also solve the Maximum-Edge Biclique Problem (MBP). MBP is a known NP-hard problem that involves finding the largest complete bipartite subgraph within a graph.

Bipartite graph structure used in the reduction from the Maximum-Edge Biclique Problem.

The paper constructs two specific reductions to map the global optimum of the approximation problem back to the solution of the MBP:

  1. For Positive Weights: They create a weight matrix where zero-entries in the data matrix are penalized heavily, forcing the low-rank approximation to align with the structure of a maximum biclique.
  2. For Missing Data (Binary Weights): They use a matrix construction where "missing" entries (weight = 0) allow the approximation to "ignore" certain values.

Geometric Intuition and Local Minima

A key insight is that the efficiency of standard SVD is a mathematical "stroke of luck" that disappears as soon as the weight matrix $W$ is no longer a rank-one matrix (e.g., not all ones). The problem becomes intractable the moment you move from unweighted to weighted, even at rank $r=1$.

Visualization of the objective function for a 3x3 weighted matrix, showing multiple local minima.

Through Example 1, the authors visualize the objective function of a simple $3 \times 3$ weighted matrix, showing four distinct local minima. This provides a geometric intuition for why standard gradient-based solvers often fail to find global solutions. The proof confirms that "Matrix Completion with Noise" is fundamentally difficult, explaining why research is often dedicated to finding specific conditions (like incoherence) under which it becomes solvable.

Core Theorems and Results

The paper establishes several key results regarding the complexity of WLRA:

  • Theorem 1 (Positive Weights): Proves that for a matrix with binary entries and strictly positive weights, finding an approximate rank-one solution with high accuracy is NP-hard.
  • Theorem 2 (Missing Data): Proves that when weights are binary (0 or 1), representing missing data, the problem remains NP-hard.
  • Complexity Bounds: The authors provide specific accuracy thresholds (e.g., $2^{-11}(mn)^{-6}$) below which the problem is guaranteed to be hard.

While the proofs focus on rank-one, the authors explain how these results naturally extend to any fixed rank $r$.

Discussion and Future Work

The authors acknowledge that their results prove hardness for very high-accuracy approximations. They do not yet prove that it is hard to find a "good enough" solution (e.g., within a constant factor of the optimum). A remaining question is the "tipping point": how much variation in weights is required before the problem shifts from polynomial to NP-hard?

Finally, NP-hardness is a worst-case analysis. Future work could look at the complexity of the problem under specific noise distributions or data structures common in real-world applications, where the problem might be more tractable on average.

Summary updated

BibTeX
@article{gillis2011low,
  author = {Nicolas Gillis and François Glineur},
  title = {{Low-Rank Matrix Approximation with Weights or Missing Data Is NP-Hard}},
  journal = {SIAM J. Matrix Anal. Appl.},
  year = {2011},
  doi = {10.1137/110820361},
}
Figure