A Quantum-inspired Classical Algorithm for Separable Non-negative Matrix Factorization

Zhihuai Chen, Yinan Li, Xiaoming Sun, Pei Yuan, Jialin Zhang

Abstract

Non-negative Matrix Factorization (NMF) is a fundamental technique for decomposing high-dimensional data into interpretable components. While the general NMF problem is NP-hard, the separability assumption—which posits that each feature has a pure "anchor" representative in the data—renders it tractable. However, even separable NMF (SNMF) algorithms typically scale linearly with the number of data points and features. This paper presents the Fast Anchors Seeking (FAS) algorithm, a quantum-inspired classical approach that breaks this linear barrier. By leveraging dequantization techniques and efficient sampling data structures, FAS achieves a complexity logarithmic in the matrix dimensions, providing an exponential speedup for low-rank datasets.

Introduction

In the era of "huge-scale" data, traditional algorithms that scale linearly with the number of samples ($m$) or features ($n$) are increasingly becoming bottlenecks. Non-negative Matrix Factorization (NMF) is widely used in fields ranging from document clustering to hyperspectral imaging, yet its computational complexity remains a challenge. To address this, researchers often rely on the separability assumption. This assumption states that for every latent feature in the dataset, there exists at least one "anchor" point that represents that feature in its purest form. While this assumption makes the problem solvable in polynomial time, the $O(mn)$ scaling of standard solvers is still prohibitive for massive datasets.

The Separability Assumption and Geometric Anchoring

Geometrically, the separability assumption implies that all data points lie within the convex hull formed by the anchor points. Identifying these anchors is equivalent to finding the vertices of this hull. The FAS algorithm approaches this by projecting the data onto random directions and identifying the points that maximize these projections.

Geometric interpretation of the separability assumption and anchor point identification.

As illustrated in the figure above, the algorithm seeks to identify the set of anchors $A_R$ from the full dataset $A$. By projecting the points onto a vector $\beta$ in the row space, the algorithm can identify extreme points (anchors) with high probability. This process is repeated across multiple random projections to ensure all anchors are captured.

The Fast Anchors Seeking (FAS) Algorithm

The FAS algorithm is "quantum-inspired" because it classically simulates the behavior of a Quantum Discrete Cosine Transform-based algorithm (QDCA). The core innovation lies in "dequantizing" the quantum state sampling process. Instead of requiring a quantum computer, FAS uses classical randomized techniques to achieve similar speedups.

Key components of the FAS framework include:

  • Low-Rank Approximation: Utilizing the Frieze-Kannan-Vempala (FKV) algorithm to find approximate singular vectors by sampling only a small sub-portion of the matrix.
  • Dequantization via Rejection Sampling: Simulating quantum state sampling through classical rejection sampling, allowing the algorithm to identify anchors without ever reconstructing the full projected matrix.
  • Divide-and-Conquer: A recursive strategy that projects high-dimensional data into lower dimensions to efficiently isolate anchors.

Efficient Sampling via Matrix Data Structures

To achieve logarithmic time complexity, the FAS algorithm requires a specialized data structure for the input matrix. This structure allows for querying entries and sampling rows or columns based on their squared 2-norms in $O(\log m + \log n)$ time.

Binary tree data structure for efficient row/column sampling and entry access based on squared norms.

The figure above depicts the binary search tree (BST) model used to store the matrix. The root stores the total squared norm of the vector, while internal nodes store partial sums. This allows the algorithm to perform "importance sampling"—focusing on the most significant parts of the data—without reading the entire matrix. The leaf nodes provide sign information, which is crucial for the rejection sampling steps in the dequantization process.

Key Results and Complexity

The primary contribution of this work is the proof of an exponential speedup in the low-rank setting. The time complexity of the FAS algorithm is $O(\text{poly}(k, \kappa, \log \frac{1}{\delta}, \log(mn)))$, where $k$ is the rank, $\kappa$ is the condition number, and $\delta$ is the failure probability. The logarithmic dependence on $m$ and $n$ means that the algorithm's runtime is nearly independent of the dataset's size, provided the intrinsic rank remains low.

Furthermore, the authors provide rigorous guarantees that the algorithm will return the correct anchor indices with a probability of at least $1 - \delta$. This makes FAS a robust theoretical tool for processing high-dimensional data where the number of features and samples is vast but the underlying structure is relatively simple.

Limitations and Future Work

Despite its theoretical brilliance, the FAS algorithm has practical limitations. Its performance is highly sensitive to the rank ($k$) and the condition number ($\kappa$). In datasets with high noise or high intrinsic dimensionality, the polynomial dependence on these parameters may outweigh the logarithmic benefits. Future research will focus on improving the algorithm's noise tolerance and evaluating its performance on real-world datasets to understand the practical impact of the "hidden constants" in its complexity bounds.

Summary updated

BibTeX
@inproceedings{chen2019quantum,
  author = {Zhihuai Chen and Yinan Li and Xiaoming Sun and Pei Yuan and Jialin Zhang},
  title = {{A Quantum-inspired Classical Algorithm for Separable Non-negative Matrix Factorization}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/627},
}
Figure