Clustering is the problem of partitioning data points into groups based on similarity or dissimilarity. Correlation clustering is a clustering framework in which a set of objects is partitioned into clusters based on pairwise similarity and dissimilarity information, without requiring the number of clusters to be specified in advance.
Description of the problem
In machine learning, correlation clustering (also known as cluster editing) considers settings in which pairwise similarity or dissimilarity relationships between objects are known. A standard formulation models the input as an unweighted complete graph G=(V,E), where each edge is labeled either + or − (that is, the graph is a signed graph), indicating whether the corresponding endpoints are similar or dissimilar. The goal is to find a clustering (that is, a partition of V) that either maximizes the number of agreements—the sum of positive edges whose endpoints lie in the same cluster and negative edges whose endpoints lie in different clusters—or minimizes the number of disagreements—the sum of positive edges whose endpoints are separated and negative edges whose endpoints lie in the same cluster. Unlike other clustering methods such as k-means, correlation clustering does not require choosing the number of clusters k in advance. It is not always possible to find a clustering with zero disagreements. For example, consider a triangle graph containing two positive edges and one negative edge. In this case, every clustering incurs at least one disagreement. Such configurations are referred to in the literature as bad triangles. From a computational perspective, optimizing the correlation clustering objective is challenging. The (decision version of the) problem is NP-complete. A large body of subsequent work has developed approximation algorithms for correlation clustering under various assumptions, including complete or general graphs and unweighted or weighted graphs, for both minimization and maximization objectives. This problem is considered one of the fundamental combinatorial optimization problems, and many algorithmic techniques have been developed to address it. The problem has also been studied extensively across multiple disciplines. A comprehensive literature review of early correlation clustering research is provided by Wahid and Hassini.
Formal Definitions Let G=(V,E) be a graph with nodes V and edges E. A clustering of G is a partition of its node set Π={π1,…,πk} with V=π1∪⋯∪πk and πi∩πj=∅︀ for i≠j. For a given clustering Π, let δ(Π)={{u,v}∈E∣{u,v}⊈π∀π∈Π} denote the subset of edges of G whose endpoints are in different subsets of the clustering Π. Now, let w:E→ℝ≥0 be a function that assigns a non-negative weight to each edge of the graph and let E=E+∪E− be a partition of the edges into attractive (E+) and repulsive (E−) edges; that is, the edges are signed. The minimum disagreement correlation clustering problem is the following optimization problem: minimizeΠ∑e∈E+∩δ(Π)we+∑e∈E−∖δ(Π)we. Here, the set E+∩δ(Π) contains the attractive edges whose endpoints are in different components with respect to the clustering Π and the set E−∖δ(Π) contains the repulsive edges whose endpoints are in the same component with respect to the clustering Π. Together these two sets contain all edges that disagree with the clustering Π. Similarly to the minimum disagreement correlation clustering problem, the maximum agreement correlation clustering problem is defined as maximizeΠ∑e∈E+∖δ(Π)we+∑e∈E−∩δ(Π)we. Here, the set E+∖δ(Π) contains the attractive edges whose endpoints are in the same component with respect to the clustering Π and the set E−∩δ(Π) contains the repulsive edges whose endpoints are in different components with respect to the clustering Π. Together these two sets contain all edges that agree with the clustering Π. Instead of formulating the correlation clustering problem in terms of non-negative edge weights and a partition of the edges into attractive and repulsive edges the problem is also formulated in terms of positive and negative edge costs without partitioning the set of edges explicitly. For given weights w:E→ℝ≥0 and a given partition E=E+∪E− of the edges into attractive and repulsive edges, the edge costs can be defined by ce={weif e∈E+−weif e∈E− for all e∈E. An edge whose endpoints are in different clusters is said to be cut. The set δ(Π) of all edges that are cut is often called a multicut of G. The minimum cost multicut problem is the problem of finding a clustering Π of G such that the sum of the costs of the edges whose endpoints are in different clusters is minimal: minimizeΠ∑e∈δ(Π)ce. Similar to the minimum cost multicut problem, coalition structure generation in weighted graph games is the problem of finding a clustering such that the sum of the costs of the edges that are not cut is maximal: maximizeΠ∑e∈E∖δ(Π)ce. This formulation is also known as the clique partitioning problem. It can be shown that all four problems that are formulated above are equivalent. This means that a clustering that is optimal with respect to any of the four objectives is optimal for all of the four objectives.
Algorithms If the graph admits a clustering with zero disagreements, then deleting all negative edges and computing the connected components of the remaining graph yields an optimal clustering. A necessary and sufficient condition for the existence of such a clustering was given by Davis: no cycle in the graph may contain exactly one negative edge. Bansal et al. discuss the NP-completeness proof and also present both a constant factor approximation algorithm and polynomial-time approximation scheme to find the clusters in this setting. Ailon et al. propose a randomized 3-approximation algorithm for the same problem.
CC-Pivot(G=(V,E+,E−)) Pick random pivot i ∈ V Set C={i}, V'=Ø For all j ∈ V, j ≠ i; If (i,j) ∈ E+ then Add j to C Else (If (i,j) ∈ E−) Add j to V' Let G' be the subgraph induced by V' Return clustering C,CC-Pivot(G')
… excerpt ends here. Continue reading the full article.