Introduction
Matrix factorization is a fundamental tool in unsupervised machine learning, used to extract latent features from complex datasets. A common example is "eigenfaces," where facial images are decomposed into a set of basis components. While standard Nonnegative Matrix Factorization (NMF) uses continuous values, many applications benefit from binary constraints, where a feature is either present (1) or absent (0).
However, enforcing these binary constraints transforms a relatively straightforward optimization problem into a difficult combinatorial one. This paper explores whether quantum annealing—specifically using the D-Wave 2X system—can provide a practical advantage in solving these Nonnegative/Binary Matrix Factorization (NBMF) problems.
Methodology: A Hybrid Quantum-Classical Approach
The researchers developed a hybrid algorithm to approximate a matrix $V$ as the product of two matrices, $W$ and $H$ ($V \approx WH$), where $W$ is nonnegative and $H$ is strictly binary. They employed an Alternating Least Squares (ALS) framework:
- Classical Step: With $H$ fixed, the algorithm solves for $W$. Because $W$ is continuous and nonnegative, this is a standard convex optimization problem that classical CPUs handle efficiently.
- Quantum Step: With $W$ fixed, the algorithm solves for $H$. This is the computationally intensive part. The researchers reformulated this as a Quadratic Unconstrained Binary Optimization (QUBO) problem, which is the native format for D-Wave quantum annealers.
To overcome the limited number of qubits on current hardware, the algorithm processes $H$ column-by-column. This allows the D-Wave to handle massive datasets because the hardware only needs to manage the "rank" (the number of features) at any single moment, rather than the entire matrix at once.
Case Study: Learning Facial Features
The algorithm was tested using the MIT-CBCL Face Database, containing 2,429 facial images. The goal was to learn a set of basis features that could reconstruct any face in the set.
Unlike standard NMF, which often identifies individual parts (like a nose or an eye), the NBMF approach learned holistic features. These are face-like templates that, when combined, accurately reconstruct individual identities. By forcing $H$ to be binary, the resulting data representation was 85% sparse, significantly reducing storage requirements (using 1-bit elements instead of 64-bit floats) while maintaining high interpretability.
Results: The Microsecond Advantage
The study compared the D-Wave 2X against state-of-the-art classical solvers like Gurobi and qbsolv. The key finding was a specific performance window: between 200 and 20,000 microseconds.
In this extremely short time regime, the D-Wave quantum annealer consistently found higher-quality solutions than the classical tools. While Gurobi eventually finds better solutions if given more time, the D-Wave excels at providing "good enough" answers orders of magnitude faster. This suggests that quantum annealing is particularly well-suited for large-scale problems where millions of sub-problems must be solved rapidly.
Limitations and Future Outlook
Despite the promising results, several hurdles remain:
- Hardware Connectivity: The "Chimera" graph structure of the D-Wave 2X required chaining multiple physical qubits to represent single variables, limiting the feature rank to $k=35$.
- I/O Latency: Currently, the overhead of sending data over the internet and programming the quantum chip (~15ms) far exceeds the actual annealing time (microseconds), making real-time application difficult.
- Classical Heuristics: The results suggest that hybrid classical heuristics (e.g., combining tabu search with Gurobi) might still compete with current quantum hardware, providing a roadmap for classical researchers to improve their own tools.
As quantum hardware evolves with higher qubit counts and better connectivity, the window for "quantum advantage" is expected to expand, potentially making these hybrid algorithms a standard part of the machine learning toolkit.
Summary updated