Algorithms for Boolean Matrix Factorization using Integer Programming

Christos Kolomvakis, Arnaud Vandaele, Nicolas Gillis

Abstract

Boolean Matrix Factorization (BMF) is a critical tool for extracting interpretable, binary features from high-dimensional data. However, the NP-hard nature of BMF typically forces a trade-off between computational efficiency and reconstruction accuracy. This paper proposes a novel framework that leverages modern Integer Programming (IP) solvers to solve BMF subproblems exactly. We introduce an Alternating Optimization (AO-BMF) strategy and a Multistart Combination (MS-Comb-AO) algorithm that identifies and aggregates the most effective rank-one components from multiple initializations. Our results demonstrate that this approach consistently outperforms state-of-the-art heuristics and continuous relaxations on standard benchmarks, providing a robust "finishing touch" to existing optimization methods.

Introduction

In domains ranging from recommender systems to bioinformatics, data is frequently represented in binary form. While standard dimensionality reduction techniques like Principal Component Analysis (PCA) or Non-negative Matrix Factorization (NMF) are widely used, they often yield fractional results that lack clear physical interpretations in a binary context. Boolean Matrix Factorization (BMF) addresses this by operating under Boolean algebra (where $1 + 1 = 1$), ensuring that both the basis vectors and the coefficients remain strictly binary.

Despite its utility, BMF is computationally daunting. Finding an optimal factorization is NP-hard, leading researchers to rely on either fast greedy heuristics—which often sacrifice accuracy—or continuous relaxations that frequently converge to poor local minima. This paper bridges the gap by demonstrating that modern mathematical optimization software has reached a level of maturity where it can effectively solve BMF for medium-scale problems.

Methodology

The authors propose two primary algorithmic contributions designed to improve the precision of Boolean factorizations.

1. AO-BMF: Alternating Optimization via Integer Programming

Similar to traditional NMF, the AO-BMF algorithm alternates between fixing one factor matrix ($W$) and solving for the other ($H$). The innovation lies in the formulation of the subproblem—Boolean Least Squares—as a Quadratic Integer Program (IP). While IP is generally considered intractable for large-scale problems, the authors show that modern solvers like Gurobi can solve these specific subproblems for matrices with thousands of rows in a matter of seconds. This ensures that each step of the alternating optimization is solved to optimality, rather than relying on a heuristic approximation.

2. MS-Comb-AO: Multistart Combination

To overcome the issue of local minima, the authors introduce a "combination" algorithm. Instead of simply performing multiple random restarts and selecting the single best result, MS-Comb-AO treats the rank-one factors generated across all runs as a pool of candidates. A secondary Integer Program is then used to select the optimal subset of $r$ factors from this pool to reconstruct the original matrix. This "Lego-like" approach allows the algorithm to synthesize a superior global solution by combining the most effective components discovered in different local searches.

Experimental Setup

The proposed algorithms were evaluated against four standard real-world binary datasets:

  • zoo: Attributes of various animals.
  • heart: Medical diagnostic records.
  • lymp: Lymphography data.
  • apb: A book-buying network dataset.

Additionally, the authors applied the method to the CBCL facial image dataset. Although image data is typically continuous, binarizing the data allows BMF to extract distinct, part-based binary features (such as eyes, noses, or mouths), demonstrating the method's versatility in feature extraction.

Results and Discussion

Performance and Accuracy

The proposed MS-AO (Multistart AO) and MS-Comb-AO algorithms consistently matched or exceeded the performance of existing state-of-the-art methods. A notable success was observed with the lymp dataset, where the proposed method reduced reconstruction error by 34 units compared to the previous best-known result for rank 10.

Efficiency of IP Solvers

A key insight of the study is the viability of off-the-shelf IP solvers for BMF. For a matrix with 10,000 rows, a subproblem can be resolved in approximately 12 seconds. Furthermore, the algorithms tend to converge rapidly, requiring an average of only 3.7 iterations. This efficiency makes the total computation time highly feasible—often under five minutes—for the scales tested.

Refining Continuous Methods

The research also highlights a synergy between continuous and discrete optimization. The authors found that while recent "state-of-the-art" continuous algorithms often stall at sub-optimal points, applying a few iterations of AO-BMF as a post-processing step significantly improves the final reconstruction. This suggests that discrete optimization serves as a necessary "finishing touch" to refine the results of continuous relaxations.

Conclusion

By leveraging the power of modern Integer Programming, this paper provides a more accurate and reliable framework for Boolean Matrix Factorization. While the current approach is optimized for medium-scale datasets (up to ~10,000 rows), it sets a new benchmark for reconstruction quality. Future work will focus on scaling these methods to "Big Data" contexts and developing specialized heuristics to further accelerate the Boolean Least Squares subproblems.

Summary updated

BibTeX
@inproceedings{kolomvakis2023algorithms,
  author = {Christos Kolomvakis and Arnaud Vandaele and Nicolas Gillis},
  title = {{Algorithms for Boolean Matrix Factorization using Integer Programming}},
  booktitle = {MLSP},
  year = {2023},
  url = {https://openreview.net/forum?id=vRLQD9HIkVo},
}
Figure