Large Scale Correlation Clustering Optimization

Shai Bagon, Meirav GalunarXiv 2011

Abstract

Correlation Clustering (CC) is a versatile grouping technique that avoids the need to pre-specify the number of clusters ($k$). Despite its theoretical appeal, CC is NP-hard and traditionally suffers from poor scalability. This paper reformulates CC as a discrete energy minimization problem, drawing an analogy to the Potts model. We introduce novel move-making algorithms—Expand-and-Explore and Swap-and-Explore—that scale to over 100,000 variables. Our results demonstrate that these methods not only outperform standard solvers in accuracy but also enable CC's application to massive tasks such as pixel-level image segmentation for the first time.

Introduction

A fundamental challenge in clustering is determining the optimal number of groups. While most algorithms require $k$ as an input, Correlation Clustering (CC) discovers it automatically by optimizing a balance between "attraction" (positive edges) and "repulsion" (negative edges). However, the standard Linear Programming (LP) relaxations for CC involve $O(n^2)$ variables, making them computationally prohibitive for datasets larger than a few hundred points. This work bridges the gap between the mathematical elegance of CC and the demands of large-scale computer vision.

Theoretical Framework: CC as MAP Inference

The authors provide a rigorous probabilistic justification for CC, proving it is equivalent to Maximum A-Posteriori (MAP) estimation under a specific generative model. This perspective clarifies that CC is not merely a heuristic but a principled statistical tool for model selection. By viewing the CC objective as a Potts model, the paper identifies three core challenges: non-submodularity, an unknown label set, and the absence of unary terms.

The negative log-probability of $k$ clusters, showing the inherent model selection capability of CC.

Addressing these challenges requires moving beyond standard continuous relaxations toward specialized discrete optimization. The paper proves that the CC objective function is mathematically equivalent to a Potts model but with specific complexities that necessitate new algorithmic approaches.

Algorithmic Innovations

To solve the large-scale Potts formulation, the authors adapt classic move-making algorithms:

  • Expand-and-Explore & Swap-and-Explore: These extend $\alpha$-expansion and $\alpha\beta$-swap by incorporating QPBOI (Quick Patch Based Optimization with Improvement) to handle non-submodular edges. A critical addition is the "Explore" step, which allows the algorithm to propose entirely new clusters dynamically during optimization.
  • Adaptive-label ICM: A greedy, point-wise search that adaptively adjusts the number of labels based on local edge weights, offering high speed for dense affinity matrices.

Experimental Evaluation

The proposed algorithms were evaluated across synthetic and real-world datasets, including face identification and pixel-level image segmentation.

Synthetic Data and $k$ Recovery

On synthetic datasets with 750 variables, the move-making algorithms significantly outperformed standard solvers like TRW-S and Belief Propagation. A key finding was the robustness of the "Explore" moves in recovering the ground-truth number of clusters even under varying levels of noise and sparsity.

Recovered number of clusters $k$ compared to ground truth (dashed line) across different sparsity levels.

Large-Scale Applications

The scalability of the discrete approach allowed for two major breakthroughs:

  1. Unsupervised Face Identification: Successfully identifying the number of unique individuals in the PUT Face Dataset (nearly 10,000 images).
  2. Interactive Image Segmentation: Applying CC at the pixel level (>100,000 variables) for boundary-based segmentation, where the algorithm automatically determines the number of objects separated by user-drawn strokes.

Conclusion

By shifting the focus from continuous relaxation to discrete move-making, this work unlocks the potential of Correlation Clustering for large-scale problems. The "Explore" mechanism effectively solves the model selection problem, while the use of QPBOI handles the inherent non-submodularity of repulsion links. Future work may involve extending this framework to incorporate higher-order features, further enhancing the descriptive power of CC in complex vision tasks.

Summary updated

BibTeX
@misc{bagon2011large,
  author = {Shai Bagon and Meirav Galun},
  title = {{Large Scale Correlation Clustering Optimization}},
  year = {2011},
  eprint = {1112.2903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1112.2903},
}
Figure