Manuscript Offprint
arXiv:2611.04784Optimal Approximation for Constrained Correlation Clustering via Repulsion
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
The best known approximation factor for constrained correlation clustering stood at three for nearly two decades, until a recent improvement to below 16/7. We give a randomized polynomial-time -approximation using Repulsion, a recursive operation that separates a metric ball from its complement. Repulsion naturally respects hard constraints and admits a short potential-based analysis; as a warm-up, radius-2/3 Repulsion rounds the standard metric LP into a feasible partition of cost at most three times its objective.
The -approximation takes a two-stage approach, first removing must-links with arbitrarily small loss in the approximation ratio. The second stage combines lossless, constraint-aware preclustering with the bounded sub-cluster LP framework of Cao, Cohen-Addad, Lee, Li, Newman, and Vogl (STOC 2024). Repeated positive conditioning and sampling produce candidate sets, which radius-one Repulsion partitions into feasible clusters at controlled cost.
We also give an approximation-preserving reduction from vertex cover to cluster deletion, a special case with only cannot-links. Apart from establishing a matching factor-two hardness threshold under the Unique Games Conjecture, it motivates our two-stage approach and Repulsion.
Contents
| 1 Introduction | 1 | 5 Bounded sub-cluster LP and sampling | 22 |
|---|---|---|---|
| 2 Overview of techniques and main ideas | 4 | 5.1 LP properties and conditioning | 22 |
| 2.1 Repulsion and the role of hard constraints | 4 | 5.2 Sampling error | 26 |
| 2.2 Replacing must-links with true twins | 5 | 6 Repulsion and the expected cost | 29 |
| 2.3 Preclustering guarantee | 6 | 6.1 Partitioning a candidate by Repulsion | 30 |
| 2.4 The LP and its information | 8 | 6.2 Constructing and analyzing the partition | 31 |
| 2.5 Sampling with seeds | 10 | 6.3 Proof of the main theorem | 33 |
| 2.6 Final Repulsion and cost | 11 | 7 Hardness of approximation | 35 |
| 3 Reduction to cannot-links only | 13 | 8 Concluding remarks | 38 |
| 3.1 True-twin replacement | 13 | A Radius-2/3 Repulsion | 41 |
| 3.2 Reduction to unweighted instances | 15 | B Probability-weighted expansion | 43 |
| 4 Constraint-aware preclustering | 16 | ||
| 4.1 Atoms and 2-expansion | 17 |
*Department of Computing, Hong Kong Polytechnic University, Hong Kong, China. yixin.cao@polyu.edu.hk, ying-sophia-comp.xu@connect.polyu.hk.
i
Equivalently, represent the instance by the unsigned graph , with negative pairs represented by nonedges. The problem then asks for a minimum number of edge additions and deletions that turn this graph into a disjoint union of cliques; this is also known as the cluster editing problem.
Constrained correlation clustering additionally specifies must-link pairs and cannot-link pairs . An instance is written , and a partition is feasible if every pair in lies within a cluster and every pair in lies between clusters. The objective remains . Must-links and cannot-links are also called friendly and hostile pairs, respectively.
Van Zuylen and Williamson [27] gave a 3-approximation for this problem. Azizeddin et al. [4] obtained a randomized approximation with expected ratio below 16/7, using the Sherali-Adams relaxation of the standard metric linear program (LP). We improve the ratio arbitrarily close to two.
Theorem 1.1. For every fixed , there is a randomized algorithm that, on every feasible constrained correlation clustering instance with vertices, outputs in time a feasible partition of expected cost at most OPT.
We show a matching lower bound, assuming the Unique Games Conjecture (UGC).
Theorem 1.2. Let be a fixed constant. It is NP-hard to approximate constrained correlation clustering within a factor of . Assuming the UGC, it is NP-hard to approximate constrained correlation clustering within a factor of .
Our techniques Theorem 1.2 applies to a special case with and . Equivalently, the cluster deletion problem asks to delete the minimum number of edges to make the unsigned graph a disjoint union of cliques. It is well known that an optimal cluster deletion solution does not need to preserve a maximum clique of the input graph, though greedily picking a largest clique of the remaining graph leads to a 2-approximation [16]. (This procedure is not polynomial-time in general, since finding a maximum clique is NP-hard.) For example, let be a graph whose vertex set can be partitioned into two cliques, and , and suppose that the only edges between and are . Then is the unique maximum clique of , of size 6. Nevertheless, the unique optimal cluster deletion solution deletes all nine edges between and , thereby splitting this maximum clique.
The key observation behind our reduction is that this behavior changes after adding sufficiently many universal vertices. If we extend a graph by adding a large number of universal vertices, then every optimal cluster deletion solution in the resulting graph must place these universal vertices together with a maximum clique of the original graph. Thus, from an optimal cluster deletion solution of the extended graph, one can recover a maximum clique of the original graph. This gives
The hardness results were obtained independently by Azizeddin et al. [4] and by Adriaens [1]. A recent preprint [23] proposes a proof of the UGC. If confirmed, it would make the factor-two NP-hardness unconditional.
a reduction from the clique problem, or equivalently from vertex cover in the complement graph, to cluster deletion; Figure 1 illustrates the construction. For sufficiently large , the deletion cost closely tracks the cover size, allowing approximation guarantees to be transferred.

(a) .

(b) : join to .

(c) Repulsion: , then
Figure 1: The vertex cover reduction and Repulsion: (a) the graph ; (b) the constructed graph ; (c) the clusters produced by Repulsion. Dashed edges are cut, and stays intact throughout.
Theorem 1.3. Let be a constant. If there exists an -time -approximation algorithm for cluster deletion on -vertex graphs, then there exists an -time -approximation algorithm for vertex cover on -vertex graphs, where is a constant depending only on .
Theorem 1.2 follows from Theorem 1.3 and the vertex cover hardness results [21, 20].
This reduction suggests two algorithmic ideas. First, because cannot-links alone suffice for factor-two hardness, we ask whether must-links introduce an additional approximation loss. We show that they do not, up to arbitrarily small slack. Second, the connection with vertex cover suggests Repulsion, a recursive separation operation that naturally respects hard constraints. Combining these ideas with preclustering, the bounded sub-cluster LP, and sampling yields our algorithm.
Removing must-links. In an unsigned graph, two vertices are true twins if they are adjacent and have the same closed neighborhoods. It is well known that every optimal solution to cluster editing or cluster deletion keeps true twins together. We extend this preservation property to arbitrary pair costs with hard constraints. The formal version is Theorem 2.1 in Section 2.2.
Theorem 1.4 (True-twin preservation, informal). Two vertices with identical external costs and hard constraints are kept together in every optimal feasible partition, provided they are not a cannot-link pair and separating them costs strictly more than keeping them together. Moreover, every optimal solution of the metric LP and of the cluster LP assigns distance zero to the pair.
A recurring idea in our proofs is to identify, or create, groups of vertices that can be gathered into one cluster without increasing cost. In particular, Theorem 1.4 allows us to remove must-links by turning their components into classes of weighted true twins. This produces a probability-weighted instance [6]. A constraint-preserving adaptation of the random expansion of Chawla et al. [13] then restores unweighted costs with arbitrarily small approximation loss. The main algorithm can therefore focus on unweighted instances with only cannot-links.
When the input has no cannot-links, the expanded instance is ordinary correlation clustering. Thus every approximation guarantee for ordinary correlation clustering transfers to must-link-only constrained correlation clustering up to arbitrary slack.
Theorem 1.5. For every fixed , there is a randomized polynomial-time -approximation algorithm for constrained correlation clustering with must-link constraints only.
Theorem 1.5 combines our reduction with the -approximation of García-Soriano and Schohn [18]. It highlights a sharp dichotomy: must-links alone permit approximations below , whereas cannot-links immediately trigger the factor-two hardness barrier. This transfer also has a potential use in hardness reductions for correlation clustering: one may introduce must-links to simplify gadgets and then remove them without a constant-factor approximation loss.
Repulsion. Table 1 in Section 7 compares cluster-deletion methods with their vertex cover interpretations. Although our reduction transfers approximation algorithms for cluster deletion to vertex cover, it also suggests how to translate an operation in the other direction. Veldt [29] showed that the complement of a random greedy maximal independent set is a 2-approximate vertex cover in expectation. In Figure 1a, the greedy procedure selects and removes , then selects and removes . It finds the independent set and the vertex cover .
Simulating this process on our constructed graph , we select a vertex and separate its remaining neighbors in , which are its non-neighbors in . Then remains with . Repeating this choice in the block containing finally leads to a clique of , i.e., an independent set in . In Figure 1c, processing separates from , and processing in the remaining block separates . The resulting clusters are , , and . To solve cluster deletion, we may still need to repeat the operations on other blocks that are not yet cliques. This leads to a linear-time randomized 2-approximation.
We call this clustering strategy Repulsion, in contrast to Attraction, which selects a block, finalizes it as a cluster, and continues on the remaining vertices. Like Quicksort, Repulsion recursively processes both sides of each split; neither side is immediately finalized as a cluster. In the cluster deletion example, the chosen block is the closed neighborhood of a vertex in the remaining graph. More generally, we use strict balls in a feasible metric. Repulsion is well suited to hard constraints: in a feasible metric, must-link endpoints have distance zero and hence identical distances to every center, so no metric-ball split separates them; terminating only when all pair distances in a block are less than one excludes every cannot-link. In contrast, Attraction (Pivoting or CKR partitioning) with a ball radius greater than requires additional care to avoid placing cannot-link endpoints in the same cluster [11, 13, 1].
Repulsion on the metric LP gives a 3-approximation, matching van Zuylen and Williamson [27].
Theorem 1.6. Given any feasible solution of the standard metric LP for a constrained correlation clustering instance, randomized radius-2/3 Repulsion constructs a feasible partition in polynomial time with expected cost at most three times the objective value of . The algorithm can be derandomized with the same guarantee.
Related work. Preclustering identifies atoms to be kept whole during rounding and is central to recent correlation clustering algorithms [14, 9, 8]. Lossless preservation of dense sets also appears in parameterized algorithms [10, 7]. Earlier approximations combine atom preservation with restrictions on co-clustering pairs [14, 9]; ours accommodates cannot-links while preserving every optimum.
Cao et al. [9] introduced the cluster LP and constructed solutions of cost at most OPT in polynomial time for fixed accuracy. Kalavas et al. [19] showed that a sufficiently accurate constrained cluster-LP solution would yield a better-than-two approximation. Assuming the UGC and NP BPP, our hardness result therefore rules out a direct extension with the same guarantee. In particular, the sublinear-time solver of Cao et al. [8] does not directly solve our constrained relaxation. We instead round the bounded sub-cluster LP directly.
Our sampling procedure adapts the size-and-pivot framework of Cao et al. [9, Section 4.2]. Lee et al. [22, Section 4.3] extended size-and-pivot sampling to chromatic correlation clustering, and
Fan et al. [17, Section 5] extended it to pseudometric-weighted correlation clustering.
All known hardness results are through correlation clustering and cluster deletion. Shamir et al. [25] proved NP-hardness of approximation for cluster deletion within some constant greater than one. Dessmark et al. [16] gave the explicit threshold 881/880; see also [2]. Cao et al. [9] ruled out randomized -approximation for correlation clustering assuming NP BPP.
General weighted correlation clustering is approximation-equivalent, up to constant factors, to multicut [15]. Assuming the UGC, it is NP-hard to approximate either problem within any constant factor [12]. Large penalties can encode hard constraints on feasible instances, but not on infeasible ones. Arbitrary two-weight instances, however, already capture general weighted correlation clustering when the ratio between the two weights is unbounded; see Section 8. Probability weights instead require separation and co-clustering costs to sum to one on each pair [6, 3]. Chawla et al. [13] reduced this case to unweighted correlation clustering with arbitrarily small approximation loss. We adapt their expansion to preserve cannot-links.
2 Overview of techniques and main ideas
This section presents the algorithmic framework and the main ideas behind the proof of Theorem 1.1. The framework builds on Cao et al. [9]. We use their bounded sub-cluster LP and adapt their size-and-pivot sampling framework. Our contributions are the treatment of hard constraints around this framework and the analysis that makes it work: must-links can be removed without a constant-factor loss; constraint-aware preclustering identifies indivisible atoms; sampling by positive conditioning produces candidates; and Repulsion partitions those candidates to respect cannot-links. A summary of the algorithm is given at the end of this section (Figure 6). Detailed proofs appear in Sections 3–6 and the appendices.
Throughout this section, we assume that the input is feasible. Infeasibility can be easily checked.
2.1 Repulsion and the role of hard constraints
Given a feasible metric x, Repulsion chooses a center v in the current set S, separates the strict ball
from its complement, and recurses on both parts. Output a block as a cluster when all its pair distances are less than . Otherwise, choose a proper ball and split the block. After the split, the chosen center v is at distance less than from every vertex on its side. This remains true in every later block containing v, so it cannot define another proper ball. Each split creates two nonempty parts, and there are at most splits.
Let . For distinct vertices , the variable represents separation. Set by convention. An integral partition assigns zero to pairs within a cluster and one to pairs between clusters. The standard metric LP minimizes fractional disagreement cost:

