Introduction
Correlation clustering is defined on a complete signed graph G = ( V , E + , E − ) G=(V,E^+,E^-) G = ( V , E + , E − ) , where E + E^+ E + and E − E^- E − partition ( V 2 ) \binom{V}{2} ( 2 V ) . Positive pairs express a preference for being in the same cluster, while negative pairs express a preference for being separated. The goal is to find a partition P \mathcal{P} P of V V V minimizing disagreements: positive pairs between clusters and negative pairs within clusters. The number of clusters is not prescribed. Write u ∼ P v u\sim_{\mathcal{P}}v u ∼ P v when u , v u,v u , v belong to the same cluster. The cost of P \mathcal{P} P is
cost G ( P ) = ∑ u v ∈ E + 1 [ u ̸ ∼ P v ] + ∑ u v ∈ E − 1 [ u ∼ P v ] . \operatorname{cost}_{G}(\mathcal{P})=\sum_{uv\in E^+}\mathbf{1}[u\not\sim_{\mathcal{P}}v]+\sum_{uv\in E^-}\mathbf{1}[u\sim_{\mathcal{P}}v]. cost G ( P ) = uv ∈ E + ∑ 1 [ u ∼ P v ] + uv ∈ E − ∑ 1 [ u ∼ P v ] .
Equivalently, represent the instance by the unsigned graph ( V , E + ) (V,E^+) ( V , E + ) , 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 M M M and cannot-link pairs H H H . An instance is written I = ( V , E + , E − , M , H ) I=(V,E^+,E^-,M,H) I = ( V , E + , E − , M , H ) , and a partition is feasible if every pair in M M M lies within a cluster and every pair in H H H lies between clusters. The objective remains cost I ( P ) = cost G ( P ) \operatorname{cost}_{I}(\mathcal{P})=\operatorname{cost}_{G}(\mathcal{P}) cost I ( P ) = cost G ( P ) . 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 ε > 0 \varepsilon>0 ε > 0 , there is a randomized algorithm that, on every feasible constrained correlation clustering instance I I I with n n n vertices, outputs in time ( n / ε ) O ( ε − 2 ) (n/\varepsilon)^{O(\varepsilon^{-2})} ( n / ε ) O ( ε − 2 ) a feasible partition of expected cost at most $(2+\varepsilon)\operatorname{OPT}(I).
We show a matching lower bound, assuming the Unique Games Conjecture (UGC).1
Theorem 1.2. Let ε > 0 \varepsilon>0 ε > 0 be a fixed constant. It is NP-hard to approximate constrained correlation clustering within a factor of 2 − ε \sqrt{2}-\varepsilon 2 − ε . Assuming the UGC, it is NP-hard to approximate constrained correlation clustering within a factor of 2 − ε 2-\varepsilon 2 − ε .
Our techniques Theorem 1.2 applies to a special case with M = ∅ M=\varnothing M = ∅ and H = E − H=E^- H = E − . Equivalently, the cluster deletion problem asks to delete the minimum number of edges to make the unsigned graph ( V , E + ) (V,E^+) ( V , E + ) 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 G G G be a graph whose vertex set can be partitioned into two cliques, C = { c 1 , … , c 5 } C=\{c_1,\ldots,c_5\} C = { c 1 , … , c 5 } and D = { d 1 , … , d 5 } D=\{d_1,\ldots,d_5\} D = { d 1 , … , d 5 } , and suppose that the only edges between C C C and D D D are { c i d j ∣ 1 ≤ i , j ≤ 3 } \{c_i d_j\mid1\le i,j\le3\} { c i d j ∣ 1 ≤ i , j ≤ 3 } . Then { c 1 , c 2 , c 3 , d 1 , d 2 , d 3 } \{c_1,c_2,c_3,d_1,d_2,d_3\} { c 1 , c 2 , c 3 , d 1 , d 2 , d 3 } is the unique maximum clique of G G G , of size 6. Nevertheless, the unique optimal cluster deletion solution deletes all nine edges between C C C and D D D , 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 t t t 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 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 t t t , the deletion cost closely tracks the cover size, allowing approximation guarantees to be transferred.
Figure 1. The vertex cover reduction and Repulsion: (a) the graph Q Q Q ; (b) the constructed graph G G G ; (c) the clusters produced by Repulsion. Dashed edges are cut, and U U U stays intact throughout.
Theorem 1.3. Let c > 1 c > 1 c > 1 be a constant. If there exists an f ( N ) f(N) f ( N ) -time c c c -approximation algorithm for cluster deletion on N N N -vertex graphs, then there exists an O ( f ( c ′ n 2 ) + n 4 ) O(f(c'n^2) + n^4) O ( f ( c ′ n 2 ) + n 4 ) -time c c c -approximation algorithm for vertex cover on n n n -vertex graphs, where c ′ c' c ′ is a constant depending only on c c c .
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 § 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 ε > 0 \varepsilon> 0 ε > 0 , there is a randomized polynomial-time ( 1.3865 + ε ) (1.3865 + \varepsilon) ( 1.3865 + ε ) -approximation algorithm for constrained correlation clustering with must-link constraints only.
Theorem 1.5 combines our reduction with the ( 1.3865 + ε ) (1.3865 + \varepsilon) ( 1.3865 + ε ) -approximation of García-Soriano and Schohn [18 ] . It highlights a sharp dichotomy: must-links alone permit approximations below 2 \sqrt{2} 2 , 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 1 a, the greedy procedure selects v 1 v_1 v 1 and removes { v 1 , v 3 , v 4 } \{v_1,v_3,v_4\} { v 1 , v 3 , v 4 } , then selects v 2 v_2 v 2 and removes { v 2 , v 5 } \{v_2,v_5\} { v 2 , v 5 } . It finds the independent set S = { v 1 , v 2 } S=\{v_1,v_2\} S = { v 1 , v 2 } and the vertex cover V ( Q ‾ ) ∖ S V(\overline{Q}) \setminus S V ( Q ) ∖ S .
Table 1. Cluster-deletion methods on G = Q ‾ ∨ U G = \overline{Q} \vee U G = Q ∨ U and their vertex-cover interpretations on Q Q Q .
Simulating this process on our constructed graph G = Q ‾ ∨ U G=\overline{Q}\vee U G = Q ∨ U , we select a vertex v ∈ V ( Q ‾ ) v \in V(\overline{Q}) v ∈ V ( Q ) and separate its remaining neighbors in Q ‾ \overline{Q} Q , which are its non-neighbors in G G G . Then v v v remains with U U U . Repeating this choice in the block containing U U U finally leads to a clique of Q ‾ \overline{Q} Q , i.e., an independent set in Q Q Q . In Figure 1 c, processing v 1 v_1 v 1 separates v 3 , v 4 v_3,v_4 v 3 , v 4 from U U U , and processing v 2 v_2 v 2 in the remaining block separates v 5 v_5 v 5 . The resulting clusters are U ∪ { v 1 , v 2 } U \cup\{v_1,v_2\} U ∪ { v 1 , v 2 } , { v 3 , v 4 } \{v_3,v_4\} { v 3 , v 4 } , and { v 5 } \{v_5\} { v 5 } . 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 1 / 2 1/2 1/2 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 x x 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 x x . 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 ( 1 + ε ) OPT (1+\varepsilon)\operatorname{OPT} ( 1 + ε ) 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 ⊈ \not\subseteq ⊆ 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 ( 24 / 23 − ε ) (24/23-\varepsilon) ( 24/23 − ε ) -approximation for correlation clustering assuming N P ⊈ B P P \mathrm{NP} \not\subseteq\mathrm{BPP} 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 § 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.
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.
Figure 6. Outline of the approximation algorithm.
Throughout this section, we assume that the input is feasible. Infeasibility can be easily checked.
Repulsion and the role of hard constraints
Given a feasible metric x x x , Repulsion chooses a center v v v in the current set S S S , separates the strict ball
A v = { u ∈ S : x u v < θ } A_v = \{u \in S : x_{uv} < \theta\} A v = { u ∈ S : x uv < θ }
from its complement, and recurses on both parts. Output a block as a cluster when all its pair distances are less than θ \theta θ . Otherwise, choose a proper ball and split the block. After the split, the chosen center v v v is at distance less than θ \theta θ from every vertex on its side. This remains true in every later block containing v v v , so it cannot define another proper ball. Each split creates two nonempty parts, and there are at most ∣ V ∣ − 1 |V|-1 ∣ V ∣ − 1 splits.
Let L = ( V , E + , E − , M , H ) L = (V,E^+,E^-,M,H) L = ( V , E + , E − , M , H ) . For distinct vertices u , v u,v u , v , the variable x u v = x v u x_{uv}=x_{vu} x uv = x v u represents separation. Set x u v = 0 x_{uv}=0 x uv = 0 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:
min x L ( x ) = ∑ u v ∈ E + x u v + ∑ u v ∈ E − ( 1 − x u v ) subject to 0 ≤ x u v ≤ 1 ( u , v ∈ V , u ≠ v ) , x u v ≤ x u w + x w v ( u , v , w ∈ V ) , x u v = 0 ( u v ∈ M ) , x u v = 1 ( u v ∈ H ) . (1) \begin{aligned}
\min_x\quad L(x) &= \sum_{uv\in E^+} x_{uv} + \sum_{uv\in E^-} (1-x_{uv}) \\
\text{subject to}\quad0 &\le x_{uv} \le1 && (u,v \in V,\ u \ne v),\\
x_{uv} &\le x_{uw}+x_{wv} && (u,v,w \in V),\\
x_{uv} &= 0 && (uv \in M),\\
x_{uv} &= 1 && (uv \in H). \tag*{(1)}
\end{aligned} x min L ( x ) subject to 0 x uv x uv x uv = uv ∈ E + ∑ x uv + uv ∈ E − ∑ ( 1 − x uv ) ≤ x uv ≤ 1 ≤ x u w + x w v = 0 = 1 ( u , v ∈ V , u = v ) , ( u , v , w ∈ V ) , ( uv ∈ M ) , ( uv ∈ H ) . (1)
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 u v uv uv is a must-link pair, then x u v = 0 x_{uv}=0 x uv = 0 and hence x u w = x v w x_{uw}=x_{vw} x u w = x v w for all w ∈ V w \in V w ∈ V . Consequently, a metric ball contains either both u u u and v v v 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 0 < θ ≤ 1 0<\theta\leq1 0 < θ ≤ 1 .
Figure 2. Radius-2/3 Repulsion on a nine-vertex graph: it is obtained from C ‾ 7 \overline{C}_7 C 7 with each of v 4 , v 5 v_4,v_5 v 4 , v 5 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 1/3 1/3 , and thin gray edges have distance 2 / 3 2/3 2/3 . The first split separates { v 1 , v 2 , v 7 } \{v_1,v_2,v_7\} { v 1 , v 2 , v 7 } from the other vertices. Within the latter block, the second split separates { v 3 , v 4 , v 4 ′ } \{v_3,v_4,v'_4\} { v 3 , v 4 , v 4 ′ } from { v 5 , v 5 ′ , v 6 } \{v_5,v'_5,v_6\} { v 5 , v 5 ′ , v 6 } . Dashed edges are cut. These last two blocks are terminal; { v 7 , v 1 , v 2 } \{v_7,v_1,v_2\} { v 7 , v 1 , v 2 } still requires one further split.
For σ ∈ { + , − } \sigma\in\{+,-\} σ ∈ { + , − } and disjoint sets A , B ⊆ V A,B\subseteq V A , B ⊆ V , define
e σ ( A , B ) = ∣ E σ ∩ ( A × B ) ∣ , e σ ( A ) = ∣ E σ ∩ ( A 2 ) ∣ . e^\sigma(A,B)=\lvert E^\sigma\cap(A\times B)\rvert,\qquad e^\sigma(A)=\left\lvert E^\sigma\cap\binom{A}{2}\right\rvert. e σ ( A , B ) = ∣ E σ ∩ ( A × B )∣ , e σ ( A ) = E σ ∩ ( 2 A ) .
We use e σ ( v , A ) = e σ ( { v } , A ∖ { v } ) e^\sigma(v,A)=e^\sigma(\{v\},A\setminus\{v\}) e σ ( v , A ) = e σ ({ v } , A ∖ { v }) , so this notation also applies when v ∈ A v\in A v ∈ A .
Why radius 2 / 3 2/3 2/3 gives factor three. Call a pair short if x u v < 2 / 3 x_{uv}<2/3 x uv < 2/3 . Assign potential 3 x u v 3x_{uv} 3 x uv to short positive pairs, 1 to short negative or non-short positive pairs, and 0 otherwise. The total is at most 3 L ( x ) 3L(x) 3 L ( x ) . Sum over centers the cut cost plus the change in potential. In the graph of short pairs, the contributions group into induced paths u − v − w u-v-w u − v − w , each contributing at most
2 − 3 ( x u v + x v w ) ≤ 2 − 3 x u w ≤ 0 , 2-3(x_{uv}+x_{vw})\leq2-3x_{uw}\leq0, 2 − 3 ( x uv + x v w ) ≤ 2 − 3 x u w ≤ 0 ,
since x u w ≥ 2 / 3 x_{uw}\geq2/3 x u w ≥ 2/3 . 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 § 9 ).
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 w u v + w^+_{uv} w uv + and w u v − w^-_{uv} w uv − denote the costs of separating and co-clustering u , v u,v u , v , respectively. Only the differences between w i j + w^+_{ij} w ij + and w i j − w^-_{ij} w ij − 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 ( V , E + , E − , M , H ) (V, E^+, E^-, M, H) ( V , E + , E − , M , H ) with costs w + , w − w^+, w^- w + , w − . Every optimal feasible partition places distinct vertices u , v u, v u , v together if w u v + > w u v − w^+_{uv} > w^-_{uv} w uv + > w uv − , u v ∉ H uv \notin H uv ∈ / H , and for every t ∉ { u , v } t \notin\{u, v\} t ∈ / { u , v } :
u t ∈ M ⟺ v t ∈ M , u t ∈ H ⟺ v t ∈ H , w u t + − w u t − = w v t + − w v t − . ut \in M \Longleftrightarrow vt \in M,\qquad ut \in H \Longleftrightarrow vt \in H,\qquad w^+_{ut} - w^-_{ut} = w^+_{vt} - w^-_{vt}. u t ∈ M ⟺ v t ∈ M , u t ∈ H ⟺ v t ∈ H , w u t + − w u t − = w v t + − w v t − . Moreover, every optimal solution of the metric LP and of the cluster LP has x u v = 0 x_{uv} = 0 x uv = 0 .
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 A , B A, B A , B , assign the separation cost of every pair between A A A and B B B to be e + ( A , B ) ∣ A ∣ ∣ B ∣ \frac{e^+(A,B)}{|A||B|} ∣ A ∣∣ B ∣ e + ( A , B ) , the fraction of positive pairs between them. This averaging maintains the total cost of separating A A A and B B B . 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.
Figure 3. Removing must-links by replacing the must-link component { a , b , c } \{a, b, c\} { a , b , c } with a class of true twins. In (a), solid edges are positive, the pairs marked M M M are must-links. All other pairs are negative, including the cannot-link b e be b e . In (b), green pairs have separation cost 1, black pairs have separation cost 1 / 3 1/3 1/3 , and the gray pair d e de d e has separation cost 0. Red dotted pairs have separation cost 0 and are cannot-links. The cannot-link is propagated to all pairs between { a , b , c } \{a, b, c\} { a , b , c } and e e e , and the forced positive pair c e ce ce is relabeled negative. The cost difference between the two instances is 2: the negative pair b c bc b c inside the must-link component and the positive pair c e ce ce .
The resulting costs have the probability-weighted form: separation costs p u v ∈ [ 0 , 1 ] p_{uv} \in[0, 1] p uv ∈ [ 0 , 1 ] and co-clustering costs 1 − p u v 1 - p_{uv} 1 − p uv . 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 α ≥ 1 \alpha\ge1 α ≥ 1 and δ > 0 \delta> 0 δ > 0 . A polynomial-time algorithm with expected approximation factor α \alpha α for constrained correlation clustering with only cannot-links gives a randomized polynomial-time ( α + δ ) (\alpha+ \delta) ( α + δ ) -approximation for general constrained correlation clustering.
We henceforth describe the algorithm on feasible unweighted instances with no must-links.
Preclustering guarantee
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 (§ 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 L , R L, R L , R , one can find in polynomial time sets Q ⊆ L Q \subseteq L Q ⊆ L , Z ⊆ R Z \subseteq R Z ⊆ R , and an edge set M M M between them such that
N ( Q ) = Z , ∣ L ∖ Q ∣ ≤ 2 ∣ R ∖ Z ∣ . N(Q) = Z, \qquad|L \setminus Q| \le2|R \setminus Z|. N ( Q ) = Z , ∣ L ∖ Q ∣ ≤ 2∣ R ∖ Z ∣. Every vertex of Z Z Z is incident to exactly two edges of M M M , and every vertex of Q Q Q is incident to at most one. The sets may be empty, and Q Q Q contains every isolated vertex of L L L .
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 U \mathcal{U} U be the family of units and B ( v ) B(v) B ( v ) the unit containing v v v . 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 S S S , write e S ( v ) = e − ( v , S ) + e + ( v , V ∖ S ) e_S(v) = e^{-}(v,S) + e^{+}(v,V \setminus S) e S ( v ) = e − ( v , S ) + e + ( v , V ∖ S ) for the disagreements incident to v v v . Figure 4 gives the algorithm. The construction also bounds the total positive degree of free vertices.
Figure 4. The preclustering procedure.
Theorem 2.4. Let I = ( V , E + , E − , ∅ , H ) I = (V, E^{+}, E^{-}, \varnothing, H) I = ( V , E + , E − , ∅ , H ) be an instance with only cannot-links. There is an absolute constant C p r e C_{\mathrm{pre}} C pre and a polynomial-time preclustering algorithm that constructs units and a residual instance I ′ I' I ′ on the same vertex set. The following properties hold.
(i) No cannot-link lies within a unit. Between distinct units B , D B, D B , D , 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 P \mathcal{P} P ;
for each cluster S ∈ P S \in\mathcal{P} S ∈ P do 2.1. if ∣ S ∣ = 1 |S| = 1 ∣ S ∣ = 1 or ∑ v ∈ S e S ( v ) ≥ ∣ S ∣ 2 / 10000 \sum_{v \in S} e_S(v) \ge|S|^2/10000 ∑ v ∈ S e S ( v ) ≥ ∣ S ∣ 2 /10000 then mark every vertex of S S S free and continue to the next cluster; 2.2. S ′ ← { v ∈ S : e S ( v ) ≤ ∣ S ∣ / 100 } S' \leftarrow\{v \in S : e_S(v) \le|S|/100\} S ′ ← { v ∈ S : e S ( v ) ≤ ∣ S ∣/100 } ; 2.3. W S ← { w ∉ S : e + ( w , S ) ≥ ∣ S ∣ / 4 } W_S \leftarrow\{w \notin S : e^+(w,S) \ge|S|/4\} W S ← { w ∈ / S : e + ( w , S ) ≥ ∣ S ∣/4 } ; 2.4. form the bipartite cannot-link graph between S ′ S' S ′ and W S W_S W S ; 2.5. find Q ⊆ S ′ Q \subseteq S' Q ⊆ S ′ , Z ⊆ W S Z \subseteq W_S Z ⊆ W S , and M M M as in Lemma 2.3; 2.6. add Q Q Q as an atom, and mark every vertex of S ∖ Q S \setminus Q S ∖ Q 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;
(iii) OPT ( I ′ ) ≤ OPT ( I ) \operatorname{OPT}(I') \le\operatorname{OPT}(I) OPT ( I ′ ) ≤ OPT ( I ) and ∑ v is free e + ( v , V ) ≤ C p r e OPT ( I ) \sum_{v\text{ is free}} e^+(v,V) \le C_{\mathrm{pre}}\operatorname{OPT}(I) ∑ v is free e + ( v , V ) ≤ C pre OPT ( I ) .
Every optimal partition of I I I remains feasible for I ′ I' I ′ and preserves the units. Every feasible unit-preserving partition P \mathcal{P} P of I ′ I' I ′ is feasible for I I I and satisfies
cost I ( P ) − cost I ′ ( P ) = OPT ( I ) − OPT ( I ′ ) . \operatorname{cost}_{I}(\mathcal{P})-\operatorname{cost}_{I'}(\mathcal{P})=\operatorname{OPT}(I)-\operatorname{OPT}(I'). cost I ( P ) − cost I ′ ( P ) = OPT ( I ) − OPT ( I ′ ) .
Why two witnesses suffice. Suppose an optimal partition P ∗ \mathcal{P}^* P ∗ splits an atom Q Q Q , and let C ∈ P ∗ C \in\mathcal{P}^* C ∈ P ∗ contain its largest piece S = Q ∩ C S = Q \cap C S = Q ∩ C (breaking ties arbitrarily), leaving R = Q ∖ C R = Q \setminus C R = Q ∖ C . Density estimates show that every outsider in C C C incompatible with Q Q Q has enough positive neighbors in Q Q Q to receive a certificate. Let X X X be these incompatible outsiders. Since C C C is feasible, both witnesses assigned to each vertex of X X X lie in R R R . No witness is reused, so 2 ∣ X ∣ ≤ ∣ R ∣ 2|X| \le|R| 2∣ X ∣ ≤ ∣ R ∣ . Reuniting Q Q Q reduces the disagreement cost across R R R and S S S by approximately ∣ R ∣ ∣ S ∣ |R||S| ∣ R ∣∣ S ∣ , while separating X X X from S S S increases the cost by at most ∣ X ∣ ∣ S ∣ |X||S| ∣ X ∣∣ S ∣ . Since 2 ∣ X ∣ ≤ ∣ R ∣ 2|X| \le|R| 2∣ X ∣ ≤ ∣ R ∣ , this increase offsets at most half of the ∣ R ∣ ∣ S ∣ |R||S| ∣ R ∣∣ S ∣ term. The remaining cost saving is sufficient to cover the other cost increases under the low-disagreement bound on Q Q Q , so the exchange strictly decreases the total cost.
In the rest of this section, we refer to the residual instance I ′ I' I ′ of Theorem 2.4 only. All forced separations are encoded by cannot-links between units.
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 1 / 2 1/2 1/2 , their joint inclusion probability could be zero or 1 / 2 1/2 1/2 . Independent draws would always give 1 / 4 1/4 1/4 . For example, take a three-vertex star with center c c c and leaves u u u , v v v , and average the partitions { { c , u } , { v } } \{\{c,u\},\{v\}\} {{ c , u } , { v }} and { { c , v } , { u } } \{\{c,v\},\{u\}\} {{ c , v } , { u }} . Conditioned on a size-two cluster containing c c c , each leaf has inclusion probability 1 / 2 1/2 1/2 , but their joint inclusion probability is zero. Independent draws instead include both with probability 1 / 4 1/4 1/4 .
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 ( 2 + ε ) (2+\varepsilon) ( 2 + ε ) -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 n = ∣ V ∣ n = |V| n = ∣ V ∣ and [ n ] = { 1 , … , n } [n] = \{1,\ldots,n\} [ n ] = { 1 , … , n } . 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 r r -bounded sub-cluster LP on units). Fix an integer r ≥ 3 r \ge3 r ≥ 3 . For s ∈ [ n ] s \in[n] s ∈ [ n ] and T ⊆ U T \subseteq\mathcal{U} T ⊆ U with ∣ T ∣ ≤ r |T| \le r ∣ T ∣ ≤ r , introduce a variable y s , T y_{s,T} y s , T . The LP is min L ( x ) \min L(x) min L ( x ) subject to the following constraints
∑ s = 1 n y s , { B } = 1 ( B ∈ U ) , (2) \sum_{s=1}^{n} y_{s,\{B\}} = 1 \qquad(B \in\mathcal{U}), \tag*{(2)} s = 1 ∑ n y s , { B } = 1 ( B ∈ U ) , (2) ∑ Q ⊆ T ( − 1 ) ∣ Q ∣ y s , S ∪ Q ≥ 0 ( s ∈ [ n ] , S ∩ T = ∅ , S , T ⊆ U , ∣ S ∣ + ∣ T ∣ ≤ r ) , (3) \sum_{Q\subseteq T} (-1)^{|Q|} y_{s,S\cup Q} \ge0 \qquad\left(s \in[n],\ S\cap T=\varnothing,\ S,T\subseteq\mathcal{U},\ |S|+|T|\le r\right), \tag*{(3)} Q ⊆ T ∑ ( − 1 ) ∣ Q ∣ y s , S ∪ Q ≥ 0 ( s ∈ [ n ] , S ∩ T = ∅ , S , T ⊆ U , ∣ S ∣ + ∣ T ∣ ≤ r ) , (3) ∑ D ∈ U ∣ D ∣ y s , T ∪ { D } = s y s , T ( s ∈ [ n ] , ∣ T ∣ ≤ r − 1 ) , (4) \sum_{D\in\mathcal{U}} |D| y_{s,T\cup\{D\}} = s y_{s,T} \qquad(s\in[n],\ |T|\le r-1), \tag*{(4)} D ∈ U ∑ ∣ D ∣ y s , T ∪ { D } = s y s , T ( s ∈ [ n ] , ∣ T ∣ ≤ r − 1 ) , (4) y s , { B , D } = 0 ( s ∈ [ n ] , B × D ⊆ H ) , (5) y_{s,\{B,D\}}=0 \qquad(s\in[n],\ B\times D\subseteq H), \tag*{(5)} y s , { B , D } = 0 ( s ∈ [ n ] , B × D ⊆ H ) , (5) where the separation values in the objective are defined from y y y by
x B D = 1 − ∑ s = 1 n y s , { B , D } , x u v = x B ( u ) B ( v ) . (6) x_{BD}=1-\sum_{s=1}^{n}y_{s,\{B,D\}}, \qquad x_{uv}=x_{B(u)B(v)}. \tag*{(6)} x B D = 1 − s = 1 ∑ n y s , { B , D } , x uv = x B ( u ) B ( v ) . (6) In an integral partition, y s , T y_{s,T} y s , T counts the s s s -clusters containing every unit in T T T ; y s , ∅ y_{s,\varnothing} y s , ∅ counts all s s s -clusters and may exceed one. The bounds 0 ≤ y s , S ≤ 1 0\le y_{s,S}\le1 0 ≤ y s , S ≤ 1 for nonempty S S S are implicit.
Coverage (2) says that each unit belongs to one cluster. The inclusion–exclusion inequalities (3) imply nonnegativity: taking T = ∅ T=\varnothing T = ∅ gives y s , S ≥ 0 y_{s,S}\ge0 y s , S ≥ 0 . They also imply monotonicity: taking T = { D } T=\{D\} T = { D } with D ∉ S D\notin S D ∈ / S gives y s , S − y s , S ∪ { D } ≥ 0 y_{s,S}-y_{s,S\cup\{D\}}\ge0 y s , S − y s , S ∪ { D } ≥ 0 . Thus requiring additional units cannot increase an inclusion value. Consequently, for nonempty S S S and B ∈ S B\in S B ∈ S ,
0 ≤ y s , S ≤ y s , { B } ≤ ∑ i = 1 n y i , { B } = 1. 0\le y_{s,S}\le y_{s,\{B\}}\le\sum_{i=1}^{n}y_{i,\{B\}}=1. 0 ≤ y s , S ≤ y s , { B } ≤ i = 1 ∑ n y i , { B } = 1.
The empty-set variables need not be at most one, but the size identity (4) and coverage (2) still give 0 ≤ s y s , ∅ = ∑ D ∈ U ∣ D ∣ y s , { D } ≤ n 0\le s y_{s,\varnothing}=\sum_{D\in\mathcal{U}}|D|y_{s,\{D\}}\le n 0 ≤ s y s , ∅ = ∑ D ∈ U ∣ D ∣ y s , { D } ≤ n .
The size identities (4) ensure that the label s s s agrees with the inclusion values in its layer. Fix a unit B B B with y s , { B } > 0 y_{s,\{B\}}>0 y s , { B } > 0 and divide the identity for T = { B } T=\{B\} T = { B } by this value:
∑ D ∈ U ∣ D ∣ y s , { B , D } y s , { B } = s . \sum_{D\in\mathcal{U}} |D| \frac{y_{s,\{B,D\}}}{y_{s,\{B\}}}=s. D ∈ U ∑ ∣ D ∣ y s , { B } y s , { B , D } = s .
Each ratio is the conditional inclusion value of D D D given the size and pivot unit B B B . Hence the total expected number of included vertices is s s s , and the expected number outside B B B is s − ∣ B ∣ s-|B| s − ∣ B ∣ . The same identity holds after conditioning on seeds and makes the seed probabilities sum to one. The final independent draws need not produce exactly s s s 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 (§ 5.1 ).
For a concrete example of the probabilities these inequalities provide, fix s s s , B B B with y s , { B } > 0 y_{s,\{B\}}>0 y s , { B } > 0 . For another unit D D D , the values
y s , { B , D } y s , { B } , y s , { B } − y s , { B , D } y s , { B } \frac{y_{s,\{B,D\}}}{y_{s,\{B\}}}, \qquad\frac{y_{s,\{B\}}-y_{s,\{B,D\}}}{y_{s,\{B\}}} y s , { B } y s , { B , D } , y s , { B } y s , { B } − y s , { B , D }
represent including and excluding D D D , respectively, given that B B B 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 r − 1 r-1 r − 1 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 V V V .
Sampling with seeds
In an integral partition, the sampler simply selects a cluster uniformly: choose its size s s s with probability proportional to the number of s s 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 r ≥ 6 r \ge6 r ≥ 6 and let Z = ∑ s y s , ∅ Z=\sum_s y_{s,\varnothing} Z = ∑ s y s , ∅ . For the chosen size s s s and pivot a a a , the eligible family is W = { D ∈ U ∖ { B ( a ) } : D × B ( a ) ⊈ H } \mathcal{W}=\{D\in\mathcal{U}\setminus\{B(a)\}:D\times B(a)\not\subseteq H\} W = { D ∈ U ∖ { B ( a )} : D × B ( a ) ⊆ H } . Initially
z T = y s , T ∪ { B ( a ) } y s , { B ( a ) } z_T=\frac{y_{s,T\cup\{B(a)\}}}{y_{s,\{B(a)\}}} z T = y s , { B ( a )} y s , T ∪ { B ( a )}
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 t = s − ∣ B ( a ) ∣ t=s-|B(a)| t = s − ∣ B ( a ) ∣ . The size identities (4) make the pivot and seed probabilities sum to one. Figure 5 gives the sampling algorithm. When s = ∣ B ( a ) ∣ s=|B(a)| s = ∣ B ( a ) ∣ , there is no outside inclusion mass, so Step 3 returns the pivot unit immediately. The nontrivial case is t > 0 t>0 t > 0 .
Figure 5. Sampling one candidate by positive conditioning.
Step 7 reduces the error caused by the final independent draws. For two distinct units B , D B,D B , D , those draws use the product z { B } z { D } z_{\{B\}}z_{\{D\}} z { B } z { D } instead of the joint value z { B , D } z_{\{B,D\}} z { B , D } . 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 s s s vertices. For a fractional solution, the independent choices in Step 8 can produce ∣ C ∣ ≠ s |C|\ne s ∣ C ∣ = s .
The variance-drop identity. Fix the size and pivot with t > 0 t > 0 t > 0 , and put W = ⋃ U ∈ U U W = \bigcup_{U\in\mathcal{U}} U W = ⋃ U ∈ U U . After k k k updates, write z i = z { B ( i ) } z_i = z_{\{B(i)\}} z i = z { B ( i )} and z i j = z { B ( i ) , B ( j ) } z_{ij} = z_{\{B(i),B(j)\}} z ij = z { B ( i ) , B ( j )} for i , j ∈ W i,j \in W i , j ∈ W . Let H k \mathcal{H}_k H k record the selected seeds and
c i j = z i j − z i z j , Φ k = ∑ i ∈ W z i ( 1 − z i ) , E k = ∑ i , j ∈ W : z j ≠ 0 c i j 2 z j . c_{ij}=z_{ij}-z_i z_j,\qquad\Phi_k=\sum_{i\in W}z_i(1-z_i),\qquad\mathcal{E}_k=\sum_{i,j\in W:z_j\ne0}\frac{c_{ij}^{2}}{z_j}. c ij = z ij − z i z j , Φ k = i ∈ W ∑ z i ( 1 − z i ) , E k = i , j ∈ W : z j = 0 ∑ z j c ij 2 .
When z j = 0 z_j=0 z j = 0 , the inclusion inequalities (3) also give z i j = 0 z_{ij}=0 z ij = 0 . The sums include ordered pairs and vertices in the same unit. The size identity gives ∑ i ∈ W z i = t \sum_{i\in W}z_i=t ∑ i ∈ W z i = t , so 0 ≤ Φ k ≤ t 0\le\Phi_k\le t 0 ≤ Φ k ≤ t . Selecting a seed unit is equivalent to selecting a vertex j j j with probability z j / t z_j/t z j / t and conditioning on its unit. The update changes z i z_i z i by c i j / z j c_{ij}/z_j c ij / z j , and the size identities (4) imply that its conditional expectation is zero. Expanding the variance gives
Φ k − E [ Φ k + 1 ∣ H k ] = E k t . \Phi_k-\mathbb{E}[\Phi_{k+1}\mid\mathcal{H}_k]=\frac{\mathcal{E}_k}{t}. Φ k − E [ Φ k + 1 ∣ H k ] = t E k .
Consider r / 2 r/2 r /2 possible updates. When K = k K=k K = k , the sampler stops before update k + 1 k+1 k + 1 . The stopping index K K K is uniform in { 0 , … , r / 2 − 1 } \{0,\ldots,r/2-1\} { 0 , … , r /2 − 1 } . Taking expectations and summing the identity gives
E [ E K ∣ s , a ] = 2 t r ( Φ 0 − E [ Φ r / 2 ∣ s , a ] ) ≤ 2 t 2 r ≤ 2 s 2 r . \mathbb{E}[\mathcal{E}_K\mid s,a]=\frac{2t}{r}\left(\Phi_0-\mathbb{E}[\Phi_{r/2}\mid s,a]\right)\le\frac{2t^2}{r}\le\frac{2s^2}{r}. E [ E K ∣ s , a ] = r 2 t ( Φ 0 − E [ Φ r /2 ∣ s , a ] ) ≤ r 2 t 2 ≤ r 2 s 2 .
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 r = O ( ε − 2 ) r=O(\varepsilon^{-2}) r = O ( ε − 2 ) 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.
Final Repulsion and 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 u v uv uv , put x = x u v x = x_{uv} x = x uv , and let q q q be its joint inclusion probability in one candidate. Each endpoint has marginal 1 / Z 1/Z 1/ Z . At the first round selecting either endpoint, the conditional probabilities of selecting exactly one and selecting both are
2 − 2 q Z 2 − q Z , q Z 2 − q Z . \frac{2 - 2qZ}{2 - qZ}, \qquad\frac{qZ}{2 - qZ}. 2 − q Z 2 − 2 q Z , 2 − q Z q Z .
respectively. Exactly one endpoint selected separates the pair. When both are selected, the pair enters the potential bound for Repulsion. Let a = 1 [ u v ∈ E + ] a = 1[uv \in E^+] a = 1 [ uv ∈ E + ] , and put ξ = q Z \xi= qZ ξ = q Z . The resulting accounting contribution is
F a ( x , ξ ) = 2 a ( 1 − ξ ) + ( 1 − a + a b ( x ) ) ξ 2 − ξ , b ( x ) = min { 2 , 2 x 2 1 − x } . F_a(x,\xi) = \frac{2a(1-\xi) + (1-a+ab(x))\xi}{2-\xi}, \qquad b(x) = \min\left\{2,\frac{2x^2}{1-x}\right\}. F a ( x , ξ ) = 2 − ξ 2 a ( 1 − ξ ) + ( 1 − a + ab ( x )) ξ , b ( x ) = min { 2 , 1 − x 2 x 2 } .
with b ( 1 ) = 2 b(1) = 2 b ( 1 ) = 2 . Lemma 6.2 bounds the expected total cost by the sum of these pair contributions. If joint sampling were exact, ξ = 1 − x \xi= 1-x ξ = 1 − x , then
F 1 ( x , 1 − x ) = min { 2 x , 2 1 + x } ≤ 2 x , F_1(x,1-x) = \min\left\{2x,\frac{2}{1+x}\right\} \le2x, F 1 ( x , 1 − x ) = min { 2 x , 1 + x 2 } ≤ 2 x ,
F 0 ( x , 1 − x ) = 1 − x 1 + x ≤ 1 − x . F_0(x,1-x) = \frac{1-x}{1+x} \le1-x. F 0 ( x , 1 − x ) = 1 + x 1 − x ≤ 1 − x .
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 1 / r 1/r 1/ r 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 L L , hence by a constant times OPT ( I ) \operatorname{OPT}(I) OPT ( I ) . Cauchy–Schwarz gives absolute positive-pair error O ( OPT ( I ) / r ) O(\operatorname{OPT}(I)/\sqrt{r}) O ( OPT ( I ) / r ) . 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
E [ cost I ( infinite-round algorithm ) ] ≤ 2 OPT ( I ) + c OPT ( I ) ( 1 r + 1 r ) . \mathbb{E}[\operatorname{cost}_I(\text{infinite-round algorithm})] \le2\operatorname{OPT}(I) + c\operatorname{OPT}(I)\left(\frac{1}{r}+\frac{1}{\sqrt{r}}\right). E [ cost I ( infinite-round algorithm )] ≤ 2 OPT ( I ) + c OPT ( I ) ( r 1 + r 1 ) .
for an absolute constant c c c . Choosing r r r as a sufficiently large constant multiple of ε − 2 \varepsilon^{-2} ε − 2 makes this overhead small. Lemma 6.4 bounds the additional loss from stopping after finitely many rounds and outputting remaining units separately. § 6.3 combines the sampling, truncation, and reduction bounds to prove Theorem 1.1 with running time ( n / ε ) O ( ε − 2 ) (n/\varepsilon)^{O(\varepsilon^{-2})} ( n / ε ) O ( ε − 2 ) .
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.
Reduction to cannot-links only
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 u v uv uv has separation cost p u v ∈ [ 0 , 1 ] p_{uv} \in[0,1] p uv ∈ [ 0 , 1 ] and co-clustering cost 1 − p u v 1-p_{uv} 1 − p uv . For a partition P \mathcal{P} P , write
cost p ( P ) = ∑ u < v [ p u v 1 [ u ̸ ∼ P v ] + ( 1 − p u v ) 1 [ u ∼ P v ] ] . \operatorname{cost}_{p}(\mathcal{P}) = \sum_{u<v} \left[p_{uv}1[u \not\sim_{\mathcal{P}} v] + (1-p_{uv})1[u \sim_{\mathcal{P}} v]\right]. cost p ( P ) = u < v ∑ [ p uv 1 [ u ∼ P v ] + ( 1 − p uv ) 1 [ u ∼ P v ] ] .
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.
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
∑ u v ∈ ( V 2 ) [ w u v + x u v + w u v − ( 1 − x u v ) ] . \sum_{uv\in\binom{V}{2}} \left[w^+_{uv}x_{uv}+w^-_{uv}(1-x_{uv})\right]. uv ∈ ( 2 V ) ∑ [ w uv + x uv + w uv − ( 1 − x uv ) ] .
The metric LP uses the constraints in (1) . For the full cluster LP, let C \mathcal{C} C be the family of nonempty sets C ⊆ V C \subseteq V C ⊆ V containing no cannot-link pair and containing either both endpoints or neither endpoint of every must-link. Introduce a variable λ C ≥ 0 \lambda_C \ge0 λ C ≥ 0 for each C ∈ C C \in\mathcal{C} C ∈ C , and impose
∑ C ∈ C : v ∈ C λ C = 1 ( v ∈ V ) , x u v = 1 − ∑ C ∈ C : u , v ∈ C λ C ( u ≠ v ) . \sum_{C\in\mathcal{C}:v\in C}\lambda_C=1 \qquad(v\in V), \qquad x_{uv}=1-\sum_{C\in\mathcal{C}:u,v\in C}\lambda_C \qquad(u\ne v). C ∈ C : v ∈ C ∑ λ C = 1 ( v ∈ V ) , x uv = 1 − C ∈ C : u , v ∈ C ∑ λ C ( u = v ) .
Thus λ C \lambda_C λ C is a fractional weight on a feasible cluster set, and every vertex has total coverage one.
Theorem 2.1. Consider a feasible instance ( V , E + , E − , M , H ) (V,E^+,E^-,M,H) ( V , E + , E − , M , H ) with costs w + , w − w^+,w^- w + , w − . Every optimal feasible partition places distinct vertices u , v u,v u , v together if w u v + > w u v − w^+_{uv}>w^-_{uv} w uv + > w uv − , u v ∉ H uv\notin H uv ∈ / H , and for every t ∉ { u , v } t\notin\{u,v\} t ∈ / { u , v } :
u t ∈ M ⟺ v t ∈ M , u t ∈ H ⟺ v t ∈ H , w u t + − w u t − = w v t + − w v t − . ut\in M \Longleftrightarrow vt\in M, \qquad ut\in H \Longleftrightarrow vt\in H, \qquad w^+_{ut}-w^-_{ut}=w^+_{vt}-w^-_{vt}. u t ∈ M ⟺ v t ∈ M , u t ∈ H ⟺ v t ∈ H , w u t + − w u t − = w v t + − w v t − . Moreover, every optimal solution of the metric LP and of the cluster LP has x u v = 0 x_{uv}=0 x uv = 0 .
Proof. If u v ∈ M uv\in M uv ∈ M , every feasible partition keeps u , v u,v u , v together and every feasible LP solution has x u v = 0 x_{uv}=0 x uv = 0 . If u t ∈ M ut\in M u t ∈ M for some t ∉ { u , v } t\notin\{u,v\} t ∈ / { u , v } , the assumed symmetry also gives v t ∈ M vt\in M v t ∈ M . Feasibility then forces u , v u,v u , v together; the metric triangle inequality gives x u v ≤ x u t + x t v = 0 x_{uv}\le x_{ut}+x_{tv}=0 x uv ≤ x u t + x t v = 0 , and every feasible cluster-LP cluster containing either vertex must contain both. We may therefore assume that neither u u u nor v v v is incident to a must-link.
Put c i j = w i j + − w i j − c_{ij}=w^+_{ij}-w^-_{ij} c ij = w ij + − w ij − . The objective equals
∑ i < j w i j − + ∑ i < j c i j 1 [ i , j separated ] . \sum_{i<j}w^-_{ij}+\sum_{i<j}c_{ij}1[i,j\text{ separated}]. i < j ∑ w ij − + i < j ∑ c ij 1 [ i , j separated ] .
The first sum is independent of the partition. Suppose u , v u,v u , v belong to different clusters. Moving u u u into v v v ’s cluster or moving v v v into u u u ’s cluster is feasible because their external cannot-link relations agree. The two cost changes satisfy
Δ u + Δ v = − 2 c u v . \Delta_u+\Delta_v=-2c_{uv}. Δ u + Δ v = − 2 c uv .
Indeed, their contributions involving any other vertex cancel, while each move removes the separation cost c u v c_{uv} c uv . Since c u v > 0 c_{uv}>0 c uv > 0 , 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 v v v onto u u u by setting x u w = x v w x_{uw}=x_{vw} x u w = x v w for w ∉ { u , v } w\notin\{u,v\} w ∈ / { u , v } and x u v = 0 x_{uv}=0 x uv = 0 , or clone u u u onto v v v . Each operation preserves bounds, triangle inequalities, and cannot-link distances. Their objective changes sum to − 2 c u v x u v -2c_{uv}x_{uv} − 2 c uv x uv . 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 − 2 c u v x u v ≥ 0 -2c_{uv}x_{uv}\ge0 − 2 c uv x uv ≥ 0 . Since c u v > 0 c_{uv}>0 c uv > 0 , this implies x u v = 0 x_{uv}=0 x uv = 0 and proves both LP claims.
Given a feasible instance I = ( V , E + , E − , M , H ) I=(V,E^+,E^-,M,H) I = ( V , E + , E − , M , H ) , construct J J J as follows. Let B 1 , … , B h B_1,\ldots,B_h B 1 , … , B h be the connected components of ( V , M ) (V,M) ( V , M ) . Every feasible partition must preserve each B i B_i B i . 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
∑ i e − ( B i ) + ∑ i < j ( B i × B j ) ∩ H ≠ ∅ e + ( B i , B j ) . (7) \sum_i e^-(B_i)+\sum_{\substack{i<j\\(B_i\times B_j)\cap H\ne\varnothing}}e^+(B_i,B_j). \tag*{(7)} i ∑ e − ( B i ) + i < j ( B i × B j ) ∩ H = ∅ ∑ e + ( B i , B j ) . (7)
Within each component set p u v = 1 p_{uv}=1 p uv = 1 . Between incompatible components set p u v = 0 p_{uv}=0 p uv = 0 . For compatible distinct components, set
p u v = e + ( B i , B j ) ∣ B i ∣ ∣ B j ∣ ( u ∈ B i , v ∈ B j ) . p_{uv}=\frac{e^{+}(B_i,B_j)}{|B_i||B_j|}\qquad(u\in B_i,\ v\in B_j). p uv = ∣ B i ∣∣ B j ∣ e + ( B i , B j ) ( u ∈ B i , v ∈ B j ) .
Remove the must-link constraints to obtain J J 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 I = ( V , E + , E − , M , H ) I=(V,E^{+},E^{-},M,H) I = ( V , E + , E − , M , H ) , one can construct in polynomial time a probability-weighted instance J J J on the same vertex set, with only cannot-links and OPT ( J ) ≤ OPT ( I ) \operatorname{OPT}(J)\leq\operatorname{OPT}(I) OPT ( J ) ≤ OPT ( I ) . Every feasible partition Q Q Q of J J J can be projected deterministically in polynomial time to a feasible partition P P P of I I I satisfying
cost I ( P ) − cost J ( Q ) ≤ OPT ( I ) − OPT ( J ) . (8) \operatorname{cost}_{I}(P)-\operatorname{cost}_{J}(Q)\leq\operatorname{OPT}(I)-\operatorname{OPT}(J). \tag*{(8)} cost I ( P ) − cost J ( Q ) ≤ OPT ( I ) − OPT ( J ) . (8)
Proof. Every feasible partition of I I I preserves the components B i B_i B i . For any such partition P P P , the construction gives cost I ( P ) − cost J ( P ) \operatorname{cost}_{I}(P)-\operatorname{cost}_{J}(P) cost I ( P ) − cost J ( P ) equal to (7) . Conversely, Theorem 2.1 implies that every optimum of J J J preserves the true-twin classes B i B_i B i , so it is also feasible for I I I . Applying this cost identity to the optima shows that OPT ( I ) − OPT ( J ) \operatorname{OPT}(I)-\operatorname{OPT}(J) OPT ( I ) − OPT ( J ) is also given by (7) . In particular, OPT ( J ) ≤ OPT ( I ) \operatorname{OPT}(J)\leq\operatorname{OPT}(I) OPT ( J ) ≤ OPT ( I ) .
For the projection, apply the constructive true-twin argument from the proof of Theorem 2.1 to gather each class B i B_i B i deterministically, preserving feasibility and without increasing cost J \operatorname{cost}_{J} cost J . The resulting partition P P P is feasible for I I I and satisfies cost J ( P ) ≤ cost J ( Q ) \operatorname{cost}_{J}(P)\leq\operatorname{cost}_{J}(Q) cost J ( P ) ≤ cost J ( Q ) . Together with the cost identity above, this proves (8) .
Both the construction and the projection take polynomial time. Within each B i B_i B i , the two twin moves have cost changes summing to − 2 -2 − 2 ; choosing the better move decreases cost by at least one, so at most ( ∣ B i ∣ 2 ) \binom{|B_i|}{2} ( 2 ∣ B i ∣ ) moves suffice.
If Q Q Q splits any component, gathering strictly decreases its internal separation cost, so (8) is strict. If Q Q Q already preserves every component, we may take P = Q P=Q P = Q and obtain equality. In particular, this is the case when Q Q Q is an optimal partition of J J J by Theorem 2.1.
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 1 / δ 1/\delta 1/ δ .
Theorem 3.3 ([13 ] ). Fix constants α ≥ 1 \alpha\geq1 α ≥ 1 and δ > 0 \delta>0 δ > 0 . 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 α \alpha α . 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 α + δ \alpha+\delta α + δ .
The reduction replaces each vertex v v v by a positive clique V v V_v V v of copies. Between copies of distinct vertices u , v u,v u , v , it independently samples positive labels with probability p u v p_{uv} p uv and negative labels otherwise. For every cannot-link u v uv uv , it imposes cannot-links on all pairs in V u × V v V_u\times V_v V u × V v . 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 α ≥ 1 \alpha\ge1 α ≥ 1 and δ > 0 \delta> 0 δ > 0 . A polynomial-time algorithm with expected approximation factor α \alpha α for constrained correlation clustering with only cannot-links gives a randomized polynomial-time ( α + δ ) (\alpha+\delta) ( α + δ ) -approximation for general constrained correlation clustering.
Proof. Apply Lemma 3.2 to obtain a probability-weighted instance J J J with only cannot-links. Apply Theorem 3.3 to J J J , obtaining a feasible partition Q Q Q , and project it back to a feasible partition P P P of I I I using Lemma 3.2 . By (8) ,
E [ cost I ( P ) ] ≤ OPT ( I ) − OPT ( J ) + E [ cost J ( Q ) ] ≤ OPT ( I ) + ( α + δ − 1 ) OPT ( J ) ≤ ( α + δ ) OPT ( I ) . \begin{aligned}
\mathbb{E}[\operatorname{cost}_{I}(P)] &\le\operatorname{OPT}(I)-\operatorname{OPT}(J)+\mathbb{E}[\operatorname{cost}_{J}(Q)]\\
&\le\operatorname{OPT}(I)+(\alpha+\delta-1)\operatorname{OPT}(J)\\
&\le(\alpha+\delta)\operatorname{OPT}(I).
\end{aligned} E [ cost I ( P )] ≤ OPT ( I ) − OPT ( J ) + E [ cost J ( Q )] ≤ OPT ( I ) + ( α + δ − 1 ) OPT ( J ) ≤ ( α + δ ) OPT ( I ) .
The last inequality uses OPT ( J ) ≤ OPT ( I ) \operatorname{OPT}(J) \le\operatorname{OPT}(I) OPT ( J ) ≤ OPT ( I ) and α + δ ≥ 1 \alpha+\delta\ge1 α + δ ≥ 1 . 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 ε > 0 \varepsilon> 0 ε > 0 , there is a randomized polynomial-time ( 1.3865 + ε ) (1.3865+\varepsilon) ( 1.3865 + ε ) -approximation algorithm for constrained correlation clustering with must-link constraints only.
Proof. Apply Theorem 2.2 with slack δ = ε / 2 \delta=\varepsilon/2 δ = ε /2 and the correlation clustering algorithm of García-Soriano and Schohn [18 ] with accuracy ε / 2 \varepsilon/2 ε /2 . 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 1.3865 + ε 1.3865+\varepsilon 1.3865 + ε , and the projection preserves every must-link.
For the main ( 2 + ε ) (2+\varepsilon) ( 2 + ε ) guarantee, use the unweighted cannot-link algorithm with approximation factor α = 2 + ε / 2 \alpha=2+\varepsilon/2 α = 2 + ε /2 and allow δ = ε / 2 \delta=\varepsilon/2 δ = ε /2 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 N = poly ( n , 1 / ε ) N=\operatorname{poly}(n,1/\varepsilon) N = poly ( n , 1/ ε ) vertices and the core algorithm runs in N O ( ε − 2 ) N^{O(\varepsilon^{-2})} N O ( ε − 2 ) time, the resulting running time is ( n / ε ) O ( ε − 2 ) (n/\varepsilon)^{O(\varepsilon^{-2})} ( n / ε ) O ( ε − 2 ) . 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.
Constraint-aware preclustering
We apply preclustering to the feasible unweighted instance I = ( V , E + , E − , ∅ , H ) I=(V,E^{+},E^{-},\varnothing,H) I = ( V , E + , E − , ∅ , H ) 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 F F F be the set of free vertices. A unit is an atom or a singleton free vertex. Write U U U for the family of units and B ( v ) B(v) B ( v ) for the unit containing v v v . 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.
Atoms and 2-expansion
For Q ⊆ V Q \subseteq V Q ⊆ V and v ∈ Q v \in Q v ∈ Q , define
e Q ( v ) = e − ( v , Q ) + e + ( v , V ∖ Q ) , δ Q = max v ∈ Q e Q ( v ) . e_Q(v) = e^{-}(v,Q) + e^{+}(v,V \setminus Q), \qquad\delta_Q = \max_{v \in Q} e_Q(v). e Q ( v ) = e − ( v , Q ) + e + ( v , V ∖ Q ) , δ Q = v ∈ Q max e Q ( v ) .
Thus e Q ( v ) e_Q(v) e Q ( v ) counts the disagreements incident to v v v when Q Q Q is a cluster: negative pairs inside Q Q Q and positive pairs leaving Q Q Q . A dangerous outsider is a vertex w ∉ Q w \notin Q w ∈ / Q with e + ( w , Q ) ≥ ∣ Q ∣ / 3 e^{+}(w,Q) \ge|Q|/3 e + ( w , Q ) ≥ ∣ Q ∣/3 and a cannot-link to some vertex of Q Q Q .
A 2-expansion from a set W W W into Q Q Q assigns two distinct neighbors in Q Q Q to every vertex of W W W , with no assigned vertex reused. Here adjacency means a cannot-link. Equivalently, duplicating every vertex of W W W yields a bipartite graph with a matching saturating all copies.
Lemma 2.3 (2-expansion). Given a bipartite graph with parts L L L , R R R , one can find in polynomial time sets Q ⊆ L Q \subseteq L Q ⊆ L , Z ⊆ R Z \subseteq R Z ⊆ R , and an edge set M M M between them such that
N ( Q ) = Z , ∣ L ∖ Q ∣ ≤ 2 ∣ R ∖ Z ∣ . N(Q) = Z, \qquad|L \setminus Q| \le2|R \setminus Z|. N ( Q ) = Z , ∣ L ∖ Q ∣ ≤ 2∣ R ∖ Z ∣. Every vertex of Z Z Z is incident to exactly two edges of M M M , and every vertex of Q Q Q is incident to at most one. The sets may be empty, and Q Q Q contains every isolated vertex of L L L .
Proof. Replace every vertex of R R 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 L L , follow alternating paths: unmatched edges from left to right and matched edges from right to left. Let Q Q Q be the reached vertices of L L L , and let Z Z Z consist of the vertices of R R 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 N ( Q ) = Z N(Q) = Z N ( Q ) = Z . 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 Z Z therefore give the required 2-expansion into Q Q Q . Every vertex in L ∖ Q L \setminus Q L ∖ Q is matched to a copy of a vertex in R ∖ Z R \setminus Z R ∖ Z , yielding ∣ L ∖ Q ∣ ≤ 2 ∣ R ∖ Z ∣ |L \setminus Q| \le2|R \setminus Z| ∣ L ∖ Q ∣ ≤ 2∣ R ∖ Z ∣ . Isolated left vertices are unmatched and belong to Q Q Q . The algorithm returns all vertices of Q Q Q , including those not used as witnesses by M M M . 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 Q Q Q , every incompatible outsider in the cluster containing its largest piece is dangerous. Its two witnesses must lie in the other pieces of Q Q Q , 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 ∣ Q ∣ ≥ 2 |Q| \ge2 ∣ Q ∣ ≥ 2 , Q Q Q has no internal cannot-link pair, δ Q < ∣ Q ∣ / 20 \delta_Q < |Q|/20 δ Q < ∣ Q ∣/20 , and the cannot-link graph admits a 2-expansion from the dangerous outsiders into Q Q Q . Then Q Q Q is an atom. In every optimal feasible partition, its cluster contains at most 2 δ Q 2\delta_Q 2 δ Q vertices outside Q Q Q . Moreover, any two disjoint sets satisfying these hypotheses lie in different clusters in every optimum.
Proof. Suppose an optimal feasible partition splits Q Q Q . Let C C C contain its largest piece, breaking ties arbitrarily, and put S = Q ∩ C S = Q \cap C S = Q ∩ C and R = Q ∖ C R = Q \setminus C R = Q ∖ C . Writing Q 1 , … , Q k Q_1, \ldots, Q_k Q 1 , … , Q k for the intersections of Q Q Q with the optimal clusters, we have ∣ Q i ∣ ≤ ∣ S ∣ |Q_i| \le|S| ∣ Q i ∣ ≤ ∣ S ∣ , so the number of separated pairs within Q Q Q is at least
∣ Q ∣ 2 − ∑ i ∣ Q i ∣ 2 2 ≥ ∣ Q ∣ ( ∣ Q ∣ − ∣ S ∣ ) 2 = ∣ Q ∣ ∣ R ∣ 2 . \frac{|Q|^2-\sum_i |Q_i|^2}{2} \ge\frac{|Q|(|Q|-|S|)}{2} = \frac{|Q||R|}{2}. 2 ∣ Q ∣ 2 − ∑ i ∣ Q i ∣ 2 ≥ 2 ∣ Q ∣ ( ∣ Q ∣ − ∣ S ∣ ) = 2 ∣ Q ∣∣ R ∣ .
The number of negative pairs among them is at most ∣ R ∣ δ Q |R|\delta_Q ∣ R ∣ δ Q , since every such pair has an endpoint in R R R . Making Q Q Q a separate cluster is feasible and loses at most ∣ Q ∣ δ Q |Q|\delta_Q ∣ Q ∣ δ Q in external positive edges. Optimality gives
0 ≤ − ∣ Q ∣ ∣ R ∣ 2 + 2 ∣ R ∣ δ Q + ∣ Q ∣ δ Q . 0 \le-\frac{|Q||R|}{2} + 2|R|\delta_Q + |Q|\delta_Q. 0 ≤ − 2 ∣ Q ∣∣ R ∣ + 2∣ R ∣ δ Q + ∣ Q ∣ δ Q .
If δ Q = 0 \delta_Q = 0 δ Q = 0 , this already contradicts R ≠ ∅ R \ne\varnothing R = ∅ . Otherwise,
∣ R ∣ ≤ 2 ∣ Q ∣ δ Q ∣ Q ∣ − 4 δ Q < 3 δ Q , ∣ S ∣ > ∣ Q ∣ − 3 δ Q . |R| \le\frac{2|Q|\delta_Q}{|Q|-4\delta_Q} < 3\delta_Q,\qquad|S| > |Q|-3\delta_Q. ∣ R ∣ ≤ ∣ Q ∣ − 4 δ Q 2∣ Q ∣ δ Q < 3 δ Q , ∣ S ∣ > ∣ Q ∣ − 3 δ Q .
Put T = C ∖ Q T = C \setminus Q T = C ∖ Q . Separating S S S from T T T is feasible and changes cost by 2 e + ( S , T ) − ∣ S ∣ ∣ T ∣ 2e^+(S,T)-|S||T| 2 e + ( S , T ) − ∣ S ∣∣ T ∣ . Since e + ( S , T ) ≤ ∣ S ∣ δ Q e^+(S,T) \le|S|\delta_Q e + ( S , T ) ≤ ∣ S ∣ δ Q , optimality implies ∣ T ∣ ≤ 2 δ Q |T| \le2\delta_Q ∣ T ∣ ≤ 2 δ Q . Isolating any w ∈ T w \in T w ∈ T also cannot improve the partition, hence
e + ( w , S ) ≥ ∣ S ∣ − ∣ T ∣ + 1 2 > ∣ Q ∣ − 5 δ Q 2 > ∣ Q ∣ 3 . e^+(w,S) \ge\frac{|S|-|T|+1}{2} > \frac{|Q|-5\delta_Q}{2} > \frac{|Q|}{3}. e + ( w , S ) ≥ 2 ∣ S ∣ − ∣ T ∣ + 1 > 2 ∣ Q ∣ − 5 δ Q > 3 ∣ Q ∣ .
Partition T T T into outsiders X X X incompatible with Q Q Q and outsiders Y Y Y compatible with all of Q Q Q . By the preceding inequality, every vertex of X X X is dangerous. Its two assigned cannot-link witnesses lie in R R R , since C C C is feasible. The 2-expansion gives
∣ X ∣ ≤ ∣ R ∣ / 2 , ∣ Y ∣ ≤ 2 δ Q . |X| \le|R|/2,\qquad|Y| \le2\delta_Q. ∣ X ∣ ≤ ∣ R ∣/2 , ∣ Y ∣ ≤ 2 δ Q .
Replace C C C by Q ∪ Y Q \cup Y Q ∪ Y and X X X , removing the vertices of R R R from their former clusters and discarding empty clusters. The new partition is feasible: Q Q Q has no internal cannot-link, Y Y Y is compatible with Q Q Q , and both X X X and Y Y Y were subsets of C C C . The changes in cost from reuniting Q Q Q , removing R R R from its former clusters, merging R R R with Y Y Y , and separating X X X from S ∪ Y S \cup Y S ∪ Y are bounded above respectively by
− ∣ R ∣ ∣ S ∣ + 2 ∣ R ∣ δ Q , ∣ R ∣ δ Q , ∣ R ∣ ∣ Y ∣ , ∣ X ∣ ( ∣ S ∣ + ∣ Y ∣ ) . -|R||S|+2|R|\delta_Q,\qquad|R|\delta_Q,\qquad|R||Y|,\qquad|X|(|S|+|Y|). − ∣ R ∣∣ S ∣ + 2∣ R ∣ δ Q , ∣ R ∣ δ Q , ∣ R ∣∣ Y ∣ , ∣ X ∣ ( ∣ S ∣ + ∣ Y ∣ ) .
Their sum is at most
Δ ≤ 3 ∣ R ∣ δ Q − ( ∣ R ∣ − ∣ X ∣ ) ∣ S ∣ + ( ∣ R ∣ + ∣ X ∣ ) ∣ Y ∣ ≤ 6 ∣ R ∣ δ Q − ∣ R ∣ ∣ S ∣ 2 < 0 , \Delta\le3|R|\delta_Q-(|R|-|X|)|S|+(|R|+|X|)|Y|
\le6|R|\delta_Q-\frac{|R||S|}{2}<0, Δ ≤ 3∣ R ∣ δ Q − ( ∣ R ∣ − ∣ X ∣ ) ∣ S ∣ + ( ∣ R ∣ + ∣ X ∣ ) ∣ Y ∣ ≤ 6∣ R ∣ δ Q − 2 ∣ R ∣∣ S ∣ < 0 ,
because ∣ S ∣ > ∣ Q ∣ − 3 δ Q > 17 δ Q |S|>|Q|-3\delta_Q>17\delta_Q ∣ S ∣ > ∣ Q ∣ − 3 δ Q > 17 δ Q . This contradicts optimality.
Once Q Q Q is intact, separating it from the outsiders T T T in its cluster yields
0 ≤ 2 e + ( Q , T ) − ∣ Q ∣ ∣ T ∣ ≤ 2 ∣ Q ∣ δ Q − ∣ Q ∣ ∣ T ∣ , 0\le2e^+(Q,T)-|Q||T|\le2|Q|\delta_Q-|Q||T|, 0 ≤ 2 e + ( Q , T ) − ∣ Q ∣∣ T ∣ ≤ 2∣ Q ∣ δ Q − ∣ Q ∣∣ T ∣ ,
so ∣ T ∣ ≤ 2 δ Q |T|\le2\delta_Q ∣ T ∣ ≤ 2 δ Q . If disjoint sets Q Q Q , B B B satisfying the hypotheses shared an optimal cluster, we would have both
∣ B ∣ ≤ 2 δ Q < ∣ Q ∣ / 10 , ∣ Q ∣ ≤ 2 δ B < ∣ B ∣ / 10 , |B|\le2\delta_Q<|Q|/10,\qquad|Q|\le2\delta_B<|B|/10, ∣ B ∣ ≤ 2 δ Q < ∣ Q ∣/10 , ∣ Q ∣ ≤ 2 δ B < ∣ B ∣/10 ,
a contradiction.
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 ∑ v ∈ F e + ( v , V ) \sum_{v\in F}e^+(v,V) ∑ v ∈ F e + ( v , V ) . 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 I I be the instance entering preclustering. One can construct disjoint atoms and a free-vertex set F F F in polynomial time such that
∑ v ∈ F e + ( v , V ) ≤ C p r e OPT ( I ) . (9) \sum_{v\in F}e^+(v,V)\le C_{\mathrm{pre}}\operatorname{OPT}(I). \tag*{(9)} v ∈ F ∑ e + ( v , V ) ≤ C pre OPT ( I ) . (9) Proof. Take the feasible partition P \mathcal{P} P supplied by the deterministic version of Theorem 1.6, of cost cost I ( P ) ≤ 3 OPT ( I ) \operatorname{cost}_I(\mathcal{P})\le3\operatorname{OPT}(I) cost I ( P ) ≤ 3 OPT ( I ) . For each cluster S ∈ P S\in\mathcal{P} S ∈ P , put
q S = 2 e − ( S ) + e + ( S , V ∖ S ) = ∑ v ∈ S e S ( v ) , ∑ S ∈ P q S = 2 cost I ( P ) . q_S=2e^-(S)+e^+(S,V\setminus S)=\sum_{v\in S}e_S(v),\qquad\sum_{S\in\mathcal{P}}q_S=2\operatorname{cost}_I(\mathcal{P}). q S = 2 e − ( S ) + e + ( S , V ∖ S ) = v ∈ S ∑ e S ( v ) , S ∈ P ∑ q S = 2 cost I ( P ) . If ∣ S ∣ = 1 |S|=1 ∣ S ∣ = 1 , mark its vertex free; its positive degree is exactly q S q_S q S . For the remaining clusters, if q S ≥ ∣ S ∣ 2 / 10000 q_S\ge|S|^2/10000 q S ≥ ∣ S ∣ 2 /10000 , mark all vertices of S S S free. Otherwise, remove the vertices with e S ( v ) > ∣ S ∣ / 100 e_S(v)>|S|/100 e S ( v ) > ∣ S ∣/100 , mark them free, and let S ′ S' S ′ be the remaining set. Then
∣ S ∖ S ′ ∣ ≤ 100 q S ∣ S ∣ . |S\setminus S'|\le\frac{100q_S}{|S|}. ∣ S ∖ S ′ ∣ ≤ ∣ S ∣ 100 q S . Let
W S = { w ∉ S : e + ( w , S ) ≥ ∣ S ∣ / 4 } . W_S=\{w\notin S:e^+(w,S)\ge|S|/4\}. W S = { w ∈ / S : e + ( w , S ) ≥ ∣ S ∣/4 } . Every vertex of W S W_S W S contributes at least ∣ S ∣ / 4 |S|/4 ∣ S ∣/4 positive edges to the boundary of S S S . Hence
∣ S ∣ 4 ∣ W S ∣ ≤ ∑ w ∈ W S e + ( w , S ) ≤ e + ( S , V ∖ S ) ≤ q S , ∣ W S ∣ ≤ 4 q S ∣ S ∣ . \frac{|S|}{4}|W_S|\le\sum_{w\in W_S}e^+(w,S)\le e^+(S,V\setminus S)\le q_S,\qquad|W_S|\le\frac{4q_S}{|S|}. 4 ∣ S ∣ ∣ W S ∣ ≤ w ∈ W S ∑ e + ( w , S ) ≤ e + ( S , V ∖ S ) ≤ q S , ∣ W S ∣ ≤ ∣ S ∣ 4 q S .
Form the bipartite cannot-link graph with parts S ′ S' S ′ , W S W_S W S . Lemma 2.3 finds Q ⊆ S ′ Q \subseteq S' Q ⊆ S ′ and Z ⊆ W S Z \subseteq W_S Z ⊆ W S with N ( Q ) = Z N(Q)=Z N ( Q ) = Z , a 2-expansion from Z Z Z into Q Q Q , and
∣ S ′ ∖ Q ∣ ≤ 2 ∣ W S ∖ Z ∣ ≤ 2 ∣ W S ∣ . |S' \setminus Q| \le2|W_S \setminus Z| \le2|W_S|. ∣ S ′ ∖ Q ∣ ≤ 2∣ W S ∖ Z ∣ ≤ 2∣ W S ∣.
Here N ( Q ) N(Q) N ( Q ) is the neighborhood in this bipartite graph. Consequently,
∣ S ∖ Q ∣ ≤ 108 q S ∣ S ∣ < 0.0108 ∣ S ∣ , ∣ Q ∣ > 0.9892 ∣ S ∣ . |S \setminus Q| \le\frac{108q_S}{|S|} < 0.0108|S|,\qquad|Q| > 0.9892|S|. ∣ S ∖ Q ∣ ≤ ∣ S ∣ 108 q S < 0.0108∣ S ∣ , ∣ Q ∣ > 0.9892∣ S ∣.
Since ∣ S ∣ ≥ 2 |S| \ge2 ∣ S ∣ ≥ 2 , the latter inequality also gives ∣ Q ∣ ≥ 2 |Q| \ge2 ∣ Q ∣ ≥ 2 . For every v ∈ Q v \in Q v ∈ Q ,
e Q ( v ) ≤ e S ( v ) + ∣ S ∖ Q ∣ < 0.0208 ∣ S ∣ < ∣ Q ∣ / 20. e_Q(v) \le e_S(v) + |S \setminus Q| < 0.0208|S| < |Q|/20. e Q ( v ) ≤ e S ( v ) + ∣ S ∖ Q ∣ < 0.0208∣ S ∣ < ∣ Q ∣/20.
Since Q ⊆ S Q \subseteq S Q ⊆ S and S S S belongs to a feasible partition, Q Q Q contains no internal cannot-link, and every dangerous outsider of Q Q Q lies outside S S S . For any such outsider v v v ,
e + ( v , S ) ≥ e + ( v , Q ) ≥ ∣ Q ∣ / 3 > ∣ S ∣ / 4. e^+(v,S) \ge e^+(v,Q) \ge|Q|/3 > |S|/4. e + ( v , S ) ≥ e + ( v , Q ) ≥ ∣ Q ∣/3 > ∣ S ∣/4.
Thus, v ∈ W S v \in W_S v ∈ W S . Since v v v has a cannot-link neighbor in Q Q Q , we have v ∈ N ( Q ) = Z v \in N(Q)=Z v ∈ N ( Q ) = Z . Thus the 2-expansion from Z Z Z into Q Q Q assigns two distinct, non-reused witnesses in Q Q Q to every dangerous outsider of $Q. Lemma 4.1 therefore applies. Retain Q Q Q as an atom and mark S ∖ Q S \setminus Q S ∖ Q free. The retained sets are disjoint because they come from distinct clusters of P \mathcal{P} P , and Lemma 4.1 ensures that every optimum places them in different clusters.
If all vertices of a cluster S S S with ∣ S ∣ ≥ 2 |S| \ge2 ∣ S ∣ ≥ 2 are marked free, their total positive degree is at most
∣ S ∣ 2 + e + ( S , V ∖ S ) ≤ 10000 q S + q S = 10001 q S . |S|^2 + e^+(S,V \setminus S) \le10000q_S + q_S = 10001q_S. ∣ S ∣ 2 + e + ( S , V ∖ S ) ≤ 10000 q S + q S = 10001 q S .
If Q Q Q is retained, the free vertices in S ∖ Q S \setminus Q S ∖ Q have sum of positive degrees at most
∣ S ∣ ∣ S ∖ Q ∣ + e + ( S , V ∖ S ) ≤ 109 q S . |S||S \setminus Q| + e^+(S,V \setminus S) \le109q_S. ∣ S ∣∣ S ∖ Q ∣ + e + ( S , V ∖ S ) ≤ 109 q S .
Summing over the clusters of P \mathcal{P} P gives
∑ v ∈ F e + ( v , V ) ≤ 10001 ∑ S ∈ P q S = 20002 cost I ( P ) ≤ 6 ⋅ 10001 OPT ( I ) . \sum_{v \in F} e^+(v,V) \le10001\sum_{S \in\mathcal{P}} q_S = 20002\operatorname{cost}_I(\mathcal{P}) \le6 \cdot10001\operatorname{OPT}(I). v ∈ F ∑ e + ( v , V ) ≤ 10001 S ∈ P ∑ q S = 20002 cost I ( P ) ≤ 6 ⋅ 10001 OPT ( I ) .
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 I 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 H H denote this augmented and propagated set.
Apply the fixed-cost relabeling step of normalization (Definition 3.1 ), retaining all vertices and units. Write I ′ I' I ′ for the residual instance.
Theorem 2.4. Let I = ( V , E + , E − , ∅ , H ) I=(V,E^+,E^-,\varnothing,H) I = ( V , E + , E − , ∅ , H ) be an instance with only cannot-links. There is an absolute constant C p r e C_{\mathrm{pre}} C pre and a polynomial-time preclustering algorithm that constructs units and a residual instance I ′ I' I ′ on the same vertex set. The following properties hold.
(i) No cannot-link lies within a unit. Between distinct units B , D B,D B , D , 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.
(iii) OPT ( I ′ ) ≤ OPT ( I ) \operatorname{OPT}(I') \le\operatorname{OPT}(I) OPT ( I ′ ) ≤ OPT ( I ) and ∑ v i s f r e e e + ( v , V ) ≤ C p r e OPT ( I ) \sum_{v\ \mathrm{is\ free}} e^+(v,V) \le C_{\mathrm{pre}}\operatorname{OPT}(I) ∑ v is free e + ( v , V ) ≤ C pre OPT ( I ) .
Every optimal partition of I I I remains feasible for I ′ I' I ′ and preserves the units. Every feasible unit-preserving partition P P P of I ′ I' I ′ is feasible for I I I and satisfies
cost I ( P ) − cost I ′ ( P ) = OPT ( I ) − OPT ( I ′ ) . \operatorname{cost}_I(P)-\operatorname{cost}_{I'}(P)=\operatorname{OPT}(I)-\operatorname{OPT}(I'). cost I ( P ) − cost I ′ ( P ) = OPT ( I ) − OPT ( I ′ ) .
Proof. Lemma 4.2 constructs the atoms and proves
∑ v ∈ F e + ( v , V ) ≤ C p r e OPT ( I ) , \sum_{v\in F}e^+(v,V)\le C_{\mathrm{pre}}\operatorname{OPT}(I), v ∈ F ∑ e + ( v , V ) ≤ C pre OPT ( I ) ,
where G G G is the positive graph before normalization. By Lemma 4.1, every optimal partition of I I I 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 I I I remains feasible after the constraint changes, and every feasible unit-preserving partition of I ′ I' I ′ is feasible for I I I .
The fixed-cost identity from normalization (Definition 3.1) gives, for every such partition,
cost I ( P ) − cost I ′ ( P ) = ∣ H ∩ E + ∣ , \operatorname{cost}_I(P)-\operatorname{cost}_{I'}(P)=\lvert H\cap E^+\rvert, cost I ( P ) − cost I ′ ( P ) = ∣ H ∩ E + ∣ ,
where E + E^+ E + in this display denotes the labels before normalization.
It remains to show that every optimum of I ′ I' I ′ also preserves the atoms. The internal labels of an atom Q Q Q are unchanged, and its external positive neighborhood only shrinks. Thus δ Q < ∣ Q ∣ / 20 \delta_Q<\lvert Q\rvert/20 δ Q < ∣ Q ∣ /20 still holds. Every outsider incompatible with Q Q Q now has e + ( w , Q ) = 0 e^+(w,Q)=0 e + ( w , Q ) = 0 , so there are no dangerous outsiders. Lemma 4.1, with an empty 2-expansion, shows that every optimum of I ′ I' I ′ preserves Q Q Q and that distinct atoms lie in different optimal clusters. Applying the cost identity to optima of I I I and I ′ I' I ′ gives
OPT ( I ) − OPT ( I ′ ) = ∣ H ∩ E + ∣ ≥ 0 , \operatorname{OPT}(I)-\operatorname{OPT}(I')=\lvert H\cap E^+\rvert\ge0, OPT ( I ) − OPT ( I ′ ) = ∣ H ∩ E + ∣ ≥ 0 ,
again using the positive labels before normalization. This proves the cost identity and property (iii).
Finally, propagation makes H H H 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. □ \square □
From this point onward, E + E^+ E + and E − E^- E − refer to the labels of the residual instance I ′ I' I ′ , unless stated otherwise. The cross-unit pairs that may still be co-clustered are
{ u v ∈ ( V 2 ) : B ( u ) ≠ B ( v ) , u v ∉ H } . \left\{uv\in\binom{V}{2}:B(u)\ne B(v),\ uv\notin H\right\}. { uv ∈ ( 2 V ) : B ( u ) = B ( v ) , uv ∈ / H } .
Distinct atoms are incompatible, so every such pair has a free endpoint.
Bounded sub-cluster LP and 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 § 6 .
First consider an integral partition into k k k clusters, with m s m_s m s clusters of size s s s . Choose s s s with probability m s / k m_s/k m s / k , then choose a pivot vertex a a a uniformly among the s m s sm_s s m s vertices in those clusters. Each cluster is selected with probability 1 / k 1/k 1/ k . 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 1/2 1/2 and joint value zero would be selected together with probability 1 / 4 1/4 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, n = ∣ V ∣ n = |V| n = ∣ V ∣ and [ n ] = { 1 , … , n } [n] = \{1, \ldots, n\} [ n ] = { 1 , … , n } . The sets E + E^{+} E + and E − E^{-} E − are the positive and negative pairs after the label changes of Theorem 2.4. Write I I I for the instance before those changes; the remaining instance I ′ I^{\prime} I ′ has optimal value OPT ( I ′ ) ≤ OPT ( I ) \operatorname{OPT}(I^{\prime}) \le\operatorname{OPT}(I) OPT ( I ′ ) ≤ OPT ( I ) . The difference is the fixed cost removed by normalization.
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 y s , { B , D } ≥ 0 y_{s,\{B,D\}} \ge0 y s , { B , D } ≥ 0 and y s , { B } − y s , { B , D } ≥ 0 y_{s,\{B\}} - y_{s,\{B,D\}} \ge0 y s , { B } − y s , { B , D } ≥ 0 . Summing over s s s and using coverage (2) , we obtain 0 ≤ ∑ s y s , { B , D } ≤ ∑ s y s , { B } = 1 0 \le\sum_s y_{s,\{B,D\}} \le\sum_s y_{s,\{B\}} = 1 0 ≤ ∑ s y s , { B , D } ≤ ∑ s y s , { B } = 1 . Thus the values defined by (6) satisfy
0 ≤ x B D ≤ 1 ( B , D ∈ U ) , (10) 0 \le x_{BD} \le1 \qquad(B,D \in\mathcal{U}), \tag*{(10)} 0 ≤ x B D ≤ 1 ( B , D ∈ U ) , (10)
x B B = 0 ( B ∈ U ) . (11) x_{BB} = 0 \qquad(B \in\mathcal{U}). \tag*{(11)} x B B = 0 ( B ∈ U ) . (11)
For three distinct units B , D , E B,D,E B , D , E , inclusion–exclusion gives
y s , { D } − y s , { B , D } − y s , { D , E } + y s , { B , D , E } ≥ 0. y_{s,\{D\}} - y_{s,\{B,D\}} - y_{s,\{D,E\}} + y_{s,\{B,D,E\}} \ge0. y s , { D } − y s , { B , D } − y s , { D , E } + y s , { B , D , E } ≥ 0.
Monotonicity gives y s , { B , D , E } ≤ y s , { B , E } y_{s,\{B,D,E\}} \le y_{s,\{B,E\}} y s , { B , D , E } ≤ y s , { B , E } . Summing over s s s and using coverage yields ( 1 − x B D ) + ( 1 − x D E ) ≤ 1 + ( 1 − x B E ) (1-x_{BD}) + (1-x_{DE}) \le1 + (1-x_{BE}) ( 1 − x B D ) + ( 1 − x D E ) ≤ 1 + ( 1 − x B E ) , hence
x B E ≤ x B D + x D E ( B , D , E ∈ U ) . (12) x_{BE} \le x_{BD} + x_{DE} \qquad(B,D,E \in\mathcal{U}). \tag*{(12)} x B E ≤ x B D + x D E ( B , D , E ∈ U ) . (12)
Repeated-unit cases follow from the zero diagonal and nonnegativity. Finally, incompatible units have distance one by (5) . This proves that x x x is indeed a feasible unit-preserving metric. The proof uses variables indexed by at most three units, explaining the condition r ≥ 3 r \ge3 r ≥ 3 .
Lemma 5.1. The unit-preserving LP of Definition 2.5 is feasible and can be solved as a rational LP of size n O ( r ) n^{O(r)} n O ( r ) . The optimal LP objective value L L L satisfies L ≤ OPT ( I ′ ) L \leq\operatorname{OPT}(I') L ≤ OPT ( I ′ ) . Furthermore, for every s s s and every T T T with ∣ T ∣ ≤ r − 1 |T| \leq r-1 ∣ T ∣ ≤ r − 1 ,
( s − ∑ B ∈ T ∣ B ∣ ) y s , T = ∑ B ∈ U ∖ T ∣ B ∣ y s , T ∪ { B } ≥ 0. (13) \left(s-\sum_{B\in T}|B|\right)y_{s,T}=\sum_{B\in\mathcal{U}\setminus T}|B|y_{s,T\cup\{B\}}\geq0. \tag*{(13)} ( s − B ∈ T ∑ ∣ B ∣ ) y s , T = B ∈ U ∖ T ∑ ∣ B ∣ y s , T ∪ { B } ≥ 0. (13) In particular y s , T = 0 y_{s,T}=0 y s , T = 0 when ∑ B ∈ T ∣ B ∣ > s \sum_{B\in T}|B|>s ∑ B ∈ T ∣ B ∣ > s .
Proof. Take an optimal partition P ∗ \mathcal{P}^* P ∗ of the remaining instance. By Theorem 2.4, it preserves units and respects all propagated cannot-links. For each s , T s,T s , T let y s , T y_{s,T} y s , T be the number of s s s -clusters containing every unit of T T T ; in particular, y s , ∅ y_{s,\varnothing} y s , ∅ counts the s s s -clusters. For disjoint P , N P,N P , N , inclusion–exclusion shows that the left side of (3) is the number of s s s -clusters containing P P P and avoiding N N N , so it is nonnegative. For any s s s -cluster containing T T T , the sum of the sizes of all its member units is exactly s s s , establishing (4) . Coverage and pair linking hold because every unit belongs to precisely one integral cluster. The derived values x B D x_{BD} x B D are exactly its separation indicators. Constraint (5) holds because P ∗ \mathcal{P}^* P ∗ is feasible. The optimal LP objective is no larger, proving the upper bound.
To obtain (13) , separate the terms B ∈ T B\in T B ∈ T from (4) ; for these, y s , T ∪ { B } = y s , T y_{s,T\cup\{B\}}=y_{s,T} y s , T ∪ { B } = y s , T . The remaining terms are nonnegative by (3) . Finally the number of pairs ( P , N ) (P,N) ( P , N ) with ∣ P ∣ + ∣ N ∣ ≤ r |P|+|N|\leq r ∣ P ∣ + ∣ N ∣ ≤ r is ∣ U ∣ O ( r ) |\mathcal{U}|^{O(r)} ∣ U ∣ O ( r ) , and there are n n n size layers. All coefficients have polynomial input bit length (the largest coefficient ∣ B ∣ |B| ∣ B ∣ is at most n n n ). Standard exact rational linear programming therefore yields a polynomial-bit solution in time n O ( r ) n^{O(r)} n O ( r ) .
For sampling, assume r ≥ 6 r\geq6 r ≥ 6 is an even integer and fix a rational optimal solution y y y and its derived metric x x x . Its level is chosen in § 6.3 . Abbreviate
L + = ∑ u v ∈ E + x u v , L − = ∑ u v ∈ E − ( 1 − x u v ) , L = L + + L − . (14) L_+=\sum_{uv\in E^+}x_{uv},\qquad L_-=\sum_{uv\in E^-}(1-x_{uv}),\qquad L=L_++L_-. \tag*{(14)} L + = uv ∈ E + ∑ x uv , L − = uv ∈ E − ∑ ( 1 − x uv ) , L = L + + L − . (14)
Also write y T = ∑ s = 1 n y s , T y_T=\sum_{s=1}^{n}y_{s,T} y T = ∑ s = 1 n y s , T .
Recall that y s , ∅ y_{s,\varnothing} y s , ∅ is the fractional number of s s s -clusters. Put
Z = ∑ s = 1 n y s , ∅ . (15) Z=\sum_{s=1}^{n}y_{s,\varnothing}. \tag*{(15)} Z = s = 1 ∑ n y s , ∅ . (15)
Thus Z Z Z is the fractional number of clusters represented by the LP solution; for an integral partition into k k k clusters, Z = k Z=k Z = k . Summing the size identities (4) and using coverage (2) gives
1 ≤ Z = ∑ s = 1 n y s , ∅ ≤ ∑ s = 1 n s y s , ∅ = n . (16) 1\leq Z=\sum_{s=1}^{n}y_{s,\varnothing}\leq\sum_{s=1}^{n}sy_{s,\varnothing}=n. \tag*{(16)} 1 ≤ Z = s = 1 ∑ n y s , ∅ ≤ s = 1 ∑ n s y s , ∅ = n . (16)
The probability of selecting size s s s and pivot a a a is
λ s , a = y s , ∅ Z y s , { B ( a ) } s y s , ∅ = y s , { B ( a ) } s Z . (17) \lambda_{s,a}=\frac{y_{s,\varnothing}}{Z}\frac{y_{s,\{B(a)\}}}{sy_{s,\varnothing}}=\frac{y_{s,\{B(a)\}}}{sZ}. \tag*{(17)} λ s , a = Z y s , ∅ s y s , ∅ y s , { B ( a )} = s Z y s , { B ( a )} . (17)
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 s s and pivot a a a . As in Step 4, let W \mathcal{W} W be the family of units other than B ( a ) B(a) B ( a ) that are compatible with B ( a ) B(a) B ( a ) , and put
t = s − ∣ B ( a ) ∣ , W = ⋃ D ∈ W D . t=s-|B(a)|,\qquad W=\bigcup_{D\in\mathcal{W}}D. t = s − ∣ B ( a ) ∣ , W = D ∈ W ⋃ D .
The values initialized in Step 5 describe inclusion conditional on the pivot unit: z { D } z_{\{D\}} z { D } is the inclusion value of D D D , and z { D , E } z_{\{D,E\}} z { D , E } is the joint inclusion value of D , E D,E D , E . 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 j j j updates, the stored entries have index sets of size at most r − 1 − j r-1-j r − 1 − j .
Conditioning on a seed D D D sets the inclusion value of every unit E E E with x D E = 1 x_{DE}=1 x D E = 1 to zero, because z { D , E } = 0 z_{\{D,E\}}=0 z { D , E } = 0 . 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 z D = z { D } z_D=z_{\{D\}} z D = z { D } and z D E = z { D , E } z_{DE}=z_{\{D,E\}} z D E = z { D , E } . For vertices i , j ∈ W i,j\in W i , j ∈ W , write z i = z B ( i ) z_i=z_{B(i)} z i = z B ( i ) and z i j = z { B ( i ) , B ( j ) } z_{ij}=z_{\{B(i),B(j)\}} z ij = z { B ( i ) , B ( j )} . Vertices in the same unit share a selection, so z i j = z i z_{ij}=z_i z ij = z i when B ( i ) = B ( j ) B(i)=B(j) B ( i ) = B ( j ) , including i = j i=j i = j . Extend this notation by setting the inclusion of the pivot unit to one and the inclusion of vertices outside B ( a ) ∪ W B(a)\cup W B ( a ) ∪ W to zero. These values describe consistent probabilities on small sets; a distribution realizing all of them simultaneously is not assumed.
An integral s s s -cluster containing the pivot has exactly t t t vertices outside its unit. The following invariants express this count through conditional LP values, including after seed updates. Taking T = ∅ \mathcal{T}=\varnothing T = ∅ in (18) normalizes the seed probabilities and shows that the final candidate has conditional expected size s s 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,
z T = y s , T ∪ { B ( a ) } y s , { B ( a ) } ( T ⊆ U , ∣ T ∪ { B ( a ) } ∣ ≤ r ) . z_{\mathcal{T}}=\frac{y_{s,\mathcal{T}\cup\{B(a)\}}}{y_{s,\{B(a)\}}}
\qquad
(\mathcal{T}\subseteq\mathcal{U},\ |\mathcal{T}\cup\{B(a)\}|\le r). z T = y s , { B ( a )} y s , T ∪ { B ( a )} ( T ⊆ U , ∣ T ∪ { B ( a )} ∣ ≤ r ) .
These values satisfy z ∅ = z { B ( a ) } = 1 z_{\varnothing}=z_{\{B(a)\}}=1 z ∅ = z { B ( a )} = 1 and z T = 0 z_{\mathcal{T}}=0 z T = 0 if T ⊈ W ∪ { B ( a ) } \mathcal{T}\not\subseteq W\cup\{B(a)\} T ⊆ W ∪ { B ( a )} .
(ii) Invariance under seed updates. After j ≥ 0 j\ge0 j ≥ 0 seed updates, let S \mathcal{S} S consist of the pivot unit and the distinct seeds selected so far. Then y s , S > 0 y_{s,\mathcal{S}}>0 y s , S > 0 , and
z T = y s , S ∪ T y s , S ( T ⊆ W , ∣ S ∪ T ∣ ≤ r ) . z_{\mathcal{T}}=\frac{y_{s,\mathcal{S}\cup\mathcal{T}}}{y_{s,\mathcal{S}}}
\qquad
(\mathcal{T}\subseteq W,\ |\mathcal{S}\cup\mathcal{T}|\le r). z T = y s , S y s , S ∪ T ( T ⊆ W , ∣ S ∪ T ∣ ≤ r ) .
For T ⊆ W \mathcal{T}\subseteq W T ⊆ W with ∣ S ∪ T ∣ ≤ r − 1 |\mathcal{S}\cup\mathcal{T}|\le r-1 ∣ S ∪ T ∣ ≤ r − 1 ,
∑ D ∈ W ∣ D ∣ z T ∪ { D } = t z T . (18) \sum_{D\in W}|D|z_{\mathcal{T}\cup\{D\}}=tz_{\mathcal{T}}. \tag*{(18)} D ∈ W ∑ ∣ D ∣ z T ∪ { D } = t z T . (18)
Lemma 5.2. For every s , a s,a s , a with y s , { B ( a ) } > 0 y_{s,\{B(a)\}}>0 y s , { B ( a )} > 0 , we have t ≥ 0 t\ge0 t ≥ 0 . The initialization and seed updates in Figure 5 satisfy the conditional formulas above, with positive denominators. Identity (18) holds whenever ∣ S ∪ T ∣ ≤ r − 1 |\mathcal{S}\cup\mathcal{T}|\le r-1 ∣ S ∪ T ∣ ≤ r − 1 .
Proof. (i) Initial conditioning. By (13) and y s , { B ( a ) } > 0 y_{s,\{B(a)\}}>0 y s , { B ( a )} > 0 , we have s ≥ ∣ B ( a ) ∣ s\ge|B(a)| s ≥ ∣ B ( a ) ∣ , so t ≥ 0 t\ge0 t ≥ 0 . The initial ratios agree with Step 5 and give z ∅ = z { B ( a ) } = 1 z_{\varnothing}=z_{\{B(a)\}}=1 z ∅ = z { B ( a )} = 1 .
If D ∉ W ∪ { B ( a ) } D\notin W\cup\{B(a)\} D ∈ / W ∪ { B ( a )} , then D D D is incompatible with the pivot unit. Constraint (5) gives y s , { B ( a ) , D } = 0 y_{s,\{B(a),D\}}=0 y s , { B ( a ) , D } = 0 . 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 S = { B ( a ) } \mathcal{S}=\{B(a)\} S = { B ( a )} , so the conditional formula holds and y s , S > 0 y_{s,\mathcal{S}}>0 y s , S > 0 . Suppose these properties hold before an update. A selected seed D D D has z { D } > 0 z_{\{D\}}>0 z { D } > 0 , and hence
y s , S ∪ { D } = y s , S z { D } > 0. y_{s,\mathcal{S}\cup\{D\}}=y_{s,\mathcal{S}}z_{\{D\}}>0. y s , S ∪ { D } = y s , S z { D } > 0.
The update gives
z T n e w = z T ∪ { D } z { D } = y s , S ∪ { D } ∪ T y s , S ∪ { D } . z_{\mathcal{T}}^{\mathrm{new}}=\frac{z_{\mathcal{T}\cup\{D\}}}{z_{\{D\}}}=\frac{y_{s,S\cup\{D\}\cup\mathcal{T}}}{y_{s,S\cup\{D\}}}. z T new = z { D } z T ∪ { D } = y s , S ∪ { D } y s , S ∪ { D } ∪ T .
which is the required formula after adding D D D to S S S . If D D D was selected earlier, then D ∈ S D\in S D ∈ S and the values remain unchanged.
It remains to prove (18) . For T ⊆ W \mathcal{T}\subseteq\mathcal{W} T ⊆ W with ∣ S ∪ T ∣ ≤ r − 1 |S\cup\mathcal{T}|\le r-1 ∣ S ∪ T ∣ ≤ r − 1 , apply (4) to S ∪ T S\cup\mathcal{T} S ∪ T . The pivot unit belongs to S S S , and terms involving units incompatible with it vanish by the argument above. Thus
s y s , S ∪ T = ∣ B ( a ) ∣ y s , S ∪ T + ∑ D ∈ W ∣ D ∣ y s , S ∪ T ∪ { D } . s\,y_{s,S\cup\mathcal{T}}=|B(a)|\,y_{s,S\cup\mathcal{T}}+\sum_{D\in\mathcal{W}}|D|\,y_{s,S\cup\mathcal{T}\cup\{D\}}. s y s , S ∪ T = ∣ B ( a ) ∣ y s , S ∪ T + D ∈ W ∑ ∣ D ∣ y s , S ∪ T ∪ { D } .
Subtracting the pivot term and dividing by y s , S > 0 y_{s,S}>0 y s , S > 0 proves (18) , including the initial case j = 0 j=0 j = 0 .
For every pair u , v u,v u , v , define the LP target
q u v 0 = 1 − x u v Z . (19) q_{uv}^{0}=\frac{1-x_{uv}}{Z}. \tag*{(19)} q uv 0 = Z 1 − x uv . (19)
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
q u v = P [ u , v ∈ C ] , C sampled by xref‘Figure 5‘ . q_{uv}=\mathbb{P}[u,v\in C],\qquad C\text{ sampled by {xref}`Figure 5`}. q uv = P [ u , v ∈ C ] , C sampled by xref ‘Figure 5‘ .
This is the actual joint inclusion probability of the sampler. In the next lemma, z v z_v z v and z u v z_{uv} z uv denote the final conditional values before Step 8. If Step 3 returns B ( a ) B(a) B ( a ) instead, set z v = 1 [ v ∈ B ( a ) ] z_v=\mathbf{1}[v\in B(a)] z v = 1 [ v ∈ B ( a )] and z u v = 1 [ u , v ∈ B ( a ) ] z_{uv}=\mathbf{1}[u,v\in B(a)] z uv = 1 [ u , v ∈ B ( a )] .
Lemma 5.3. The sampler in Figure 5 queries variables indexed by at most r r r units. In each seed step j j j , every updated entry preserves its conditional expectation:
E [ z T n e w ∣ current table ] = z T for all T ⊆ W with ∣ T ∣ ≤ r − 1 − j . (20) \mathbb{E}[z_{\mathcal{T}}^{\mathrm{new}}\mid\text{current table}]=z_{\mathcal{T}}\qquad\text{for all }\mathcal{T}\subseteq\mathcal{W}\text{ with }|\mathcal{T}|\le r-1-j. \tag*{(20)} E [ z T new ∣ current table ] = z T for all T ⊆ W with ∣ T ∣ ≤ r − 1 − j . (20) Averaged over all random choices of the sampler, the candidate C C C satisfies
P [ v ∈ C ] = P [ B ( v ) ⊆ C ] = 1 Z ( v ∈ V ) . (21) \mathbb{P}[v\in C]=\mathbb{P}[B(v)\subseteq C]=\frac{1}{Z}\qquad(v\in V). \tag*{(21)} P [ v ∈ C ] = P [ B ( v ) ⊆ C ] = Z 1 ( v ∈ V ) . (21) The final conditional inclusion values immediately before Step 8 satisfy
E [ z v ] = 1 Z , E [ z u v ] = q u v 0 . \mathbb{E}[z_v]=\frac{1}{Z},\qquad\mathbb{E}[z_{uv}]=q_{uv}^{0}. E [ z v ] = Z 1 , E [ z uv ] = q uv 0 . If B ( u ) = B ( v ) B(u)=B(v) B ( u ) = B ( v ) , then P [ u , v ∈ C ] = q u v 0 = 1 / Z \mathbb{P}[u,v\in C]=q_{uv}^{0}=1/Z P [ u , v ∈ C ] = q uv 0 = 1/ Z .
Proof. Fix a positive-probability choice ( s , a ) (s,a) ( s , a ) . By the seed-update invariance in Lemma 5.2, the current values satisfy, after every seed history,
∑ D ∈ W ∣ D ∣ z D = t , ∑ D ∈ W ∣ D ∣ z T ∪ { D } = t z T . \sum_{D\in\mathcal{W}}|D|z_D=t,\qquad\sum_{D\in\mathcal{W}}|D|z_{\mathcal{T}\cup\{D\}}=tz_{\mathcal{T}}. D ∈ W ∑ ∣ D ∣ z D = t , D ∈ W ∑ ∣ D ∣ z T ∪ { D } = t z T .
Here and below sums over D ∈ W D\in\mathcal{W} D ∈ W range over eligible units. Local assignment nonnegativity gives 0 ≤ z D ≤ 1 0\le z_D\le1 0 ≤ z D ≤ 1 and 0 ≤ z T ∪ { D } ≤ z D 0\le z_{\mathcal{T}\cup\{D\}}\le z_D 0 ≤ z T ∪ { D } ≤ z D . Consequently the seed probabilities sum to one, the denominator for every selected seed is positive, and its conditioning produces valid local probabilities. For t > 0 t>0 t > 0 ,
E [ z T n e w ∣ current table ] = ∑ D : z D > 0 ∣ D ∣ z D t z T ∪ { D } z D = z T . \mathbb{E}[z_{\mathcal{T}}^{\mathrm{new}}\mid\text{current table}]=\sum_{D:z_D>0}\frac{|D|z_D}{t}\frac{z_{\mathcal{T}\cup\{D\}}}{z_D}=z_{\mathcal{T}}. E [ z T new ∣ current table ] = D : z D > 0 ∑ t ∣ D ∣ z D z D z T ∪ { D } = z T .
Terms with z D = 0 z_D=0 z D = 0 have zero joint inclusion value and are omitted. If t = 0 t=0 t = 0 , the size identity instead forces all singleton inclusion probabilities in W \mathcal{W} W to vanish, justifying the early return.
For the estimates below, extend the seed sequence to r / 2 r/2 r /2 steps for analysis and use its first K K K steps for the actual output. The pivot, at most r / 2 − 1 r/2-1 r /2 − 1 seeds, two queried units, and one additional unit for a size identity involve at most r / 2 + 3 ≤ r r/2+3\le r r /2 + 3 ≤ r 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 ( s , a ) (s,a) ( s , a ) equals its value immediately after conditioning on the pivot. Independent sampling preserves that singleton value. Using (17) , the size identities, and coverage, we obtain
P [ v ∈ C ] = ∑ s , a λ s , a y s , { B ( a ) , B ( v ) } y s , { B ( a ) } = 1 Z ∑ s 1 s ∑ a ∈ V y s , { B ( a ) , B ( v ) } = 1 Z ∑ s y s , { B ( v ) } = 1 / Z . \mathbb{P}[v\in C]=\sum_{s,a}\lambda_{s,a}\frac{y_{s,\{B(a),B(v)\}}}{y_{s,\{B(a)\}}}=\frac{1}{Z}\sum_s\frac{1}{s}\sum_{a\in V}y_{s,\{B(a),B(v)\}}=\frac{1}{Z}\sum_s y_{s,\{B(v)\}}=1/Z. P [ v ∈ C ] = s , a ∑ λ s , a y s , { B ( a )} y s , { B ( a ) , B ( v )} = Z 1 s ∑ s 1 a ∈ V ∑ y s , { B ( a ) , B ( v )} = Z 1 s ∑ y s , { B ( v )} = 1/ Z .
All sums over ( s , a ) (s,a) ( s , a ) omit zero-probability choices. For the joint LP value, (20) likewise preserves its expectation during the seed steps. Thus
E [ z u v ] = ∑ s , a λ s , a y s , { B ( a ) , B ( u ) , B ( v ) } y s , { B ( a ) } = 1 Z ∑ s y s , { B ( u ) , B ( v ) } = 1 − x u v Z = q u v 0 . \mathbb{E}[z_{uv}]=\sum_{s,a}\lambda_{s,a}\frac{y_{s,\{B(a),B(u),B(v)\}}}{y_{s,\{B(a)\}}}=\frac{1}{Z}\sum_s y_{s,\{B(u),B(v)\}}=\frac{1-x_{uv}}{Z}=q^0_{uv}. E [ z uv ] = s , a ∑ λ s , a y s , { B ( a )} y s , { B ( a ) , B ( u ) , B ( v )} = Z 1 s ∑ y s , { B ( u ) , B ( v )} = Z 1 − x uv = q uv 0 .
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 v ∈ B v\in B v ∈ B , the events v ∈ C v\in C v ∈ C and B ⊆ C B\subseteq C B ⊆ C are therefore identical, which proves the unit inclusion formula. It also proves that vertices in the same unit have joint inclusion probability 1 / Z 1/Z 1/ Z .
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,
q u v = E [ z u z v ] , q u v 0 = E [ z u v ] . q_{uv}=\mathbb{E}[z_u z_v],\qquad q^0_{uv}=\mathbb{E}[z_{uv}]. q uv = E [ z u z v ] , q uv 0 = E [ z uv ] .
Although E [ z u ] = E [ z v ] = 1 / Z \mathbb{E}[z_u]=\mathbb{E}[z_v]=1/Z E [ z u ] = E [ z v ] = 1/ Z , the random values z u , z v z_u,z_v z u , z v depend on the same size, pivot, and seeds, so in general E [ z u z v ] ≠ 1 / Z 2 \mathbb{E}[z_u z_v]\ne1/Z^2 E [ z u z v ] = 1/ Z 2 . The error comes from using the conditional product z u z v z_u z_v z u z v rather than the LP joint value z u v z_{uv} z uv . For u , v u,v u , v with B ( u ) ≠ B ( v ) B(u)\ne B(v) B ( u ) = B ( v ) , define
d u v = E [ z u z v ] − E [ z u v ] E [ z u ] = Z ( q u v − q u v 0 ) d_{uv}=\frac{\mathbb{E}[z_u z_v]-\mathbb{E}[z_{uv}]}{\mathbb{E}[z_u]}=Z(q_{uv}-q^0_{uv}) d uv = E [ z u ] E [ z u z v ] − E [ z uv ] = Z ( q uv − q uv 0 )
as the normalized difference between the actual pair probability and its LP target. Pairs within a unit have exact joint inclusion probability q u v = q u v 0 = 1 / Z q_{uv}=q^0_{uv}=1/Z q uv = q uv 0 = 1/ Z and contribute no sampling error. Let
Y = ∑ u < v B ( u ) ≠ B ( v ) ( 1 − x u v ) Y=\sum_{\substack{u<v\\B(u)\ne B(v)}}(1-x_{uv}) Y = u < v B ( u ) = B ( v ) ∑ ( 1 − x uv )
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 Y Y by the free-vertex degree budget plus the LP cost, and hence by a constant multiple of OPT ( I ) \operatorname{OPT}(I) 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 H H H . 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 D \mathcal{D} D denote the distribution of the candidate C C C returned by Figure 5 for the fixed LP solution y y y , averaging over all random choices in the procedure. Let
D s = ∑ u v ∉ H B ( u ) ≠ B ( v ) d u v D_s = \sum_{\substack{uv\notin H\\B(u)\ne B(v)}} d_{uv} D s = uv ∈ / H B ( u ) = B ( v ) ∑ d uv
be the signed error over non-hard cross-unit pairs. This sum need not be nonnegative.
Lemma 5.4 (Sampling discrepancy bounds). The distribution D \mathcal{D} D satisfies
∑ u < v B ( u ) ≠ B ( v ) d u v 2 ≤ 2 Y r , (22) \sum_{\substack{u<v\\B(u)\ne B(v)}} d_{uv}^{2} \le\frac{2Y}{r}, \tag*{(22)} u < v B ( u ) = B ( v ) ∑ d uv 2 ≤ r 2 Y , (22) 0 ≤ ∑ u < v B ( u ) ≠ B ( v ) d u v ≤ 2 Y r , D s ≤ 2 Y r . (23) 0 \le\sum_{\substack{u<v\\B(u)\ne B(v)}} d_{uv} \le\frac{2Y}{r}, \qquad D_s \le\frac{2Y}{r}. \tag*{(23)} 0 ≤ u < v B ( u ) = B ( v ) ∑ d uv ≤ r 2 Y , D s ≤ r 2 Y . (23)
Proof. Fix a size and pivot ( s , a ) (s,a) ( s , a ) with t = s − ∣ B ( a ) ∣ > 0 t=s-\lvert B(a)\rvert>0 t = s − ∣ B ( a )∣ > 0 . Extend the seed sequence to r / 2 r/2 r /2 updates for analysis, independently of the uniform stopping index K K K , and let H k H_k H k record the first k k k seeds. Choices with t = 0 t=0 t = 0 have no sampling error and contribute zero to the averages below.
Squared errors. Write z ( k ) = ( z i ( k ) ) i ∈ W z^{(k)}=(z_i^{(k)})_{i\in W} z ( k ) = ( z i ( k ) ) i ∈ W . At a fixed history, suppress the superscript and put
c i j = z i j − z i z j , E k = ∑ i , j ∈ W c i j 2 z j , c_{ij}=z_{ij}-z_i z_j,\qquad E_k=\sum_{i,j\in W}\frac{c_{ij}^{2}}{z_j}, c ij = z ij − z i z j , E k = i , j ∈ W ∑ z j c ij 2 ,
where a summand with z j = 0 z_j=0 z j = 0 is zero; local nonnegativity then also gives z i j = 0 z_{ij}=0 z ij = 0 . Selecting a seed is equivalent to selecting a vertex j ∈ W j\in W j ∈ W with probability z j / t z_j/t z j / t . Its update changes z i z_i z i by c i j / z j c_{ij}/z_j c ij / z j , with conditional mean zero by (20) . Consequently,
E [ ∥ z ( k + 1 ) ∥ 2 2 − ∥ z ( k ) ∥ 2 2 ∣ H k ] = E k t . (24) \mathbb{E}\left[\lVert z^{(k+1)}\rVert_2^2-\lVert z^{(k)}\rVert_2^2\mid H_k\right]=\frac{E_k}{t}. \tag*{(24)} E [ ∥ z ( k + 1 ) ∥ 2 2 − ∥ z ( k ) ∥ 2 2 ∣ H k ] = t E k . (24)
Since 0 ≤ z i ≤ 1 0\le z_i\le1 0 ≤ z i ≤ 1 and ∑ i ∈ W z i = t \sum_{i\in W}z_i=t ∑ i ∈ W z i = t , we have 0 ≤ ∥ z ( k ) ∥ 2 2 ≤ t 0\le\lVert z^{(k)}\rVert_2^2\le t 0 ≤ ∥ z ( k ) ∥ 2 2 ≤ t . Summing the expected increases and averaging over K K K yields
E [ E K ∣ s , a ] = 2 t r ( E [ ∥ z ( r / 2 ) ∥ 2 2 ∣ s , a ] − ∥ z ( 0 ) ∥ 2 2 ) ≤ 2 t 2 r . (25) \mathbb{E}[E_K\mid s,a]=\frac{2t}{r}\left(\mathbb{E}[\lVert z^{(r/2)}\rVert_2^2\mid s,a]-\lVert z^{(0)}\rVert_2^2\right)\le\frac{2t^2}{r}. \tag*{(25)} E [ E K ∣ s , a ] = r 2 t ( E [∥ z ( r /2 ) ∥ 2 2 ∣ s , a ] − ∥ z ( 0 ) ∥ 2 2 ) ≤ r 2 t 2 . (25)
To average over sizes and pivots, the size identities give
∑ s , a y s , { B ( a ) } ( s − ∣ B ( a ) ∣ ) = ∑ ( a , j ) B ( a ) ≠ B ( j ) y { B ( a ) , B ( j ) } = 2 Y , (26) \sum_{s,a}y_{s,\{B(a)\}}\bigl(s-\lvert B(a)\rvert\bigr)
=\sum_{\substack{(a,j)\\B(a)\ne B(j)}}y_{\{B(a),B(j)\}}=2Y, \tag*{(26)} s , a ∑ y s , { B ( a )} ( s − ∣ B ( a )∣ ) = ( a , j ) B ( a ) = B ( j ) ∑ y { B ( a ) , B ( j )} = 2 Y , (26)
where the middle sum is over ordered vertex pairs. Indeed, apply (4) to { B ( a ) } \{B(a)\} { B ( a )} and subtract the pivot unit’s contribution. Using λ s , a = y s , { B ( a ) } / ( s Z ) \lambda_{s,a}=y_{s,\{B(a)\}}/(sZ) λ s , a = y s , { B ( a )} / ( s Z ) and t ≤ s t\le s t ≤ s , we obtain
ϵ ˉ = ∑ s , a λ s , a E [ E K ∣ s , a ] ≤ 2 r Z ∑ s , a y s , { B ( a ) } t = 4 Y r Z . (27) \bar{\epsilon}=\sum_{s,a}\lambda_{s,a}\mathbb{E}[E_K\mid s,a]\le\frac{2}{rZ}\sum_{s,a}y_{s,\{B(a)\}}t=\frac{4Y}{rZ}. \tag*{(27)} ϵ ˉ = s , a ∑ λ s , a E [ E K ∣ s , a ] ≤ r Z 2 s , a ∑ y s , { B ( a )} t = r Z 4 Y . (27)
For the final conditional values, set c u v = 0 c_{uv}=0 c uv = 0 unless u , v ∈ W u,v\in W u , v ∈ W ; outside this case one endpoint has deterministic inclusion and the conditional sampling error is zero. For a cross-unit pair, therefore, q u v − q u v 0 = − E [ c u v ] q_{uv}-q_{uv}^{0}=-\mathbb{E}[c_{uv}] q uv − q uv 0 = − E [ c uv ] . Cauchy–Schwarz and E [ z v ] = 1 / Z \mathbb{E}[z_v]=1/Z E [ z v ] = 1/ Z from Lemma 5.3 give
d u v 2 = Z 2 ( E [ c u v ] ) 2 ≤ Z E [ c u v 2 z v ] . d_{uv}^{2}=Z^{2}\bigl(\mathbb{E}[c_{uv}]\bigr)^{2}\le Z\mathbb{E}\left[\frac{c_{uv}^{2}}{z_v}\right]. d uv 2 = Z 2 ( E [ c uv ] ) 2 ≤ Z E [ z v c uv 2 ] .
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 E ‾ \overline{E} E . Thus
∑ u < v B ( u ) ≠ B ( v ) d u v 2 ≤ Z E ‾ 2 ≤ 2 Y r . \sum_{\substack{u<v\\B(u)\ne B(v)}}d_{uv}^{2}\le\frac{Z\overline{E}}{2}\le\frac{2Y}{r}. u < v B ( u ) = B ( v ) ∑ d uv 2 ≤ 2 Z E ≤ r 2 Y .
Signed errors. Let M k M_k M k be the total number of vertices in the distinct seed units selected in the first k k k updates. Selected seeds have inclusion value one, so M 0 = 0 M_0=0 M 0 = 0 and M k ≤ t M_k\le t M k ≤ t . If sampling stopped after k k k updates, the independent unit choices would have conditional size variance
V k = ∑ B ∈ W ∣ B ∣ 2 z B ( k ) ( 1 − z B ( k ) ) . V_k=\sum_{B\in W}|B|^{2}z_{B}^{(k)}\left(1-z_{B}^{(k)}\right). V k = B ∈ W ∑ ∣ B ∣ 2 z B ( k ) ( 1 − z B ( k ) ) .
Selecting a previously unselected unit B B B increases M k M_k M k by ∣ B ∣ |B| ∣ B ∣ , whereas repeated selections leave it unchanged. Already selected units have zero variance, and hence
t E [ M k + 1 − M k ∣ H k ] = ∑ B ∈ W B not yet selected ∣ B ∣ 2 z B ( k ) ≥ V k . t\mathbb{E}[M_{k+1}-M_k\mid\mathcal{H}_k]=\sum_{\substack{B\in W\\B\text{ not yet selected}}}|B|^{2}z_{B}^{(k)}\ge V_k. t E [ M k + 1 − M k ∣ H k ] = B ∈ W B not yet selected ∑ ∣ B ∣ 2 z B ( k ) ≥ V k .
Summing the expected increases and averaging over K K K gives
E [ V K ∣ s , a ] ≤ 2 t r E [ M r / 2 − M 0 ∣ s , a ] ≤ 2 t 2 r . (28) \mathbb{E}[V_K\mid s,a]\le\frac{2t}{r}\mathbb{E}[M_{r/2}-M_0\mid s,a]\le\frac{2t^{2}}{r}. \tag*{(28)} E [ V K ∣ s , a ] ≤ r 2 t E [ M r /2 − M 0 ∣ s , a ] ≤ r 2 t 2 . (28)
Including the pivot coordinates, the conditional size identities give ∑ i z i = s \sum_i z_i=s ∑ i z i = s and ∑ j z i j = s z i \sum_j z_{ij}=sz_i ∑ j z ij = s z i . Summing the latter over i i i and using z i i = z i z_{ii}=z_i z ii = z i yields ∑ i < j z i j = ( s 2 ) \sum_{i<j}z_{ij}=\binom{s}{2} ∑ i < j z ij = ( 2 s ) . The actual candidate has conditional mean size s s s and variance V K V_K V K , so
E [ ( ∣ C ∣ 2 ) ∣ s , a , H K ] − ∑ i < j z i j = V K 2 . \mathbb{E}\left[\left.\binom{|C|}{2}\right|s,a,\mathcal{H}_K\right]-\sum_{i<j}z_{ij}=\frac{V_K}{2}. E [ ( 2 ∣ C ∣ ) s , a , H K ] − i < j ∑ z ij = 2 V K .
Averaging this identity and using the inclusion identities from Lemma 5.3 gives
0 ≤ ∑ u < v B ( u ) ≠ B ( v ) d u v = Z 2 ∑ s , a λ s , a E [ V K ∣ s , a ] ≤ 1 r ∑ s , a y s , { B ( a ) } t 2 s ≤ 2 Y r , \begin{aligned}
0\le\sum_{\substack{u<v\\B(u)\ne B(v)}}d_{uv}=\frac{Z}{2}\sum_{s,a}\lambda_{s,a}\mathbb{E}[V_K\mid s,a] \\
&\le\frac{1}{r}\sum_{s,a}y_{s,\{B(a)\}}\frac{t^{2}}{s}\le\frac{2Y}{r},
\end{aligned} 0 ≤ u < v B ( u ) = B ( v ) ∑ d uv = 2 Z s , a ∑ λ s , a E [ V K ∣ s , a ] ≤ r 1 s , a ∑ y s , { B ( a )} s t 2 ≤ r 2 Y ,
where the last step uses t ≤ s t\le s t ≤ s and (26) . For u v ∈ H uv\in H uv ∈ H , x u v = 1 x_{uv}=1 x uv = 1 gives d u v = Z q u v ≥ 0 d_{uv}=Zq_{uv}\ge0 d uv = Z q uv ≥ 0 . Removing these terms cannot increase the signed sum, proving the bound on D s D_s D s .
For the error analysis, define
S F = ∑ v ∈ F e + ( v , V ) . S_F = \sum_{v\in F} e^+(v,V). S F = v ∈ F ∑ e + ( v , V ) .
Here e + e^+ e + is evaluated using the residual labels. Normalization only removes positive edges, so Theorem 2.4 also gives S F ≤ C p r e OPT ( I ) S_F \le C_{\mathrm{pre}}\operatorname{OPT}(I) S F ≤ C pre OPT ( I ) 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 Y Y Y and the positive cross-unit pair count are bounded by a constant multiple of OPT ( I ) \operatorname{OPT}(I) OPT ( I ) . The resulting absolute error is O ( OPT ( I ) / r ) O(\operatorname{OPT}(I)/\sqrt{r}) O ( OPT ( I ) / r ) . Define
P + = ∣ { u v ∈ E + : B ( u ) ≠ B ( v ) } ∣ , D + = ∑ u v ∈ E + B ( u ) ≠ B ( v ) ∣ d u v ∣ . (29) P_+ = \left|\{uv \in E^+ : B(u) \ne B(v)\}\right|,\qquad
D_+ = \sum_{\substack{uv\in E^+\\B(u)\ne B(v)}} |d_{uv}|. \tag*{(29)} P + = { uv ∈ E + : B ( u ) = B ( v )} , D + = uv ∈ E + B ( u ) = B ( v ) ∑ ∣ d uv ∣. (29)
Here P + P_+ P + counts positive pairs joining different units, and D + D_+ D + is the total absolute normalized sampling error on positive pairs. Pairs within a unit have exact joint inclusion probabilities and do not enter D + D_+ D + .
Lemma 5.5 (Error on positive pairs). The quantities defined above satisfy
D + ≤ 2 Y P + r , Y ≤ S F + L − , P + ≤ S F + L + , Y , P + ≤ ( C p r e + 1 ) OPT ( I ) . (30) D_+ \le\sqrt{\frac{2Y P_+}{r}},\qquad
Y \le S_F + L_-,\qquad
P_+ \le S_F + L_+,\qquad
Y,P_+ \le(C_{\mathrm{pre}}+1)\operatorname{OPT}(I). \tag*{(30)} D + ≤ r 2 Y P + , Y ≤ S F + L − , P + ≤ S F + L + , Y , P + ≤ ( C pre + 1 ) OPT ( I ) . (30) Proof. No positive pair is hard, and D + D_+ D + includes only cross-unit pairs. Cauchy–Schwarz and Lemma 5.4 therefore give
D + ≤ P + + ∑ u < v B ( u ) ≠ B ( v ) d u v 2 ≤ 2 Y P + r . D_+ \le\sqrt{P_+ + \sum_{\substack{u<v\\B(u)\ne B(v)}} d_{uv}^{2}} \le\sqrt{\frac{2Y P_+}{r}}. D + ≤ P + + u < v B ( u ) = B ( v ) ∑ d uv 2 ≤ r 2 Y P + . 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 P + ≤ S F P_+ \le S_F P + ≤ S F . Splitting the sum defining Y Y Y by sign gives
Y = ∑ u v ∈ E + B ( u ) ≠ B ( v ) ( 1 − x u v ) + ∑ u v ∈ E − B ( u ) ≠ B ( v ) ( 1 − x u v ) Y = \sum_{\substack{uv\in E^+\\B(u)\ne B(v)}} (1-x_{uv}) + \sum_{\substack{uv\in E^-\\B(u)\ne B(v)}} (1-x_{uv}) Y = uv ∈ E + B ( u ) = B ( v ) ∑ ( 1 − x uv ) + uv ∈ E − B ( u ) = B ( v ) ∑ ( 1 − x uv ) ≤ P + + L − ≤ S F + L − . \le P_+ + L_- \le S_F + L_-. ≤ P + + L − ≤ S F + L − . The stronger bound P + ≤ S F P_+ \le S_F P + ≤ S F also implies P + ≤ S F + L + P_+ \le S_F + L_+ P + ≤ S F + L + . Finally, the bound S F ≤ C p r e OPT ( I ) S_F \le C_{\mathrm{pre}}\operatorname{OPT}(I) S F ≤ C pre OPT ( I ) established above, optimality of the LP, and Lemma 5.1 give L + , L − ≤ L ≤ OPT ( I ) L_+,L_- \le L \le\operatorname{OPT}(I) L + , L − ≤ L ≤ OPT ( I ) . This proves the stated bounds.
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.
Partitioning a candidate by Repulsion
All pair labels and costs below refer to the remaining instance I ′ I' I ′ . For the common formulas for the two signs, let a u v = 1 [ u v ∈ E + ] a_{uv} = 1[uv \in E^+] a uv = 1 [ uv ∈ E + ] be the binary adjacency indicator of its positive graph.
Define the following function for the Repulsion cost bound:
b ( x ) = { 2 x 2 1 − x 2 , 0 ≤ x < 5 − 1 2 , 2 , 5 − 1 2 ≤ x ≤ 1. (31) b(x) =
\begin{cases}
\frac{2x^2}{1-x^2}, & 0 \le x < \frac{\sqrt{5}-1}{2},\\
2, & \frac{\sqrt{5}-1}{2} \le x \le1.
\end{cases} \tag*{(31)} b ( x ) = { 1 − x 2 2 x 2 , 2 , 0 ≤ x < 2 5 − 1 , 2 5 − 1 ≤ x ≤ 1. (31)
By definition, 0 ≤ b ( x ) ≤ 2 0 \le b(x) \le2 0 ≤ b ( x ) ≤ 2 . Two further properties serve different parts of the analysis. First,
( 1 − x ) b ( x ) ≤ 2 x 2 ( 0 ≤ x ≤ 1 ) . (32) (1-x)b(x) \le2x^2 \qquad(0 \le x \le1). \tag*{(32)} ( 1 − x ) b ( x ) ≤ 2 x 2 ( 0 ≤ x ≤ 1 ) . (32)
There is equality before the cap at two; after the cap, the inequality follows from x 2 + x − 1 ≥ 0 x^2+x-1 \ge0 x 2 + x − 1 ≥ 0 whenever x ≥ 5 − 1 2 x \ge\frac{\sqrt{5}-1}{2} x ≥ 2 5 − 1 . This property will bound the expected charge on a positive pair by twice its LP cost. Second,
b ( s ) + b ( t ) ≥ 2 ( s , t ∈ [ 0 , 1 ] , s + t ≥ 1 ) . (33) b(s)+b(t) \ge2 \qquad(s,t \in[0,1],\ s+t \ge1). \tag*{(33)} b ( s ) + b ( t ) ≥ 2 ( s , t ∈ [ 0 , 1 ] , s + t ≥ 1 ) . (33)
This property makes the contributions of induced three-vertex paths nonpositive in the Repulsion proof. It is immediate if b ( s ) = 2 b(s)=2 b ( s ) = 2 or b ( t ) = 2 b(t)=2 b ( t ) = 2 . Otherwise, Cauchy–Schwarz gives
s 2 1 − s + t 2 1 − t ≥ ( s + t ) 2 2 − s − t ≥ 1 , \frac{s^2}{1-s}+\frac{t^2}{1-t} \ge\frac{(s+t)^2}{2-s-t} \ge1, 1 − s s 2 + 1 − t t 2 ≥ 2 − s − t ( s + t ) 2 ≥ 1 ,
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
ϕ u v = { ( 1 − a u v ) + a u v b ( x u v ) , x u v < 1 , a u v , x u v = 1 , Φ ( S ) = ∑ u v ∈ ( S 2 ) ϕ u v . (34) \phi_{uv} =
\begin{cases}
(1-a_{uv})+a_{uv}b(x_{uv}), & x_{uv}<1,\\
a_{uv}, & x_{uv}=1,
\end{cases}
\qquad
\Phi(S)=\sum_{uv\in\binom{S}{2}}\phi_{uv}. \tag*{(34)} ϕ uv = { ( 1 − a uv ) + a uv b ( x uv ) , a uv , x uv < 1 , x uv = 1 , Φ ( S ) = uv ∈ ( 2 S ) ∑ ϕ uv . (34)
For a center v ∈ S v \in S v ∈ S , put A v = { u ∈ S : x u v < 1 } A_v=\{u \in S:x_{uv}<1\} A v = { u ∈ S : x uv < 1 } . The boundary cost of separating A v A_v A v from the rest, plus the two new potentials minus the old potential, is
Δ v = e + ( A v , S ∖ A v ) + Φ ( A v ) + Φ ( S ∖ A v ) − Φ ( S ) = ∑ u ∈ A v , w ∈ S ∖ A v x u w < 1 [ a u w ( 2 − b ( x u w ) ) − 1 ] . (35) \begin{aligned}
\Delta_v &= e^+(A_v,S\setminus A_v)+\Phi(A_v)+\Phi(S\setminus A_v)-\Phi(S)\\
&=\sum_{\substack{u\in A_v,\ w\in S\setminus A_v\\x_{uw}<1}}
\left[a_{uw}(2-b(x_{uw}))-1\right]. \tag*{(35)}
\end{aligned} Δ v = e + ( A v , S ∖ A v ) + Φ ( A v ) + Φ ( S ∖ A v ) − Φ ( S ) = u ∈ A v , w ∈ S ∖ A v x u w < 1 ∑ [ a u w ( 2 − b ( x u w )) − 1 ] . (35)
Pairs of distance one contribute zero because their potential already equals their separation cost.
Apply the following recursion, initially with S = D S=D S = D .
If S S S is empty, return no clusters. If every pair in S S S has distance less than one, output S S S as one cluster.
Otherwise, compute Δ v \Delta_v Δ v for every center v ∈ S v \in S v ∈ S with A v ≠ S A_v \ne S A v = S , and choose one minimizing Δ v \Delta_v Δ v . Break ties deterministically.
Separate A v A_v A v from S ∖ A v S \setminus A_v S ∖ A v 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 D D D , Repulsion partitions D D D in polynomial time, preserves each unit, and separates every cannot-link pair. Its total internal cost in the remaining instance is at most
Φ ( D ) ≤ ∑ u v ∈ ( D 2 ) ∖ H [ ( 1 − a u v ) + a u v b ( x u v ) ] . (36) \Phi(D) \le\sum_{uv\in\binom{D}{2}\setminus H} \left[(1-a_{uv})+a_{uv}b(x_{uv})\right]. \tag*{(36)} Φ ( D ) ≤ uv ∈ ( 2 D ) ∖ H ∑ [ ( 1 − a uv ) + a uv b ( x uv ) ] . (36)
Proof. Form the graph on S S S whose edges are the distinct pairs of distance less than one. Its closed neighborhoods are the balls A v A_v A v . Sum Δ v \Delta_v Δ v over all centers, allowing A v = S A_v=S A v = S , 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 u − v − w u-v-w u − v − w contributes
a u v ( 2 − b ( x u v ) ) − 1 + a v w ( 2 − b ( x v w ) ) − 1. a_{uv}(2-b(x_{uv}))-1+a_{vw}(2-b(x_{vw}))-1. a uv ( 2 − b ( x uv )) − 1 + a v w ( 2 − b ( x v w )) − 1.
The triangle inequality gives x u v + x v w ≥ x u w = 1 x_{uv}+x_{vw}\ge x_{uw}=1 x uv + x v w ≥ x u w = 1 . Since 2 − b ≥ 0 2-b\ge0 2 − b ≥ 0 and a u v , a v w ≤ 1 a_{uv},a_{vw}\le1 a uv , a v w ≤ 1 , this contribution is at most
2 − b ( x u v ) − b ( x v w ) ≤ 0. 2-b(x_{uv})-b(x_{vw})\le0. 2 − b ( x uv ) − b ( x v w ) ≤ 0.
by (33) . Therefore ∑ v Δ v ≤ 0 \sum_v\Delta_v\le0 ∑ v Δ v ≤ 0 . If the graph is not complete, a proper ball exists; balls equal to S S S contribute zero. Some proper ball consequently has Δ v ≤ 0 \Delta_v\le0 Δ v ≤ 0 , 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 x u v < 1 x_{uv}<1 x uv < 1 , and its co-clustering cost 1 − a u v 1-a_{uv} 1 − a uv is at most ϕ u v \phi_{uv} ϕ uv . Induction over the recursion proves that the total cost is at most Φ ( D ) \Phi(D) Φ ( D ) . Final blocks contain no pair of distance one and hence no hard pair. If u , w u,w u , w belong to the same unit, x u w = 0 x_{uw}=0 x u w = 0 implies x v u = x v w x_{vu}=x_{vw} x v u = x v w for every center v v v , so all balls, and all recursive blocks, are unions of units.
For a hard pair, x u v = 1 x_{uv}=1 x uv = 1 and a u v = 0 a_{uv}=0 a uv = 0 , so its potential is zero. A compatible distance-one pair has potential a u v a_{uv} a uv , which is at most 1 − a u v + a u v b ( 1 ) = 1 + a u v 1-a_{uv}+a_{uv}b(1)=1+a_{uv} 1 − a uv + a uv b ( 1 ) = 1 + a uv . All other pairs have exactly the charge displayed in (36) . This proves that inequality. There are at most ∣ D ∣ − 1 |D|-1 ∣ D ∣ − 1 proper splits, each found by evaluating at most ∣ D ∣ |D| ∣ D ∣ centers, so the procedure is polynomial-time.
Constructing and analyzing the partition
After the single LP solve, independently sample C 1 , C 2 , … C_1,C_2,\ldots C 1 , C 2 , … from the same distribution D \mathcal{D} D defined in § 5.2 . Maintain a set S S S of unprocessed vertices. In each round first put D = C i ∩ S D=C_i\cap S D = C i ∩ S ; if D D D is nonempty, separate it from S ∖ D S\setminus D S ∖ D , apply Repulsion to this D D D using Lemma 6.1, output its clusters and remove all vertices of D D D . 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 F a ( x , y ) F_a(x,y) F a ( x , y ) , where x x x is the LP distance and y = Z q u y=Z_{qu} y = Z q u is the scaled joint inclusion probability. Its second inequality separates the ideal charge at y = 1 − x y=1-x y = 1 − x from the sampling error d = y − ( 1 − x ) d=y-(1-x) d = y − ( 1 − x ) .
Lemma 6.2 (Cost at the first round meeting a pair). Let A L G ∞ \mathrm{ALG}_{\infty} ALG ∞ 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
E cost I ′ ( A L G ∞ ) ≤ ∑ u v ∉ H F a u v ( x u v , Z q u v ) , (37) \mathbb{E}\operatorname{cost}_{I'}(\mathrm{ALG}_{\infty}) \le\sum_{uv\notin H} F_{a_{uv}}(x_{uv},Zq_{uv}), \tag*{(37)} E cost I ′ ( ALG ∞ ) ≤ uv ∈ / H ∑ F a uv ( x uv , Z q uv ) , (37) where
F a ( x , y ) = 2 a ( 1 − y ) + ( 1 − a + a b ( x ) ) y 2 − y , a ∈ { 0 , 1 } , 0 ≤ y ≤ 1. (38) F_a(x,y)=\frac{2a(1-y)+(1-a+ab(x))y}{2-y},\qquad a\in\{0,1\},\qquad0\le y\le1. \tag*{(38)} F a ( x , y ) = 2 − y 2 a ( 1 − y ) + ( 1 − a + ab ( x )) y , a ∈ { 0 , 1 } , 0 ≤ y ≤ 1. (38) For y 0 = 1 − x y_0=1-x y 0 = 1 − x and d = y − y 0 d=y-y_0 d = y − y 0 it also satisfies the pointwise inequality
F a ( x , y ) ≤ 2 a x + ( 1 − a ) ( 1 − x ) + d + 3 a ∣ d ∣ . (39) F_a(x,y)\le2ax+(1-a)(1-x)+d+3a|d|. \tag*{(39)} F a ( x , y ) ≤ 2 a x + ( 1 − a ) ( 1 − x ) + d + 3 a ∣ d ∣. (39)
Proof. Each vertex has candidate inclusion probability 1 / Z > 0 1/Z>0 1/ Z > 0 , 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 e = u v e=uv e = uv , set q = q u v ∈ [ 0 , 1 / Z ] q=q_{uv}\in[0,1/Z] q = q uv ∈ [ 0 , 1/ Z ] . Until the first round hitting at least one of u , v u,v u , v , both vertices remain unprocessed. Independence between rounds gives the same event probabilities in each such round:
P ( exactly one hit ) = 2 / Z − 2 q , P ( both hit ) = q , P ( neither hit ) = 1 − 2 / Z + q . \mathbb{P}(\text{exactly one hit})=2/Z-2q,\qquad\mathbb{P}(\text{both hit})=q,\qquad\mathbb{P}(\text{neither hit})=1-2/Z+q. P ( exactly one hit ) = 2/ Z − 2 q , P ( both hit ) = q , P ( neither hit ) = 1 − 2/ Z + q .
By conditioning on the first nonempty event for this pair, its probabilities of being hit separately and simultaneously are respectively ( 2 − 2 Z q ) / ( 2 − Z q ) (2-2Zq)/(2-Zq) ( 2 − 2 Z q ) / ( 2 − Z q ) and Z q / ( 2 − Z q ) Zq/(2-Zq) Z q / ( 2 − Z q ) . In the former case the pair pays boundary cost a u v a_{uv} a uv . In the latter case it is contained in one candidate intersection D D D . In the upper bound we assign it the charge ( 1 − a u v ) + a u v b ( x u v ) (1-a_{uv})+a_{uv}b(x_{uv}) ( 1 − a uv ) + a uv b ( x uv ) . 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
E cost I ′ ( A L G ∞ ) ≤ ∑ u v ∉ H 2 a u v ( 1 − Z q u v ) + ( 1 − a u v + a u v b ( x u v ) ) Z q u v 2 − Z q u v . \mathbb{E}\operatorname{cost}_{I'}(\mathrm{ALG}_{\infty})\le\sum_{uv\notin H}\frac{2a_{uv}(1-Zq_{uv})+(1-a_{uv}+a_{uv}b(x_{uv}))Zq_{uv}}{2-Zq_{uv}}. E cost I ′ ( ALG ∞ ) ≤ uv ∈ / H ∑ 2 − Z q uv 2 a uv ( 1 − Z q uv ) + ( 1 − a uv + a uv b ( x uv )) Z q uv .
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 F a = ( 1 − a ) F 0 + a F 1 F_a=(1-a)F_0+aF_1 F a = ( 1 − a ) F 0 + a F 1 , first consider the two pure signs:
F 0 ( x , y ) = y 2 − y ≤ y , F 1 ( x , y ) = 2 + ( b ( x ) − 2 ) y 2 − y . F_0(x,y)=\frac{y}{2-y}\le y,\qquad F_1(x,y)=\frac{2+(b(x)-2)y}{2-y}. F 0 ( x , y ) = 2 − y y ≤ y , F 1 ( x , y ) = 2 − y 2 + ( b ( x ) − 2 ) y .
At y 0 = 1 − x y_0=1-x y 0 = 1 − x , the quadratic bound (32) gives
F 1 ( x , 1 − x ) = 2 x + ( 1 − x ) b ( x ) 1 + x ≤ 2 x . F_1(x,1-x)=\frac{2x+(1-x)b(x)}{1+x}\le2x. F 1 ( x , 1 − x ) = 1 + x 2 x + ( 1 − x ) b ( x ) ≤ 2 x .
More precisely, substituting the definition of b b b gives
F 1 ( x , 1 − x ) = min { 2 x , 2 1 + x } ≤ 2 x . (40) F_1(x,1-x)=\min\left\{2x,\frac{2}{1+x}\right\}\le2x. \tag*{(40)} F 1 ( x , 1 − x ) = min { 2 x , 1 + x 2 } ≤ 2 x . (40)
For every fixed x x x , its derivative in y y y has absolute value ∣ 2 b ( x ) − 2 ∣ / ( 2 − y ) 2 ≤ 2 |2b(x)-2|/(2-y)^2\le2 ∣2 b ( x ) − 2∣/ ( 2 − y ) 2 ≤ 2 , since 0 ≤ b ≤ 2 0\le b\le2 0 ≤ b ≤ 2 and 0 ≤ y ≤ 1 0\le y\le1 0 ≤ y ≤ 1 . Therefore
F 1 ( x , y ) ≤ 2 x + 2 ∣ d ∣ ≤ 2 x + d + 3 ∣ d ∣ , F_1(x,y)\le2x+2|d|\le2x+d+3|d|, F 1 ( x , y ) ≤ 2 x + 2∣ d ∣ ≤ 2 x + d + 3∣ d ∣ ,
where the last inequality follows separately for d ≥ 0 d\ge0 d ≥ 0 and d < 0 d<0 d < 0 . Similarly, F 0 ( x , y ) ≤ y = ( 1 − x ) + d F_0(x,y)\le y=(1-x)+d F 0 ( x , y ) ≤ y = ( 1 − x ) + d . 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 D s D_s D s and three times the absolute positive-pair error D + D_+ D + . The estimates from Section 5 control both terms. The following bound concerns the residual instance I ′ I' I ′ ; the proof of Theorem 1.1 restores the fixed costs removed during preclustering.
Lemma 6.3 (Infinite-round objective bound). With D s , D + , Y , P + D_s,D_+,Y,P_+ D s , D + , Y , P + as defined previously,
E cost I ′ ( A L G ∞ ) ≤ 2 L − L − + D s + 3 D + ≤ 2 L − L − + 2 Y r + 3 2 Y P + r . (41) \mathbb{E}\operatorname{cost}_{I'}(\mathrm{ALG}_{\infty}) \le2L-L_-+D_s+3D_+ \le2L-L_-+\frac{2Y}{r}+3\sqrt{\frac{2YP_+}{r}}. \tag*{(41)} E cost I ′ ( ALG ∞ ) ≤ 2 L − L − + D s + 3 D + ≤ 2 L − L − + r 2 Y + 3 r 2 Y P + . (41)
Proof. Sum (39) from Lemma 6.2 over non-hard cross-unit pairs. For a same-unit pair, x u v = 0 x_{uv}=0 x uv = 0 and Z q u v = 1 Z_{quv}=1 Z q uv = 1 , so its contribution to the first-hit bound is F a u v ( 0 , 1 ) = 1 − a u v F_{a_{uv}}(0,1)=1-a_{uv} F a uv ( 0 , 1 ) = 1 − a uv , 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 a u v = 0 a_{uv}=0 a uv = 0 , LP distance x u v = 1 x_{uv}=1 x uv = 1 , and hence LP objective zero, the sum of 2 a u v x u v + ( 1 − a u v ) ( 1 − x u v ) 2a_{uv}x_{uv}+(1-a_{uv})(1-x_{uv}) 2 a uv x uv + ( 1 − a uv ) ( 1 − x uv ) over non-hard pairs is 2 L + + L − = 2 L − L − 2L_++L_-=2L-L_- 2 L + + L − = 2 L − L − . The signed error term is D s D_s D s , and the absolute error on positive pairs is D + D_+ D + . This gives the first inequality in (41) . For the second inequality, Lemma 5.4 gives D s ≤ 2 Y / r D_s\le2Y/r D s ≤ 2 Y / r , and the first inequality of Lemma 5.5 gives D + ≤ 2 Y P + / r D_+\le\sqrt{2YP_+/r} D + ≤ 2 Y P + / r . Substituting these two bounds yields
D s + 3 D + ≤ 2 Y r + 3 2 Y P + r . D_s+3D_+\le\frac{2Y}{r}+3\sqrt{\frac{2YP_+}{r}}. D s + 3 D + ≤ r 2 Y + 3 r 2 Y P + .
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 1 / Z ≥ 1 / n 1/Z\ge1/n 1/ Z ≥ 1/ n . Thus the chance that it remains unprocessed decreases exponentially with the number of rounds. The next lemma uses this fact to stop after O ( n log ( n 2 / τ ) ) O(n\log(n^2/\tau)) O ( n log ( n 2 / τ )) rounds, paying at most τ \tau τ in additional expected cost. Outputting each remaining unit separately preserves feasibility.
Lemma 6.4. For any rational τ ∈ ( 0 , n 2 ) \tau\in(0,n^2) τ ∈ ( 0 , n 2 ) , run
T = n ⌈ log 2 n 2 τ ⌉ (42) T=n\left\lceil\log_2\frac{n^2}{\tau}\right\rceil \tag*{(42)} T = n ⌈ log 2 τ n 2 ⌉ (42) 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 τ \tau τ .
Proof. Since each vertex occurs in any independently sampled candidate with probability 1 / Z ≥ 1 / n 1/Z\ge1/n 1/ Z ≥ 1/ n by Lemma 5.3 (21), the probability that it remains unprocessed after T T T rounds is at most
( 1 − 1 / Z ) T ≤ e − T / n ≤ τ / n 2 . (1-1/Z)^T\le e^{-T/n}\le\tau/n^2. ( 1 − 1/ Z ) T ≤ e − T / n ≤ τ / n 2 .
Use the same first T T T samples to couple this truncated run with the infinite run. Pairs with an endpoint processed before time T T T 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 τ / n 2 \tau/n^2 τ / n 2 , and any pair contributes at most one additional unit of cost in the remaining instance. Summing over at most ( n 2 ) < n 2 \binom{n}{2}<n^2 ( 2 n ) < n 2 pairs proves the τ \tau τ 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 ε > 0 \varepsilon> 0 ε > 0 , there is a randomized algorithm that, on every feasible constrained correlation clustering instance I I I with n n n vertices, outputs in time ( n / ε ) O ( ε − 2 ) (n/\varepsilon)^{O(\varepsilon^{-2})} ( n / ε ) O ( ε − 2 ) a feasible partition of expected cost at most ( 2 + ε ) OPT ( I ) (2 + \varepsilon)\operatorname{OPT}(I) ( 2 + ε ) OPT ( I ) .
Proof. It suffices to consider 0 < ε ≤ 1 0 < \varepsilon\le1 0 < ε ≤ 1 : for ε > 1 \varepsilon> 1 ε > 1 , use the algorithm with ε = 1 \varepsilon= 1 ε = 1 . We first construct a ( 2 + ε ) (2 + \varepsilon) ( 2 + ε ) -approximation for complete unweighted instances with only cannot-links. We then apply Theorem 2.2 to handle general constrained correlation clustering.
Let I 0 I_0 I 0 be such an unweighted cannot-link-only instance. Normalize I 0 I_0 I 0 as in Definition 3.1 , obtaining I I I , and let n = ∣ V ( I ) ∣ n = |V(I)| n = ∣ V ( I ) ∣ . Test whether the positive graph of I I I is a disjoint union of cliques. If so, its components give a feasible zero-cost partition of I I I . Restore the removed vertices as singletons and return. The normalization identity shows that this partition is optimal for I 0 I_0 I 0 , even when its recorded fixed cost is positive. This also handles the empty instance.
Otherwise, OPT ( I ) ≥ 1 \operatorname{OPT}(I) \ge1 OPT ( I ) ≥ 1 . Set A 0 = C p r e + 1 A_0 = C_{\mathrm{pre}} + 1 A 0 = C pre + 1 and choose
r = 2 ⌈ 256 A 0 2 ε 2 ⌉ , τ = ε 4 , T = n ⌈ log 2 n 2 τ ⌉ . (43) r = 2\left\lceil\frac{256A_0^2}{\varepsilon^2} \right\rceil,\qquad\tau= \frac{\varepsilon}{4},\qquad T = n\left\lceil\log_2 \frac{n^2}{\tau} \right\rceil. \tag*{(43)} r = 2 ⌈ ε 2 256 A 0 2 ⌉ , τ = 4 ε , T = n ⌈ log 2 τ n 2 ⌉ . (43)
These choices satisfy 0 < τ < n 2 0 < \tau< n^2 0 < τ < n 2 and τ ≤ ε OPT ( I ) / 4 \tau\le\varepsilon\operatorname{OPT}(I)/4 τ ≤ ε OPT ( I ) /4 . They use only ε \varepsilon ε , n n n , and the absolute constant A 0 A_0 A 0 , 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 r r and use the fixed candidate distribution with number of seed steps less than r / 2 r/2 r /2 .
Lemma 5.5 gives Y , P + ≤ A 0 OPT ( I ) Y,P_+ \le A_0\operatorname{OPT}(I) Y , P + ≤ A 0 OPT ( I ) , where A 0 = C p r e + 1 ≥ 1 A_0 = C_{\mathrm{pre}} + 1 \ge1 A 0 = C pre + 1 ≥ 1 . Consequently,
2 Y r + 3 2 Y P + r ≤ ( 2 A 0 r + 3 2 A 0 r ) OPT ( I ) . \frac{2Y}{r} + 3\sqrt{\frac{2YP_+}{r}} \le\left(\frac{2A_0}{r} + \frac{3\sqrt{2}A_0}{\sqrt{r}}\right)\operatorname{OPT}(I). r 2 Y + 3 r 2 Y P + ≤ ( r 2 A 0 + r 3 2 A 0 ) OPT ( I ) .
The choice in (43) ensures r ≥ 512 A 0 2 / ε 2 r \ge512A_0^2/\varepsilon^2 r ≥ 512 A 0 2 / ε 2 , so
2 A 0 r ≤ ε 2 256 A 0 , 3 2 A 0 r ≤ 3 ε 16 . \frac{2A_0}{r} \le\frac{\varepsilon^2}{256A_0},\qquad\frac{3\sqrt{2}A_0}{\sqrt{r}} \le\frac{3\varepsilon}{16}. r 2 A 0 ≤ 256 A 0 ε 2 , r 3 2 A 0 ≤ 16 3 ε .
Since 0 < ε ≤ 1 0 < \varepsilon\le1 0 < ε ≤ 1 and A 0 ≥ 1 A_0 \ge1 A 0 ≥ 1 , their sum is at most
ε 256 + 3 ε 16 = 49 ε 256 < ε 4 . \frac{\varepsilon}{256} + \frac{3\varepsilon}{16} = \frac{49\varepsilon}{256} < \frac{\varepsilon}{4}. 256 ε + 16 3 ε = 256 49 ε < 4 ε .
Thus the sampling-error contribution is at most ε OPT ( I ) / 4 \varepsilon\operatorname{OPT}(I)/4 ε OPT ( I ) /4 .
Lemma 6.3 , followed by the finite-round Lemma 6.4 , bounds the expected cost in the residual preclustering instance I ′ I' I ′ by
2 L − L − + ε OPT ( I ) 4 + τ . 2L - L_- + \frac{\varepsilon\operatorname{OPT}(I)}{4} + \tau. 2 L − L − + 4 ε OPT ( I ) + τ .
Theorem 2.4 restores the omitted constant cost OPT ( I ) − OPT ( I ′ ) \operatorname{OPT}(I) - \operatorname{OPT}(I') OPT ( I ) − OPT ( I ′ ) . Using L ≤ OPT ( I ′ ) L \le\operatorname{OPT}(I') L ≤ OPT ( I ′ ) (by Lemma 5.1 ) and τ ≤ ε OPT ( I ) / 4 \tau\le\varepsilon\operatorname{OPT}(I)/4 τ ≤ ε OPT ( I ) /4 gives expected cost in I I I at most
OPT ( I ) − OPT ( I ′ ) + 2 L − L − + ε OPT ( I ) 4 + τ ≤ OPT ( I ) + L + ε OPT ( I ) 2 ≤ ( 2 + ε / 2 ) OPT ( I ) . \operatorname{OPT}(I) - \operatorname{OPT}(I') + 2L - L_- + \frac{\varepsilon\operatorname{OPT}(I)}{4} + \tau\le\operatorname{OPT}(I) + L + \frac{\varepsilon\operatorname{OPT}(I)}{2} \le(2 + \varepsilon/2)\operatorname{OPT}(I). OPT ( I ) − OPT ( I ′ ) + 2 L − L − + 4 ε OPT ( I ) + τ ≤ OPT ( I ) + L + 2 ε OPT ( I ) ≤ ( 2 + ε /2 ) OPT ( I ) .
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 ( 2 + ε / 2 ) OPT ( I 0 ) (2 + \varepsilon/2)\operatorname{OPT}(I_0) ( 2 + ε /2 ) OPT ( I 0 ) .
Standard implementations of rational sampling incur an arbitrarily small additional loss, which we absorb into ε \varepsilon ε . All outputs are feasible, and the core algorithm has expected approximation factor at most 2 + ε 2 + \varepsilon 2 + ε . Its running time is ∣ V ( I 0 ) ∣ O ( ε − 2 ) |V(I_0)|^{O(\varepsilon^{-2})} ∣ V ( I 0 ) ∣ O ( ε − 2 ) . The LP has n O ( r ) n^{O(r)} n O ( r ) variables and constraints, r = O ( ε − 2 ) r = O(\varepsilon^{-2}) r = O ( ε − 2 ) , 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 ε / 2 \varepsilon/2 ε /2 and transfer slack δ = ε / 2 \delta= \varepsilon/2 δ = ε /2 . The resulting expected approximation factor is ( 2 + ε / 2 ) + ε / 2 = 2 + ε (2 + \varepsilon/2) + \varepsilon/2 = 2 + \varepsilon ( 2 + ε /2 ) + ε /2 = 2 + ε . 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 1 / ε 1/\varepsilon 1/ ε , so the overall running time is ( n / ε ) O ( ε − 2 ) (n/\varepsilon)^{O(\varepsilon^{-2})} ( n / ε ) O ( ε − 2 ) , now with n n n denoting the original input size as in the theorem. The final must-link projection is deterministic by Lemma 3.2 .
Hardness of approximation
In this section, we work exclusively on unsigned graphs. A graph G G G is complete if V ( G ) V(G) V ( G ) is a clique. A vertex v v v is universal if N [ v ] = V ( G ) N[v] = V(G) N [ v ] = V ( G ) . Our reduction is based on adding sufficiently many universal vertices. This is known as the join of G G G and a large complete graph in graph-theoretic terminology.
Definition 7.1 (Construction). Let G G G be a graph and let t t t be a positive integer. The graph G ∨ K t G \vee K_t G ∨ K t is obtained from G G G by adding a clique U U U of t t t new vertices and making every vertex of U U U adjacent to every vertex of V ( G ) V(G) V ( G ) .
Let OPT ( G ) \operatorname{OPT}(G) OPT ( G ) denote the size of a minimum cluster deletion set of G G G , and let ω ( G ) \omega(G) ω ( G ) denote the size of a maximum clique of G G G .
Proposition 7.2. Let n = ∣ V ( G ) ∣ n = |V(G)| n = ∣ V ( G ) ∣ and m = ∣ E ( G ) ∣ m = |E(G)| m = ∣ E ( G ) ∣ . If m > 0 m > 0 m > 0 , then
OPT ( G ∨ K t ) ≤ t ( n − ω ( G ) ) + m − ( ω ( G ) 2 ) ≤ t ( n − ω ( G ) ) + m . \operatorname{OPT}(G \vee K_t) \le t(n-\omega(G)) + m - \binom{\omega(G)}{2} \le t(n-\omega(G)) + m. OPT ( G ∨ K t ) ≤ t ( n − ω ( G )) + m − ( 2 ω ( G ) ) ≤ t ( n − ω ( G )) + m . Moreover, if m > 0 m > 0 m > 0 , then the second inequality is strict.
Proof. Let H = G ∨ K t H = G \vee K_t H = G ∨ K t . Let S S S be a maximum clique of G G G , and let V − = V ( G ) ∖ S V_- = V(G) \setminus S V − = V ( G ) ∖ S . Delete all edges of H H H incident to vertices of V − V_- V − . The resulting graph is a cluster graph: one cluster is U ∪ S U \cup S U ∪ S , and every vertex of V − V_- V − is an isolated singleton cluster. The cost of this solution is
∣ U ∣ ⋅ ∣ V − ∣ + ∣ E ( G ) ∖ E ( G [ S ] ) ∣ = t ( n − ω ( G ) ) + m − ( ∣ S ∣ 2 ) = t ( n − ω ( G ) ) + m − ( ω ( G ) 2 ) . |U| \cdot|V_-| + |E(G) \setminus E(G[S])| = t(n-\omega(G)) + m - \binom{|S|}{2} = t(n-\omega(G)) + m - \binom{\omega(G)}{2}. ∣ U ∣ ⋅ ∣ V − ∣ + ∣ E ( G ) ∖ E ( G [ S ]) ∣ = t ( n − ω ( G )) + m − ( 2 ∣ S ∣ ) = t ( n − ω ( G )) + m − ( 2 ω ( G ) ) .
It is strictly smaller than t ( n − ω ( G ) ) + m t(n-\omega(G)) + m t ( n − ω ( G )) + m because ω ( G ) > 1 \omega(G) > 1 ω ( G ) > 1 when m > 0 m > 0 m > 0 .
By construction, the vertices of U U U are universal true twins in G ∨ K t G \vee K_t G ∨ K t . 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 ∣ E ( G ) ∣ |E(G)| ∣ E ( G ) ∣ moves no true-twin pair is separated. Each move can be found and performed in polynomial time.
Lemma 7.4. Let n = ∣ V ( G ) ∣ n=|V(G)| n = ∣ V ( G ) ∣ . Given any cluster deletion set E − E_- E − of G ∨ K t G \vee K_t G ∨ K t , one can produce, in time O ( ( t + n ) 2 ) O((t+n)^2) O (( t + n ) 2 ) , a clique of G G G of size at least
n − ∣ E − ∣ t . n-\frac{|E_-|}{t}. n − t ∣ E − ∣ .
Proof. Let H = G ∨ K t H=G\vee K_t H = G ∨ K t , and let U U U be the set of the t t t added universal vertices. Among the clusters of H − E − H-E_- H − E − meeting U U U , choose C C C maximizing ∣ C ∩ V ( G ) ∣ |C\cap V(G)| ∣ C ∩ V ( G ) ∣ and gather all of U U U into it. This preserves feasibility, does not increase the separation cost between U U U and V ( G ) V(G) V ( G ) , and removes all separation cost within U U U . Let E − ′ E'_- E − ′ be the resulting deletion set; then ∣ E − ′ ∣ ≤ ∣ E − ∣ |E'_-|\leq|E_-| ∣ E − ′ ∣ ≤ ∣ E − ∣ . The cluster C C C can be chosen and the gathering performed in O ( ( t + n ) 2 ) O((t+n)^2) O (( t + n ) 2 ) time, as in the projection of Lemma 3.2 .
We return the clique
K = C ∖ U . K=C\setminus U. K = C ∖ U .
Because C C C is a clique in H − E − ′ H-E'_- H − E − ′ and no edge inside V ( G ) V(G) V ( G ) is introduced, K K K is a clique of G G G . Every vertex in V ( G ) ∖ K V(G)\setminus K V ( G ) ∖ K lies outside the cluster containing U U U . Therefore, all edges between U U U and V ( G ) ∖ K V(G)\setminus K V ( G ) ∖ K must be deleted by E − ′ E'_- E − ′ . Hence
∣ E − ′ ∣ ≥ ∣ U ∣ ⋅ ∣ V ( G ) ∖ K ∣ = t ( n − ∣ K ∣ ) . |E'_-|\geq|U|\cdot|V(G)\setminus K|=t(n-|K|). ∣ E − ′ ∣ ≥ ∣ U ∣ ⋅ ∣ V ( G ) ∖ K ∣ = t ( n − ∣ K ∣ ) .
Since ∣ E − ′ ∣ ≤ ∣ E − ∣ |E'_-|\leq|E_-| ∣ E − ′ ∣ ≤ ∣ E − ∣ , we obtain
∣ K ∣ ≥ n − ∣ E − ′ ∣ t ≥ n − ∣ E − ∣ t . |K|\geq n-\frac{|E'_-|}{t}\geq n-\frac{|E_-|}{t}. ∣ K ∣ ≥ n − t ∣ E − ′ ∣ ≥ n − t ∣ E − ∣ .
Given E − E_- E − explicitly, the clustering of H − E − H-E_- H − E − and the set K K K can be computed in O ( ∣ V ( H ) ∣ 2 ) O(|V(H)|^2) O ( ∣ V ( H ) ∣ 2 ) time.
Proposition 7.2 and Lemma 7.4 already imply the NP-hardness of cluster deletion: it suffices to set t = ∣ E ( G ) ∣ t=|E(G)| t = ∣ E ( G ) ∣ . For the main theorem, we use the following standard relation between cliques and vertex covers. The complement graph G ‾ \overline{G} G of a graph G G G is defined on the same vertex set V ( G ) V(G) V ( G ) , where two distinct vertices u u u and v v v are adjacent in G ‾ \overline{G} G if and only if u v ∉ E ( G ) uv\notin E(G) uv ∈ / E ( G ) . Note that the complement of G ‾ \overline{G} G is G G G . Let τ ( G ) \tau(G) τ ( G ) denote the size of a minimum vertex cover of G G G . Since a clique in a graph is an independent set in its complement, we have
τ ( G ) = ∣ V ( G ) ∣ − ω ( G ‾ ) . \tau(G)=|V(G)|-\omega(\overline{G}). τ ( G ) = ∣ V ( G ) ∣ − ω ( G ) .
Theorem 1.3. Let c > 1 c>1 c > 1 be a constant. If there exists an f ( N ) f(N) f ( N ) -time c c c -approximation algorithm for cluster deletion on N N N -vertex graphs, then there exists an O ( f ( c ′ n 2 ) + n 4 ) O(f(c'n^2)+n^4) O ( f ( c ′ n 2 ) + n 4 ) -time c c c -approximation algorithm for vertex cover on n n n -vertex graphs, where c ′ c' c ′ is a constant depending only on c c c .
Proof. Let G G G be the input graph for vertex cover, and let n = ∣ V ( G ) ∣ n=|V(G)| n = ∣ V ( G ) ∣ . If G G G is edgeless, then the empty set is an optimal vertex cover. If G G G is complete, then any set of n − 1 n-1 n − 1 vertices is an optimal vertex cover. Thus we may assume that G G G has at least one edge and is not complete.
Choose an arbitrary edge v 1 v 2 ∈ E ( G ) v_1v_2\in E(G) v 1 v 2 ∈ E ( G ) . For i = 1 , 2 i=1,2 i = 1 , 2 , define
G i = G − v i and H i = G i ‾ ∨ K t . G_i=G-v_i \qquad\text{and}\qquad H_i=\overline{G_i}\vee K_t. G i = G − v i and H i = G i ∨ K t .
where
t = ⌈ c n 2 2 ( c − 1 ) ⌉ . t=\left\lceil\frac{cn^{2}}{2(c-1)}\right\rceil. t = ⌈ 2 ( c − 1 ) c n 2 ⌉ .
Since every vertex cover of G G G contains at least one endpoint of the edge v 1 v 2 v_{1}v_{2} v 1 v 2 , there is an index i ∈ { 1 , 2 } i \in\{1,2\} i ∈ { 1 , 2 } such that deleting v i v_{i} v i from a minimum vertex cover of G G G leaves a vertex cover of G i G_{i} G i . Hence
min i ∈ { 1 , 2 } τ ( G i ) ≤ τ ( G ) − 1. \min_{i\in\{1,2\}}\tau(G_{i})\leq\tau(G)-1. i ∈ { 1 , 2 } min τ ( G i ) ≤ τ ( G ) − 1.
For each i ∈ { 1 , 2 } i \in\{1,2\} i ∈ { 1 , 2 } , run the assumed c c c -approximation algorithm for cluster deletion on H i H_{i} H i , and let E i E_{i} E i be the returned deletion set. By the approximation guarantee and Proposition 7.2 ,
∣ E i ∣ ≤ c ⋅ OPT ( H i ) ≤ c ( t ( ∣ V ( G i ) ∣ − ω ( G i ‾ ) + ∣ E ( G i ‾ ) ∣ ) ) < c t τ ( G i ) + c n 2 / 2. |E_{i}|\leq c\cdot\operatorname{OPT}(H_{i})\leq c\left(t\left(|V(G_{i})|-\omega(\overline{G_{i}})+|E(\overline{G_{i}})|\right)\right)<ct\tau(G_{i})+cn^{2}/2. ∣ E i ∣ ≤ c ⋅ OPT ( H i ) ≤ c ( t ( ∣ V ( G i ) ∣ − ω ( G i ) + ∣ E ( G i ) ∣ ) ) < c t τ ( G i ) + c n 2 /2.
We may assume without loss of generality that ∣ E 1 ∣ ≤ ∣ E 2 ∣ |E_{1}|\leq|E_{2}| ∣ E 1 ∣ ≤ ∣ E 2 ∣ . Then
∣ E 1 ∣ = min i ∈ { 1 , 2 } ∣ E i ∣ < c t ⋅ min i ∈ { 1 , 2 } τ ( G i ) + c n 2 2 ≤ c t ( τ ( G ) − 1 ) + c n 2 2 . |E_{1}|=\min_{i\in\{1,2\}}|E_{i}|<ct\cdot\min_{i\in\{1,2\}}\tau(G_{i})+\frac{cn^{2}}{2}\leq ct(\tau(G)-1)+\frac{cn^{2}}{2}. ∣ E 1 ∣ = i ∈ { 1 , 2 } min ∣ E i ∣ < c t ⋅ i ∈ { 1 , 2 } min τ ( G i ) + 2 c n 2 ≤ c t ( τ ( G ) − 1 ) + 2 c n 2 .
Since c n 2 / 2 ≤ t ( c − 1 ) cn^{2}/2\leq t(c-1) c n 2 /2 ≤ t ( c − 1 ) by the choice of t t t , we have
∣ E 1 ∣ < c t ( τ ( G ) − 1 ) + t ( c − 1 ) = c t τ ( G ) − t . |E_{1}|<ct(\tau(G)-1)+t(c-1)=ct\tau(G)-t. ∣ E 1 ∣ < c t ( τ ( G ) − 1 ) + t ( c − 1 ) = c t τ ( G ) − t .
Now apply Lemma 7.4 to E 1 E_{1} E 1 in H 1 H_{1} H 1 . This yields a clique K K K of G 1 ‾ \overline{G_{1}} G 1 such that
∣ K ∣ ≥ ∣ V ( G 1 ‾ ) ∣ − ∣ E 1 ∣ t ≥ n − 1 − c t τ ( G ) − t t = n − c τ ( G ) . |K|\geq|V(\overline{G_{1}})|-\frac{|E_{1}|}{t}\geq n-1-\frac{ct\tau(G)-t}{t}=n-c\tau(G). ∣ K ∣ ≥ ∣ V ( G 1 ) ∣ − t ∣ E 1 ∣ ≥ n − 1 − t c t τ ( G ) − t = n − c τ ( G ) .
Since K K K is a clique in G 1 ‾ \overline{G_{1}} G 1 , it is an independent set in G 1 G_{1} G 1 and G G G . Hence, V ( G ) ∖ K V(G)\setminus K V ( G ) ∖ K is a vertex cover of G G G . The size of this vertex cover is ∣ V ( G ) ∖ K ∣ = n − ∣ K ∣ ≤ c τ ( G ) |V(G)\setminus K|=n-|K|\leq c\tau(G) ∣ V ( G ) ∖ K ∣ = n − ∣ K ∣ ≤ c τ ( G ) . Thus, we obtain a c c c -approximation for vertex cover.
It remains to analyze the running time. Let c ′ = ⌈ c 2 ( c − 1 ) ⌉ + 1 c'=\left\lceil\frac{c}{2(c-1)}\right\rceil+1 c ′ = ⌈ 2 ( c − 1 ) c ⌉ + 1 . Then each graph H i H_{i} H i has
∣ V ( H i ) ∣ = n − 1 + t ≤ c ′ n 2 |V(H_{i})|=n-1+t\leq c'n^{2} ∣ V ( H i ) ∣ = n − 1 + t ≤ c ′ n 2
vertices. Constructing G i ‾ \overline{G_{i}} G i takes O ( n 2 ) O(n^{2}) O ( n 2 ) time, and explicitly constructing the join with K t K_{t} K t takes O ( ∣ V ( H i ) ∣ 2 ) = O ( n 4 ) O(|V(H_{i})|^{2})=O(n^{4}) O ( ∣ V ( H i ) ∣ 2 ) = O ( n 4 ) time. The assumed approximation algorithm is invoked twice, each time on a graph with at most c ′ n 2 c'n^{2} c ′ n 2 vertices. Thus, the total time spent in the approximation algorithm is 2 f ( c ′ n 2 ) 2f(c'n^{2}) 2 f ( c ′ n 2 ) . Finally, applying Lemma 7.4 takes O ( ( t + n ) 2 ) = O ( n 4 ) O((t+n)^{2})=O(n^{4}) O (( t + n ) 2 ) = O ( n 4 ) time. Therefore, the total running time is
O ( f ( c ′ n 2 ) + n 4 ) , O(f(c'n^{2})+n^{4}), O ( f ( c ′ n 2 ) + n 4 ) ,
as claimed.
Theorem 1.2. Let ε > 0 \varepsilon>0 ε > 0 be a fixed constant. It is NP-hard to approximate constrained correlation clustering within a factor of 2 − ε \sqrt{2}-\varepsilon 2 − ε . Assuming the UGC, it is NP-hard to approximate constrained correlation clustering within a factor of 2 − ε 2-\varepsilon 2 − ε .
Proof. The vertex cover hardness following from Khot et al. [20 ] rules out a ( 2 − ε ) (\sqrt{2}-\varepsilon) ( 2 − ε ) -approximation unless P = NP. Khot and Regev [21 ] established ( 2 − ε ) (2-\varepsilon) ( 2 − ε ) -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 G = Q ‾ ∨ U G = \overline{Q} \vee U G = Q ∨ U , where Q Q Q is the vertex cover instance and U U U is the added universal clique. After gathering U U U into one cluster, the vertices kept with it form an independent set of Q Q Q ; the vertices separated from it form a vertex cover. For the metric-LP connection, fix u ∈ U u \in U u ∈ U and put z v = x u v z_v = x_{uv} z v = x uv . Every edge v w ∈ E ( Q ) vw \in E(Q) v w ∈ E ( Q ) is a non-edge in G G G , so the triangle inequality gives z v + z w ≥ 1 z_v + z_w \ge1 z v + z w ≥ 1 : these are the vertex-cover LP constraints. The STC constraints on the edges incident to this fixed u u u give the same inequalities, because u , v , w u,v,w u , v , w induce a three-vertex path in G G G exactly when v w ∈ E ( Q ) vw \in E(Q) v w ∈ E ( Q ) . The table follows the choices involving U U U ; the clustering algorithms also process the vertices separated from it.
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 O ( r − 1 / 2 ) O(r^{-1/2}) O ( r − 1/2 ) term, so we choose the LP level in Step 3 to be r = Θ ( ε − 2 ) r = \Theta(\varepsilon^{-2}) r = Θ ( ε − 2 ) . Setting ε = 0 \varepsilon= 0 ε = 0 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 W W . On feasible constrained instances, this encoding can preserve approximation guarantees when W W 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 W > ( n 2 ) W > \binom{n}{2} W > ( 2 n ) , a partition satisfying all of them costs less than W W W , whereas violating even one costs at least W W W . Every optimum therefore respects these preferences, and the instance can be treated as constrained correlation clustering. More generally, choosing W > α ( n 2 ) > α OPT W > \alpha\binom{n}{2} > \alpha\operatorname{OPT} W > α ( 2 n ) > α OPT forces every α \alpha α -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 W W W , the high-weight pairs have weight one and the remaining pairs have weight 1 / W 1/W 1/ W . Omitting the latter changes every partition cost by at most ( n 2 ) / W \binom{n}{2}/W ( 2 n ) / W . Thus, for sufficiently large W W W , 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 α ≥ 1 \alpha\ge1 α ≥ 1 and δ > 0 \delta> 0 δ > 0 . A polynomial-time α \alpha α -approximation for complete signed correlation clustering with disagreement weights in { 1 , W } \{1,W\} { 1 , W } , where W W W is part of the input, gives a polynomial-time ( α + δ ) (\alpha+\delta) ( α + δ ) -approximation for general weighted correlation clustering.
Proof. First consider unweighted correlation clustering on an incomplete signed graph G G G with n n n vertices. Give every specified pair its original sign and weight W W W , and every unspecified pair an arbitrary sign and weight one. For every partition P \mathcal{P} P ,
W cost G ( P ) ≤ cost W ( P ) ≤ W cost G ( P ) + ( n 2 ) . W\operatorname{cost}_{G}(\mathcal{P}) \le\operatorname{cost}_{W}(\mathcal{P}) \le W\operatorname{cost}_{G}(\mathcal{P})+\binom{n}{2}. W cost G ( P ) ≤ cost W ( P ) ≤ W cost G ( P ) + ( 2 n ) .
An α \alpha α -approximate partition of the completed instance therefore satisfies
cost G ( P ) ≤ α OPT ( G ) + α ( n 2 ) W . \operatorname{cost}_{G}(\mathcal{P}) \le\alpha\operatorname{OPT}(G)+\frac{\alpha\binom{n}{2}}{W}. cost G ( P ) ≤ α OPT ( G ) + W α ( 2 n ) .
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 OPT ( G ) ≥ 1 \operatorname{OPT}(G) \ge1 OPT ( G ) ≥ 1 , and choosing
W = max { 2 , ⌈ 2 α ( n 2 ) δ ⌉ } W=\max\left\{2,\left\lceil\frac{2\alpha\binom{n}{2}}{\delta}\right\rceil\right\} W = max { 2 , ⌈ δ 2 α ( 2 n ) ⌉ }
gives a β \beta β -approximation for the incomplete problem, where β = α + δ / 2 \beta=\alpha+\delta/2 β = α + δ /2 .
We next reduce general nonnegative rational weights to polynomially bounded integer weights, allowing additional slack η = δ / 2 \eta=\delta/2 η = δ /2 . Discard zero-weight pairs and handle zero-cost instances directly. Let m m m be the number of remaining pairs. Using a polynomial-time ρ \rho ρ -approximation, with polynomially bounded ρ \rho ρ , obtain a partition of cost B > 0 B>0 B > 0 ; such an algorithm is available by [15 ] . Then B / ρ ≤ OPT ≤ B B/\rho\le\operatorname{OPT}\le B B / ρ ≤ OPT ≤ B . Put
h = η B β ρ m , K = ⌈ β ( B h + m ) ⌉ + 1 , w e ′ = min { ⌈ w e / h ⌉ , K } . h=\frac{\eta B}{\beta\rho m},\qquad K=\left\lceil\beta\left(\frac{B}{h}+m\right)\right\rceil+1,\qquad w'_e=\min\{\lceil w_e/h\rceil,K\}. h = β ρ m η B , K = ⌈ β ( h B + m ) ⌉ + 1 , w e ′ = min {⌈ w e / h ⌉ , K } .
The integer weights are polynomially bounded. The partition of cost B B B has rounded cost at most B / h + m B/h+m B / h + m , so a β \beta β -approximate rounded solution has cost strictly less than K K K and cannot disagree with any pair whose weight was capped. Its original cost is consequently at most
h β OPT w ′ ≤ β OPT + β η m h ≤ ( β + η ) OPT . h\beta\operatorname{OPT}_{w'}\le\beta\operatorname{OPT}+\beta\eta m h\le(\beta+\eta)\operatorname{OPT}. h β OPT w ′ ≤ β OPT + β η mh ≤ ( β + η ) OPT .
To obtain the required approximation for integer weights, simulate each pair u v uv uv by w e ′ w_e' w e ′ 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 ( β + η ) = ( α + δ ) (\beta+\eta)=(\alpha+\delta) ( β + η ) = ( α + δ ) 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 ( 2 + ε ) (2+\varepsilon) ( 2 + ε ) guarantee extends to instances with hard constraints and disagreement weights in { 1 , c } \{1,c\} { 1 , c } for fixed c > 1 c>1 c > 1 . Better bounds are known without hard constraints. For 1 ≤ c ≤ 2 1\le c\le2 1 ≤ c ≤ 2 , the disagreement weights satisfy the triangle inequality, so the ( 2 + ε ) (2+\varepsilon) ( 2 + ε ) -approximation of Fan et al. [17 ] applies. For c > 2 c>2 c > 2 , replace every weight c c c by 2 2 2 and apply their algorithm. This decreases every partition cost by a factor of at most c / 2 c/2 c /2 , giving a ( c + ε ) (c+\varepsilon) ( c + ε ) -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 ( Q , k ) (Q,k) ( Q , k ) , with 1 ≤ k ≤ ∣ V ( Q ) ∣ 1\le k\le|V(Q)| 1 ≤ k ≤ ∣ V ( Q ) ∣ . Obtain Q ′ Q' Q ′ by replacing each vertex of Q Q Q with two adjacent true twins and add a disjoint clique of 2 k − 1 2k-1 2 k − 1 vertices. Then
ω ( Q ′ ) = max { 2 ω ( Q ) , 2 k − 1 } . \omega(Q')=\max\{2\omega(Q),2k-1\}. ω ( Q ′ ) = max { 2 ω ( Q ) , 2 k − 1 } .
Let
G = Q ′ ∨ K t , t = ∣ E ( Q ′ ) ∣ + 1 , G=Q'\vee K_t,\qquad t=|E(Q')|+1, G = Q ′ ∨ K t , t = ∣ E ( Q ′ ) ∣ + 1 ,
and let U U U be the added universal clique. True-twin preservation (Corollary 7.3 ) keeps all of U U U in one cluster in every optimum of G G G . The vertices of that cluster outside U U U form a maximum clique of Q ′ Q' Q ′ : otherwise the separation cost from U U U alone exceeds t ( ∣ V ( Q ′ ) ∣ − ω ( Q ′ ) ) + ∣ E ( Q ′ ) ∣ t\bigl(|V(Q')|-\omega(Q')\bigr)+|E(Q')| t ( ∣ V ( Q ′ ) ∣ − ω ( Q ′ ) ) + ∣ E ( Q ′ ) ∣ , the cost upper bound obtained by putting U U U with a maximum clique of Q ′ Q' Q ′ and leaving all other vertices as singletons.
Choose u ∈ U u\in U u ∈ U and v v v in the added clique of Q ′ Q' Q ′ . Then every optimal partition keeps u u u and v v v together if and only if
2 ω ( Q ) < 2 k − 1 ⟺ ω ( Q ) < k . 2\omega(Q)<2k-1\quad\Longleftrightarrow\quad\omega(Q)<k. 2 ω ( Q ) < 2 k − 1 ⟺ ω ( Q ) < k .
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 u − v − w u-v-w u − v − w , delete u w uw u w or v w vw v w if some optimum separates its endpoints; otherwise every optimum joins all three vertices, and we add u w uw u w . 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.
Radius-2/3 Repulsion
We prove Theorem 1.6, illustrated in Figure 2 . Call a pair short if its distance is less than 2 / 3 2/3 2/3 . For a current set S ⊆ V S \subseteq V S ⊆ V and a center c ∈ S c \in S c ∈ S , define the strict ball
A c = { u ∈ S : x c u < 2 / 3 } . A_c = \{u \in S : x_{cu} < 2/3\}. A c = { u ∈ S : x c u < 2/3 } .
Since x c c = 0 x_{cc}=0 x cc = 0 , this ball is nonempty. Separating A c A_c A c from S ∖ A c S \setminus A_c S ∖ A c incurs boundary cost e + ( A c , S ∖ A c ) e^+(A_c,S \setminus A_c) e + ( A c , S ∖ A c ) .
To analyze the algorithm, assign each unordered pair the nonnegative potential
φ u v = { 3 x u v , u v ∈ E + , x u v < 2 / 3 , 1 , u v ∈ E + , x u v ≥ 2 / 3 , 1 , u v ∈ E − , x u v < 2 / 3 , 0 , u v ∈ E − , x u v ≥ 2 / 3 , Φ ( S ) = ∑ u v ∈ ( S 2 ) φ u v . \varphi_{uv} =
\begin{cases}
3x_{uv}, & uv \in E^+,\, x_{uv}<2/3,\\
1, & uv \in E^+,\, x_{uv}\ge2/3,\\
1, & uv \in E^-,\, x_{uv}<2/3,\\
0, & uv \in E^-,\, x_{uv}\ge2/3,
\end{cases}
\qquad
\Phi(S)=\sum_{uv\in\binom{S}{2}}\varphi_{uv}. φ uv = ⎩ ⎨ ⎧ 3 x uv , 1 , 1 , 0 , uv ∈ E + , x uv < 2/3 , uv ∈ E + , x uv ≥ 2/3 , uv ∈ E − , x uv < 2/3 , uv ∈ E − , x uv ≥ 2/3 , Φ ( S ) = uv ∈ ( 2 S ) ∑ φ uv .
For a short pair, put
h u v = { 1 − 3 x u v , u v ∈ E + , − 1 , u v ∈ E − . h_{uv} =
\begin{cases}
1-3x_{uv}, & uv\in E^+,\\
-1, & uv\in E^-.
\end{cases} h uv = { 1 − 3 x uv , − 1 , uv ∈ E + , uv ∈ E − .
The boundary cost plus the change in potential is
Δ c = e + ( A c , S ∖ A c ) + Φ ( A c ) + Φ ( S ∖ A c ) − Φ ( S ) = ∑ u ∈ A c , v ∈ S ∖ A c x u v < 2 / 3 h u v . (44) \begin{aligned}
\Delta_c &= e^+(A_c,S\setminus A_c)+\Phi(A_c)+\Phi(S\setminus A_c)-\Phi(S)\\
&=\sum_{\substack{u\in A_c,\,v\in S\setminus A_c\\x_{uv}<2/3}}h_{uv}. \tag*{(44)}
\end{aligned} Δ c = e + ( A c , S ∖ A c ) + Φ ( A c ) + Φ ( S ∖ A c ) − Φ ( S ) = u ∈ A c , v ∈ S ∖ A c x uv < 2/3 ∑ h uv . (44)
Indeed, a short positive boundary pair contributes 1 − 3 x u v 1-3x_{uv} 1 − 3 x uv , and a short negative boundary pair contributes − 1 -1 − 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 x x of the standard metric LP for a constrained correlation clustering instance, randomized radius-2 / 3 2/3 2/3 Repulsion constructs a feasible partition in polynomial time with expected cost at most three times the objective value of x x 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, φ u v ≤ 3 x u v \varphi_{uv}\le3x_{uv} φ uv ≤ 3 x uv : there is equality for a short pair, and otherwise φ u v = 1 ≤ 3 x u v \varphi_{uv}=1\le3x_{uv} φ uv = 1 ≤ 3 x uv . For a negative pair, φ u v ≤ 3 ( 1 − x u v ) \varphi_{uv}\le3(1-x_{uv}) φ uv ≤ 3 ( 1 − x uv ) : a short pair has potential one and x u v < 2 / 3 x_{uv}<2/3 x uv < 2/3 , while a non-short pair has potential zero. Therefore
Φ ( V ) ≤ 3 L ( x ) . (45) \Phi(V)\le3L(x). \tag*{(45)} Φ ( V ) ≤ 3 L ( x ) . (45)
We next show that a uniformly chosen proper ball has nonpositive expected Δ c \Delta_c Δ c . Form the auxiliary graph on S S S whose edges are the short pairs. Its closed neighborhoods are exactly the balls A c A_c A c . Sum (44) over all centers c ∈ S c\in S c ∈ S . Every term in this sum corresponds to an induced three-vertex path in the auxiliary graph. For an induced path u − v − w u-v-w u − v − w , the center u u u contributes h v w h_{vw} h v w and the center w w w contributes h u v h_{uv} h uv . For every short pair,
h u v ≤ 1 − 3 x u v ; h_{uv} \le1 - 3x_{uv}; h uv ≤ 1 − 3 x uv ;
for a negative pair, this follows from x u v < 2 / 3 x_{uv}<2/3 x uv < 2/3 . The combined contribution of the path is therefore at most
h u v + h v w ≤ 2 − 3 ( x u v + x v w ) ≤ 2 − 3 x u w ≤ 0 , h_{uv}+h_{vw} \le2-3(x_{uv}+x_{vw}) \le2-3x_{uw} \le0, h uv + h v w ≤ 2 − 3 ( x uv + x v w ) ≤ 2 − 3 x u w ≤ 0 ,
where the second inequality uses the triangle inequality and the last holds because the missing pair u w uw u w is not short. Grouping all contributions by these induced paths gives
∑ c ∈ S Δ c ≤ 0. \sum_{c\in S}\Delta_c \le0. c ∈ S ∑ Δ c ≤ 0.
Centers with A c = S A_c=S A c = S contribute zero. Hence, whenever a split is needed, the uniform choice among proper centers satisfies
E c [ e + ( A c , S ∖ A c ) + Φ ( A c ) + Φ ( S ∖ A c ) ] ≤ Φ ( S ) . \mathbb{E}_c\left[e^+(A_c,S\setminus A_c)+\Phi(A_c)+\Phi(S\setminus A_c)\right]\le\Phi(S). E c [ e + ( A c , S ∖ A c ) + Φ ( A c ) + Φ ( S ∖ A c ) ] ≤ Φ ( S ) .
We prove by induction on ∣ S ∣ |S| ∣ S ∣ that the expected cost of the recursive partition of S S S is at most Φ ( S ) \Phi(S) Φ ( S ) . 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 Φ ( S ) \Phi(S) Φ ( S ) . 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 S S S . At the root, (45) yields
E [ cost I ( P 0 ) ] ≤ Φ ( V ) ≤ 3 L ( x ) . \mathbb{E}[\operatorname{cost}_I(\mathcal{P}_0)]\le\Phi(V)\le3L(x). E [ cost I ( P 0 )] ≤ Φ ( V ) ≤ 3 L ( x ) .
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 2/3 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 c ∈ arg min c ∈ S A c ≠ S Δ c c\in\arg\min_{\substack{c\in S\\A_c\ne S}}\Delta_c c ∈ arg min c ∈ S A c = S Δ c , breaking ties deterministically.
The chosen split then satisfies
e + ( A c , S ∖ A c ) + Φ ( A c ) + Φ ( S ∖ A c ) ≤ Φ ( S ) . e^+(A_c,S\setminus A_c)+\Phi(A_c)+\Phi(S\setminus A_c)\le\Phi(S). e + ( A c , S ∖ A c ) + Φ ( A c ) + Φ ( S ∖ A c ) ≤ Φ ( S ) .
This inequality holds at every split, rather than only in expectation. Induction over the recursion therefore gives
cost I ( P 0 ) ≤ Φ ( V ) ≤ 3 L ( x ) . \operatorname{cost}_I(\mathcal{P}_0)\le\Phi(V)\le3L(x). cost I ( P 0 ) ≤ Φ ( V ) ≤ 3 L ( x ) .
Computing all candidate values Δ c \Delta_c Δ c takes polynomial time, and the feasibility argument is unchanged. Finally, every proper split produces two nonempty parts. There are at most ∣ V ∣ − 1 |V|-1 ∣ V ∣ − 1 splits, and each center and ball can be evaluated in polynomial time.
Probability-weighted expansion
We prove Theorem 3.3, extending the random expansion of Chawla et al. [13, Section 6, Theorem 20] to cannot-link constraints.2 With no cannot-links, this is the usual transfer from probability-weighted to unweighted correlation clustering.
Theorem 3.3 ([13 ] ). Fix constants α ≥ 1 \alpha\ge1 α ≥ 1 and δ > 0 \delta> 0 δ > 0 . 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 α \alpha α . 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 α + δ \alpha+ \delta α + δ .
Proof. Let I I I be a probability-weighted instance on n n n vertices with cannot-link set H H H , separation costs p u v p_{uv} p uv , and co-clustering costs 1 − p u v 1-p_{uv} 1 − p uv . Instances with fewer than two vertices are immediate. Write ε = min { δ , 1 } \varepsilon= \min\{\delta,1\} ε = min { δ , 1 } , where δ \delta δ is the slack in the proposition, and put m = ( n 2 ) m = \binom{n}{2} m = ( 2 n ) .
First handle instances whose optimal value may be arbitrarily small. Give each pair its cheaper relation: label it positive if p u v ≥ 1 / 2 p_{uv} \ge1/2 p uv ≥ 1/2 and negative otherwise. If the resulting positive graph is a disjoint union of cliques and its component partition respects H H H , return that partition. It minimizes every pair contribution simultaneously and has cost
∑ u < v min { p u v , 1 − p u v } . \sum_{u<v}\min\{p_{uv},1-p_{uv}\}. u < v ∑ min { p uv , 1 − p uv } .
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 1/2 1/2 , so
OPT ( I ) ≥ 1 2 . (46) \operatorname{OPT}(I) \ge\frac{1}{2}. \tag*{(46)} OPT ( I ) ≥ 2 1 . (46)
Henceforth assume this second case.
Set
γ = ε 8 ( α + 1 ) , η = ε 8 m . \gamma= \frac{\varepsilon}{8(\alpha+1)}, \qquad\eta= \frac{\varepsilon}{8m}. γ = 8 ( α + 1 ) ε , η = 8 m ε .
Replace each vertex v v v by a set V v V_v V v of T T T copies. Make every pair within V v V_v V v positive. For copies of distinct vertices u , v u,v u , v , independently label their pair positive with probability p u v p_{uv} p uv and negative with probability 1 − p u v 1-p_{uv} 1 − p uv . For every u v ∈ H uv \in H uv ∈ H , impose a cannot-link on every pair in V u × V v V_u \times V_v V u × V v . Denote this set by H T H_T H T . This gives a complete unweighted random instance I T I_T I T on N = n T N=nT N = n T vertices, with only cannot-links. No must-links are imposed within groups of copies. In the application after averaging, p u v = 0 p_{uv}=0 p uv = 0 for u v ∈ H uv \in H uv ∈ H , so these pairs also have deterministic negative labels; the proof permits arbitrary probability costs on H H H .
For every fixed partition Q Q Q of the copies, define
c ‾ ( Q ) = E [ cost I T ( Q ) ] . \overline{c}(Q)=\mathbb{E}[\operatorname{cost}_{I_T}(Q)]. c ( Q ) = E [ cost I T ( Q )] .
This is a deterministic function of Q Q Q : 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 Q Q Q , its random cost is the sum of at most N 2 / 2 N^2/2 N 2 /2 independent zero-one variables and a deterministic term. Hoeffding’s inequality gives
P [ ∣ cost I T ( Q ) − c ‾ ( Q ) ∣ > γ T 2 ] ≤ 2 exp ( − 4 γ 2 T 2 n 2 ) . \mathbb{P}\left[\left|\operatorname{cost}_{I_T}(Q)-\overline{c}(Q)\right|>\gamma T^2\right]\le2\exp\left(-\frac{4\gamma^2T^2}{n^2}\right). P [ ∣ cost I T ( Q ) − c ( Q ) ∣ > γ T 2 ] ≤ 2 exp ( − n 2 4 γ 2 T 2 ) .
There are at most N N N^N N N partitions. Consequently,
P [ ∃ Q : ∣ cost I T ( Q ) − c ˉ ( Q ) ∣ > γ T 2 ] ≤ 2 exp ( n T log ( n T ) − 4 γ 2 T 2 n 2 ) . \mathbb{P}\left[\exists Q : \left|\operatorname{cost}_{I_T}(Q)-\bar{c}(Q)\right|>\gamma T^2\right]\leq2\exp\left(nT\log(nT)-\frac{4\gamma^2T^2}{n^2}\right). P [ ∃ Q : ∣ cost I T ( Q ) − c ˉ ( Q ) ∣ > γ T 2 ] ≤ 2 exp ( n T log ( n T ) − n 2 4 γ 2 T 2 ) .
Choose an integer T T T large enough that this bound is at most η \eta η . For example, the polynomial-size choice
L = ⌈ log 2 n γ η ⌉ , T = ⌈ 256 n 4 γ − 4 L 2 ⌉ L=\left\lceil\log\frac{2n}{\gamma\eta}\right\rceil,\qquad T=\left\lceil256n^4\gamma^{-4}L^2\right\rceil L = ⌈ log γ η 2 n ⌉ , T = ⌈ 256 n 4 γ − 4 L 2 ⌉
suffices: using T ≤ 512 n 4 γ − 4 L 2 T\leq512n^4\gamma^{-4}L^2 T ≤ 512 n 4 γ − 4 L 2 gives log ( n T ) ≤ 18 L \log(nT)\leq18L log ( n T ) ≤ 18 L , while the magnitude of the negative term is at least 1024 T n 2 γ − 2 L 2 1024Tn^2\gamma^{-2}L^2 1024 T n 2 γ − 2 L 2 . 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 I I I by placing all copies of each original vertex in its cluster. This respects H T H_T H T , because every pair in H H H is separated in the original partition. The expected cost of this lifted partition is T 2 OPT ( I ) T^2\operatorname{OPT}(I) T 2 OPT ( I ) . On the good event, its actual cost is at most T 2 OPT ( I ) + γ T 2 T^2\operatorname{OPT}(I)+\gamma T^2 T 2 OPT ( I ) + γ T 2 . Thus
OPT ( I T ) ≤ T 2 OPT ( I ) + γ T 2 . \operatorname{OPT}(I_T)\leq T^2\operatorname{OPT}(I)+\gamma T^2. OPT ( I T ) ≤ T 2 OPT ( I ) + γ T 2 .
Projection to the original vertices. Run the assumed algorithm for unweighted instances with only cannot-links on I T I_T I T , obtaining a feasible partition Q Q Q . Independently for each original vertex v v v , choose a uniformly random representative from V v V_v V v and assign v v v its representative’s cluster label. Denote the resulting partition by P P P . This partition is feasible: if u v ∈ H uv\in H uv ∈ H , every possible choice of their two representatives is a pair in H T H_T H T , and hence the representatives belong to different clusters. The requirement to forbid all T 2 T^2 T 2 cross-group pairs is what makes this implication hold.
For every fixed Q Q Q ,
E [ cost I ( P ) ∣ Q ] ≤ c ˉ ( Q ) T 2 . (47) \mathbb{E}[\operatorname{cost}_I(P)\mid Q]\leq\frac{\bar{c}(Q)}{T^2}. \tag*{(47)} E [ cost I ( P ) ∣ Q ] ≤ T 2 c ˉ ( Q ) . (47)
Indeed, for each distinct original pair u , v u,v u , v , its expected contribution is the average probability-weighted contribution over the T 2 T^2 T 2 pairs in V u × V v V_u\times V_v V u × V v . Summing gives the cross-group part of c ˉ ( Q ) / T 2 \bar{c}(Q)/T^2 c ˉ ( Q ) / T 2 . The remaining contributions, from separating copies within one group, are nonnegative and disappear upon projection.
Fix a realization of I T I_T I T satisfying the good event. Uniform concentration, the approximation guarantee, and the expanded-optimum bound imply
E [ cost I ( P ) ∣ I T ] ≤ E [ c ˉ ( Q ) ∣ I T ] T 2 ≤ E [ cost I T ( Q ) ∣ I T ] T 2 + γ ≤ α OPT ( I T ) T 2 + γ ≤ α OPT ( I ) + ( α + 1 ) γ . \begin{aligned}
\mathbb{E}[\operatorname{cost}_I(P)\mid I_T]
&\leq\frac{\mathbb{E}[\bar{c}(Q)\mid I_T]}{T^2}\\
&\leq\frac{\mathbb{E}[\operatorname{cost}_{I_T}(Q)\mid I_T]}{T^2}+\gamma\\
&\leq\frac{\alpha\operatorname{OPT}(I_T)}{T^2}+\gamma\\
&\leq\alpha\operatorname{OPT}(I)+(\alpha+1)\gamma.
\end{aligned} E [ cost I ( P ) ∣ I T ] ≤ T 2 E [ c ˉ ( Q ) ∣ I T ] ≤ T 2 E [ cost I T ( Q ) ∣ I T ] + γ ≤ T 2 α OPT ( I T ) + γ ≤ α OPT ( I ) + ( α + 1 ) γ .
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 m m , because each original pair contributes at most one. Averaging over the random expansion therefore gives
E [ cost I ( P ) ] ≤ α OPT ( I ) + ( α + 1 ) γ + η m = α OPT ( I ) + ε 4 . \mathbb{E}[\operatorname{cost}_I(P)]\leq\alpha\operatorname{OPT}(I)+(\alpha+1)\gamma+\eta m=\alpha\operatorname{OPT}(I)+\frac{\varepsilon}{4}. E [ cost I ( P )] ≤ α OPT ( I ) + ( α + 1 ) γ + η m = α OPT ( I ) + 4 ε .
Using (46) , the algorithm satisfies
E [ cost I ( P ) ] ≤ α OPT ( I ) + ε 4 ≤ ( α + ε ) OPT ( I ) ≤ ( α + δ ) OPT ( I ) . \mathbb{E}[\operatorname{cost}_{I}(\mathcal{P})] \le\alpha\operatorname{OPT}(I) + \frac{\varepsilon}{4} \le(\alpha+\varepsilon)\operatorname{OPT}(I) \le(\alpha+\delta)\operatorname{OPT}(I). E [ cost I ( P )] ≤ α OPT ( I ) + 4 ε ≤ ( α + ε ) OPT ( I ) ≤ ( α + δ ) OPT ( I ) .
The expansion has polynomial size, and the construction and projection always preserve feasibility.