Low-Rank Boolean Matrix Approximation by Integer Programming

Réka Kovács, Oktay Günlük, Raphael A. HauserarXiv 2018

Introduction: The Challenge of Boolean Data

In data science, dimensionality reduction techniques like Principal Component Analysis (PCA) are indispensable for uncovering latent structures in large datasets. However, these methods typically assume real-valued data. For categorical data represented as Boolean matrices—where entries are binary (0 or 1)—standard linear algebra fails to capture the underlying logic. Boolean Matrix Factorization (BMF) seeks to approximate a matrix $X$ as the Boolean product of two lower-rank matrices $C$ and $R$ ($X \approx C \circ R$). This task is inherently difficult because Boolean arithmetic follows the rule $1 + 1 = 1$ (the OR operation), making the problem NP-complete. Historically, exact methods for BMF were computationally prohibitive, often requiring an exponential number of constraints.

Methodology: A Polynomial Integer Programming Formulation

This paper presents a breakthrough: the first Binary Integer Programming (BP) formulation for low-rank Boolean matrix approximation that utilizes only a polynomial number of variables and constraints. By framing the problem within an optimization framework, the authors provide a pathway to exact solutions for datasets that were previously unreachable. The model fits into a $O(kmn)$ space, where $k$ is the rank, $m$ is the number of features, and $n$ is the number of items.

Optimization Techniques: McCormick Envelopes and Relaxation

The core of the proposed methodology lies in linearizing the non-linear Boolean product. The authors employ McCormick envelopes to handle the relationship where an output cell depends on the product of binary variables in $C$ and $R$. Furthermore, they introduce a strategic integrality relaxation. They demonstrate that if the primary factor matrices ($C$ and $R$) are constrained to be binary, the auxiliary error variables and intermediate products naturally converge to binary values. This relaxation significantly reduces the search space for solvers like CPLEX without sacrificing the optimality of the solution.

Computational Efficiency and Preprocessing

To further enhance performance, the authors implemented constraint pruning—identifying that nearly half of the standard constraints are redundant based on the input data $x_{i,j}$—and a robust preprocessing pipeline. This pipeline merges duplicate rows and removes all-zero entries, weighting the objective function to maintain information integrity.

Runtime comparison of the full model versus the improved model with and without preprocessing on synthetic data.

As shown in Figure 1, the combination of the improved model and preprocessing leads to a dramatic reduction in runtime. On synthetic datasets, the "Improved Model + Preprocessing" configuration is orders of magnitude faster than the baseline "Full Model." For a matrix with 200 rows, the full model requires hundreds of seconds, whereas the optimized version completes the task in under a second.

The Impact of Noise on Solver Performance

The complexity of the Boolean approximation problem is highly sensitive to data quality. Noise, defined as the random flipping of bits, disrupts the structural redundancies that preprocessing and solvers exploit.

Impact of noise levels on the computational time required for the improved model as the number of rows (n) increases.

Figure 2 illustrates how noise impacts solver performance. In clean data (0% noise), the preprocessing step is highly effective. However, as noise increases to 1% or 2%, the computational time scales rapidly. This highlights that while polynomial formulations are possible, the practical difficulty of the problem remains tied to the entropy and noise levels of the input data.

Real-World Applications and Reconstruction

The model's efficacy was validated on several real-world datasets, including the SPECT Heart dataset, the Primary Tumor dataset, and the 1984 U.S. Congressional Voting Records. In the Congressional dataset, a rank-5 approximation was found to capture the vast majority of voting patterns.

Due to the inherent difficulty of the problem, the authors applied a 2-hour time limit for real-world tests. Even when the solver did not reach a proven optimal solution, the "incumbent" (best found) solutions provided high reconstruction accuracy, often reconstructing over 80% of the data. Interestingly, the researchers observed occasional non-monotonicity in error curves under these time constraints, where a higher-rank model proved harder to optimize within the fixed window than a lower-rank one.

Conclusion

This work demonstrates that exact Boolean matrix factorization is computationally viable for moderate-sized datasets through clever IP formulation and optimization. By moving from exponential to polynomial complexity and leveraging techniques like McCormick envelopes and integrality relaxation, the authors have provided a powerful tool for researchers dealing with binary categorical data. Future work may focus on tighter bounds for the McCormick envelopes or specialized branching rules to further push the boundaries of scalability.

Summary updated

BibTeX
@misc{kovacs2018low,
  author = {Réka Kovács and Oktay Günlük and Raphael A. Hauser},
  title = {{Low-Rank Boolean Matrix Approximation by Integer Programming}},
  year = {2018},
  eprint = {1803.04825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.04825},
}
Figure