(a) The input and optimal metric.

(b) First Repulsion at .

(c) Second Repulsion at .
Figure 2: Radius-2/3 Repulsion on a nine-vertex graph: it is obtained from with each of replaced by a pair of true twins. All nonedges (negative) are cannot-links and have LP distance 1. In the unique optimal metric LP solution, green twin edges have distance 0, thick black edges have distance 1/3, and thin gray edges have distance 2/3. The first split separates from the other vertices. Within the latter block, the second split separates from . Dashed edges are cut. These last two blocks are terminal; still requires one further split.
Figure 2 illustrates the Repulsion behind Theorem 1.6, using an optimal solution of the metric LP.
Repulsion inherently respects the hard constraints. The triangle inequalities imply that vertices at distance zero have identical distances to every other vertex. If is a must-link pair, then and hence for all . Consequently, a metric ball contains either both and or neither, and no split separates them. A block whose pair distances are all less than one contains no cannot-link. These feasibility properties hold for every radius .
For and disjoint sets , define
We use , so this notation also applies when .
Why radius 2/3 gives factor three. Call a pair short if . Assign potential to short positive pairs, 1 to short negative or non-short positive pairs, and 0 otherwise. The total is at most . Sum over centers the cut cost plus the change in potential. In the graph of short pairs, the contributions group into induced paths , each contributing at most
since . Balls equal to the current set contribute zero, so a uniform proper center has nonpositive expected excess; choosing a minimum-excess center gives a deterministic version. Terminal disagreement costs are covered by their potentials, yielding the factor three (Appendix A).
2.2 Removing must-links without a constant-factor loss
A must-link component must stay together. As Azizeddin et al. [4] observed, contracting it nevertheless creates a weighted instance outside the unweighted problem setting. We keep the vertex set intact and make each must-link component a class of true twins.
Here is the formal version of Theorem 1.4. It is the only statement in the whole paper that allows arbitrary pair costs. Let and denote the costs of separating and co-clustering u, v, respectively. Only the differences between and affect the choice of a partition: subtracting the smaller one from both costs of each pair changes every partition cost by the same constant.
Theorem 2.1. Consider a feasible instance with costs . Every optimal feasible partition places distinct vertices together if , , and for every :
Moreover, every optimal solution of the metric LP and of the cluster LP has .
Our reductions use probability weights only. We turn each must-link component into a set of true twins, assign unit weight to all its pairs, and replace its internal negative labels with positive labels. If there is a cannot-link between two components, propagate it to all pairs between them and give these pairs separation cost zero. For two compatible components , assign the separation cost of every pair between and to be , the fraction of positive pairs between them. This averaging maintains the total cost of separating and . Record the disagreement costs forced by the original constraints as a fixed additive cost. Figure 3 illustrates both transformations. Theorem 2.1 ensures that every optimal partition preserves each must-link component, even after the explicit must-link constraints are removed.

(a) Unweighted, .

