NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Algorithms for Boolean Matrix Factorization using Integer Programming and Heuristics

Christos Kolomvakis, Thomas Bobille, Arnaud Vandaele, Nicolas GillisarXiv 2025 · DOI

Abstract

Boolean Matrix Factorization (BMF) is a powerful technique for decomposing binary data into interpretable, overlapping components. Unlike standard matrix factorization, BMF utilizes Boolean logic (the OR operation), making it ideal for discrete datasets but computationally challenging (NP-hard). This paper introduces a suite of high-performance algorithms that combine the precision of Integer Programming (IP) with the speed of novel greedy heuristics and a custom C++ bit-manipulation data structure. Our proposed methods achieve state-of-the-art reconstruction accuracy and scalability across diverse benchmarks, including community detection, topic modeling, and feature extraction.

1. Introduction

Binary data matrices, consisting of 0s and 1s, are ubiquitous in fields such as recommender systems, bioinformatics, and social network analysis. Standard factorization techniques like Principal Component Analysis (PCA) or Non-negative Matrix Factorization (NMF) often struggle with the discrete nature of binary sets because they rely on standard arithmetic where $1+1=2$. Boolean Matrix Factorization (BMF) addresses this by using Boolean logic ($1 \lor 1 = 1$), enabling a more natural representation of overlapping components. This allows multiple factors to explain the same data point without increasing its value, which is critical for maintaining the interpretability of binary features.

2. Methods

The authors propose a multi-faceted approach to solve the NP-hard BMF problem, balancing mathematical precision with computational efficiency:

  • IP-based Alternating Optimization (AO): The core subproblems are formulated as Quadratic Integer Programs. Using a block coordinate descent approach, the algorithms fix one factor matrix and solve for the other using high-powered solvers like Gurobi.
  • Tree BMF and Solution Combination: To avoid local minima, the authors introduce MS-Comb-AO and Tree BMF. These methods generate a pool of candidate rank-one factors and use IP to select the optimal subset, hierarchically combining solutions to scale the accuracy of IP to larger problems.
  • Greedy Heuristics: For large-scale data where IP is too slow, the Greedy-BoolLS algorithm builds solutions bit-by-bit and employs a randomized local search to escape local optima.
  • Bit-Level Optimization: A custom C++ bitmatrix structure stores data at the 1-bit level. By using bitwise operations for matrix products, the authors achieved a 5x speedup over optimized linear algebra libraries like Eigen.
Boolean Matrix Factorization decomposes a binary matrix into two smaller binary matrices using Boolean logic (OR).

3. Key Insights and Results

A primary advantage of BMF is its ability to identify overlapping communities or features cleanly. For instance, in biological datasets, an animal can be both "aquatic" and "egg-laying" without these traits being additive in a numerical sense. This overlapping structure is naturally captured by the Boolean OR operation.

Venn diagram of biological features illustrating the overlapping nature of binary attributes that BMF is designed to capture.

Evaluation on real-world benchmarks (UCI, NIST tdt2, CBCL) demonstrated the following:

  • Accuracy: IP-based methods (MS-AO and MS-Comb-AO) consistently outperformed previous state-of-the-art algorithms like ASSO in reconstruction error on small and medium datasets.
  • Scalability: For large-scale tasks, Greedy-TreeBMF maintained high accuracy while processing datasets where IP methods reached memory limits. On the NIST document dataset, it successfully extracted highly interpretable news topics.
  • Feature Extraction: On the CBCL facial image dataset, AO-BMF produced localized features (eyes, noses, mouths) that were more distinct and interpretable than those from continuous relaxation methods.

4. Conclusion

By combining the precision of Integer Programming with efficient heuristics and low-level optimizations, this work provides a robust toolkit for Boolean Matrix Factorization. The hierarchical "Tree" combination strategy and bit-level manipulation provide a roadmap for scaling hard combinatorial optimization problems. Future research will explore more complex logical operations and further backend optimizations for massive sparse matrices.

Summary updated

BibTeX
@misc{kolomvakis2025algorithms,
  author = {Christos Kolomvakis and Thomas Bobille and Arnaud Vandaele and Nicolas Gillis},
  title = {{Algorithms for Boolean Matrix Factorization using Integer Programming and Heuristics}},
  year = {2025},
  eprint = {2512.03807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.03807},
}
Figure