Abstract
Clustering remains a fundamental yet challenging task in machine learning, often hindered by rigid parametric assumptions or heuristic merging strategies. This paper introduces Pairwise Exemplar Clustering (PEC), a novel framework that treats clustering as a misclassification minimization problem. By combining non-parametric kernel density estimation (KDE) with an exemplar-based approach, PEC adaptively models multiscale data distributions. We propose an accelerated Markov Random Field (MRF) optimization algorithm that reduces message-passing complexity to linear time. Empirical evaluations on synthetic and real-world datasets demonstrate that PEC consistently outperforms traditional methods like K-means, Spectral Clustering, and Gaussian Mixture Models in both accuracy and cluster count estimation.
Introduction
Traditional clustering methods often struggle with complex data structures. Parametric models like Gaussian Mixture Models (GMMs) fail when data deviates from specific distributions, while non-parametric methods like Mean Shift often rely on heuristic thresholds for mode merging. Exemplar-based methods, such as Affinity Propagation, offer flexibility in determining cluster counts but lack explicit density modeling. Pairwise Exemplar Clustering (PEC) addresses these gaps by framing clustering through the lens of supervised learning, specifically minimizing a "misclassification rate" derived from kernel density estimates.
Methods
The core innovation of PEC is viewing clustering as a "misclassification minimization" problem. By treating each cluster as a distinct class, the authors derive a Pairwise Kernel Density (PKD) term that serves as an upper bound for the error of a nearest-neighbor classifier.
PEC utilizes variable bandwidth KDE to adapt to multiscale data, where clusters may vary significantly in density and spread. The objective function balances cluster separability (minimizing PKD) with compactness. A profound insight of the work is the "Supervised Link": the authors mathematically demonstrate that the widely used "kernel cut" in spectral clustering is a degraded case of their misclassification measure. By utilizing a "nearest neighbor $\delta$-cover," PEC captures significantly more information about cluster boundaries.
To ensure computational efficiency, the problem is formulated as Maximum A Posteriori (MAP) inference in a pairwise MRF. An accelerated linear-time message passing algorithm is employed, reducing the complexity from $O(N^2)$ to $O(N)$ per node. This allows the model to handle the complete graph of relationships without the typical quadratic slowdown, making it scalable to larger datasets.
Results
The performance of PEC was evaluated against K-means, Spectral Clustering (SC), and GMMs across various datasets. On synthetic multiscale data, PEC achieved superior Adjusted Rand Index (ARI) scores (0.86–0.94) and accurately identified the true number of clusters. In contrast, Affinity Propagation tended to over-segment the data, often finding 8-11 clusters when only 5 were present.
In real-world benchmarks such as the Wine and Breast Tissue datasets, PEC demonstrated a significant performance lead. As shown in the Wine dataset results, PEC maintained high ARI scores even as the number of clusters increased, showcasing its robustness compared to the performance degradation seen in K-means and GMMs. Similar trends were observed in the Breast Tissue dataset, where PEC's adaptive bandwidth allowed it to handle varying cluster densities more effectively than fixed-parameter models.
Conclusion
Pairwise Exemplar Clustering provides a robust, non-parametric framework that leverages supervised learning principles for unsupervised tasks. By utilizing exemplars as cluster anchors and optimizing a misclassification-based objective, it avoids common pitfalls like "phantom centers" and rigid distribution assumptions. While the $O(N)$ message passing is a significant advancement, future work may involve further sparsification for massive datasets and exploring the impact of diverse kernel types on the misclassification measure.
Summary updated