(b) Probability-weighted.
Figure 3: Removing must-links by replacing the must-link component with a class of true twins. In (a), solid edges are positive, the pairs marked are must-links. All other pairs are negative, including the cannot-link . In (b), green pairs have separation cost 1, black pairs have separation cost , and the gray pair has separation cost 0. Red dotted pairs have separation cost 0 and are cannot-links. The cannot-link is propagated to all pairs between and , and the forced positive pair is relabeled negative. The cost difference between the two instances is 2: the negative pair inside the must-link component and the positive pair .
The resulting costs have the probability-weighted form: separation costs and co-clustering costs . For correlation clustering, Chawla et al. [13, Section 6, Theorem 20] reduced probability-weighted instances to the unweighted case with arbitrarily small loss in the approximation ratio. Their random expansion also works for the constrained problem, preserving cannot-links by imposing them on all pairs between the corresponding groups of copies. The two transformations remove must-links and keep the instance unweighted.
Theorem 2.2 (Removing must-links). Fix and . A polynomial-time algorithm with expected approximation factor for constrained correlation clustering with only cannot-links gives a randomized polynomial-time -approximation for general constrained correlation clustering.
We henceforth describe the algorithm on feasible unweighted instances with no must-links.
2.3 Preclustering: what can safely stay together?
Ideally, we would identify all inclusion-wise maximal sets whose vertices are kept together in every optimal partition. Finding all these sets is computationally hard: even deciding whether two specified vertices are together in every optimal partition is coNP-hard (Section 8).
We therefore drop the maximality requirement and seek nontrivial sets, called atoms, that every optimal feasible partition keeps together. Without a further requirement, one maximal set could contain several atoms. To avoid this, we also require that every optimal partition places distinct atoms in different clusters. Thus a maximal set may contain one atom together with other vertices, but cannot contain two atoms. We do not require every maximal set to contain a selected atom.
Intuitively, atoms have strong internal and weak external connectivity. These properties suggest finding atoms inside the clusters of a constant-factor approximate partition: splitting a dense set or mixing it extensively with outsiders incurs disagreement cost. Adapting the trimming construction of Cao et al. [9], we mark all vertices free in clusters with large total incident disagreement, and trim vertices with large individual incident disagreement from the remaining clusters.
The additional obstacle is to handle cannot-links in the preservation proof. To prove that a candidate is an atom, we assume that an optimal feasible partition splits it and seek a cheaper feasible partition that keeps it together. The exchange gathers its pieces into one cluster, as in the true-twin argument. An outside vertex already in that cluster may have a cannot-link to the candidate and must then be expelled, even if it has many positive neighbors there. We trim the candidate further so that the saving from gathering its pieces covers the cost of these expulsions.
We use a matching-based certificate to bound the cost of these expulsions: every outsider that could obstruct the exchange receives two distinct cannot-link witnesses inside the retained set, with no witness reused. The additional vertices marked free to obtain this certificate are included in the degree charging argument. We use the following form of the 2-expansion lemma [26].
Lemma 2.3 (2-expansion). Given a bipartite graph with parts , one can find in polynomial time sets , , and an edge set between them such that
Every vertex of is incident to exactly two edges of , and every vertex of is incident to at most one. The sets may be empty, and contains every isolated vertex of .
An atom contains at least two vertices. A vertex not belonging to any selected atom is free. A unit is an atom or a singleton consisting of a free vertex. Let be the family of units and the unit containing . Two distinct units are compatible if no cannot-link joins them.
Earlier preclustering frameworks further restricted which pairs could share a cluster: the vertices had to have comparable positive degrees and sufficiently many common positive neighbors. They then modified an optimal partition, allowing a small cost increase, to ensure that it respected these restrictions [14, 9]. Our construction uses a simpler rule: every compatible pair between distinct units with a free endpoint remains allowed. Our sampling analysis needs a bound on the total positive degree of the free vertices, rather than on the number of allowed pairs. We therefore avoid the additional restrictions and preserve every optimum throughout preclustering.
For a vertex set , write for the disagreements incident to . Figure 4 gives the algorithm. The construction also bounds the total positive degree of free vertices.
Theorem 2.4. Let be an instance with only cannot-links. There is an absolute constant and a polynomial-time preclustering algorithm that constructs units and a residual instance on the same vertex set. The following properties hold.
(i) No cannot-link lies within a unit. Between distinct units , either every pair is a cannot-link or none is. Every compatible pair of distinct units has a free endpoint.
(ii) Every optimal partition of the residual instance preserves each atom, and distinct atoms lie in different optimal clusters.
- use the deterministic version of Theorem 1.6 to obtain ;
- for each cluster do 2.1. if or then mark every vertex of free and continue to the next cluster; 2.2. ; 2.3. ; 2.4. form the bipartite cannot-link graph between and ; 2.5. find , and as in Lemma 2.3; 2.6. add as an atom, and mark every vertex of free;
- form the units from the atoms and singleton free vertices;
- add cannot-links between distinct atoms and propagate cannot-links between units;
- normalize: record and remove the fixed cost of positive cannot-link pairs;
Figure 4: The preclustering procedure.
(iii) and .
Every optimal partition of remains feasible for and preserves the units. Every feasible unit-preserving partition of is feasible for and satisfies
Why two witnesses suffice. Suppose an optimal partition splits an atom , and let contain its largest piece (breaking ties arbitrarily), leaving . Density estimates show that every outsider in incompatible with has enough positive neighbors in to receive a certificate. Let be these incompatible outsiders. Since is feasible, both witnesses assigned to each vertex of lie in . No witness is reused, so . Reuniting reduces the disagreement cost across and by approximately , while separating from increases the cost by at most . Since , this increase offsets at most half of the term. The remaining cost saving is sufficient to cover the other cost increases under the low-disagreement bound on , so the exchange strictly decreases the total cost.
In the rest of this section, we refer to the residual instance of Theorem 2.4 only. All forced separations are encoded by cannot-links between units.
2.4 The bounded sub-cluster LP and the information it provides
The metric LP has an integrality gap of at least 2 [13], and how to round it to reach this bound remains open. Pair distances alone do not specify the joint behavior needed after choosing a pivot. Even if two vertices each have conditional inclusion probability , their joint inclusion probability could be zero or . Independent draws would always give . For example, take a three-vertex star with center and leaves , and average the partitions and . Conditioned on a size-two cluster containing , each leaf has inclusion probability , but their joint inclusion probability is zero. Independent draws instead include both with probability .
Cao et al. [9, Section 4.1] introduced the bounded sub-cluster LP to record local joint information separately for each possible cluster size. Solving the LP supplies fractional information for rounding. Our use of the bounded sub-cluster LP differs from that of Cao et al. [9]. Their algorithm uses local inclusion information to construct a feasible solution to the full cluster LP without hard constraints, which then supports rounding with an approximation ratio below two. For our -approximation, we bypass this intermediate construction. Instead, we directly sample candidate sets from the bounded sub-cluster LP and use Repulsion to partition them into feasible clusters.
The key observation is that our cost analysis depends only on the vertex inclusion probabilities and the aggregate deviations of pairwise inclusion probabilities from their LP targets. The former are preserved exactly, while the latter can be controlled through seed conditioning. Moreover, our cost bound requires only the signed sum of sampling errors and the absolute error on positive pairs. This allows us to use the simpler, lossless preclustering, whose free-vertex degree bound suffices to control these errors.
We use the LP on whole units, still counting size in vertices. Let and . The LP variables describe the joint inclusion of units, separately for each possible cluster size. Pairwise separation values are derived from these variables.
Definition 2.5 (r-bounded sub-cluster LP on units). Fix an integer . For and with , introduce a variable . The LP is subject to the following constraints
where the separation values in the objective are defined from y by
In an integral partition, counts the -clusters containing every unit in ; counts all -clusters and may exceed one. The bounds for nonempty are implicit.
Coverage (2) says that each unit belongs to one cluster. The inclusion-exclusion inequalities (3) imply nonnegativity: taking gives . They also imply monotonicity: taking with gives . Thus requiring additional units cannot increase an inclusion value. Consequently, for nonempty and ,
The empty-set variables need not be at most one, but the size identity (4) and coverage (2) still give .
The size identities (4) ensure that the label agrees with the inclusion values in its layer. Fix a unit with and divide the identity for by this value:
Each ratio is the conditional inclusion value of given the size and pivot unit . Hence the total expected number of included vertices is , and the expected number outside is . The same identity holds after conditioning on seeds and makes the seed probabilities sum to one. The final independent draws need not produce exactly vertices.
Equation (6) connects these inclusion values with pairwise separation. Through it the constraints (3), (2), (4), and (5) imply all constraints of the metric LP (Section 5.1).
For a concrete example of the probabilities these inequalities provide, fix with . For another unit , the values
represent including and excluding , respectively, given that is included. Both are nonnegative and sum to one. More generally, the inequalities give a valid probability for every inclusion and exclusion pattern on at most further units. We do not impose the additional cluster-size gap used in [9, constraint (16)]. The local consistency constraints do not require the LP values to arise from a probability distribution over partitions of .
2.5 Sampling with seeds
In an integral partition, the sampler simply selects a cluster uniformly: choose its size s with probability proportional to the number of s-clusters, then choose a pivot uniformly among vertices in those clusters. Conditioning on the pivot makes every unit's inclusion value zero or one, so the independent draws return exactly that cluster. The procedure below extends these choices to fractional LP solutions without assuming a distribution on complete partitions.
Fix a rational optimal solution at an even level and let . For the chosen size and pivot , the eligible family is . Initially
is its conditional joint inclusion value. A seed is an eligible unit selected for inclusion; an update conditions all remaining values on that choice. The expected number of vertices outside the pivot unit under these local values is . The size identities (4) make the pivot and seed probabilities sum to one. Figure 5 gives the sampling algorithm. When , there is no outside inclusion mass, so Step 3 returns the pivot unit immediately. The nontrivial case is t > 0.
Step 7 reduces the error caused by the final independent draws. For two distinct units , those draws use the product instead of the joint value . Selecting a seed conditions the inclusion values on its inclusion. Repeating this operation for a random number of steps controls the aggregate discrepancy while preserving inclusion values in expectation. Every selected seed has inclusion probability one and belongs to the returned candidate. Selecting a seed also sets the inclusion value of every unit at distance one from it to zero. Thus, repulsion against selected seeds is already implicit in conditioning.
Seeds are sampled with replacement. Selecting an already chosen seed leaves all retained table entries unchanged: its inclusion value is already one, and the table is already conditioned on it. The repeated selection still counts as one seed step. In Step 7.2, every new entry is computed from the old entries. Step 7.3 replaces the entries only after all these computations are complete; overwriting entries during Step 7.2 could change a later numerator or denominator.
If the LP solution is induced by an integral partition, the sampler always returns one of its clusters, with exactly vertices. For a fractional solution, the independent choices in Step 8 can produce .
Input: Optimal LP solution at even level ; units ; cannot-links . Output: A candidate set consisting of whole units.
- sample with probability , with ;
- sample with probability ; // below.
- if then return ;
- set ; and is compatible with ;
- for each with do ;
- sample uniformly from ;
- for do 7.1. sample a seed with probability ; // repetition allowed. 7.2. for each with do ; 7.3. ;
- for every do add all vertices of to with probability (independently);
- return . // possibly .
Figure 5: Sampling one candidate by positive conditioning.
The variance-drop identity. Fix the size and pivot with , and put . After updates, write and for . Let record the selected seeds and
When , the inclusion inequalities (3) also give . The sums include ordered pairs and vertices in the same unit. The size identity gives , so . Selecting a seed unit is equivalent to selecting a vertex with probability and conditioning on its unit. The update changes by , and the size identities (4) imply that its conditional expectation is zero. Expanding the variance gives
Consider possible updates. When , the sampler stops before update . The stopping index is uniform in . Taking expectations and summing the identity gives
This is a bound on the aggregate discrepancy between joint inclusion values and products of individual inclusion values, which is precisely the discrepancy introduced by Step 8. The variance does not need to decrease for each seed outcome. We show that level suffices.
Our sampler adapts the size-and-pivot framework of Cao et al. [9]. Our seed analysis bounds sampling error directly using LP inclusion values and free-vertex degrees. It thus works without the cluster-size gap and small admissible-pair set used in their analysis of Raghavendra-Tan rounding.
2.6 Repulsion restores feasibility at controlled cost
The final independent step can select two incompatible units even when their joint LP inclusion value is zero. We therefore intersect each candidate with the unprocessed vertices and apply radius-one Repulsion to this intersection. We output its feasible clusters and remove its vertices. The intersection must precede Repulsion because the cost accounting uses the first round that processes either endpoint of a pair.
Where the factor two comes from. Fix a pair , put , and let be its joint inclusion probability in one candidate. Each endpoint has marginal . At the first round selecting either endpoint, the conditional probabilities of selecting exactly one and selecting both are
respectively. Exactly one endpoint selected separates the pair. When both are selected, the pair enters the potential bound for Repulsion. Let , and put . The resulting accounting contribution is
with . Lemma 6.2 bounds the expected total cost by the sum of these pair contributions. If joint sampling were exact, , then
Summing gives at most twice the positive part plus once the negative part of the LP objective, and hence at most twice its total value. Hard pairs have zero ideal joint inclusion and no cost after normalization. These exact-probability calculations explain the leading two. The remaining task is to bound the cost of replacing ideal joint probabilities by sampled ones.
Lemma 5.4 bounds both the squared pair errors and the signed error in the cost expression by times the LP co-clustering mass on pairs in different units, up to an absolute constant. Lemma 5.5 bounds this mass and the positive cross-unit pair count by the free-vertex degree budget plus L, hence by a constant times . Cauchy–Schwarz gives absolute positive-pair error . Thus preclustering converts additive sampling error into relative error without dependence on the largest unit size.
Combining Lemma 6.3 with the normalization identity in Theorem 2.4 gives
for an absolute constant . Choosing as a sufficiently large constant multiple of makes this overhead small. Lemma 6.4 bounds the additional loss from stopping after finitely many rounds and outputting remaining units separately. Section 6.3 combines the sampling, truncation, and reduction bounds to prove Theorem 1.1 with running time .
Organization. Sections 3–4 prove the reductions and preclustering guarantee. Sections 5–6 give the sampling analysis, Repulsion bound, and main proof. Section 7 proves approximation hardness. Section 8 proves the hardness of finding all sets preserved by every optimum, discusses derandomization, and considers two-weight instances. The appendices give the proofs of metric-LP Repulsion and the probability-weighted expansion.
- reduce to an instance with only cannot-links;
- precluster into units and normalize forced separation costs;
- solve the bounded sub-cluster LP at an even level ;
- ;
- repeat times: // , specified in Section 6.3. 5.1. sample a candidate ; set ; 5.2. partition by Repulsion; 5.3. add the resulting clusters to ;
- add each remaining unit to as a separate cluster;
- project back to the input and return the resulting partition.
Figure 6: Outline of the approximation algorithm.
3 Reduction to instances with only cannot-links
We reduce general constrained correlation clustering to an unweighted instance with only cannot-links. The proof of Theorem 2.2 has two steps. We replace must-link components with weighted true-twin classes, and then remove fractional weights by a random expansion that preserves cannot-links between groups of copies. The intermediate instance uses the standard probability-weighted formulation [6, 3]: each pair has separation cost and co-clustering cost . For a partition , write
Only the intermediate instance is weighted; the input and the reduced instance used by the main algorithm are unweighted.
We use the following normalization at several points in the algorithm.
Definition 3.1 (Normalization). Relabel positive cannot-link pairs as negative and record their forced cost. Then remove vertices with no positive neighbors. An unweighted instance with only cannot-links is normalized if every cannot-link pair is negative and every vertex has at least one positive neighbor.
Every feasible partition of the remaining instance extends by restoring the removed vertices as singletons, adding only the recorded cost. The optimal value drops by the same nonnegative constant, so approximation ratios are preserved. Normalization takes linear time in an explicit representation of all pairs.
3.1 Removing must-links by true-twin replacement
We first prove the true-twin preservation property, which allows arbitrary real separation and co-clustering costs. For the LP claims, both relaxations minimize the weighted objective
The metric LP uses the constraints in (1). For the full cluster LP, let be the family of nonempty sets containing no cannot-link pair and containing either both endpoints or neither endpoint of every must-link. Introduce a variable for each , and impose
Thus is a fractional weight on a feasible cluster set, and every vertex has total coverage one.
Theorem 2.1. Consider a feasible instance with costs . Every optimal feasible partition places distinct vertices together if , , and for every :
Moreover, every optimal solution of the metric LP and of the cluster LP has .
Proof. If , every feasible partition keeps together and every feasible LP solution has . If for some , the assumed symmetry also gives . Feasibility then forces together; the metric triangle inequality gives , and every feasible cluster-LP cluster containing either vertex must contain both. We may therefore assume that neither nor is incident to a must-link.
Put . The objective equals
The first sum is independent of the partition. Suppose belong to different clusters. Moving into 's cluster or moving into 's cluster is feasible because their external cannot-link relations agree. The two cost changes satisfy
Indeed, their contributions involving any other vertex cancel, while each move removes the separation cost . Since , at least one move strictly improves the partition. Comparing the two cost changes also gives a polynomial-time improving move whenever the pair is separated. This argument does not require either pair cost to be nonnegative.
For the metric LP, clone onto by setting for and , or clone onto . Each operation preserves bounds, triangle inequalities, and cannot-link distances. Their objective changes sum to . For the cluster LP, the analogous operations remove one vertex from every cluster set and insert it exactly in sets containing the other vertex, combining equal sets and discarding empty sets. They preserve coverage one at every vertex, nonnegativity, and cannot-link feasibility. Their pair distances have the same cloning behavior, and hence the same objective identity. If the solution is optimal, neither cloning operation decreases its objective. Hence their changes sum to . Since , this implies and proves both LP claims.
Given a feasible instance , construct J as follows. Let be the connected components of . Every feasible partition must preserve each . The input is infeasible exactly when a cannot-link has both endpoints in one component.
Call two distinct components incompatible if a cannot-link joins them. Impose cannot-links on every pair between incompatible components. The fixed disagreement cost forced by the input constraints is
Within each component set . Between incompatible components set . For compatible distinct components, set
Remove the must-link constraints to obtain J.
The next lemma proves the optimal-cost relation and the projection guarantee for this construction.
Lemma 3.2. Given a feasible complete unweighted constrained correlation clustering instance , one can construct in polynomial time a probability-weighted instance J on the same vertex set, with only cannot-links and . Every feasible partition Q of J can be projected deterministically in polynomial time to a feasible partition P of I satisfying
Proof. Every feasible partition of preserves the components . For any such partition , the construction gives equal to (7). Conversely, Theorem 2.1 implies that every optimum of preserves the true-twin classes , so it is also feasible for . Applying this cost identity to the optima shows that is also given by (7). In particular, .
For the projection, apply the constructive true-twin argument from the proof of Theorem 2.1 to gather each class deterministically, preserving feasibility and without increasing cost. The resulting partition is feasible for and satisfies . Together with the cost identity above, this proves (8).
Both the construction and the projection take polynomial time. Within each , the two twin moves have cost changes summing to ; choosing the better move decreases cost by at least one, so at most moves suffice.
If Q splits any component, gathering strictly decreases its internal separation cost, so (8) is strict. If Q already preserves every component, we may take and obtain equality. In particular, this is the case when Q is an optimal partition of J by Theorem 2.1.
3.2 Reduction to unweighted instances
We next remove the fractional costs while preserving cannot-links. The unconstrained expansion is due to Chawla et al. [13, Section 6, Theorem 20]. For the sake of completeness, we give a proof in Appendix B. Our extension imposes all cross-group cannot-links between copies. The expanded instance has polynomial size in the original vertex count and .
Theorem 3.3 ([13]). Fix constants and . Suppose complete unweighted constrained correlation clustering with only cannot-links admits a polynomial-time algorithm that always returns a feasible partition and has expected approximation factor . Then probability-weighted constrained correlation clustering with only cannot-links admits a randomized polynomial-time algorithm that always returns a feasible partition and has expected approximation factor .
The reduction replaces each vertex by a positive clique of copies. Between copies of distinct vertices , it independently samples positive labels with probability and negative labels otherwise. For every cannot-link , it imposes cannot-links on all pairs in . No must-links are imposed within the groups of copies.
Every feasible original partition lifts to a feasible partition of the expanded instance by keeping each group together. Conversely, from any feasible expanded partition, independently choose a uniform representative from each group and assign the original vertex its representative's cluster label. Every original cannot-link is respected because every possible pair of its representatives is forbidden in the expanded instance.
The concentration bound must hold for every partition at once, because the algorithm chooses its partition after seeing the sampled labels. The reduction may solve an instance directly instead of expanding it.
Theorem 2.2 (Removing must-links). Fix and . A polynomial-time algorithm with expected approximation factor for constrained correlation clustering with only cannot-links gives a randomized polynomial-time -approximation for general constrained correlation clustering.
Proof. Apply Lemma 3.2 to obtain a probability-weighted instance with only cannot-links. Apply Theorem 3.3 to , obtaining a feasible partition , and project it back to a feasible partition of using Lemma 3.2. By (8),
The last inequality uses and . Both transformations preserve feasibility and take polynomial time, proving the theorem.
When the input has no cannot-links, neither true-twin replacement nor expansion introduces any. The expanded instance is then ordinary complete unweighted correlation clustering.
Theorem 1.5. For every fixed , there is a randomized polynomial-time -approximation algorithm for constrained correlation clustering with must-link constraints only.
Proof. Apply Theorem 2.2 with slack and the correlation clustering algorithm of García-Soriano and Schohn [18] with accuracy . With no original cannot-links, neither true-twin replacement nor expansion introduces any, so this algorithm applies to the expanded instance. The resulting expected ratio is at most , and the projection preserves every must-link.
For the main guarantee, use the unweighted cannot-link algorithm with approximation factor and allow in Theorem 2.2. Thus preclustering and rounding need only handle an unweighted instance with no must-links. The probability weights used in true-twin replacement do not enter the main algorithm.
If the expanded instance has vertices and the core algorithm runs in time, the resulting running time is . Vertex counts and recorded reductions in the analysis of the core algorithm refer to this expanded instance. After clustering it, we project from copies to the averaged instance and then from must-link components to the original input.
4 Constraint-aware preclustering
We apply preclustering to the feasible unweighted instance obtained from the normalization in Definition 3.1. An atom is a set of at least two vertices that every optimal feasible partition keeps together. We do not require atoms to be maximal, but our construction also ensures that every optimum places distinct selected atoms in different clusters. A vertex outside the selected atoms is free; let be the set of free vertices. A unit is an atom or a singleton free vertex. Write for the family of units and for the unit containing . Two distinct units are compatible if no cannot-link joins them.
Our construction adapts the trimming procedure of Cao et al. [9, Section 3.1] to handle cannot-links. We start from the feasible 3-approximate partition supplied by Theorem 1.6. We first mark all vertices free in singleton clusters and in clusters with large total incident disagreement. From each remaining cluster, we trim vertices with large individual incident disagreement: negative pairs inside the cluster or positive pairs leaving it. The candidate sets obtained this way have strong internal connectivity and weak external connectivity.
We need one more trimming step. To prove a candidate is indeed an atom, we show that the cost of a solution splitting it can be decreased by gathering its pieces into one cluster. To ensure that this exchange respects cannot-links, we trim the candidate set further. Figure 4 gives the algorithm.
Earlier frameworks further restricted which pairs could share a cluster by comparing positive degrees and requiring many common positive neighbors. They then modified an optimal partition at small additional cost to respect those restrictions [14, 9]. Our sampling analysis instead uses the total positive degree of the free vertices. We therefore allow every compatible cross-unit pair with a free endpoint. The construction preserves every optimum, and normalization removes only costs that all feasible unit-preserving partitions must pay.
4.1 Atoms and 2-expansion
For and , define
Thus counts the disagreements incident to when is a cluster: negative pairs inside and positive pairs leaving . A dangerous outsider is a vertex with and a cannot-link to some vertex of .
A 2-expansion from a set into assigns two distinct neighbors in to every vertex of , with no assigned vertex reused. Here adjacency means a cannot-link. Equivalently, duplicating every vertex of yields a bipartite graph with a matching saturating all copies.
Lemma 2.3 (2-expansion). Given a bipartite graph with parts , one can find in polynomial time sets , , and an edge set between them such that
Every vertex of Z is incident to exactly two edges of M, and every vertex of Q is incident to at most one. The sets may be empty, and Q contains every isolated vertex of L.
Proof. Replace every vertex of R by two copies with the same neighbors, and find a maximum matching in the resulting bipartite graph. Starting at all unmatched vertices of L, follow alternating paths: unmatched edges from left to right and matched edges from right to left. Let Q be the reached vertices of L, and let Z consist of the vertices of R with a reached copy.
Every neighbor of a reached left vertex is reached: an unmatched edge can be followed, while its matched neighbor, if any, is its predecessor on an alternating path. The two copies of a right vertex have identical neighborhoods, so either both are reached or neither is. Hence . No reached right copy is unmatched, since otherwise an augmenting path would exist. The matching edges incident to the two copies of every vertex of Z therefore give the required 2-expansion into Q.
Every vertex in is matched to a copy of a vertex in , yielding . Isolated left vertices are unmatched and belong to . The algorithm returns all vertices of , including those not used as witnesses by . All steps take polynomial time.
We are now ready to state a sufficient condition for being an atom. The density condition is sufficient to prove preservation in ordinary correlation clustering. The corresponding exchange arguments were given in [14, Lemma 14] and [9, Lemmas 15–16]; the latter established preservation by every optimum. Here the additional certificate controls incompatible outsiders. We will show that, if an optimum splits , every incompatible outsider in the cluster containing its largest piece is dangerous. Its two witnesses must lie in the other pieces of , because that cluster is feasible. Thus each expelled outsider can be charged to two distinct vertices that we move into the cluster.
Lemma 4.1 (Atom preservation). Suppose , has no internal cannot-link pair, , and the cannot-link graph admits a 2-expansion from the dangerous outsiders into . Then is an atom. In every optimal feasible partition, its cluster contains at most vertices outside . Moreover, any two disjoint sets satisfying these hypotheses lie in different clusters in every optimum.
Proof. Suppose an optimal feasible partition splits . Let contain its largest piece, breaking ties arbitrarily, and put and . Writing for the intersections of with the optimal clusters, we have , so the number of separated pairs within is at least
The number of negative pairs among them is at most , since every such pair has an endpoint in . Making a separate cluster is feasible and loses at most in external positive edges. Optimality gives
If , this already contradicts . Otherwise,
Put . Separating from is feasible and changes cost by . Since , optimality implies . Isolating any also cannot improve the partition, hence
Partition into outsiders incompatible with and outsiders compatible with all of . By the preceding inequality, every vertex of is dangerous. Its two assigned cannot-link witnesses lie in , since is feasible. The 2-expansion gives
Replace by and , removing the vertices of from their former clusters and discarding empty clusters. The new partition is feasible: has no internal cannot-link, is compatible with , and both and were subsets of . The changes in cost from reuniting , removing from its former clusters, merging with , and separating from are bounded above respectively by
Their sum is at most
because . This contradicts optimality.
Once Q is intact, separating it from the outsiders T in its cluster yields
so . If disjoint sets satisfying the hypotheses shared an optimal cluster, we would have both
a contradiction.
4.2 Finding the atoms
We now construct the atoms and bound the total positive degree of the free vertices. Every compatible pair of distinct units has a free endpoint, so the number of positive pairs between compatible units is at most . Lemma 5.5 uses this bound and the LP cost to control sampling error.
The degree bound includes all free vertices, including those removed from candidate sets in the additional trimming step for 2-expansion.
Lemma 4.2. Let I be the instance entering preclustering. One can construct disjoint atoms and a free-vertex set F in polynomial time such that
Proof. Take the feasible partition supplied by the deterministic version of Theorem 1.6, of cost . For each cluster , put
If , mark its vertex free; its positive degree is exactly . For the remaining clusters, if , mark all vertices of free. Otherwise, remove the vertices with , mark them free, and let be the remaining set. Then
Let
Every vertex of contributes at least positive edges to the boundary of S. Hence
Form the bipartite cannot-link graph with parts . Lemma 2.3 finds and with , a 2-expansion from into , and
Here is the neighborhood in this bipartite graph. Consequently,
Since , the latter inequality also gives . For every ,
Since and belongs to a feasible partition, contains no internal cannot-link, and every dangerous outsider of lies outside . For any such outsider ,
Thus, . Since has a cannot-link neighbor in , we have . Thus the 2-expansion from into assigns two distinct, non-reused witnesses in to every dangerous outsider of . Lemma 4.1 therefore applies. Retain as an atom and mark free. The retained sets are disjoint because they come from distinct clusters of , and Lemma 4.1 ensures that every optimum places them in different clusters.
If all vertices of a cluster with are marked free, their total positive degree is at most
If is retained, the free vertices in have sum of positive degrees at most
Summing over the clusters of gives
As the final step of preclustering, first add cannot-links between every pair of distinct atoms. Lemma 4.1 and the construction above show that every optimal partition of I already separates these atoms. Next propagate every cannot-link between whole units: if one pair between two units is a cannot-link, make all pairs between them cannot-links. Let H denote this augmented and propagated set.
Apply the fixed-cost relabeling step of normalization (Definition 3.1), retaining all vertices and units. Write for the residual instance.
Theorem 2.4. Let be an instance with only cannot-links. There is an absolute constant and a polynomial-time preclustering algorithm that constructs units and a residual instance on the same vertex set. The following properties hold.
(i) No cannot-link lies within a unit. Between distinct units , either every pair is a cannot-link or none is. Every compatible pair of distinct units has a free endpoint.
(ii) Every optimal partition of the residual instance preserves each atom, and distinct atoms lie in different optimal clusters.
Every optimal partition of I remains feasible for and preserves the units. Every feasible unit-preserving partition P of is feasible for I and satisfies
Proof. Lemma 4.2 constructs the atoms and proves
where is the positive graph before normalization. By Lemma 4.1, every optimal partition of keeps each atom whole and separates distinct atoms. It therefore respects the added inter-atom cannot-links. For a unit-preserving partition, satisfying a cannot-link is equivalent to separating its endpoint units, so propagation preserves feasibility on these partitions. Consequently, every optimum of remains feasible after the constraint changes, and every feasible unit-preserving partition of is feasible for .
The fixed-cost identity from normalization (Definition 3.1) gives, for every such partition,
where in this display denotes the labels before normalization.
It remains to show that every optimum of also preserves the atoms. The internal labels of an atom are unchanged, and its external positive neighborhood only shrinks. Thus still holds. Every outsider incompatible with now has , so there are no dangerous outsiders. Lemma 4.1, with an empty 2-expansion, shows that every optimum of preserves and that distinct atoms lie in different optimal clusters. Applying the cost identity to optima of and gives
again using the positive labels before normalization. This proves the cost identity and property (iii).
Finally, propagation makes a union of whole cross-products of distinct units, and there is no internal cannot-link. Distinct atoms are incompatible, so every compatible pair of distinct units has a free endpoint. This proves property (i). Atom preservation and separation prove property (ii). All construction steps take polynomial time.
From this point onward, and refer to the labels of the residual instance , unless stated otherwise. The cross-unit pairs that may still be co-clustered are
Distinct atoms are incompatible, so every such pair has a free endpoint.
5 The bounded sub-cluster LP and candidate sampling
We use the bounded sub-cluster LP of Cao et al. [9], which already respects the atoms produced by preclustering. We index its inclusion variables by units and impose the separations supplied by our constraint-aware preclustering. We omit their additional cluster-size gap. We solve this LP once and use its solution to sample candidate sets. Repulsion partitions these candidates into feasible clusters in Section 6.
First consider an integral partition into clusters, with clusters of size . Choose with probability , then choose a pivot vertex uniformly among the vertices in those clusters. Each cluster is selected with probability . Conditioning on the pivot makes the inclusion value of every unit zero or one, so independent draws return exactly the selected cluster.
For a fractional solution, units may have conditional inclusion values strictly between zero and one. Independent draws ignore their joint inclusion values: two units with individual values 1/2 and joint value zero would be selected together with probability 1/4. To control this discrepancy, we first select a few additional units, called seeds, and condition on their inclusion. A selected seed has inclusion value one, while other inclusion values may increase or decrease. The final candidate contains the pivot unit and every selected seed.
Cao et al. [9, Section 4.2] used Raghavendra-Tan correlated rounding after selecting the size and pivot. Our LP retains the local consistency constraints needed for that procedure, but their relative-error analysis also uses a cluster-size gap, stated in property [9, (A1)], and a bound on the number of admissible pairs. Our construction does not provide these additional properties, so that analysis does not apply directly. We instead analyze the positive-conditioning sampler in Figure 5.
Throughout this section, and . The sets and are the positive and negative pairs after the label changes of Theorem 2.4. Write for the instance before those changes; the remaining instance has optimal value . The difference is the fixed cost removed by normalization.
5.1 LP properties and conditioning
The LP is defined in Section 2.4, and the sampler is given in Figure 5. Here we establish the identities needed for sampling and prove feasibility and the objective bound.
Constraint (3) gives and . Summing over and using coverage (2), we obtain . Thus the values defined by (6) satisfy
For three distinct units , inclusion-exclusion gives
Monotonicity gives . Summing over and using coverage yields , hence
Repeated-unit cases follow from the zero diagonal and nonnegativity. Finally, incompatible units have distance one by (5). This proves that is indeed a feasible unit-preserving metric. The proof uses variables indexed by at most three units, explaining the condition .
Lemma 5.1. The unit-preserving LP of Definition 2.5 is feasible and can be solved as a rational LP of size . The optimal LP objective value satisfies . Furthermore, for every and every with ,
In particular when .
Proof. Take an optimal partition of the remaining instance. By Theorem 2.4, it preserves units and respects all propagated cannot-links. For each let be the number of -clusters containing every unit of ; in particular, counts the -clusters. For disjoint , inclusion-exclusion shows that the left side of (3) is the number of -clusters containing and avoiding , so it is nonnegative. For any -cluster containing , the sum of the sizes of all its member units is exactly , establishing (4). Coverage and pair linking hold because every unit belongs to precisely one integral cluster. The derived values are exactly its separation indicators. Constraint (5) holds because is feasible. The optimal LP objective is no larger, proving the upper bound.
To obtain (13), separate the terms from (4); for these, . The remaining terms are nonnegative by (3). Finally the number of pairs with is , and there are size layers. All coefficients have polynomial input bit length (the largest coefficient is at most ). Standard exact rational linear programming therefore yields a polynomial-bit solution in time .
For sampling, assume is an even integer and fix a rational optimal solution y and its derived metric x. Its level is chosen in Section 6.3. Abbreviate
Also write .
Recall that is the fractional number of s-clusters. Put
Thus Z is the fractional number of clusters represented by the LP solution; for an integral partition into k clusters, Z = k. Summing the size identities (4) and using coverage (2) gives
The probability of selecting size s and pivot a is
The size identities show that both probability distributions in Steps 1 and 2 sum to one. Formula (17) extends the uniform cluster selection described above to fractional solutions.
Fix a sampled size s and pivot a. As in Step 4, let W be the family of units other than that are compatible with , and put
The values initialized in Step 5 describe inclusion conditional on the pivot unit: is the inclusion value of , and is the joint inclusion value of . Each seed update conditions these values on the selected unit. Selecting an already chosen seed leaves every retained entry unchanged, but still counts as an update. All entries in Step 7.2 are computed from the old table; Step 7.3 replaces them only after those computations are complete. After updates, the stored entries have index sets of size at most .
Conditioning on a seed sets the inclusion value of every unit with to zero, because . Later updates preserve this exclusion. The final independent draws can nevertheless select two incompatible non-seed units, which Repulsion will separate.
For the analysis, write and . For vertices , write and . Vertices in the same unit share a selection, so when , including . Extend this notation by setting the inclusion of the pivot unit to one and the inclusion of vertices outside to zero. These values describe consistent probabilities on small sets; a distribution realizing all of them simultaneously is not assumed.
An integral s-cluster containing the pivot has exactly t vertices outside its unit. The following invariants express this count through conditional LP values, including after seed updates. Taking in (18) normalizes the seed probabilities and shows that the final candidate has conditional expected size s, although its actual size may differ. For analysis, the conditional formulas below also define entries not stored by the algorithm.
(i) Initial conditioning. Initially,
These values satisfy and if .
(ii) Invariance under seed updates. After seed updates, let consist of the pivot unit and the distinct seeds selected so far. Then , and
For with ,
Lemma 5.2. For every with , we have . The initialization and seed updates in Figure 5 satisfy the conditional formulas above, with positive denominators. Identity (18) holds whenever .
Proof. (i) Initial conditioning. By (13) and , we have , so . The initial ratios agree with Step 5 and give .
If , then is incompatible with the pivot unit. Constraint (5) gives . Nonnegativity and monotonicity from (3) imply that every variable whose index set contains both units also vanishes. This proves the asserted zero inclusion values.
(ii) Invariance under seed updates. Initially , so the conditional formula holds and . Suppose these properties hold before an update. A selected seed has , and hence
The update gives
which is the required formula after adding to . If was selected earlier, then and the values remain unchanged.
It remains to prove (18). For with , apply (4) to . The pivot unit belongs to , and terms involving units incompatible with it vanish by the argument above. Thus
Subtracting the pivot term and dividing by proves (18), including the initial case .
For every pair , define the LP target
This number depends only on the fixed LP solution. For an integral partition, it is the probability that both vertices belong to a uniformly selected cluster. Separately, let
This is the actual joint inclusion probability of the sampler. In the next lemma, and denote the final conditional values before Step 8. If Step 3 returns instead, set and .
Lemma 5.3. The sampler in Figure 5 queries variables indexed by at most r units. In each seed step j, every updated entry preserves its conditional expectation:
Averaged over all random choices of the sampler, the candidate satisfies
The final conditional inclusion values immediately before Step 8 satisfy
If , then .
Proof. Fix a positive-probability choice . By the seed-update invariance in Lemma 5.2, the current values satisfy, after every seed history,
Here and below sums over range over eligible units. Local assignment nonnegativity gives and . Consequently the seed probabilities sum to one, the denominator for every selected seed is positive, and its conditioning produces valid local probabilities. For ,
Terms with have zero joint inclusion value and are omitted. If t=0, the size identity instead forces all singleton inclusion probabilities in W to vanish, justifying the early return.
For the estimates below, extend the seed sequence to steps for analysis and use its first steps for the actual output. The pivot, at most seeds, two queried units, and one additional unit for a size identity involve at most coordinates. The extra step used in the variance calculation also fits within the available order. Thus all values used below are supplied by the LP.
By (20), the expected final singleton inclusion probability given equals its value immediately after conditioning on the pivot. Independent sampling preserves that singleton value. Using (17), the size identities, and coverage, we obtain
All sums over omit zero-probability choices. For the joint LP value, (20) likewise preserves its expectation during the seed steps. Thus
This calculation proves that the averaged conditional value equals the previously defined LP target; it does not define that target. Every unit is included or excluded as a whole. For , the events and are therefore identical, which proves the unit inclusion formula. It also proves that vertices in the same unit have joint inclusion probability .
5.2 Sampling error
Step 8 does not change the table. Given the earlier choices, it selects distinct units independently using their final individual probabilities. For vertices in different units, therefore,
Although , the random values depend on the same size, pivot, and seeds, so in general . The error comes from using the conditional product rather than the LP joint value . For with , define
as the normalized difference between the actual pair probability and its LP target. Pairs within a unit have exact joint inclusion probability and contribute no sampling error. Let
denote the total LP co-clustering mass on pairs in different units. For an integral partition, it counts such pairs whose endpoints share a cluster, regardless of sign. Lemma 5.5 bounds Y by the free-vertex degree budget plus the LP cost, and hence by a constant multiple of OPT(I).
The next lemma bounds both squared errors and their signed sum. Its proof sums the expected increases of two bounded quantities: the squared norm of inclusion values for squared error, and the total size of distinct seeds for signed error. These sums range over unordered pairs in different units, including pairs in . The squared bound will control error weighted by positive separation costs through Cauchy-Schwarz. The signed bound controls the remaining terms without requiring a small absolute error summed over all pairs.
Let denote the distribution of the candidate returned by Figure 5 for the fixed LP solution , averaging over all random choices in the procedure. Let
be the signed error over non-hard cross-unit pairs. This sum need not be nonnegative.
Lemma 5.4 (Sampling discrepancy bounds). The distribution satisfies
Proof. Fix a size and pivot with . Extend the seed sequence to updates for analysis, independently of the uniform stopping index , and let record the first seeds. Choices with have no sampling error and contribute zero to the averages below.
Squared errors. Write . At a fixed history, suppress the superscript and put
where a summand with is zero; local nonnegativity then also gives . Selecting a seed is equivalent to selecting a vertex with probability . Its update changes by , with conditional mean zero by (20). Consequently,
Since and , we have . Summing the expected increases and averaging over yields
To average over sizes and pivots, the size identities give
where the middle sum is over ordered vertex pairs. Indeed, apply (4) to and subtract the pivot unit's contribution. Using and , we obtain
For the final conditional values, set unless ; outside this case one endpoint has deterministic inclusion and the conditional sampling error is zero. For a cross-unit pair, therefore, . Cauchy-Schwarz and from Lemma 5.3 give
These expectations include the size, pivot, and seed choices. Averaging the inequalities for the two orientations and summing unordered cross-unit pairs counts a subset of the ordered terms in . Thus
Signed errors. Let be the total number of vertices in the distinct seed units selected in the first updates. Selected seeds have inclusion value one, so and . If sampling stopped after updates, the independent unit choices would have conditional size variance
Selecting a previously unselected unit increases by , whereas repeated selections leave it unchanged. Already selected units have zero variance, and hence
Summing the expected increases and averaging over K gives
Including the pivot coordinates, the conditional size identities give and . Summing the latter over i and using yields . The actual candidate has conditional mean size s and variance , so
Averaging this identity and using the inclusion identities from Lemma 5.3 gives
where the last step uses and (26). For , gives . Removing these terms cannot increase the signed sum, proving the bound on .
For the error analysis, define
Here is evaluated using the residual labels. Normalization only removes positive edges, so Theorem 2.4 also gives for this sum.
The Repulsion cost analysis also needs the total absolute error on positive pairs. The next lemma obtains this bound by Cauchy–Schwarz and makes the degree-charging argument above formal: both and the positive cross-unit pair count are bounded by a constant multiple of . The resulting absolute error is . Define
Here counts positive pairs joining different units, and is the total absolute normalized sampling error on positive pairs. Pairs within a unit have exact joint inclusion probabilities and do not enter .
Lemma 5.5 (Error on positive pairs). The quantities defined above satisfy
Proof. No positive pair is hard, and includes only cross-unit pairs. Cauchy–Schwarz and Lemma 5.4 therefore give
It remains to bound the two factors. Every positive cross-unit pair is compatible, because normalization relabeled all positive cannot-link pairs as negative. Such a pair has a free endpoint, since distinct atoms are incompatible. Therefore . Splitting the sum defining Y by sign gives
The stronger bound also implies . Finally, the bound established above, optimality of the LP, and Lemma 5.1 give . This proves the stated bounds.
6 Repulsion and the expected clustering cost
Radius-one Repulsion partitions each sampled candidate into feasible clusters. We first bound the cost of this operation, then analyze the partition constructed by repeated sampling. Finally, we bound the number of rounds and prove Theorem 1.1.
6.1 Partitioning a candidate by Repulsion
All pair labels and costs below refer to the remaining instance . For the common formulas for the two signs, let be the binary adjacency indicator of its positive graph.
Define the following function for the Repulsion cost bound:
By definition, . Two further properties serve different parts of the analysis. First,
There is equality before the cap at two; after the cap, the inequality follows from whenever . This property will bound the expected charge on a positive pair by twice its LP cost. Second,
This property makes the contributions of induced three-vertex paths nonpositive in the Repulsion proof. It is immediate if or . Otherwise, Cauchy-Schwarz gives
and multiplying by two proves the claim.
We now partition a candidate using strict metric balls of radius one. The center of a ball is separate from the pivot used to sample the candidate. Define a nonnegative pair potential
For a center , put . The boundary cost of separating from the rest, plus the two new potentials minus the old potential, is
(35)
Pairs of distance one contribute zero because their potential already equals their separation cost. Apply the following recursion, initially with S = D.
-
If S is empty, return no clusters. If every pair in S has distance less than one, output S as one cluster.
-
Otherwise, compute for every center with , and choose one minimizing . Break ties deterministically.
-
Separate from and recurse on both parts.
The next lemma shows that the recursion is feasible and that its cost is paid by the initial potential. A split may cut positive pairs, but an appropriate center makes the decrease in potential cover their cost. The surviving negative pairs in terminal clusters are then paid for by the remaining potential. This is a bound on the total cost, rather than a separate bound on each pair's cost.
Lemma 6.1 (Repulsion bound). For every union of units , Repulsion partitions in polynomial time, preserves each unit, and separates every cannot-link pair. Its total internal cost in the remaining instance is at most
Proof. Form the graph on whose edges are the distinct pairs of distance less than one. Its closed neighborhoods are the balls . Sum over all centers, allowing , whose contribution is zero. Each summand in (35) belongs to an induced path of three vertices: the center is one endpoint, the short pair being cut is the opposite edge, and the missing pair has distance one. Thus an induced path contributes
The triangle inequality gives . Since and , this contribution is at most
by (33). Therefore . If the graph is not complete, a proper ball exists; balls equal to contribute zero. Some proper ball consequently has , and the minimizing center chosen by the algorithm has this property.
At each split, the boundary cost plus the two new potentials is at most the parent potential. In a final block every pair has , and its co-clustering cost is at most . Induction over the recursion proves that the total cost is at most . Final blocks contain no pair of distance one and hence no hard pair. If belong to the same unit, implies for every center , so all balls, and all recursive blocks, are unions of units.
For a hard pair, and , so its potential is zero. A compatible distance-one pair has potential , which is at most . All other pairs have exactly the charge displayed in (36). This proves that inequality. There are at most proper splits, each found by evaluating at most centers, so the procedure is polynomial-time.
6.2 Constructing and analyzing the partition
After the single LP solve, independently sample from the same distribution defined in Section 5.2. Maintain a set of unprocessed vertices. In each round first put ; if is nonempty, separate it from , apply Repulsion to this using Lemma 6.1, output its clusters and remove all vertices of . This order (intersection before repair) is essential to the pairwise first-hit calculation. The distribution and LP solution are never recomputed during rounding. Moreover, every pair with LP distance one is separated in the output: either its endpoints first appear in different rounds, or Repulsion separates them in the round where they first appear together. This includes distinct atoms and all other separations prescribed by the LP.
To analyze these rounds, follow a pair until the first candidate containing at least one endpoint. If it contains only one, the pair is separated immediately. If it contains both, the pair enters the potential bound for Repulsion in that round. The next lemma combines these two cases into the function , where x is the LP distance and is the scaled joint inclusion probability. Its second inequality separates the ideal charge at y = 1 - x from the sampling error .
Lemma 6.2 (Cost at the first round meeting a pair). Let denote the partition obtained by continuing these rounds indefinitely. It terminates with probability 1 (every vertex is eventually processed), producing a feasible partition of expected cost bounded by
where
For and it also satisfies the pointwise inequality
Proof. Each vertex has candidate inclusion probability , and each round uses an independent sample. Thus every vertex is eventually processed with probability 1. Hard pairs are separated by Repulsion and consequently have zero cost in the remaining instance.
For any other unordered pair , set . Until the first round hitting at least one of , both vertices remain unprocessed. Independence between rounds gives the same event probabilities in each such round:
By conditioning on the first nonempty event for this pair, its probabilities of being hit separately and simultaneously are respectively and . In the former case the pair pays boundary cost . In the latter case it is contained in one candidate intersection . In the upper bound we assign it the charge . Lemma 6.1 bounds the sum of actual internal costs after Repulsion over all rounds by the sum of these charges. Taking expectations of that sum and then regrouping by pairs gives
which is (37). The bound from Lemma 6.1 applies to the total internal cost; no separate cut probability is asserted for each pair.
It remains to prove (39). Because , first consider the two pure signs:
At , the quadratic bound (32) gives
More precisely, substituting the definition of b gives
For every fixed , its derivative in has absolute value , since and . Therefore
where the last inequality follows separately for and . Similarly, . Taking their convex combination proves (39).
We can now sum the first-hit bound over all pairs. With exact joint inclusion values, it charges at most twice the positive part plus once the negative part of the LP objective. The deviations add the signed error and three times the absolute positive-pair error . The estimates from Section 5 control both terms. The following bound concerns the residual instance ; the proof of Theorem 1.1 restores the fixed costs removed during preclustering.
Lemma 6.3 (Infinite-round objective bound). With as defined previously,
Proof. Sum (39) from Lemma 6.2 over non-hard cross-unit pairs. For a same-unit pair, and , so its contribution to the first-hit bound is , exactly its LP cost, with no sampling-error term. Adding these contributions accounts for all non-hard pairs. Since hard pairs in the remaining instance have , LP distance , and hence LP objective zero, the sum of over non-hard pairs is . The signed error term is , and the absolute error on positive pairs is . This gives the first inequality in (41). For the second inequality, Lemma 5.4 gives , and the first inequality of Lemma 5.5 gives . Substituting these two bounds yields
6.3 Proof of the main theorem
We first bound the loss from stopping after finitely many rounds, then combine this bound with the reductions and the sampling analysis to prove the main theorem.
Each round selects any fixed vertex with probability . Thus the chance that it remains unprocessed decreases exponentially with the number of rounds. The next lemma uses this fact to stop after rounds, paying at most in additional expected cost. Outputting each remaining unit separately preserves feasibility.
Lemma 6.4. For any rational , run
independent fixed-distribution rounds, then put each unprocessed unit into its own cluster. The resulting partition is feasible and has expected cost in the remaining instance at most the bound in (41) plus .
Proof. Since each vertex occurs in any independently sampled candidate with probability by Lemma 5.3 (21), the probability that it remains unprocessed after T rounds is at most
Use the same first samples to couple this truncated run with the infinite run. Pairs with an endpoint processed before time have already had their final relation (joined in a repaired cluster, or separated from the other endpoint) decided, identically in both runs. Only pairs with both endpoints still unprocessed can have different final costs. The probability that both endpoints of a fixed pair remain is at most , and any pair contributes at most one additional unit of cost in the remaining instance. Summing over at most pairs proves the additive bound. The remaining vertices form whole units, which are hard-feasible when output separately. Earlier Repulsion steps were hard-feasible, and splitting further cannot violate any cannot-link constraint.
We first handle unweighted instances with only cannot-links. Zero cost can be recognized directly: the positive graph must be a disjoint union of cliques, and each clique must respect the cannot-links. After normalization, the latter condition is automatic. Otherwise the optimum is a positive integer, so a small additive truncation error is also a small relative error. Finally, the reduction of Theorem 2.2 handles must-links.
Theorem 1.1. For every fixed , there is a randomized algorithm that, on every feasible constrained correlation clustering instance with vertices, outputs in time a feasible partition of expected cost at most OPT.
Proof. It suffices to consider : for , use the algorithm with . We first construct a -approximation for complete unweighted instances with only cannot-links. We then apply Theorem 2.2 to handle general constrained correlation clustering.
Let be such an unweighted cannot-link-only instance. Normalize as in Definition 3.1, obtaining , and let . Test whether the positive graph of is a disjoint union of cliques. If so, its components give a feasible zero-cost partition of . Restore the removed vertices as singletons and return. The normalization identity shows that this partition is optimal for , even when its recorded fixed cost is positive. This also handles the empty instance.
Otherwise, . Set and choose
These choices satisfy and OPT. They use only , , and the absolute constant , rather than the unknown optimum.
Apply Theorem 2.4, including its fixed-cost normalization as in Definition 3.1. Solve the bounded sub-cluster LP at level r and use the fixed candidate distribution with number of seed steps less than r/2.
Lemma 5.5 gives , where . Consequently,
The choice in (43) ensures , so
Since and , their sum is at most
Thus the sampling-error contribution is at most .
Lemma 6.3, followed by the finite-round Lemma 6.4, bounds the expected cost in the residual preclustering instance by
Theorem 2.4 restores the omitted constant cost . Using (by Lemma 5.1) and gives expected cost in at most
Restoring the vertices removed during normalization as singletons preserves feasibility. The fixed-cost identity for normalization (Definition 3.1) then gives expected cost at most OPT().
Standard implementations of rational sampling incur an arbitrarily small additional loss, which we absorb into . All outputs are feasible, and the core algorithm has expected approximation factor at most . Its running time is : the LP has variables and constraints, , and the other steps take polynomial time.
Finally, for a general constrained correlation clustering instance, detect infeasibility by checking whether a cannot-link lies inside a must-link component. For every feasible input, invoke Theorem 2.2 with the core algorithm at accuracy and transfer slack . The resulting expected approximation factor is . This completes the algorithm in Figure 6: Theorem 2.2 implements Step 1 and the projection in the last step; the construction analyzed above implements preclustering, LP solution, sampling, Repulsion, and completion. Every output satisfies the original hard constraints. The expanded vertex count is polynomial in the original count and , so the overall running time is , now with denoting the original input size as in the theorem. The final must-link projection is deterministic by Lemma 3.2.
7 Hardness of approximation
In this section, we work exclusively on unsigned graphs. A graph is complete if is a clique. A vertex is universal if . Our reduction is based on adding sufficiently many universal vertices. This is known as the join of and a large complete graph in graph-theoretic terminology.
Definition 7.1 (Construction). Let be a graph and let be a positive integer. The graph is obtained from by adding a clique of new vertices and making every vertex of adjacent to every vertex of .
Let OPT() denote the size of a minimum cluster deletion set of , and let denote the size of a maximum clique of .
Proposition 7.2. Let and . If , then
Moreover, if , then the second inequality is strict.
Proof. Let . Let be a maximum clique of , and let . Delete all edges of incident to vertices of . The resulting graph is a cluster graph: one cluster is , and every vertex of is an isolated singleton cluster. The cost of this solution is
It is strictly smaller than because when .
By construction, the vertices of are universal true twins in . The following is a direct consequence of Theorem 2.1.
Corollary 7.3. Every minimum cluster deletion set preserves every pair of true twins. Moreover, any cluster deletion set can be transformed in polynomial time, without increasing its size, into one preserving every pair of true twins.
Proof. Model cluster deletion as constrained correlation clustering: graph edges have separation cost one and co-clustering cost zero, while graph nonedges are cannot-links. True twins have identical external costs and cannot-link relations. Theorem 2.1 therefore implies that every optimal partition keeps them together. For an arbitrary solution, whenever true twins are separated, apply its improving move. Each move decreases the integer cost by at least one, so after at most moves no true-twin pair is separated. Each move can be found and performed in polynomial time.
Lemma 7.4. Let . Given any cluster deletion set of , one can produce, in time , a clique of of size at least
Proof. Let , and let be the set of the added universal vertices. Among the clusters of meeting , choose maximizing and gather all of into it. This preserves feasibility, does not increase the separation cost between and , and removes all separation cost within . Let be the resulting deletion set; then . The cluster can be chosen and the gathering performed in time, as in the projection of Lemma 3.2.
We return the clique
Because is a clique in and no edge inside is introduced, is a clique of . Every vertex in lies outside the cluster containing . Therefore, all edges between and must be deleted by . Hence
Since , we obtain
Given explicitly, the clustering of and the set can be computed in time.
Proposition 7.2 and Lemma 7.4 already imply the NP-hardness of cluster deletion: it suffices to set . For the main theorem, we use the following standard relation between cliques and vertex covers. The complement graph of a graph is defined on the same vertex set , where two distinct vertices and are adjacent in if and only if . Note that the complement of is . Let denote the size of a minimum vertex cover of . Since a clique in a graph is an independent set in its complement, we have
Theorem 1.3. Let be a constant. If there exists an -time -approximation algorithm for cluster deletion on -vertex graphs, then there exists an -time -approximation algorithm for vertex cover on -vertex graphs, where is a constant depending only on .
Proof. Let be the input graph for vertex cover, and let . If is edgeless, then the empty set is an optimal vertex cover. If is complete, then any set of vertices is an optimal vertex cover. Thus we may assume that has at least one edge and is not complete.
Choose an arbitrary edge . For , define
where
Since every vertex cover of contains at least one endpoint of the edge , there is an index such that deleting from a minimum vertex cover of leaves a vertex cover of . Hence
For each , run the assumed -approximation algorithm for cluster deletion on , and let be the returned deletion set. By the approximation guarantee and Proposition 7.2,
We may assume without loss of generality that . Then
Since by the choice of t, we have
Now apply Lemma 7.4 to in . This yields a clique K of such that
Since is a clique in , it is an independent set in and . Hence, is a vertex cover of . The size of this vertex cover is . Thus, we obtain a -approximation for vertex cover.
It remains to analyze the running time. Let . Then each graph has
vertices. Constructing takes time, and explicitly constructing the join with takes time. The assumed approximation algorithm is invoked twice, each time on a graph with at most vertices. Thus, the total time spent in the approximation algorithm is . Finally, applying Lemma 7.4 takes time. Therefore, the total running time is
as claimed.
Theorem 1.2. Let be a fixed constant. It is NP-hard to approximate constrained correlation clustering within a factor of . Assuming the UGC, it is NP-hard to approximate constrained correlation clustering within a factor of .
Proof. The vertex cover hardness following from Khot et al. [20] rules out a -approximation unless P = NP. Khot and Regev [21] established -inapproximability assuming the Unique Games Conjecture. The approximation-preserving reduction of Theorem 1.3 transfers both bounds to cluster deletion, and hence to constrained correlation clustering with only cannot-links.
The reduction also explains the algorithmic correspondences in Table 1. Write the constructed graph as , where is the vertex cover instance and is the added universal clique. After gathering into one cluster, the vertices kept with it form an independent set of ; the vertices separated from it form a vertex cover. For the metric-LP connection, fix and put . Every edge is a non-edge in , so the triangle inequality gives : these are the vertex-cover LP constraints. The STC constraints on the edges incident to this fixed give the same inequalities, because induce a three-vertex path in exactly when . The table follows the choices involving ; the clustering algorithms also process the vertices separated from it.
Table 1: Cluster-deletion methods on and their vertex-cover interpretations on .
| Cluster-deletion method | Vertex-cover interpretation |
|---|---|
| Maximum-clique removal [16] | Complement of a maximum independent set (NP-hard). |
| Metric-ball rounding [11, 24] | Threshold distances from ; vertices outside the resulting feasible cluster form the cover. |
| CKR partitions [1] | Use randomized metric partitioning; vertices outside the part containing form the cover. |
| STC-LP and Pivot [28, 5] | Round the half-integral vertex-cover LP. |
| MatchFlipPivot [28, 5] | Find a maximal matching and take all its endpoints. |
| Repulsion | Complement of a maximal independent set. |
8 Concluding remarks
We discuss the remaining obstacles to derandomization and an exact factor-two guarantee, and the scope of possible extensions to weighted instances.
Consider the algorithm in Figure 6. The metric-LP initialization used in Step 2 and Repulsion in Step 5.2 admit deterministic center choices. The must-link projection in Step 7 is also deterministic by Lemma 3.2. Randomness remains in the fractional-weight reduction in Step 1, including its choice of copy representatives when projecting back in Step 7, and in candidate sampling in Step 5.1. The main obstacles to derandomization are the simultaneous concentration bound over all partitions in the expansion analysis and the averaging over seed histories and stopping times in the sampling analysis.
The approximation slack comes from the reduction in Step 1, sampling error in Step 5.1, and stopping the repeated rounds in Step 5. The sampling bound contains an term, so we choose the LP level in Step 3 to be . Setting therefore does not yield an exact factor-two algorithm from these estimates. Such a guarantee would require eliminating the losses or charging them against additional savings.
Two-weight correlation clustering. After setting aside fixed costs, hard constraints can be encoded by assigning a sufficiently large disagreement penalty to the corresponding preferences. This places constrained correlation clustering within weighted correlation clustering with two weights, 1 and W. On feasible constrained instances, this encoding can preserve approximation guarantees when W is chosen sufficiently large. It does not, however, allow us to apply our algorithm to arbitrary two-weight instances.
To see the distinction, suppose the high-weight preferences are jointly satisfiable. If , a partition satisfying all of them costs less than W, whereas violating even one costs at least W. Every optimum therefore respects these preferences, and the instance can be treated as constrained correlation clustering. More generally, choosing OPT forces every -approximate partition to satisfy all high-weight preferences. If these preferences are inconsistent, treating them as hard constraints instead produces an infeasible instance, although the finite-weight problem still has a finite optimum.
In the inconsistent case, some high-weight disagreement is unavoidable. After dividing costs by , the high-weight pairs have weight one and the remaining pairs have weight . Omitting the latter changes every partition cost by at most . Thus, for sufficiently large , two-weight instances can approximate correlation clustering on incomplete signed graphs with arbitrarily small relative loss. The following proposition formalizes this observation and extends the transfer to general weighted instances.
Proposition 8.1. Fix constants and . A polynomial-time -approximation for complete signed correlation clustering with disagreement weights in , where is part of the input, gives a polynomial-time -approximation for general weighted correlation clustering.
Proof. First consider unweighted correlation clustering on an incomplete signed graph with vertices. Give every specified pair its original sign and weight , and every unspecified pair an arbitrary sign and weight one. For every partition ,
An -approximate partition of the completed instance therefore satisfies
Zero cost is possible exactly when no negative edge has both endpoints in one connected component of the positive-edge graph; this can be checked directly. Otherwise , and choosing
gives a -approximation for the incomplete problem, where .
We next reduce general nonnegative rational weights to polynomially bounded integer weights, allowing additional slack . Discard zero-weight pairs and handle zero-cost instances directly. Let be the number of remaining pairs. Using a polynomial-time -approximation, with polynomially bounded , obtain a partition of cost ; such an algorithm is available by [15]. Then . Put
The integer weights are polynomially bounded. The partition of cost has rounded cost at most , so a -approximate rounded solution has cost strictly less than and cannot disagree with any pair whose weight was capped. Its original cost is consequently at most
To obtain the required approximation for integer weights, simulate each pair by internally disjoint length-two paths with fresh internal vertices. Use two positive edges for a positive pair, and one positive and one negative edge for a negative pair; all other pairs remain unspecified. For fixed endpoint clusters, each path has minimum cost zero when the original preference is satisfied and one otherwise. Thus every original partition extends at equal cost, and restricting any expanded partition to the original vertices cannot increase cost. Applying the incomplete-graph algorithm to this polynomial-size expansion gives the required guarantee.
Correlation clustering on incomplete graphs and multicut are approximation-equivalent up to constant factors [15]. Together with the UGC-hardness of approximating multicut within any constant [12], Proposition 8.1 rules out a constant-factor approximation for unrestricted two-weight instances under the same assumption.
Our result leaves open whether the guarantee extends to instances with hard constraints and disagreement weights in for fixed . Better bounds are known without hard constraints. For , the disagreement weights satisfy the triangle inequality, so the -approximation of Fan et al. [17] applies. For , replace every weight by 2 and apply their algorithm. This decreases every partition cost by a factor of at most , giving a -approximation after rescaling the accuracy parameter.
Finding the intersection of all optimal partitions. Define two vertices to be equivalent when every optimal partition keeps them together. The equivalence classes form the common refinement of all optimal partitions. Our atoms are certified subsets of these classes, rather than the entire classes. The following lemma explains why we do not try to compute all of them.
Lemma 8.2. For unweighted cluster deletion, deciding whether every optimal partition keeps two specified vertices together is coNP-hard.
Proof. Start from a clique instance , with . Obtain by replacing each vertex of with two adjacent true twins and add a disjoint clique of vertices. Then
Let
and let be the added universal clique. True-twin preservation (Corollary 7.3) keeps all of in one cluster in every optimum of . The vertices of that cluster outside form a maximum clique of otherwise the separation cost from alone exceeds , the cost upper bound obtained by putting with a maximum clique of and leaving all other vertices as singletons.
Choose and in the added clique of . Then every optimal partition keeps and together if and only if
Thus the construction reduces the complement of Clique to the stated problem.
By Lemma 8.2, membership of this decision problem in NP would imply NP = coNP.
For unconstrained correlation clustering, the analogous decision problem is NP-hard under polynomial-time Turing reductions. Indeed, an oracle for it would let us reduce the optimum by one at each step: on an induced path , delete uv or vw if some optimum separates its endpoints; otherwise every optimum joins all three vertices, and we add uw. In either case the optimum decreases by exactly one. Repeating until the graph is a disjoint union of cliques computes the original optimum in polynomially many oracle calls.
A Radius-2/3 Repulsion: Theorem 1.6
We prove Theorem 1.6, illustrated in Figure 2. Call a pair short if its distance is less than 2/3. For a current set and a center , define the strict ball
Since , this ball is nonempty. Separating from incurs boundary cost .
To analyze the algorithm, assign each unordered pair the nonnegative potential
For a short pair, put
The boundary cost plus the change in potential is
Indeed, a short positive boundary pair contributes , and a short negative boundary pair contributes -1. A non-short boundary pair contributes zero, since its potential equals its separation cost. Choosing centers uniformly at random gives the expected bound; choosing a center with nonpositive potential excess gives its deterministic version.
Theorem 1.6. Given any feasible solution x of the standard metric LP for a constrained correlation clustering instance, randomized radius-2/3 Repulsion constructs a feasible partition in polynomial time with expected cost at most three times the objective value of x. The algorithm can be derandomized with the same guarantee.
Proof. We first bound the initial potential by the LP objective. For a positive pair, : there is equality for a short pair, and otherwise . For a negative pair, : a short pair has potential one and , while a non-short pair has potential zero. Therefore
We next show that a uniformly chosen proper ball has nonpositive expected . Form the auxiliary graph on whose edges are the short pairs. Its closed neighborhoods are exactly the balls . Sum (44) over all centers .
Every term in this sum corresponds to an induced three-vertex path in the auxiliary graph. For an induced path , the center contributes and the center contributes . For every short pair,
for a negative pair, this follows from . The combined contribution of the path is therefore at most
where the second inequality uses the triangle inequality and the last holds because the missing pair is not short. Grouping all contributions by these induced paths gives
Centers with contribute zero. Hence, whenever a split is needed, the uniform choice among proper centers satisfies
We prove by induction on that the expected cost of the recursive partition of is at most . For a terminal block, all pairs are short. Its internal disagreement cost is the number of negative pairs, each of which has potential one, so its cost is at most . For a nonterminal block, condition on the chosen center. By induction, the expected costs of the two recursive calls are at most their respective potentials. Adding the boundary cost and averaging over the center gives the required bound for . At the root, (45) yields
For feasibility, vertices at distance zero have identical distances to every center and are never separated by a split. In particular, all must-links are preserved. Every terminal block contains only pairs at distance less than 2/3, so it contains no cannot-link, whose distance is one.
Replace the uniform random choice of a center defining a proper ball by the following rule:
choose , breaking ties deterministically.
The chosen split then satisfies
This inequality holds at every split, rather than only in expectation. Induction over the recursion therefore gives
Computing all candidate values takes polynomial time, and the feasibility argument is unchanged.
Finally, every proper split produces two nonempty parts. There are at most splits, and each center and ball can be evaluated in polynomial time.
B Probability weights and constraint-preserving expansion
We prove Theorem 3.3, extending the random expansion of Chawla et al. [13, Section 6, Theorem 20] to cannot-link constraints. With no cannot-links, this is the usual transfer from probability-weighted to unweighted correlation clustering.
Theorem 3.3 ([13]). Fix constants and . Suppose complete unweighted constrained correlation clustering with only cannot-links admits a polynomial-time algorithm that always returns a feasible partition and has expected approximation factor . Then probability-weighted constrained correlation clustering with only cannot-links admits a randomized polynomial-time algorithm that always returns a feasible partition and has expected approximation factor .
Proof. Let be a probability-weighted instance on vertices with cannot-link set , separation costs , and co-clustering costs . Instances with fewer than two vertices are immediate. Write , where is the slack in the proposition, and put .
First handle instances whose optimal value may be arbitrarily small. Give each pair its cheaper relation: label it positive if and negative otherwise. If the resulting positive graph is a disjoint union of cliques and its component partition respects , return that partition. It minimizes every pair contribution simultaneously and has cost
Otherwise every feasible partition disagrees with at least one majority label: either no partition satisfies all these labels, or their unique component partition violates a cannot-link. Such a disagreement costs at least 1/2, so
Henceforth assume this second case.
Set
Replace each vertex by a set of copies. Make every pair within positive. For copies of distinct vertices , independently label their pair positive with probability and negative with probability . For every , impose a cannot-link on every pair in . Denote this set by . This gives a complete unweighted random instance on vertices, with only cannot-links. No must-links are imposed within groups of copies. In the application after averaging, for , so these pairs also have deterministic negative labels; the proof permits arbitrary probability costs on .
For every fixed partition of the copies, define
This is a deterministic function of : it is the cost obtained by using the original probability weights between different groups of copies and unit positive weights within each group.
Uniform concentration. For a fixed , its random cost is the sum of at most independent zero-one variables and a deterministic term. Hoeffding's inequality gives
Their theorem is stated with factor , while the sketch allows an additive error. We make the arbitrarily small slack in the approximation ratio explicit.
There are at most partitions. Consequently,
Choose an integer T large enough that this bound is at most . For example, the polynomial-size choice
suffices: using gives , while the magnitude of the negative term is at least . Call the complementary event the good event.
The estimate holds simultaneously for all partitions. It therefore applies to the partition returned by an algorithm after observing the random labels.
Bounding the expanded optimum. Lift an optimal feasible partition of by placing all copies of each original vertex in its cluster. This respects , because every pair in is separated in the original partition. The expected cost of this lifted partition is . On the good event, its actual cost is at most . Thus
Projection to the original vertices. Run the assumed algorithm for unweighted instances with only cannot-links on , obtaining a feasible partition . Independently for each original vertex , choose a uniformly random representative from and assign its representative's cluster label. Denote the resulting partition by . This partition is feasible: if , every possible choice of their two representatives is a pair in , and hence the representatives belong to different clusters. The requirement to forbid all cross-group pairs is what makes this implication hold.
For every fixed Q,
Indeed, for each distinct original pair , its expected contribution is the average probability-weighted contribution over the pairs in . Summing gives the cross-group part of . The remaining contributions, from separating copies within one group, are nonnegative and disappear upon projection.
Fix a realization of satisfying the good event. Uniform concentration, the approximation guarantee, and the expanded-optimum bound imply
Here the expectations include the unweighted algorithm's randomness, if any, and the representative choices.
On the bad event, the projected partition still costs at most m, because each original pair contributes at most one. Averaging over the random expansion therefore gives
Using (46), the algorithm satisfies
The expansion has polynomial size, and the construction and projection always preserve feasibility.
References
[1] Florian Adriaens. CKR partitions and lower bounds for constrained correlation clustering and variants, 2026. doi:10.48550/ARXIV.2608.08291.
[2] Florian Adriaens and Nikolaj Tatti. Simple algorithms for bad triangle transversals with applications to correlation clustering. In ICML, PMLR 306:675–689. PMLR, 2026. URL: https://proceedings.mlr.press/v306/adriaens26a.html.
[3] Nir Ailon, Moses Charikar, and Alantha Newman. Aggregating inconsistent information: Ranking and clustering. Journal of the ACM, 55(5): (Article 23) 1–27, 2008. doi:10.1145/1411509.1411513.
[4] Sina Azizeddin, Evangelos Kipouridis, and Nithin Varma. Constrained correlation clustering: Towards optimality, 2026. doi:10.48550/ARXIV.2608.05700.
[5] Vicente Balmaseda, Ying Xu, Yixin Cao, and Nate Veldt. Combinatorial approximations for cluster deletion: Simpler, faster, and better. In ICML, PMLR 235:2586–2606, 2024. URL: https://proceedings.mlr.press/v235/balmaseda24a.html.
[6] Nikhil Bansal, Avrim Blum, and Shuchi Chawla. Correlation clustering. Machine Learning, 56(1):89–113, 2004. doi:10.1023/B:MACH.0000033116.57574.95.
[7] Gabriel Bathie, Nicolas Bousquet, Yixin Cao, Yuping Ke, and Théo Pierron. (Sub)linear kernels for edge modification problems toward structured graph classes. Algorithmica, 84:3338–3364, 2022. doi:10.1007/s00453-022-00969-1.
[8] Nairen Cao, Vincent Cohen-Addad, Euiwoong Lee, Shi Li, David Rasmussen Lolck, Alantha Newman, Mikkel Thorup, Lukas Vogl, Shuyi Yan, and Hanwen Zhang. Solving the correlation cluster LP in sublinear time. In STOC, pages 1154–1165, 2025. doi:10.1145/3717823.3718181.
[9] Nairen Cao, Vincent Cohen-Addad, Euiwoong Lee, Shi Li, Alantha Newman, and Lukas Vogl. Understanding the cluster linear program for correlation clustering. In STOC, pages 1605–1616, 2024. Revised version: arXiv:2404.17509, 2025. doi:10.1145/3618260.3649749.
[10] Yixin Cao and Jianer Chen. Cluster editing: Kernelization based on edge cuts. Algorithmica, 64(1):152–169, 2012. doi:10.1007/s00453-011-9595-1.
[11] Moses Charikar, Venkatesan Guruswami, and Anthony Wirth. Clustering with qualitative information. Journal of Computer and System Sciences, 71(3):360–383, 2005. doi:10.1016/j.jcss.2004.10.012.
[12] Shuchi Chawla, Robert Krauthgamer, Ravi Kumar, Yuval Rabani, and D. Sivakumar. On the hardness of approximating multicut and sparsest-cut. Computational Complexity, 15(2):94–114, 2006. doi:10.1007/S00037-006-0210-9.
[13] Shuchi Chawla, Konstantin Makarychev, Tselil Schramm, and Grigory Yaroslavtsev. Near optimal LP rounding algorithm for correlation clustering on complete and complete k-partite graphs. In STOC, pages 219–228, 2015. doi:10.1145/2746539.2746604.
[14] Vincent Cohen-Addad, Euiwoong Lee, Shi Li, and Alantha Newman. Handling correlated rounding error via preclustering: A 1.73-approximation for correlation clustering. In FOCS, pages 1082–1104, 2023. doi:10.1109/FDCS57990.2023.00065.
[15] Erik D. Demaine, Dotan Emanuel, Amos Fiat, and Nicole Immorlica. Correlation clustering in general weighted graphs. Theoretical Computer Science, 361(2-3):172–187, 2006. doi:10.1016/j.tcs.2006.05.008.
[16] Anders Dessmark, Jesper Jansson, Andrzej Lingas, Eva-Marta Lundell, and Mia Persson. On the approximability of maximum and minimum edge clique partition problems. International Journal of Foundations of Computer Science, 18(2):217–226, 2007. doi:10.1142/S0129054107004656.
[17] Chenglin Fan, Dahoon Lee, and Euiwoong Lee. Pseudometric-weighted correlation clustering via spectral preclustering, 2026. doi:10.48550/arXiv.2609.17403.
[18] David García-Soriano and Antoine Schohn. Approximate dual separation for the cluster LP: a 1.387 approximation for correlation clustering, 2026. doi:10.48550/ARXIV.2607.27829.
[19] Andreas Kalavas, Evangelos Kipouridis, and Nithin Varma. Towards better-than-2 approximation for constrained correlation clustering. In ICML, PMLR 267:28721–28734, 2025. URL: https://proceedings.mlr.press/v267/kalavas25a.html.
[20] Subhash Khot, Dor Minzer, and Muli Safra. Pseudorandom sets in Grassmann graph have near-perfect expansion. Annals of mathematics, 198(1):1–92, 2023. doi:10.4007/annals.2023.198.1.1.
[21] Subhash Khot and Oded Regev. Vertex cover might be hard to approximate to within 2 – ε. Journal of Computer and System Sciences, 74(3):335–349, 2008. doi:10.1016/j.jcss.2007.06.019.
[22] Dahoon Lee, Chenglin Fan, and Euiwoong Lee. 1.64-approximation for chromatic correlation clustering via chromatic cluster LP, 2026. doi:10.48550/arXiv.2507.15417.
[23] OpenAI. The Unique Games Theorem, 2026. URL: https://github.com/openai/math/tree/main/preprints/The-Unique-Games-Theorem-September-23-2026.
[24] Gregory J. Puleo and Olgica Milenkovic. Correlation clustering with constrained cluster sizes and extended weights bounds. SIAM Journal on Optimization, 25(3):1857–1872, 2015. doi:10.1137/140994198.
[25] Ron Shamir, Roded Sharan, and Dekel Tsur. Cluster graph modification problems. Discrete Applied Mathematics, 144(1-2):173–182, 2004. doi:10.1016/j.dam.2004.01.007.
[26] Stéphan Thomassé. A kernel for feedback vertex set. ACM Transactions on Algorithms, 6(2):32.1–32.8, 2010. doi:10.1145/1721837.1721848.
[27] Anke van Zuylen and David P. Williamson. Deterministic pivoting algorithms for constrained ranking and clustering problems. Mathematics of Operations Research, 34(3):594–620, 2009. doi:10.1287/moor.1090.0385.
[28] Nate Veldt. Correlation clustering via strong triadic closure labeling: Fast approximation algorithms and practical lower bounds. In ICML, PMLR 162:22060–22083, 2022. URL: https://proceedings.mlr.press/v162/veldt22a.html.
[29] Nate Veldt. Growing a random maximal independent set produces a 2-approximate vertex cover. In SOSA, pages 355–362, 2024. doi:10.1137/1.9781611977936.32.