Abstract
Binary Matrix Factorization (BMF) is a fundamental problem in data mining, often used to identify latent patterns in binary datasets. However, BMF is NP-hard, and traditional heuristic methods frequently converge to local minima. This paper explores the use of special-purpose hardware, specifically the Fujitsu Digital Annealer, to solve BMF by formulating it as a Quadratic Unconstrained Binary Optimization (QUBO) problem. We introduce sampling techniques to handle large-scale matrices and demonstrate that our approach, particularly when combined with post-processing, achieves superior accuracy across synthetic, image, and biological datasets compared to state-of-the-art heuristics.
Introduction
Binary Matrix Factorization (BMF) seeks to approximate a binary matrix $A \in \{0, 1\}^{m \times n}$ as the product of two lower-rank binary matrices $U \in \{0, 1\}^{m \times k}$ and $V \in \{0, 1\}^{n \times k}$, such that $A \approx UV^T$. This decomposition is critical for applications ranging from gene expression analysis to image feature extraction. Despite its utility, the discrete nature of the variables makes BMF a challenging combinatorial optimization problem.
Existing algorithms typically employ alternating heuristics, which optimize $U$ while keeping $V$ fixed, and vice versa. While computationally efficient, these methods are prone to getting trapped in local optima. Recent developments in quantum-inspired hardware offer a new paradigm for solving such NP-hard problems by exploring complex optimization landscapes more effectively.
Methodology
The core of our approach involves mapping the BMF objective function into a Quadratic Unconstrained Binary Optimization (QUBO) framework.
QUBO Formulations
We developed two distinct QUBO models for BMF. Unlike alternating heuristics, these formulations allow for the simultaneous optimization of both factor matrices $U$ and $V$. By treating the factorization as a single optimization task, the hardware can potentially identify global structures that sequential methods miss. Furthermore, we demonstrated that clustering constraints—such as ensuring each observation belongs to a single cluster—can be seamlessly integrated into the QUBO model as penalty terms.
Addressing Scalability
Special-purpose hardware often has a limited capacity for variables (bits). To factorize large rectangular matrices that exceed these limits, we implemented a leverage score sampling strategy. This involves:
- Selecting a representative subset of the matrix rows/columns based on their leverage scores.
- Solving the BMF on this smaller sub-problem using the Digital Annealer.
- Extending the solution to the full matrix using a Binary Least Squares approach.
Hybrid Post-Processing (DA+ALS)
To further refine the results, we introduced a hybrid method called DA+ALS. This approach uses the output of the Digital Annealer as a high-quality starting point for a few iterations of Alternating Least Squares (ALS) on a standard CPU. This "polishing" step ensures that the final factorization is locally optimal while benefiting from the global search capabilities of the annealer.
Results and Discussion
We evaluated our methods against several competitive baselines, including "Penalized" and "Thresholded" heuristics, across synthetic data, the MNIST handwritten digits dataset, and two cancer-related gene expression datasets (Leukemia and Malignant Melanoma).
Performance and Accuracy
The DA+ALS method demonstrated exceptional robustness, achieving equal or better accuracy than competing methods in 72 out of 75 experimental configurations. In 57 of these cases, it provided strictly better results. On the MNIST dataset, the method successfully reconstructed the essential features of handwritten digits even at very low ranks (rank-2 and rank-3).
Sparse Matrix Observations
Interestingly, for highly sparse matrices (density $p=0.2$), a simple baseline that selects the densest rows and columns occasionally outperformed more complex algorithms. This suggests that the choice of algorithm should be informed by the underlying data distribution, as the complexity of the optimization landscape varies with matrix density.
Biological Application
In the context of gene expression data, our QUBO-based approach provided accurate factorizations while strictly adhering to clustering constraints. This is particularly valuable in bioinformatics for identifying distinct biological subtypes within heterogeneous datasets.
Conclusion
This work demonstrates the viability of using quantum-inspired hardware for complex data mining tasks like Binary Matrix Factorization. By reformulating BMF as a QUBO problem and employing strategic sampling, we can overcome hardware limitations and achieve higher accuracy than traditional heuristics. Future research will focus on automated parameter tuning and tighter integration between specialized hardware and classical post-processing loops.
Reference: Malik OA, Ushijima-Mwesigwa H, Roy A, Mandal A, Ghosh I (2021) Binary matrix factorization on special purpose hardware. PLoS ONE 16(12): e0261250.
Summary updated