TL;DR
The authors present sofa, the first streaming algorithm designed for biclustering and Boolean Matrix Factorization (BMF) on massive bipartite graphs. By combining streaming $k$-Medians with mergeable heavy hitters, sofa recovers the right-side clusters in a single pass using sublinear memory, infers the left-side clusters in a second pass, and runs orders of magnitude faster than static baselines while maintaining comparable clustering quality.
What Problem Does This Paper Address?
Bipartite graphs—such as users rating movies, documents containing words, or market basket transactions—are typically massive, extremely sparse, and structurally asymmetric: vertices on one side have small, bounded degrees, while vertices on the other side can have massive degrees.
Existing biclustering and Boolean Matrix Factorization algorithms require offline access, making multiple passes over the entire adjacency structure. On web-scale datasets containing millions of nodes and edges, static algorithms become completely unusable due to prohibitive memory consumption (often running out of RAM) and days-long runtimes. The authors aim to design a memory-efficient algorithm capable of clustering these graphs in a streaming model where left-side vertices arrive sequentially with all their incident edges.
Methods
The paper breaks the recovery process into two distinct streaming passes:
- Pass 1 (Right-Side Clusters via
sofa): - As left-side vertices arrive,
sofaadapts a streaming $k$-Medians algorithm based on importance sampling to maintain a dynamic pool of up to $c_{\max}$ cluster centers. - For each center, the algorithm maintains a mergeable Misra–Gries heavy hitters data structure of size $O(s)$ to track the most frequently occurring right-side neighbor indices.
- When centers are merged or re-clustered offline, their heavy hitters summaries are merged. A frequency threshold $\theta$ is then applied to the merged counters to extract discrete right-side clusters $\tilde{V}_i$.
- Pass 2 (Left-Side Clusters):
- In a second pass, left-side vertices are assigned to clusters. For standard biclustering (disjoint partition), each node is assigned to the right cluster maximizing fractional overlap. For BMF (overlapping clusters), a greedy set-covering heuristic is used that allows controlled "overcovering."
- Asymmetric Weighted Hamming Distance: To prevent the algorithm from picking trivial, ultra-sparse centers (a common pitfall in sparse data), the authors introduce an asymmetric Hamming distance parameter $\alpha < 1$ (typically $\alpha = 0.1$) that penalizes false positives less severely than false negatives.
Datasets
- Synthetic Datasets: Random bipartite graphs generated via bipartite stochastic block models (varying signal probability $p \in [0.5, 0.9]$, right-side cluster sizes $r \in [15, 50]$, and left-side cluster sizes $\ell \in [100, 600]$ with $n = 8000$ and $m = 10000$).
- Real-World Benchmarks: Six large, highly sparse bipartite datasets:
- 20News (18.7K $\times$ 61K, 1.7M edges): Newsgroup postings and words.
- Reuters (38.7K $\times$ 19.8K, 978K edges): News articles and words.
- Book (105K $\times$ 340K, 1.1M edges): Users and book ratings.
- Movie (MovieLens 20M: 138K $\times$ 26.7K, 20M edges): Users and movie ratings.
- Flickr (396K $\times$ 103K, 8.5M edges): Users and group memberships.
- Wiki (1.56M $\times$ 1.17M, 19.8M edges): Wikipedia page-to-page link matrix.
Key Insights and Ideas
- Clusters as Heavy Hitters: A key realization is that recovering a right-side cluster $\tilde{V}_i$ given a stream of left-side cluster vertices $U_i$ is equivalent to finding the "heavy hitters" among the incident edges. Mergeable summary structures enable constant-amortized-time cluster updating.
- Information-Theoretic Optimality: The authors prove that any algorithm recovering planted clusters in this random graph model requires $\Omega(ks)$ space. Their theoretical greedy streaming algorithm matches this lower bound with $O(ks)$ space and $O(mks)$ runtime.
- Fixing Metric Bias in Sparse Regimes: Standard Hamming distance breaks down on very sparse data because empty vectors appear close to everything. Weighting mismatches asymmetrically guides the algorithm toward dense, informative centers.
Key Results
- Massive Speedups: On the real-world Book dataset ($k=50$),
sofafinished in 5.5 minutes, whereas the static baselinebassotook 49.2 hours (2951.8 minutes). On Flickr ($k=50$),sofarequired 24 minutes versus 77.8 hours forbasso. - Minimal Memory Footprint:
sofaprocessed graphs with millions of vertices and up to 20 million edges (Wiki) using under 500 MB of RAM. Staticbassoran completely out of memory on the same machine. - Competitive Quality: In terms of relative Hamming gain and recall,
sofastayed within a factor of 1.5 to 2.2 ofbassoon five of the six real datasets, performing remarkably well for a streaming heuristic with strict sublinear space constraints.
Limitations and Future Work
- Ultra-Sparse Degradation: On datasets where median left-degree is extremely low (e.g., Book, where median degree is 1), clustering accuracy dropped significantly compared to the static baseline (up to a factor of 5.8 worse).
- Streaming Arrival Model: The current formulation requires all incident edges of a left-side vertex to arrive together in a block, rather than handling arbitrary edge-by-edge arrivals over time.
- Theoretical Guarantees for BMF: While the biclustering formulation has provable recovery bounds under stochastic block models, theoretical approximation guarantees for general BMF remain elusive due to known computational complexity lower bounds.
- Future Directions: The authors suggest adapting
sofato fully arbitrary edge streams and extending its coreset and mergeable summary components to distributed streaming frameworks.
Summary updated