Correlation Clustering
Paper · 2004 · Nikhil Bansal, Avrim L. Blum and Shuchi Chawla
Summary
Suppose a system can judge whether two documents belong to the same topic, and you want it to organize an entire collection. You can ask it about every pair, but those answers may conflict. It might group one document with a second and the second with a third, while saying the first and third belong apart. Bansal, Blum, and Chawla formulate this problem as correlation clustering. Each pair receives a positive or negative label, and the algorithm looks for a partition that respects as many labels as possible. The number of groups emerges from the partition that best fits the evidence.
Two ways of scoring a partition lead to different algorithmic questions. You can count the positive pairs kept together and the negative pairs separated, or you can count the labels the partition violates. Both scores identify the same optimal partitions. An approximation guarantee, however, depends on which quantity you measure. Even a simple partition can satisfy at least half of all labels, so a small additive loss can give a good relative guarantee for agreements. The optimal number of disagreements can be much smaller, making it harder to bound the algorithm’s mistakes in proportion to that optimum. The authors establish NP-hardness for finding an exact optimum and present a constant-factor approximation for disagreement minimization and a polynomial-time approximation scheme for agreement maximization.
The algorithms exploit different evidence in the same graph. For disagreements, the authors use contradictory triangles to certify that some mistakes are unavoidable. They then construct clusters whose members have many positive links inside and few positive links outside, so that the mistakes the algorithm makes can be related to those certificates. For agreements, their direct algorithm samples a small set, tries possible partitions of the sample, and uses each partition as a reference for grouping the remaining vertices. It evaluates the resulting candidates on the graph and keeps the highest-scoring one.
The paper also investigates what changes when the pairwise labels come from independent errors or carry different strengths. Under independent flips of signs derived from a hidden partition, simple comparisons of positive neighborhoods can recover sufficiently large clusters with high probability. With real-valued labels, the choice of penalty matters. The authors transfer their disagreement guarantee to a linear penalty, while a penalty that charges only for violated labels leads to different approximation questions, including the case where some pairs carry no evidence at all.
Deep dive: Correlation Clustering
Correlation clustering turns conflicting pairwise judgments into groups and gives approximation guarantees without fixing the number of clusters. · about 40 minutes to read
The problem and its context
From pairwise judgments to a partition
The document example starts at a particular point in a larger process. Someone already has a way to judge whether two documents concern the same topic. That judgment can come from a classifier learned on past data, while the topics represented in the current collection are still unknown. At clustering time, the available evidence is a set of answers about pairs. The problem is to turn those answers into a grouping that gives each document a definite place.
The paper connects this setup to work at Whizbang Labs on linking database records. A researcher may appear under different affiliations or with different versions of a name. A learned pairwise rule can help decide whether two entries refer to the same person. Collecting all entries for that person requires a decision across the whole set. If a partition puts one entry with a second and the second with a third, all of those entries belong to the same group. A pairwise classifier may support the first two links while objecting to the third. The grouping therefore requires an explicit way to trade off competing judgments.
The authors put an edge between every pair of items. A positive edge records a preference for the items to share a group, and a negative edge records a preference for separating them. This arrangement leaves room for several very different outcomes. If all evidence favors joining items, one cluster satisfies it. If all evidence favors separation, individual items can stand alone. A mixture of signs may favor groups of different sizes, with some singletons among them. The search for the best partition includes the choice of how many groups to form.
The authors contrast this setup with min-sum clustering, min-max clustering, and k-median. In their account, these formulations use a specified cluster count to keep the optimization meaningful. Giving every item its own group would otherwise give the best possible score in the examples they discuss. Correlation clustering already has a cost for excessive separation, since every positive pair crossing a cluster boundary counts against the output. It also has a cost for excessive merging, since every negative pair inside a cluster counts against it. Those two penalties let the objective compare partitions of very different sizes.
What makes contradictory labels difficult
If the labels are consistent with a partition, recovering it is straightforward. Keep only the positive links and collect the connected components. Within each component, positive paths say which vertices must be together. Across components, the absence of positive edges makes separation consistent with the labels. The authors identify this approach with the naive algorithm discussed by Cohen and Richman.
The same procedure can give a poor partition once a positive path contains a misleading link. Consider the triangle with positive links from a middle vertex to the other vertices and a negative link between those other vertices. Keeping the positive links joins the entire triangle, violating the negative label. Separating the endpoints of the negative edge preserves that label at the expense of a positive one. There is no way to satisfy all the judgments simultaneously.
The conflicting triangle also characterizes the obstruction to the connected-component procedure. If two vertices in a positive component have a negative edge, consider a shortest positive path between them. The initial part of that path must encounter a pair of successive positive edges whose outer vertices have a negative edge, since a positive shortcut would contradict the choice of shortest path. The triangle gives a local explanation for an inconsistency that might first have been detected only after taking the transitive closure of all positive links.
These conflicts can overlap. A single incorrect edge can be involved in several triangles, and choosing to violate that edge can resolve all of those local conflicts together. Counting contradictions therefore gives an indication of where the difficulty lies, but turning the count into a lower bound requires tracking which edges the triangles reuse. The paper’s disagreement analysis starts from that distinction.
The connection to learning from pair labels
The authors also interpret the problem as agnostic learning. Under this interpretation, an edge is a labeled example and a partition is a hypothesis about the labels. It predicts a positive sign for a pair in the same group and a negative sign for a pair in different groups. This hypothesis class can express the equivalence relation induced by a partition. The classifier supplying the signs can express judgments outside that class, which creates a gap even if the best partition is found exactly.
The learning question in this formulation is how closely the algorithm can match the best available hypothesis when the target signs may be arbitrary. That differs from assuming that any observed inconsistency must be an error around a true partition. The authors study that stronger assumption separately in their analysis of random noise. In the arbitrary-label case, the reference point is the best fit to the supplied labels. In the random-noise case, there is also a hidden partition against which recovery can be judged.
The paper situates the agreement algorithm alongside approximation schemes for dense graph problems. It singles out de la Vega’s work on dense MAXCUT as a close precedent for the direct sampling approach. It also draws on graph property testing, in particular the General Partitioning procedure of Goldreich, Goldwasser, and Ron. That connection comes from a shared question about large graphs. If the desired structure can be described by the sizes of a few groups and the edge densities within and between them, a sample may reveal enough about that structure to help construct a full partition.
The method, step by step
How a partition earns its score
The unit of input is an unordered pair of distinct vertices. The graph is complete, so every such pair has a label. The authors use a vertex’s positive neighborhood as a building block and include the vertex itself in this set. A negative neighborhood contains only the vertices linked to it by a negative edge.
N⁺(u) = {u} ∪ {v ∈ V : e(u,v) = +}
Here N⁺(u) is the positive neighborhood of vertex u. The set V contains all vertices, v ranges over that set, and e(u,v) is the label of the edge between distinct vertices u and v. The plus sign on the right is the positive edge label. The braces enclose sets, the colon inside the set introduces a membership condition, and ∪ takes their union. Including u is a convention for neighborhood comparisons. It creates no additional edge in the scoring rule.
For a partition, one way to state the objective is to add the positive edges crossing cluster boundaries to the negative edges staying inside clusters. The paper calls these positive and negative mistakes, respectively. Those names refer to the edge labels. The contribution of each mistake to the unweighted objective is the same.
m_C = |{(u,v) ∈ E : e(u,v) = + and u ∉ C(v)}| + |{(u,v) ∈ E : e(u,v) = − and u ∈ C(v)}|
The quantity m_C is the mistake count for partition C, and C(v) is the cluster containing v. The set E contains the graph’s unordered edges, each written as (u,v) and counted once. The symbols ∈ and ∉ denote membership and its absence. Vertical bars give the number of edges in each set. The first set counts separated positive pairs and the second counts joined negative pairs. The agreement score uses the complementary cases.
That complementarity determines which partition is optimal. It does not make the two approximation goals interchangeable. A guarantee stated as an additive loss from the best agreement score allows a loss that depends on the size of the graph. A guarantee stated as a multiple of the smallest mistake count has to tighten as that count falls. The algorithm for each objective is built around the kind of guarantee it needs.
What exact optimization would have to solve
The hardness proof concerns the decision question of whether some partition has at most a given number of mistakes. A proposed partition can be checked by counting violations. To establish hardness for complete graphs with unit signs, the authors start from Partition into Triangles. The question there is whether an ordinary graph can be covered by disjoint triples, each of which forms a triangle.
First, the reduction puts a positive sign on every pair that was an edge in the original graph and a negative sign on the other pairs. With a cap of 3 original vertices per group, a partition into triangles makes all the available slots for within-group edges positive. Groups that are smaller leave potential positive agreements unused, and triples containing a missing original edge fail to obtain the full benefit of a triangle. The cap would thus make it possible to use an exact disagreement minimizer to decide the triangle question.
Correlation clustering itself has no cap on group size, so the reduction enforces the restriction through edge labels. For each triple of original vertices, it adds an auxiliary clique of size n⁶, where n is the number of original vertices. The clique has positive links internally and to the original triple associated with it. It has negative links to the other original vertices and to vertices of other auxiliary cliques. The auxiliary cliques are large enough that their edge penalties dominate the choices among the original vertices.
The proof compares the cost of keeping the auxiliary cliques separate and attaching original vertices to compatible cliques with the cost of a cluster containing too many original vertices. Combining substantial portions of different auxiliary cliques creates many negative mistakes. Trying to accommodate a group larger than a triple while avoiding that cost leaves an original vertex with too little positive support inside its cluster. The construction forces the optimum to respect the intended cap on original vertices, allowing the signs among those vertices to encode the triangle decision. It establishes hardness in the same complete, unweighted setting used by the approximation algorithms.
A warm-up with two groups
Before constructing the unrestricted algorithm, the authors study the case in which the comparison partition has two groups. Start from a vertex and put it with all its positive neighbors. Put its negative neighbors in the other group. Repeat for each possible starting vertex, score the resulting candidates, and retain the one with the fewest mistakes.
To see why that works, imagine that the best two-group partition is available for analysis. Mark the edges it violates. A vertex with few marked edges gives nearly correct group assignments to the rest of the graph. Each marked incident edge can misplace a vertex, but the only new mistakes must touch a misplaced vertex. The graph also gives a bound on how good a starting vertex must exist. The number of marked edges controls the sum of the marked degrees, since each such edge touches two vertices. At least one starting vertex then has sufficiently few marked incidents to yield the stated approximation.
m_A ≤ 3m_OPT(2)
Here m_A is the mistake count for the candidate selected by the algorithm, and m_OPT(2) is the lowest mistake count among two-group partitions. The symbol ≤ indicates an upper bound, and 3 is the factor in the paper’s guarantee. The analysis compares against that restricted optimum. An arbitrary number of groups calls for an algorithm that can identify which neighborhood evidence should be used together and which should be treated separately.
Using triangles to certify unavoidable mistakes
An erroneous triangle, in the authors’ terminology, contains two positive edges and a negative one. Every partition violates at least one label in such a triangle. A family of edge-disjoint erroneous triangles thus gives an immediate lower bound on the minimum disagreement count. The authors make that bound more flexible by giving triangles fractional weights and limiting how much weight can fall on any shared edge.
Σ_{i : e ∈ Tᵢ} rᵢ ≤ 1
Here Tᵢ is an erroneous triangle indexed by i, and rᵢ is the positive weight assigned to it. The symbol e denotes any edge, and the sum Σ ranges over the triangles that contain that edge. The right-hand side is the capacity of the edge in this packing. Triangles can overlap as long as their total weight on a common edge stays within that capacity.
Σᵢ rᵢ ≤ m_OPT
The sum on the left is the weight of all triangles in the packing. The quantity m_OPT is the minimum possible mistake count over partitions. To understand the inequality, charge each triangle to a mistaken edge in it. Such an edge exists even in an optimal partition. The capacity condition ensures that the charge on any mistaken edge is at most its contribution to the disagreement objective.
The challenge is to relate this bound to mistakes made by a particular algorithm. A single bad cluster might contain negative edges that are hard to certify with triangles if its vertices have little else in common. A positive edge between clusters can be equally hard to certify if both endpoints have many positive neighbors throughout the graph. The authors introduce a condition that rules out these situations by controlling positive links both inside and outside a proposed cluster.
Finding and using clean clusters
A vertex is δ-good with respect to a set when its positive neighborhood covers most of that set and extends only a little beyond it. The tolerance is measured relative to the size of the set. A set is δ-clean when each member meets both conditions.
|N⁺(v) ∩ C| ≥ (1 − δ)|C|
Here v is the vertex being tested, C is the proposed group, and N⁺(v) is the positive neighborhood including v. The intersection ∩ selects neighbors in C. Vertical bars denote set size. The parameter δ is the tolerated fraction, and the right-hand side is the minimum required positive coverage.
|N⁺(v) ∩ (V ∖ C)| ≤ δ|C|
The set V ∖ C contains the graph vertices outside C, with ∖ denoting set difference. The left side counts the positive neighbors there. The right side gives the maximum permitted count, again using the size of C as the reference.
Both conditions matter to the triangle construction. For a negative edge inside a clean cluster, the authors find a third member that has positive links to both endpoints. The resulting triangle contains the internal negative mistake and two edges consistent with the output. Since the members have many positive neighbors inside, there are enough possible witnesses to choose them while limiting reuse of positive edges. The paper selects witnesses so that any one positive edge can support triangles from at most two directions. Giving each triangle weight 1/2 then respects the edge capacity.
For a positive mistake between clusters, the authors look for a witness in the larger of the two clusters. It should have a positive link to the endpoint in its own group and a negative link to the endpoint in the other group. The cleanliness conditions give many choices because the first endpoint is positive to most of its own cluster and the second endpoint has few positive links outside its own cluster. Using the larger cluster helps control both exclusions against the size of the same candidate pool. The authors again limit reuse so the triangles can be given weight 1/2.
The proof can apply the packing argument to whichever kind of mistake is more frequent. At least half the mistakes are of that kind, and each selected triangle contributes half a unit of weight. The resulting bound says that a partition with all clusters δ-clean, for tolerance at most 1/4, makes at most 4 times the optimum number of mistakes. The triangles turn the structural property of the output into a comparison with an unknown optimum.
Why searching for clean clusters is enough
The authors first perform a hypothetical cleanup of the optimal partition. For each of its clusters, they test each member using tolerance δ/3. If the fraction of failing vertices exceeds δ/3, they dissolve the entire cluster into singletons. Otherwise, they remove only the failed vertices and make them singletons. This procedure refers to the optimal solution, so its role is to establish a comparison partition for the proof.
A retained cluster is smaller than the original one by at most the permitted removal fraction. A retained vertex already had many positive neighbors in the original cluster and can lose only as many of them as there are removed vertices. Some of those links become positive links to the outside. Adding them to the vertex’s original external positives still leaves enough slack for the looser tolerance δ. This is why the cleanup tests the old cluster using a stricter threshold than it needs for the new one.
The cost argument compares new errors with old ones. When the procedure dissolves a whole cluster, that cluster had many vertices already involved in violations of its group assignment. When it removes a smaller set, each removed vertex already had a substantial burden of mistakes relative to the size of that cluster. Only pairs affected by the new singleton assignments can add to the score. The authors bound those new mistakes in terms of the original ones.
m_OPT′ ≤ (9/δ² + 1)m_OPT
Here OPT′ is the comparison partition produced by the hypothetical cleanup, m_OPT′ is its mistake count, and m_OPT is the optimal mistake count before cleanup. The tolerance δ is the final cleanliness parameter. All non-singleton clusters of OPT′ are δ-clean, and the expression in parentheses bounds the possible increase in cost relative to the optimum.
This comparison partition changes what the actual algorithm needs to recover. Preserving a clean group as a whole is enough for the proof, even if the recovered group also contains some vertices that the cleanup would leave alone. The strategy is to prevent clean groups from being split or mixed with one another while allowing some flexibility in where the singleton vertices go.
Algorithm Cautious
Cautious starts a candidate cluster with the positive neighborhood of an arbitrary available vertex. It repeatedly removes a member that fails the goodness test at tolerance 3δ. The test is reapplied to the current set, since removing a member changes both its size and which neighbors count as external. After the removals stop, the algorithm looks for available vertices that pass the test at tolerance 7δ against the surviving set. It adds the qualifying vertices together, using the same set for all of these tests. The paper fixes δ at 1/44 for this algorithm.
How Cautious builds a partition
The steps in order.
A nonempty cluster is set aside and its vertices are unavailable for later clusters. The process continues until the graph is exhausted or candidates no longer yield any vertices, at which point the remaining vertices are output as singletons. The removal and addition phases have distinct roles. Removal looks for a subset that already has strong internal support. Addition brings in vertices compatible with that subset, including members of the same underlying clean cluster that the seed may have missed.
Two observations explain why this procedure finds the comparison clusters. First, if the seed belongs to a δ-clean group, another member of that group is a good fit for the seed’s neighborhood. Both vertices are positive to most of their common group and have few positive links elsewhere. During removal, the members of that group that were in the seed can continue to support one another. Second, vertices from different clean groups cannot both pass the removal test against the same surviving set. Passing would imply that their positive neighborhoods mostly overlap there. Their original groups are disjoint, and cleanliness bounds the overlap that external links could supply.
After removal, suppose the surviving set contains a vertex of a clean comparison group. It then contains a substantial part of that group. The addition threshold allows the remaining members of the group to enter, because they share its positive structure. A vertex belonging to a different clean comparison group has too little positive support in the surviving set to pass both tests. If the surviving set consists entirely of comparison singletons, the paper shows that the addition step leaves the clean groups elsewhere intact. Repeating this reasoning over the successive outputs yields containment of each clean comparison group in an algorithm cluster.
The authors also bound how much the candidate can grow during addition. Every qualifying newcomer needs many positive ties to the surviving set, and each member of that set has a limited number of positive ties available outside it. The total supply of such edges bounds the number of newcomers. Since the enlargement is controlled, the resulting clusters are 11δ-clean. The choice of 1/44 puts the output within the range of the triangle-packing bound.
The final analysis uses different evidence for different mistakes. An edge touching a leftover singleton can be a mistake only if it is positive. Every leftover singleton also appears as a singleton in the cleaned comparison partition, so those mistakes are charged to that partition. For mistakes with both endpoints in the clusters built by Cautious, the authors apply the clean-cluster result to the graph induced by those vertices. Restricting the original optimal partition to the induced graph gives a comparison whose mistake count is bounded by the original optimum. Combining the charges gives the overall bound.
m_Cautious ≤ (9/δ² + 5)m_OPT
The symbol m_Cautious denotes the total mistakes of the algorithm. The benchmark m_OPT is the minimum for the original signed graph, and δ is the tolerance 1/44. The factor incorporates both the cleanup bound for singleton mistakes and the triangle bound for the remaining vertices. It is a worst-case guarantee for the unrestricted partition problem.
Why agreements allow a sampling scheme
The agreement objective has a baseline that comes almost for free. Putting all vertices together satisfies every positive edge. Putting all vertices in singleton groups satisfies every negative edge. The better extreme therefore satisfies at least half of all edges, regardless of their arrangement.
OPT ≥ n(n − 1)/4
In this part of the paper, OPT denotes the largest achievable number of agreements, and n is the number of vertices. The right-hand side is the lower bound supplied by choosing between the all-together and all-singleton partitions. Since this baseline grows quadratically in the number of vertices, an additive loss on the scale of εn², with ε chosen small enough, yields a relative approximation scheme for agreements.
The next step is to study what happens if small clusters are broken into singletons. Separating their members can sacrifice positive agreements within the original groups, but the number of possible pairs within a small group is limited. Edges that already ran between different original groups retain their assignments. The authors bound the total loss over all small groups by charging each vertex for the pairs in its own former cluster. Large groups are few, so the reference partition can be represented by a short list of group labels together with a label indicating singleton status.
OPT(ε) ≥ OPT − εn²/2
Here OPT(ε) is the best agreement score when all non-singleton clusters must have size greater than εn. The parameter ε determines which clusters count as small, and n is the number of vertices. The bound measures the worst loss from imposing that restriction. The vertices assigned singleton status may still be numerous. In the analysis they can share a label for counting and sampling, while remaining separate clusters in the output.
An approach based on graph property testing
The first scheme describes a candidate partition by its group sizes and by counts of positive edges within and between groups. In a complete graph, the number of possible pairs between any two groups follows from their sizes, so subtracting the positive count gives the negative count. The agreement score can then be determined from these statistics. Within each ordinary group it counts positive edges. Between groups it counts negative ones. Within the set of vertices designated as singletons it counts negative edges as well, because those vertices are kept apart.
The algorithm enumerates estimates of the required sizes and edge counts on a grid. It passes each guess to the General Partitioning procedure applied to the graph containing the positive edges. A guess close to the statistics of the desired partition allows the property tester to produce a partition approximately satisfying them. The algorithm checks the agreement scores of the candidate partitions and returns the strongest. The role of the grid is to cover the possible statistics at sufficient precision without an enumeration of full assignments of vertices.
This yields a polynomial-time approximation scheme, meaning that the runtime is polynomial in the graph size for each fixed accuracy requirement. The dependence on the accuracy parameter is doubly exponential. The authors therefore develop a direct method that retains the idea of learning partition statistics from a sample, but constructs the remaining parts using a different search.
Divide&Choose
Divide&Choose draws a random vertex sample called W and enumerates its partitions into labeled groups. Among the candidates is the partition obtained by restricting an appropriate optimum to the sample. The algorithm has no way to identify that candidate directly. Its analysis instead shows that a correct sample partition is likely to lead to a strong full candidate. Scoring the outputs on the graph then gives the algorithm a way to select a candidate without access to the optimum.
For a fixed sample partition, the algorithm estimates the density of positive edges within each ordinary sample group and the density of negative edges between different groups. These estimates describe how a block of vertices with the same label pattern should relate to the sample. The authors also use the positive connections from individual vertices to sample groups. This supplies a more detailed test of whether a proposed block part resembles the sample group whose label it takes.
p̂ⱼ = δ⁺(Wⱼ,Wⱼ) / choose(|Wⱼ|, 2)
Here Wⱼ is the part of the sample assigned group label j. The function δ⁺ counts positive edges, and with the same set in both arguments it counts internal edges once. The expression choose(|Wⱼ|, 2) is the number of unordered pairs of distinct vertices in that part. The quantity p̂ⱼ is the resulting estimate of the within-group positive density.
n̂ⱼₗ = δ⁻(Wⱼ,Wₗ) / (|Wⱼ||Wₗ|)
The indices j and l identify distinct groups. Their sample parts are Wⱼ and Wₗ. The function δ⁻ counts negative edges between them, and the product of the two sizes counts all possible edges between those sets. The estimate n̂ⱼₗ is the fraction that are negative.
The algorithm randomly partitions the remaining vertices into blocks of sample size. For each block it tries the possible assignments to labels and checks three conditions. The part given an ordinary group label must carry enough positive edges to the corresponding sample group. It must carry enough negative edges to the other sample groups. Moreover, most vertices in the graph must see approximately the same number of positive neighbors in the proposed block part as in the corresponding sample part. This last test gives the proof a way to relate decisions in different blocks even though the search processes them separately.
The paper expresses these tests in terms of an internal tolerance ε′. Let Uᵢⱼ be the vertices in block i that are assigned label j. The first test concerns agreement with the matching sample part.
δ⁺(Uᵢⱼ,Wⱼ) ≥ p̂ⱼ choose(|Wⱼ|, 2) − 18ε′m²
The function δ⁺ here counts positive edges between the proposed part and the sample part. The quantity p̂ⱼ is the positive density estimated within Wⱼ. The product using choose gives the reference edge count, m is the sample and block size, and 18ε′m² is the allowed shortfall in this test.
δ⁻(Uᵢⱼ,Wₗ) ≥ n̂ⱼₗ|Wⱼ||Wₗ| − 6ε′m²
This condition uses a different ordinary group label l. The left side counts negative edges from the block part to the other sample part. The density estimate n̂ⱼₗ and sample sizes define the reference count, and 6ε′m² is the allowed shortfall.
|δ⁺(Uᵢⱼ,x) − δ⁺(Wⱼ,x)| ≤ 2ε′m
Here x is a graph vertex, and δ⁺ with a vertex argument counts its positive edges to the corresponding set. The vertical bars give the absolute difference between those counts. The bound 2ε′m applies for every tested label at each vertex satisfying the condition. The test permits an exceptional fraction of ε′ among the graph vertices.
If a block has a partition that passes the applicable tests, the algorithm can choose such a partition. If it has none, it assigns the block arbitrarily. It then joins parts with the same ordinary label across the blocks. Vertices assigned the singleton label are output individually. When the comparison partition has many singleton vertices, the corresponding sample part is large enough to estimate negative-edge contributions involving those vertices. When it has few, the analysis can absorb the affected edges into the error budget. The algorithm tries the versions for both cases, since it cannot inspect the comparison partition to choose between them.
The proof follows the sample partition consistent with the reference optimum. Sampling makes each large group likely to appear roughly in proportion to its size. The paper uses concentration bounds to control the edge counts between sample groups. For positive edges within a group, it first analyzes edges across smaller pieces of the group, which allows the analysis to work with disjoint sets. It then bounds how much could have been omitted by focusing on those cross-piece edges. These estimates establish that, for most blocks, the reference assignment itself would pass the tests. As the block search includes that assignment, those blocks have at least one acceptable option.
The last part of the proof follows the chosen block partitions. The vertex-level test allows a count from one block part to be compared to a count from the appropriate sample part. Summing these comparisons and using the aggregate edge tests recovers lower bounds on positive agreements inside the assembled groups and negative agreements across them. Blocks with no passing assignment affect only the edges incident on their vertices, so their contribution to the loss can be bounded separately. Finally, evaluating all full candidates ensures the returned solution does at least as well as the one justified through the correct sample partition.
Recovering a hidden partition under independent noise
The noise analysis starts with an underlying partition. In the true labeling, a pair is positive if its vertices share a cluster and negative otherwise. The observed graph has edge labels flipped independently at a fixed rate ν below 1/2, under the version of the noise assumption being considered. The aim is to recover the hidden grouping, or approximate it in terms of pairwise errors relative to that grouping.
Under one-sided noise, only true positive edges can flip. A shared positive neighbor therefore certifies that the vertices belong to the same underlying cluster. For two members of a large cluster, there are many possible witnesses. Any other member is positive to both with probability given by the chance that neither edge flips.
Pr[w ∈ N⁺(u) ∩ N⁺(v)] = (1 − ν)²
Here u and v are members of the same underlying cluster, and w is a distinct member of that cluster. The symbol Pr denotes probability over the edge flips. The event is that w belongs to both observed positive neighborhoods. The success probability for either edge is 1 − ν, and independence gives the square. The procedure picks a vertex and groups it with vertices that share a positive neighbor with it, then repeats on the remaining vertices.
With two-sided noise, a positive neighbor can be shared because of false positive edges. The authors compare the symmetric difference of two positive neighborhoods, which counts neighbors present in just one of them. For two vertices from the same group, the corresponding true signs to any third vertex are equal. Exactly one observed sign must flip for that third vertex to enter the difference.
Pr[w ∈ N⁺(u) △ N⁺(v)] = 2ν(1 − ν)
The symbol △ denotes symmetric difference. Here u and v are in the same underlying cluster, and w differs from both. The expression on the right is the probability of exactly one flip. If u and v belong to different groups and w belongs to one of those groups, the true signs are opposite. Then the probability for the same event is (1 − ν)² + ν², the chance of either no flips or flips of both signs. Outside those two groups the true signs are again equal.
These different probabilities make the neighborhood difference informative when the underlying groups are large enough. The authors also use positive neighborhood size as an approximate guide to underlying cluster size. Its expected value reflects how many true positive links the vertex had before the flips. Combining the size information with the neighborhood comparison lets the procedure recover large groups and leave the other vertices in singleton clusters.
What a real-valued label changes
For a probabilistic pair classifier, the authors give log odds as a motivating edge weight. A probability favoring membership in the same group gives a positive score, a probability favoring separation gives a negative score, and an evenly balanced judgment gives zero.
log(p/(1 − p))
Here p is the classifier’s probability of the pair belonging to the same group, and 1 − p is its probability of the pair belonging to different groups. Dividing gives the odds in favor of joining the pair, and log converts them to the signed weight. The paper uses this example to motivate real-valued evidence. Its algorithms take edge labels or weights as input.
The authors study two ways to make a weight affect the objective. In the linear penalty, a weight x in the interval [−1, +1] has a cost for each placement.
cost_inside(x) = (1 − x)/2
Here x is the edge weight and cost_inside(x) is the penalty if its endpoints share a group. Increasing x lowers that penalty.
cost_between(x) = (1 + x)/2
The quantity cost_between(x) is the penalty for keeping the endpoints in different groups. Increasing the positive weight makes separation more costly. At weight 0.5, the paper’s example gives an inside cost of 0.25 and a between-groups cost of 0.75. A zero weight gives a penalty of 1/2 under either placement.
For this penalty, the authors round each weight to its sign, assign either sign to a zero, and run an unweighted disagreement algorithm. A sign disagreement costs at least 1/2 in the original linear penalty, so the optimal original partition can incur at most twice its original cost when judged by the rounded signs. In the other direction, each rounded mistake contributes at most its rounded cost when scored under the linear penalty. The original score of the output also includes the cost of edges that follow their preferred signs. The total of those smaller penalties is bounded by the original optimum, since even there each of those edges incurs at least its individually lowest cost. The rounding transfer gives the following factor.
2ρ + 1
The symbol ρ is the approximation factor of the algorithm for the rounded signed graph. The whole expression is the approximation factor for the linear-cost problem. The authors also identify a broader class of penalties for which the argument goes through, using the same division at 1/2 between the costs of following a sign and violating it.
Under weighted disagreements, the preferred placement has zero cost, and violating it costs the magnitude of the weight. A zero edge then contributes zero under either decision, so it can represent a missing pairwise judgment. This produces a different optimization setting even when the only possible weights are −1, 0, and +1. A graph with missing evidence can retain all vertices while providing a much smaller total weight of agreements against which to judge an approximation.
Experiments and results
The benchmarks are mathematical
The paper reports no benchmark runs on documents or database records. Its inputs are defined as families of signed graphs, and its comparisons are between the scores achieved by an algorithm and the best scores possible on those graphs. The document and record-linkage examples explain why the input might arise. The sampling in Divide&Choose is part of the algorithm for a graph, so its random sample serves to estimate that graph’s structure. It is not a held-out evaluation of the pairwise classifier.
For disagreements, the two-group warm-up guarantees a factor of 3 against the best two-group partition. Cautious compares against the unrestricted minimum and guarantees the factor 9/δ² + 5 with δ equal to 1/44. The factor of 4 established for a partition made entirely of sufficiently clean groups is a conditional bound used inside the proof. Cautious also has to account for the leftover singletons, which is one reason the conditional bound differs from the full algorithm’s guarantee.
For maximizing agreements, the baseline is the better of the single-cluster and all-singleton partitions. It gives the paper’s simple 2-approximation on complete graphs with unit signs. The scheme based on the General Partitioning tester produces more than the optimum minus εn² agreements with probability at least 1 − δ, with ε controlling the score tolerance and δ the failure probability in that theorem. The direct method provides a related guarantee with a different runtime dependence.
A ≥ OPT − δn²
Here A is the number of agreements in the output of Divide&Choose, OPT is the optimal agreement count on the complete signed graph, δ is the accuracy parameter in the final theorem, and n is the number of vertices. For positive δ in the stated range, the paper gives success probability at least 1 − δ/3. The runtime is quadratic in n for fixed δ, with a singly exponential dependence on a function of the inverse accuracy parameter. The theorem gives a way to make the loss small relative to the optimum on dense unit-sign inputs, at the price of a much larger search as the requested error shrinks.
Recovery and weighted guarantees
Under independent one-sided flips, the authors show that the common-neighbor procedure correctly clusters vertices whose true groups have sizes growing faster than log n, with high probability. The remaining vertices may end up in smaller groups than their true ones. The stated aggregate number of pair errors is Õ(n), where n is the number of vertices and the tilde suppresses logarithmic factors. This is a bound on errors relative to the hidden grouping.
With two-sided flips, the neighborhood test can distinguish vertices from different groups when the union of their true clusters has size growing faster than the square root of n log n. The authors use the test to recover vertices in large clusters with high probability and put remaining vertices into singleton groups. The resulting total pair error bound is Õ(n³⁄²). These are analytical estimates under independent flips. They give neither a measured recovery rate nor a minimum cluster size that applies for all noise processes.
For linear costs, the transfer guarantee is 2ρ + 1 in units of the original linear objective, given approximation factor ρ in the rounded signed problem. For the missing-edge setting with weights in −1, 0, and +1, the authors retain an additive agreement guarantee of εn² using Divide&Choose. The optimum in that setting can grow more slowly than n². The bound can therefore be too large relative to the entire available agreement score to imply a polynomial-time approximation scheme.
For unbounded weights, the paper proves that minimizing disagreements is APX-hard by connecting it to minimum multiway cut. It uses negative infinite weights to force specified terminals into distinct clusters. Positive weighted edges contribute a penalty when separated, giving the clustering objective the cost of a cut that separates the terminals. For maximizing weighted agreements, the paper gives a conditional result. A polynomial-time approximation scheme would yield a polynomial-time procedure that colors a 3-colorable graph with O(nᵋ) colors for any positive ε. The proof assigns negative weight to edges of the coloring instance and small positive weight to nonedges. A sufficiently good clustering then has to exhibit a large group of low edge density. Applying that argument repeatedly finds a large independent set, and removing successive independent sets gives the coloring.
Weighted agreement bounds reported in the paper
The paper’s discussion of subsequent algorithmic work records two numerical approximation guarantees for the same weighted maximization objective. These are theoretical lower bounds on the fraction of the optimum achieved by the respective algorithms on general weighted graphs.
Guaranteed agreement on general weighted graphs
Swamy reports the higher approximation guarantee for weighted agreements.
The numbers
| System or setting | approximation ratio |
|---|---|
| Charikar, Guruswami, and Wirth | 0.7664 |
| Swamy (this paper) | 0.7666 |
The starred result is the stronger of the two guarantees reported by the authors. Here higher is better because the maximization ratio describes how much of the optimal weighted score the algorithm guarantees. The factors for Cautious and the two-group warm-up are upper bounds on the costs of minimization algorithms, for which smaller factors are better.
What the ablations show
The paper has no empirical ablations. Its closest comparisons isolate assumptions and proof ingredients to show how they affect the guarantees. This is especially useful for reading a result like Cautious. Several different facts about its output are required for the final theorem, and each addresses a different way that a clustering could go wrong.
Local consistency and the cost of singleton decisions
The clean-cluster analysis isolates what can be justified purely from the shape of the output. When all groups are sufficiently clean, a mistaken edge has a supply of potential witnesses, either inside its own group or in the larger of the groups it crosses. The witness-selection rules keep triangles from repeatedly spending the capacity of the same edges. That is what turns the apparent plausibility of the groups into the factor of 4 on disagreements. The proof also explains why local consistency is a condition on every member. An average density for a group could hide a vertex with too few compatible neighbors to furnish the required witnesses.
The singleton analysis isolates a different issue. An individual vertex left in a singleton can make many positive mistakes if it has many positive edges to the rest of the graph. Declaring that singleton clean by convention would leave those errors unexplained. Cautious instead shows that its final leftover vertices are among the singletons in the hypothetically cleaned optimum. Their incident positive mistakes are therefore present in that comparison partition as well. The cleanup lemma is needed because it relates the price of these singleton decisions to the original optimum.
The paper also treats fractional triangle packing as a lower bound that can be investigated separately from Cautious. The authors report that they found no example whose gap between the optimum and the packing bound exceeds 2, and give a star-like example that attains 2. The center has positive links to every other vertex, and all other links are negative. Many erroneous triangles share the center’s positive edges, so the capacity constraint limits what the packing can certify. The example shows that the packing can underestimate the optimum even when the pattern of conflicts is simple. The paper leaves open whether the gap always stays within a small constant.
Small groups and the information each sample supplies
For the agreement scheme, breaking up small groups measures how much score depends on representing every small group explicitly. The bound on that change makes it possible to search over only a limited number of ordinary group labels. The same proof also exposes a distinction between small group size and a small number of vertices affected. The aggregate singleton set can contain a substantial portion of the graph after small clusters are broken up. In that case its negative agreements still require attention, which is why Divide&Choose handles the large and small singleton cases separately.
The progression from a single sample to block partitions identifies another gap. A vertex may have the right-looking connection to one sample group, while the assignments of pairs of unsampled vertices still produce many errors. The aggregate edge tests constrain the block parts against the sample. The vertex-level test then allows the proof to transfer those counts to relations between the parts that will form the output. These are steps in a correctness argument. The paper gives no measured score for running the procedure with only one of the tests.
Sign noise and penalty choice
The comparison between one-sided and two-sided noise changes which evidence is decisive. A shared positive neighbor certifies common membership when false positives cannot occur. Once false positives are possible, the authors compare counts across neighborhoods and rely on the difference between two probabilities. The need to distinguish a statistical excess from fluctuations across the graph explains why the paper’s two-sided guarantee focuses on larger groups and gives a larger remaining pair-error bound.
Changing the penalty for a zero edge exposes a separate dependence on the objective. In the linear penalty, a zero has a placement-independent cost, which still contributes to the reference optimum. In weighted disagreements it contributes nothing, so arbitrarily many pairs can become irrelevant to the score. This comparison helps explain why rounding is supported by the linear-cost proof while an additive error measured against n² need not be relatively small for weighted agreements.
Limitations
Limits identified by the authors
For the general weighted setting, the paper’s guarantees vary with the objective and the penalty. Under weighted disagreements with labels in −1, 0, and +1, the authors leave open how to obtain a constant-factor or logarithmic-factor approximation with their methods. Their additive agreement bound in this setting is measured against the number of possible pairs, even when only a small subset carries evidence. A relative guarantee would have to account for the scale of the optimum on those inputs.
The hardness results have different scopes. APX-hardness for minimizing disagreements with unbounded weights leaves room for a constant-factor approximation, a point the authors explicitly make. For weighted maximization, their link to coloring gives an implication of a polynomial-time approximation scheme. The paper presents it as evidence about the difficulty of the problem because the associated coloring question was unresolved in its account. The reduction establishes the algorithmic connection. A hardness conclusion would require a corresponding result about coloring.
The authors also leave open how tightly a packing of erroneous triangles characterizes the optimal mistake count. Their proof uses the packing as a lower bound that can pay for mistakes in a clean partition. Knowing how close the best packing must be to the optimum could improve the disagreement analysis. The star-like example establishes a gap for a particular family. It supplies no upper bound on the possible gap for all inputs.
The direct agreement scheme improves the dependence on accuracy relative to the property-testing construction. Both nonetheless pay for exhaustive choices on samples or blocks whose size depends on the desired accuracy. Polynomial runtime for a fixed accuracy gives a statement about scaling with the number of vertices. It leaves the practical cost at particular graph sizes and tolerances unmeasured.
Limits of what the setup establishes
An agreement score measures fidelity to the signs supplied as input. In the motivating document problem, those signs can be predictions from a classifier. A partition that fits them well may also preserve a systematic error that the classifier repeats across many pairs. Assessing whether the partition matches actual topics or entity identities would require an external grouping or another source of evidence. The worst-case proofs deliberately use the best fit to the given signs as their comparison.
The noise analysis makes such an external grouping part of the mathematical setup, through the hidden partition. Its recovery arguments depend on independent edge flips at the specified rate. Dependence among errors would change how much evidence can be accumulated from several neighbors. For instance, many judgments involving the same vertex might move together, in which case counting them would give less independent evidence than the concentration arguments use. The paper’s recovery guarantees are tied to the stated flip process and the sizes of the hidden groups.
Even under that process, the scale of evaluation matters. The pair-error bound can be small because small groups contain relatively few pairs, while some of those groups are split into singletons or into several smaller parts. Recovering the large groups and making few pairwise errors is a different criterion from recovering every group exactly. The analysis reports both the range of group sizes it can recover and the aggregate cost of what may remain unresolved.
Completeness also does important work. Negative labels say something about separation. If a pair was never evaluated, treating it as negative creates evidence the classifier did not supply. The weighted extension with cost-free zero edges provides a way to distinguish these cases, and the guarantees change accordingly. The ease of reading negative-edge counts off positive-edge counts and group sizes in the agreement scheme also depends on having a label for every pair. These are consequences of the input representation, so conclusions about complete signed graphs should be read with that representation in view.
What came after
Improving the optimization guarantees
The paper reports that subsequent work by Demaine and Immorlica and by Emanuel and Fiat independently obtained logarithmic-factor approximations for minimizing disagreements in the more general weighted setting. It also credits Emanuel and Fiat with relating that setting to minimum multiway cut in both directions. This develops a connection that Bansal, Blum, and Chawla use for hardness: the cut problem can help explain the algorithmic structure of the weighted clustering problem as well.
For unweighted disagreement minimization, the paper records an improved factor of 4 from Charikar, Guruswami, and Wirth. Their result concerns the optimization problem itself, while the factor of 4 in the original paper’s triangle argument is conditional on a sufficiently clean partition. On general weighted maximization, the paper reports the guarantees by Charikar, Guruswami, and Wirth and by Swamy shown in the chart. It also reports a hardness factor of 29/28 for minimizing disagreements and 115/116 for maximizing agreements from Charikar, Guruswami, and Wirth. Those hardness values describe barriers to approximation. The chart describes achievable ratios.
From mention pairs to entity assignments
The paper’s motivating record-linkage example has a close analogue in coreference resolution. When several expressions refer to the same entity, a partition of the mentions expresses that identity consistently across pairs. Pairwise evidence can conflict, just as evidence does for duplicate records. The later papers below cite correlation clustering and address the relationship between evidence about individual mentions and decisions that hold across a larger set. Their stated contributions identify the particular part of that relationship they study.
The move from local classification to global ranking makes the scope of a decision explicit. A local decision judges a candidate relation on its own evidence. A global ranking makes alternatives compete within a broader decision. That progression gives a point of comparison with correlation clustering’s move from pair judgments to a joint result. The ranking contribution belongs to Machine Learning for Coreference Resolution: From Local Classification to Global Ranking.
A retrospective on supervised noun phrase coreference places such decisions in the wider history of the task. Its scope is research across a period, from which a reader can locate work on local judgments and global inference within the same field. This is the survey contribution of Supervised Noun Phrase Coreference Research: The First Fifteen Years.
Later work turns to the inference procedure itself. That is the part of a system that decides how to turn evidence and preferences into an answer. Correlation clustering makes such a procedure necessary by requiring all pair assignments to come from a single partition. The later study makes inference protocols the subject of investigation in Inference Protocols for Coreference Resolution.
Another paper studies coreference with constraints and latent variables, quantities whose values are inferred rather than directly supplied. This moves the question of which decisions can be made together into a formulation that includes both constraints and unknown structure. Correlation clustering provides an earlier example in which constraints on the final grouping matter because individual pieces of evidence can disagree. The later formulation is the focus of A Constrained Latent Variable Model for Coreference Resolution.
Related problems in debate and word meaning
The congressional debate work addresses support and opposition using floor-debate transcripts. This setting gives a different meaning to a decision about alignment. The target is a stance expressed in a debate, whereas the original clustering paper had used topical membership and entity identity to motivate its objective. The citation connects work on signed relational evidence with the task of deciding support or opposition in Get out the vote: Determining support or opposition from Congressional floor-debate transcripts.
Research on changes in lexical meaning gives another setting in which judgments about pairs can help organize a larger set of observations. In this case the observations concern word meaning across time. The cited shared task places the emphasis on detecting lexical semantic change without supervision. Its contribution is to frame that problem as a common evaluation task in SemEval-2020 Task 1: Unsupervised Lexical Semantic Change Detection.
The later LSCD work broadens the stated scope to a testbed for tasks involving word meanings across time. The connection to correlation clustering concerns the relationship between local judgments about meaning and larger structures used to reason about change. The benchmark contribution itself is the testbed in The LSCD Benchmark: a Testbed for Diachronic Word Meaning Tasks.
Cite
Cite as Nikhil Bansal, Avrim L. Blum and Shuchi Chawla. 2004. Correlation Clustering. Machine Learning.
@inproceedings{bansal2004correlation,
title = {{Correlation Clustering}},
author = {Nikhil Bansal, Avrim L. Blum and Shuchi Chawla},
booktitle = {Machine Learning},
year = {2004},
doi = {10.1023/b:mach.0000033116.57574.95},
url = {https://doi.org/10.1023/b:mach.0000033116.57574.95}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bansal-2004-correlation-clustering/