Introduction
Clustering high-dimensional binary data is a fundamental task in modern data science, with applications ranging from text mining (bag-of-words) to cheminformatics (molecular fingerprints). Traditional clustering methods often struggle with these datasets due to the "curse of dimensionality" and the specific nature of binary features. Geometric methods like k-means rely on Euclidean distances that may not capture the semantic similarity of binary vectors, while probabilistic mixture models using the Expectation-Maximization (EM) algorithm are often computationally prohibitive and prone to local minima.
This paper introduces SparseMix, a compression-based clustering framework designed to exploit the inherent sparsity of high-dimensional binary data. SparseMix bridges the gap between centroid-based methods and probabilistic models, offering a mathematically rigorous approach that remains as fast as highly optimized industry tools.
Methodology: Clustering as Compression
The central premise of SparseMix is the Minimum Description Length (MDL) principle: the best clustering is the one that allows for the most efficient compression of the dataset.
XOR Encoding and Sparse Representation
To achieve efficient compression, SparseMix defines each cluster by a "representative" binary vector (a prototype) and a probability distribution modeling deviations from this prototype. Instead of encoding the raw data points, the model calculates the XOR difference between a point $x$ and its cluster representative $m$.
As shown in the figure above, the model only needs to encode the positions of the non-zero bits in the XOR result. In sparse datasets, where most bits are zero, this significantly reduces the computational overhead. The complexity of updating cluster parameters depends on the number of "active" features (non-zero bits) rather than the total dimensionality.
Optimization via Hartigan Procedure
Unlike traditional Bernoulli mixtures that use batch EM updates, SparseMix employs an on-line Hartigan optimization. Points are reassigned individually, and cluster parameters are updated immediately. This approach converges more rapidly and is less likely to be trapped in poor local minima compared to the batch-nature of EM. Furthermore, the objective function incorporates a cost for identifying each cluster, allowing the model to automatically reduce the number of clusters if they do not provide sufficient "compression profit."
Experimental Evaluation
The authors evaluated SparseMix against several benchmarks, including k-medoids, standard Bernoulli mixtures (ML), and Classification Maximum Likelihood (CML). The testing suite covered diverse domains:
- Text Mining: 20newsgroups, farm-ads, and SMS Spam.
- Bioinformatics: Splice-junction gene sequences and Klekota-Roth chemical fingerprints.
- Computer Vision: Binarized MNIST handwritten digits.
Performance and Scalability
SparseMix consistently outperformed competing models in terms of the Adjusted Rand Index (ARI). In timing benchmarks, it was orders of magnitude faster than standard R-based mixture models and matched the performance of Cluto, a high-performance C-based library.
Qualitative Success on MNIST
A key strength of SparseMix is its ability to capture the underlying structure of the data. When applied to the MNIST dataset, the resulting cluster representatives were not merely abstract centroids but clearly recognizable handwritten digits.
This qualitative result demonstrates that the MDL-based objective function successfully identifies the latent categories within the data without supervision.
Conclusion
SparseMix offers a robust solution for clustering sparse, high-dimensional binary data. By framing clustering as a compression problem and utilizing an efficient on-line optimization strategy, it provides a scalable alternative to traditional mixture models. Future work may involve extending the Hartigan-based approach to other mixture model variants currently limited by EM's slow convergence.
Summary updated