Low-rank matrix approximation is a foundational tool in machine learning, typically used to compress data or extract latent features. However, when the input data is inherently binary—such as categorical data, adjacency matrices of bipartite graphs, or black-and-white images—standard continuous factorizations yield dense, real-valued matrices. This continuous output strips away the discrete, interpretable nature of the original data.
Binary Matrix Factorization (BMF) solves this by forcing the factorized matrices to also be binary. While highly desirable, BMF is computationally brutal: exact BMF is NP-hard, and previous approximation algorithms required doubly-exponential running times (e.g., $2^{2^{O(k)}}$). This made them practically useless even for very small rank $k$.
This paper introduces significantly faster, singly-exponential time approximation algorithms for BMF. By cleverly combining $k$-means clustering with leverage score sampling, the authors achieve constant-factor approximations that dramatically improve upon previous bounds.
The Two Frameworks of BMF
The authors tackle BMF under two distinct mathematical frameworks:
- Integer Arithmetic: This involves standard matrix multiplication. Minimizing the $L_1$ error in this context is equivalent to the Bipartite Clique Partition problem, which seeks to approximate a graph as a union of disjoint bicliques.
- GF(2) Arithmetic: This involves matrix multiplication modulo 2, a technique heavily used in signal processing and Independent Component Analysis (ICA) over string data.
Fun context: A major practical motivation for this work is hardware-based. Passive OLED displays render images row-by-row. By decomposing an image into binary rank-1 matrices, multiple rows can be illuminated simultaneously using simple voltage drivers, dramatically increasing the display's apparent brightness.
The "Sketch-and-Solve" Methodology
The authors bypass the doubly-exponential blowup of previous methods using a novel "sketch-and-solve" schema:
- Row Reduction via Clustering: The algorithm first treats the $m$ rows of the input matrix $A$ as points in high-dimensional space and runs a $2^k$-means clustering algorithm. By replacing every row with its nearest cluster center, they create an intermediate matrix $I(A)$ that has at most $2^k$ distinct rows.
- Dimensionality Reduction via Sketching: To solve the factorization for $I(A)$, the authors use leverage score sampling (or $L_p$-Lewis weights for $p$-norm errors) to sample a tiny subset of $O(k \log k)$ rows.
- Exhaustive Enumeration: Because the sketched problem is now incredibly small, the algorithm can simply "guess" the optimal sketched matrices by enumerating all possibilities.
- GF(2) Adaptation: Standard leverage scores fail over finite fields like GF(2). To solve the GF(2) variant, the authors introduce a novel $\ell_0$-inspired sketching distribution using a sequence of matrices with exponentially decaying inclusion probabilities.
Key Insights
The "aha moment" of the paper is the realization that a rank-$k$ binary matrix can only have $2^k$ distinct rows. By forcing the input matrix to also have $2^k$ distinct rows via $k$-means clustering, the search space for the optimal factors shrinks massively.
Dropping the time complexity from $2^{2^k}$ to $2^{O(k^2 \log k)}$ means the algorithm transitions from being merely theoretically interesting to actually computable for moderate values of $k$. Furthermore, for $L_1$ norm error, this paper provides the first constant-factor approximation algorithm for approximating a bipartite graph as a multiset union of $k$ bicliques in singly-exponential time.
Results and Empirical Performance
Theoretically, for integer BMF (Frobenius norm), the algorithm runs in $2^{O(k^2 \log k)}\text{poly}(mn)$ time, yielding a constant-factor approximation. For GF(2) BMF, it yields a bicriteria constant-factor approximation (finding rank $O(k \log m)$ matrices) in $2^{O(k^3)}\text{poly}(mn)$ time.
To demonstrate practical viability, the authors evaluated a simplified version of their algorithm on standard image datasets, including MNIST and ORL faces. A practical variant of the algorithm—using just the $k$-means step without the heavy enumeration—significantly outperformed a standard Non-negative Matrix Factorization (NMF) baseline. For example, on MNIST at $k=10$, the proposed algorithm achieved a Frobenius error of 2.52 compared to the baseline's 14.59, while running in roughly the same amount of time (68ms vs 44ms).
Qualitatively, the reconstructed binary images from the proposed algorithm are visually sharp and faithful to the originals, with reconstruction quality improving predictably as the rank $k$ increases.
Limitations and Future Work
While singly-exponential time is a massive theoretical improvement, the full algorithm with exhaustive enumeration is still too slow for large $k$ in production environments (which is why practical experiments dropped the enumeration step). Additionally, the GF(2) algorithm does not output a strict rank-$k$ matrix; instead, it outputs a rank-$O(k \log m)$ matrix that matches the error of the best rank-$k$ matrix.
Future research directions include making the leverage sampling and enumeration steps more practically efficient, and applying the approximate biclique algorithm to find near-dense communities in bipartite graphs.
Summary updated