Abstract
Boolean Matrix Factorization (BMF) is a critical tool for latent pattern discovery in binary datasets, yet its NP-hard nature often forces a trade-off between computational efficiency and reconstruction accuracy. We present Median Expansion for Boolean Factorization (MEBF), a heuristic algorithm that reinterprets BMF as a geometric segmentation problem. By permuting matrices into an Upper Triangular-Like (UTL) form and employing a bidirectional growth strategy centered on median seeds, MEBF achieves state-of-the-art performance. Experimental results on simulated and real-world datasets, including Chicago crime records and single-cell RNA sequencing data, demonstrate that MEBF is orders of magnitude faster than existing methods while maintaining high fidelity.
Introduction
Boolean Matrix Factorization (BMF) decomposes a binary matrix into two low-rank binary factors using Boolean algebra ($1+1=1$). This technique is essential for interpreting complex data in fields ranging from bioinformatics to social sciences. However, the computational complexity of BMF has historically limited its application. Existing approaches typically fall into two categories: fast but often inaccurate heuristics (e.g., ASSO) and more accurate but computationally prohibitive probabilistic or iterative methods (e.g., PANDA, Message Passing). MEBF bridges this gap by leveraging the geometric properties of sorted binary matrices.
The MEBF Algorithm
The core innovation of MEBF is the transformation of a combinatorial search into a geometric segmentation task. The algorithm follows a four-step pipeline:
- UTL Permutation: The input matrix is rearranged to concentrate 1s in the upper-left corner, creating an Upper Triangular-Like (UTL) structure.
- Median Expansion: In a UTL matrix, the largest dense submatrices are likely located near the midpoints of the triangular area. MEBF selects a "seed" row or column at the median and uses a bidirectional growth algorithm to expand it into a full pattern.
- Weak Signal Detection: To capture smaller or noisier patterns that the growth step might miss, the algorithm employs a specialized detection mode.
- Iterative Residual Mining: Patterns are iteratively extracted from the matrix. After each extraction, the process repeats on the residual matrix until the reconstruction error stabilizes.
Key Insights: Geometry and the Median
The efficiency of MEBF stems from the observation that sorting a matrix reveals its underlying structure as geometric shapes. Rather than evaluating all possible row and column combinations, the algorithm focuses on the most probable regions for dense blocks.
The use of the "median" as a starting point for expansion is a powerful heuristic. It represents the average density of the triangular region, providing a stable anchor that minimizes the risk of expanding into noise or overly sparse regions.
Experimental Results
MEBF was benchmarked against state-of-the-art methods across various datasets:
- Simulated Data: MEBF consistently outperformed ASSO, PANDA, and Message Passing (MP) in terms of reconstruction error across different noise levels and densities.
- Chicago Crime Records: In a large-scale temporal-spatial dataset, MEBF identified patterns in approximately 3 seconds, compared to over 333 seconds for the MP algorithm, representing a 100x speedup.
- Biological Data (scRNA-seq): MEBF proved effective for denoising continuous gene expression data. By factorizing a binarized version of the data, researchers achieved clearer cell clustering and identified rare cell-to-cell interactions that were previously obscured by noise.
Conclusion
MEBF offers a scalable and accurate solution for Boolean Matrix Factorization. By treating the problem geometrically, it bypasses the traditional computational bottlenecks of BMF. While it remains a heuristic, its practical performance on large-scale, noisy real-world data makes it a superior choice for modern data science applications. Future work will focus on automated parameter tuning and extending the method to even more complex pattern distributions.
Summary updated