Abstract
Discovering patterns in large, sparse binary matrices is a fundamental task in data mining, with applications ranging from market basket analysis to social network modeling. Traditional clustering methods often require manual parameter tuning, such as specifying the number of clusters, which can be subjective and inefficient. This paper presents a parameter-free, fully automatic method for the simultaneous clustering of rows and columns. By leveraging the Minimum Description Length (MDL) principle, the proposed algorithm identifies the optimal number of groups and their assignments without user intervention. The approach scales linearly with the number of non-zero entries, making it suitable for massive real-world datasets.
Introduction
In the era of big data, we frequently encounter information represented as large, sparse binary matrices. Examples include customer-product interactions, document-word occurrences in information retrieval, and link structures in web graphs. The primary objective in analyzing these matrices is to uncover latent "communities" or patterns that explain the underlying data distribution.
However, existing techniques like $k$-means, Singular Value Decomposition (SVD), or frequent itemset mining suffer from significant limitations. Most notably, they often require users to provide critical parameters, such as the number of clusters ($k$) or specific support thresholds. Determining these values is frequently a "black art," necessitating extensive trial and error. Furthermore, many methods focus on clustering only one dimension at a time. This paper introduces a robust framework for jointly clustering rows and columns—a process known as cross-association—that is both fully automatic and highly scalable.
Methodology
The core of the proposed method is the framing of clustering as a data compression problem, guided by the Minimum Description Length (MDL) principle. The fundamental idea is that the most effective summary of a dataset is the one that minimizes the total length of the description, including both the model itself and the data encoded using that model.
The MDL Criterion
The algorithm defines a "total cost" function. This cost is the sum of the bits required to describe the cluster structure (the "model cost") and the bits required to describe the data given that structure (the "data cost"). In a binary matrix, a successful cross-association results in a partitioned matrix composed of homogeneous rectangular blocks. These blocks, characterized by either high or low density, are significantly easier to compress than the original unstructured matrix.
Algorithmic Framework
Finding the global minimum of the MDL cost is computationally prohibitive. To address this, the authors propose a two-level search strategy:
- ReGroup (Inner Loop): Given a fixed number of row groups ($k$) and column groups ($l$), this algorithm employs alternating minimization. It iteratively reassigns rows and columns to the groups that minimize the local description cost, similar to the iterative refinement in $k$-means but applied to both dimensions simultaneously.
- CrossAssociationSearch (Outer Loop): This heuristic explores the space of cluster counts ($k, l$). Starting from a single cluster ($k=l=1$), it identifies groups with high entropy and splits them. This process continues, effectively descending a "waterfall" of decreasing total costs, until the cost of adding more clusters (increasing model complexity) outweighs the reduction in data description bits.
Unlike lossy compression techniques, this method is entirely lossless, accounting for every bit in the original matrix to ensure no information is discarded during the pattern discovery process.
Results and Insights
The effectiveness of the method was validated using a variety of synthetic and real-world datasets, including the CLASSIC document collection, NSF GRANTS abstracts, and the EPINIONS social trust graph.
Key Insights
- Compression as a Proxy for Structure: The research demonstrates that pattern discovery is intrinsically linked to data compression. Identifying a block that is "90% ones" allows for a very compact description, signaling a significant underlying pattern.
- The "Waterfall" Effect: The total cost function typically exhibits a sharp initial drop as major structures are captured, followed by a gradual rise as the model becomes overly complex. The minimum point of this curve naturally reveals the "correct" number of clusters.
- Parameter-Free Automation: By relying on MDL, the method eliminates the need for manual parameter selection, making advanced data mining accessible for exploratory analysis without prior domain knowledge of cluster counts.
Key Results
- Accuracy: On the
CLASSICdataset, the algorithm perfectly recovered known document classes and even identified subtle sub-structures, such as the distinction between technical and common medical terminology. - Scalability: The algorithm's complexity scales linearly with the number of non-zero entries ($n_1$). This efficiency allowed it to process massive datasets like
CLICKSTREAM(23k users x 199k URLs) where traditional $O(n^2)$ methods are non-viable. - Robustness: The method remained effective even with 10% added noise, successfully isolating dense and sparse regions that other algorithms might miss.
Conclusion
This paper provides a powerful, automated tool for cross-association in large binary matrices. While the ReGroup heuristic can occasionally fall into local minima, the overall framework offers a principled and scalable approach to unsupervised pattern discovery. Future work may extend these concepts to categorical data and explore more advanced search heuristics for navigating the cluster-count space.
Summary updated