Efficient mixture model for clustering of sparse high dimensional binary data

Marek Smieja, Krzysztof Hajto, Jacek Tabor · DOI

Introduction

In domains such as text mining and cheminformatics, data is frequently represented as high-dimensional binary vectors. These vectors are typically "sparse," meaning the vast majority of features are zero. Traditional clustering techniques, such as $k$-means or standard Expectation-Maximization (EM) mixture models, often falter in these environments. They suffer from the "curse of dimensionality," where distance metrics become less discriminative, and they incur prohibitive computational costs when scaling to hundreds of thousands of features.

To address these challenges, we present SparseMix, a novel mixture model specifically engineered for sparse binary data. SparseMix bridges the gap between centroid-based and model-based clustering by framing the problem through the lens of data compression.

Methodology

Clustering as Compression

SparseMix is grounded in the principle of Minimum Description Length (MDL). It treats a cluster as a group of data points that can be efficiently compressed together. Each cluster is defined by a representative prototype vector ($m$) and a probability distribution ($Q$) that models the dispersion of points from that prototype.

Encoding a data point x relative to a cluster representative m using XOR and position coding.

As illustrated above, the model calculates the XOR between a data point $x$ and the cluster representative $m$. By only encoding the positions where $x$ and $m$ differ, the algorithm achieves significant compression. This approach ensures that the model focuses on the "ones" (non-zero bits), resulting in linear computational complexity relative to the number of non-zero entries rather than the total dimensionality.

On-line Optimization

Unlike traditional mixture models that rely on batch EM algorithms, SparseMix utilizes a modified Hartigan optimization algorithm. This on-line approach updates cluster parameters incrementally as individual points move between clusters. This method converges faster and is significantly more robust against the local minima that often trap batch EM processes.

Automatic Cluster Reduction

The model incorporates a trade-off parameter ($\beta$) that penalizes the complexity of maintaining additional clusters. This allows SparseMix to automatically merge or delete redundant clusters during optimization, effectively discovering the natural number of groups within the dataset.

Results and Discussion

Performance and Scalability

SparseMix was evaluated across 11 diverse datasets, including text (Reuters, 20newsgroups), cheminformatics (5-HT1A ligands), and image processing (MNIST). Key findings include:

  • Accuracy: SparseMix achieved significantly higher Adjusted Rand Index (ARI) scores on datasets like 7newsgroups and Farm-ads compared to standard Bernoulli mixture models.
  • Scalability: The algorithm successfully processed datasets with up to 187,000 dimensions (e.g., Reuters), where many traditional algorithms failed to execute.
  • Speed: Performance was comparable to highly optimized industry tools like Cluto and orders of magnitude faster than standard R-based implementations.

Interpretability

On the MNIST handwritten digits dataset, SparseMix demonstrated high interpretability. The cluster representatives learned by the model clearly resembled the underlying digit structures they were meant to represent.

Cluster representatives learned from the MNIST dataset, showing clear digit structures.

Conclusion

SparseMix offers a powerful, scalable solution for clustering high-dimensional sparse binary data. By treating clustering as a compression task and employing on-line optimization, it provides a superior balance of accuracy, speed, and interpretability. Future work will focus on refining the selection of the $\beta$ parameter and further low-level code optimizations to enhance performance in massive-scale applications.

Summary updated

BibTeX
@article{smieja2019efficient,
  author = {Marek Smieja and Krzysztof Hajto and Jacek Tabor},
  title = {{Efficient mixture model for clustering of sparse high dimensional binary data}},
  journal = {Data Min. Knowl. Discov.},
  year = {2019},
  doi = {10.1007/s10618-019-00635-1},
}
Figure