Introduction
Q-Clustering introduces a unified algorithmic framework for solving two traditionally distinct clustering problems: distance-based "single-linkage" and model-based "Minimum Description Length" (MDL). By leveraging Queyranne’s algorithm—originally designed for minimizing symmetric submodular functions—the authors provide a way to find mathematically optimal 2-way partitions in polynomial time, outperforming popular heuristics like K-means and spectral clustering.
The Clustering Divide
Clustering is a fundamental task in unsupervised learning, yet it remains notoriously difficult. Most desirable clustering measures result in NP-complete problems, forcing researchers to rely on heuristics that often get stuck in local optima.
Historically, there has been a gap between two major clustering philosophies:
- Discriminative (Distance-based): Approaches like single-linkage clustering try to maximize the physical "gap" or distance between clusters.
- Generative (Model-based): Approaches like MDL try to find clusters that can be compressed most efficiently given a probabilistic model.
Usually, these require entirely different mathematical foundations. This paper asks a unifying question: Is there a single, efficient algorithm that can find the optimal solution for both paradigms?
Methods: Queyranne’s Algorithm
The core engine of Q-Clustering is Queyranne’s algorithm, a polynomial-time tool used to minimize symmetric submodular functions.
- Submodularity is a property of set functions often described as the "law of diminishing returns."
- Symmetry means the cost of a set $A$ is the same as the cost of its complement $S \setminus A$.
The authors prove two major equivalencies:
- For MDL: Minimizing the description length of a 2-way split is mathematically equivalent to minimizing Mutual Information, which is a symmetric submodular function.
- For Single-Linkage: While the distance function isn't strictly submodular, it belongs to a broader class of "monotone and consistent" functions that Queyranne’s algorithm can still solve optimally.
For splits into more than two clusters ($k > 2$), the authors use dynamic programming for the distance-based approach and a "Gomory-Hu tree" approach for MDL, providing a guaranteed 2-factor approximation of the optimal solution.
Key Insights
- The Unified Theory of Clustering: The most striking insight is that seemingly unrelated objectives (maximizing a physical gap vs. maximizing information compression) share the same underlying mathematical structure.
- Optimality for MDL: Before this paper, there wasn't a tractable way to find the guaranteed optimal 2-cluster split for the MDL criterion. Q-Clustering provides this.
- Robustness via "n-tuples": Standard single-linkage is famously sensitive to noise, where a single outlier "bridge" can merge two distinct clusters. The authors propose a "Robust Max-Separation" variant that looks at the $n$ smallest distances rather than just the absolute minimum, effectively ignoring a user-defined amount of noise.
Datasets and Results
The authors evaluated Q-Clustering on two distinct types of data: image clustering and genomic haplotype tagging.
Image Clustering
The algorithm was tested on sets of handwritten digits and human faces, clustering images by identity using Euclidean distance between pixels. Q-Clustering demonstrated superior accuracy compared to standard baselines. On the digit dataset, it achieved a 1.4% error rate, significantly beating Max-Margin clustering (3%), Spectral Clustering (6%), and K-means (7%). On the face dataset, Q-Clustering achieved a perfect 0% error rate.
Genomic Data
The second evaluation involved a dataset of Single Nucleotide Polymorphisms (SNPs) in the ACE gene. The goal was "haplotype tagging"—identifying the minimum number of SNPs needed to represent the genetic variation of the group. Q-Clustering identified a set of just 3 SNPs to represent the gene, whereas other state-of-the-art methods required between 5 and 15 SNPs to achieve the same predictive power.
Limitations and Future Work
- Outlier Sensitivity: Even with the "robust" version, the algorithm requires the user to manually tune the noise tolerance parameter ($n$), which can be tricky in practice.
- Scaling to $k > 2$: While the 2-cluster split is optimal for MDL, the extension to $k$ clusters is only an approximation. Proving a stronger optimality for $k > 2$ in the MDL case remains an open challenge.
- Computational Cost: While polynomial, Queyranne’s algorithm runs in $O(|S|^3)$ time. For massive datasets, this may still be slower than simple heuristics like K-means, though it remains highly valuable for optimizing application-specific criteria where no other efficient algorithms exist.
Summary updated