Abstract
Correlation Clustering (CC) is a fundamental problem in unsupervised learning, aiming to partition nodes based on pairwise similarity and dissimilarity. While standard CC has well-established approximation algorithms, the addition of hard constraints—specifically "must-link" (friendly) and "cannot-link" (hostile) requirements—introduces significant computational complexity. Historically, researchers faced a trade-off between a high-accuracy 3-approximation requiring $\Omega(n^{7.11})$ time and a faster $O(n^3)$ heuristic with a much poorer 16-approximation factor. This paper presents a novel algorithm that achieves a $(3 + \epsilon)$-approximation in near-cubic time ($O(\tilde{n}^3)$), effectively bridging this gap and settling a major open question in the field.
Introduction
Correlation Clustering is a classic problem where, given a graph with edges labeled as "positive" (similar) or "negative" (dissimilar), the goal is to find a partition that minimizes the number of disagreements (positive edges between clusters and negative edges within clusters). In many real-world applications, such as entity resolution or image segmentation, domain knowledge imposes hard constraints:
- Friendly constraints: Pairs that must reside in the same cluster.
- Hostile constraints: Pairs that must reside in different clusters.
This variant, known as Constrained Correlation Clustering (ConstrainedCC), is significantly more challenging. Prior to this work, achieving the "gold standard" 3-approximation required solving a massive Linear Program (LP) with a prohibitive runtime, making it impractical for large-scale datasets. This paper introduces a streamlined approach to achieve near-optimal approximation within a practical cubic time complexity.
Methodology
The proposed algorithm achieves its efficiency through a combination of a specialized Linear Programming relaxation and a robust rounding technique.
1. The Covering LP and HEAP Constraints
Instead of utilizing the standard "Canonical LP," which is computationally expensive, the author introduces a "Covering LP" restricted to $O(n^3)$ constraints. The critical innovation is the Hostile Edge And Positives (HEAP) constraints. These constraints identify specific edge triplets where a mistake is mathematically inevitable if hard constraints are to be respected. By incorporating HEAP constraints, the LP solver is forced to account for these unavoidable costs early in the optimization process.
2. Auxiliary Graph Construction and Pivot-Safety
Once the LP is solved—which can be done rapidly using combinatorial solvers—the algorithm constructs an auxiliary graph $\hat{G}$. The signs of edges in $\hat{G}$ are determined by thresholds derived from the LP variables. The paper introduces the concept of a "pivot-safe" graph, ensuring that the subsequent rounding step cannot violate any hard constraints.
3. The Pivot Algorithm
The final clustering is generated using the Pivot algorithm, a simple yet effective heuristic. The algorithm selects a random node as a "pivot" and clusters it with all its positive neighbors in the modified auxiliary graph $\hat{G}$. Because $\hat{G}$ is constructed to be pivot-safe, the resulting partition is guaranteed to satisfy all friendly and hostile constraints.
4. Simplified One-Sided Constraints
For instances involving only one type of constraint, the paper offers even more efficient solutions. Notably, for "Hostile-only" constraints, the author demonstrates that a 3-approximation can be achieved without solving an LP at all. This is done by identifying and "flipping" edges in "dangerous triangles" where a hostile constraint would otherwise be violated.
Key Results and Insights
- Optimal Approximation vs. Runtime: The algorithm provides a $(3 + \epsilon)$-approximation, matching the best-known theoretical factor for ConstrainedCC while operating in $O(\tilde{n}^3 \epsilon^{-3})$ time. This is a massive improvement over the previous $\Omega(n^{7.11})$ requirement.
- Combinatorial Efficiency: Because the new LP is formulated as a covering problem, it avoids the need for heavy-duty interior-point methods. It can be solved using fast combinatorial approximation algorithms that scale significantly better.
- Theoretical Contribution: The work directly answers a challenge posed in recent literature (Fischer et al., 2025), proving that the approximation factor for ConstrainedCC can be reduced from 16 to 3 without sacrificing cubic runtime.
Limitations and Future Directions
While the algorithm represents a significant leap forward, some challenges remain. The runtime's dependency on $\epsilon^{-3}$ means that as $\epsilon$ approaches zero (to reach a pure 3-approximation), the computational constant grows. Additionally, while $O(n^3)$ is theoretically fast, it remains demanding for web-scale graphs with millions of nodes.
Future research may explore whether the HEAP constraints are strictly necessary or if a different rounding strategy could achieve similar results. Furthermore, while the "Hostile-only" case is now LP-free, finding a purely combinatorial 3-approximation for the general ConstrainedCC problem (including friendly constraints) remains an open and enticing target for the community.
Summary updated