Abstract
Many fundamental problems in data mining can be reduced to one or more NP-hard combinatorial optimization problems. Recent advances in novel technologies such as quantum and quantum-inspired hardware promise a substantial speedup for solving these problems compared to when using general purpose computers but often require the problem to be modeled in a special form, such as an Ising or quadratic unconstrained binary optimization (QUBO) model, in order to take advantage of these devices. In this work, we focus on the important binary matrix factorization (BMF) problem which has many applications in data mining. We propose two QUBO formulations for BMF. We show how clustering constraints can easily be incorporated into these formulations. The special purpose hardware we consider is limited in the number of variables it can handle which presents a challenge when factorizing large matrices. We propose a sampling based approach to overcome this challenge, allowing us to factorize large rectangular matrices. In addition to these methods, we also propose a simple baseline algorithm which outperforms our more sophisticated methods in a few situations. We run experiments on the Fujitsu Digital Annealer, a quantum-inspired complementary metal-oxide-semiconductor (CMOS) annealer, on both synthetic and real data, including gene expression data. These experiments show that our approach is able to produce more accurate BMFs than competing methods.
Introduction
Binary Matrix Factorization (BMF) is a critical task in data mining, used to decompose a binary matrix $A$ into two smaller binary matrices $U$ and $V$ such that $A \approx UV^T$. This technique is essential for pattern recognition, text mining, and gene expression analysis. However, BMF is inherently NP-hard. Unlike standard matrix factorization, the discrete nature of binary values (0 or 1) prevents the use of continuous optimization techniques. Classical algorithms typically rely on heuristics that frequently converge to local optima, limiting their effectiveness as datasets scale.
With the advent of "post-Moore’s law" technologies, researchers are exploring quantum and quantum-inspired hardware to solve these combinatorial challenges. This paper investigates the use of the Fujitsu Digital Annealer (DA)—a CMOS-based system designed to solve Quadratic Unconstrained Binary Optimization (QUBO) problems—to perform BMF with higher accuracy and scalability than traditional methods.
Methodology
Mapping BMF to QUBO
The primary technical hurdle in using hardware like the DA is that it requires problems to be expressed in a QUBO framework, which only supports quadratic (second-order) terms. The standard BMF objective function involves fourth-order terms when variables from $U$ and $V$ are multiplied. To resolve this, the authors propose two formulations. The most effective, Formulation 1, introduces auxiliary variables to represent the products of $U$ and $V$ entries, using penalty functions to ensure the hardware maintains the logical consistency of the original problem.
Simultaneous Optimization and Hybridization
Traditional classical solvers often use an alternating approach, fixing $U$ to solve for $V$ and vice versa. In contrast, the QUBO formulation allows the Digital Annealer to search for both matrices simultaneously. This global search capability helps the system avoid the local minima that plague classical heuristics. To further refine results, the researchers developed a hybrid DA+ALS method, which uses the DA for a global search and a classical Alternating Least Squares (ALS) step for local fine-tuning.
Scalability via Leverage Score Sampling
Special-purpose hardware is currently limited by the number of variables (bits) it can process. To factorize large-scale matrices, the authors implemented leverage score sampling. This technique identifies the most representative rows of a matrix to create a smaller sub-problem. The BMF is solved on this sample using the DA, and the solution is then projected back to the full dataset. This approach allowed the factorization of matrices with up to 50,000 rows, far exceeding the native variable capacity of the hardware.
Experimental Results
Performance on Synthetic and Real Data
The proposed methods were tested against leading classical BMF algorithms (specifically the "Penalized" and "Thresholded" approaches) across synthetic matrices, the MNIST handwritten digit dataset, and gene expression data from cancer studies (Leukemia and Malignant Melanoma).
Key findings include:
- Superior Accuracy: The DA+ALS hybrid method matched or outperformed classical competitors in 72 out of 75 experimental scenarios. On the MNIST dataset, DA-based methods consistently achieved lower relative errors across various target ranks.
- The Baseline Surprise: A simple "Baseline" algorithm—which selects the densest rows and columns—was found to outperform more complex algorithms on highly noisy and sparse synthetic data, highlighting the importance of algorithm selection based on data characteristics.
- Clustering Integration: The researchers successfully integrated clustering constraints directly into the QUBO model. This allows the system to perform factorization and sample clustering (e.g., ensuring each sample belongs to exactly one group) in a single optimization step.
Conclusion and Future Work
This research demonstrates that quantum-inspired hardware can significantly improve the accuracy of Binary Matrix Factorization. By "flattening" complex math into QUBO forms and employing sampling strategies, the authors have provided a roadmap for applying special-purpose hardware to large-scale data mining problems.
Future work will focus on optimizing the number of annealer iterations to balance speed and accuracy, exploring true quantum hardware like D-Wave as qubit counts increase, and automating the selection of penalty constants to further streamline the optimization process.
Summary updated