Shift of Pairwise Similarities for Data Clustering

Morteza Haghir Chehreghani

Abstract

Standard graph-based clustering methods often produce "singleton" clusters by isolating outliers rather than finding meaningful, balanced partitions. We present Shifted Min Cut (SMC), a novel objective that incorporates a cluster-size penalty equivalent to shifting pairwise similarities into the negative range. This approach balances partitions and is optimized via an efficient local search algorithm with $O(n)$ update complexity. Our results demonstrate that SMC significantly outperforms traditional spectral and density-based methods on diverse benchmarks, including UCI datasets and large-scale document collections.

The Singleton Problem in Graph Clustering

In graph-based clustering, the classic "Min Cut" objective aims to partition data so that the sum of edge weights (similarities) between different groups is minimized. However, Min Cut has a notorious "singleton" bias: it often prefers to peel off a single outlier because the cost of cutting one or two edges is almost always lower than splitting a large, dense group in half.

Illustration of the singleton bias in standard Min Cut versus a balanced 'better cut'.

To address this, researchers typically use "Ratio Cut" or "Normalized Cut," which divide the cost by cluster size or degree. While effective, these division-based regularizations are often difficult to optimize. Shifted Min Cut (SMC) asks a different question: What if we add a penalty for unbalanced sizes instead of dividing by them?

Methods: The "Shift" Insight

The core mathematical contribution of this work is proving that adding a size penalty—specifically the sum of squared cluster sizes—is equivalent to subtracting a constant $\alpha$ from every pairwise similarity $X_{ij}$.

  1. Constant Shift: Subtracting a fixed value $\alpha$ from all similarities. If $\alpha$ is large enough, some similarities become negative, meaning the algorithm is actively penalized for putting those items in the same cluster. This transforms the problem into a form equivalent to Correlation Clustering.
  2. Adaptive Shift: Since different parts of a dataset have different densities, a single $\alpha$ might not work everywhere. We introduce an adaptive shift that "centers" the similarity matrix so that the sum of every row and column is zero, removing the need for manual hyperparameter tuning.

Optimization and Complexity

Finding the global optimum for this type of problem is NP-hard. We develop a local search algorithm that iteratively moves objects to the cluster that most reduces the cost. By using a clever update rule, we reduce the complexity of evaluating a move from $O(Kn^2)$ to $O(n)$, making the total runtime $O(tn^2)$ (where $t$ is the number of iterations). This local search enjoys a theoretical convergence rate of $O(1/t)$, which is significantly faster than the $O(1/\sqrt{t})$ rate typical for non-convex objectives like Normalized Cut.

Empirical Evaluation

The method was evaluated against seven competitors, including Spectral Clustering (SC), Dominant Set Clustering (DSC), and Power Iteration Clustering (PIC), across 12 UCI datasets and two real-world document datasets.

  • Superior Accuracy: SMC yielded the best results in the majority of cases across three metrics: Adjusted Mutual Information (AMI), Adjusted Rand Score, and V-measure.
  • Perfect Scores: On the "Cloud" dataset, SMC achieved a perfect 1.0000 AMI, significantly outperforming traditional K-means (0.3056) and Spectral Clustering (0.8406).
  • Document Clustering: On the challenging DS1 dataset (56 clusters), SMC achieved a V-measure of 0.8107, while the next best competitor (GMM) trailed at 0.7996.

Conclusion

Shifted Min Cut provides a principled, efficient solution to the balancing problem in graph clustering. By reframing size regularization as a similarity shift, we bridge the gap between Min Cut and Correlation Clustering, offering a robust tool for high-dimensional data partitioning that avoids the pitfalls of singleton bias.

Summary updated

BibTeX
@article{chehreghani2023shift,
  author = {Morteza Haghir Chehreghani},
  title = {{Shift of Pairwise Similarities for Data Clustering}},
  journal = {Machine Learning},
  year = {2023},
  doi = {10.1007/s10994-022-06189-6},
}
Figure