Abstract
Traditional clustering methods typically rely on numerical similarity scores to group objects. However, many real-world datasets involve categorical relationships where the "type" of connection is as important as its existence. This paper introduces Chromatic Correlation Clustering, a framework designed to partition data based on these labeled or "colored" relationships. We demonstrate that this problem is NP-hard and propose three efficient algorithms—Chromatic Balls (CB), Lazy Chromatic Balls (LCB), and Alternating Minimization (AM)—to solve it. Our experimental results on protein, social, and citation networks show that these methods significantly outperform standard correlation clustering baselines in both accuracy and computational efficiency.
Introduction
In the field of data mining and machine learning, clustering is a fundamental task used to discover latent structures within data. Most existing approaches assume that relationships between objects can be quantified by a single numerical value representing similarity or distance. While effective for many applications, this paradigm falls short when relationships are inherently categorical. For instance, in a social network, connections might represent different social contexts such as "family," "colleague," or "friend." In biological networks, proteins may interact through distinct mechanisms like "physical association" or "co-localization."
Standard correlation clustering aims to minimize "disagreements"—either placing similar items in different clusters or dissimilar items in the same cluster. However, it lacks the machinery to handle multiple types of similarity simultaneously. If two objects are connected by a "red" relationship and another pair by a "green" one, a naive clustering approach might ignore these labels, leading to suboptimal partitions that fail to capture the underlying categorical structure.
Problem Formulation
The authors define the Chromatic Correlation Clustering problem as finding a partition of vertices such that the edges within each cluster are, as much as possible, of the same color, while minimizing the total number of edges between different clusters.
The objective function specifically penalizes two types of errors:
- Intra-cluster cost: The number of edges within a cluster that do not match the cluster's assigned "dominant" color.
- Inter-cluster cost: The total number of edges (regardless of color) that span between different clusters.
A key theoretical challenge identified is the "bad triplet"—a triangle of vertices where the three connecting edges have different colors. Such structures are impossible to partition without incurring a cost, forming the basis for the NP-hardness proof and the subsequent approximation analysis.
Algorithmic Framework
To address the computational complexity of the problem, the paper introduces three distinct algorithms:
1. Chromatic Balls (CB)
CB is a randomized approximation algorithm. It operates by selecting a random edge as a "pivot" and constructing a monochromatic cluster around it using edges of the same color. This process repeats until all vertices are assigned to a cluster. The authors prove that CB provides a theoretical approximation guarantee related to the maximum degree of the graph.
2. Lazy Chromatic Balls (LCB)
LCB is a refined heuristic designed for practical performance. Unlike the basic CB, LCB improves pivot selection by favoring vertices that have a high density of edges of a single color. It builds clusters iteratively and "lazily," which helps in preserving potential monochromatic structures that might otherwise be broken by poor early pivot choices.
3. Alternating Minimization (AM)
For scenarios where the number of clusters $K$ is known or fixed, the AM algorithm provides a more direct optimization. It alternates between two steps:
- Assignment Step: Given the current dominant colors for each cluster, reassign vertices to the cluster that minimizes their individual contribution to the total cost.
- Labeling Step: Given the current vertex assignments, update the dominant color of each cluster to the one that appears most frequently among its internal edges.
Experimental Evaluation
The proposed algorithms were rigorously tested against a standard correlation clustering baseline (which ignores edge colors) across several diverse datasets:
- Synthetic Data: Used to evaluate performance under controlled noise levels and varying graph densities.
- STRING: A protein-protein interaction network featuring four distinct interaction types.
- YouTube: A social network where edges represent five types of user associations.
- DBLP: A large-scale co-authorship network where edge colors were derived from 100 research topics identified via Latent Dirichlet Allocation (LDA).
Key Findings
The experiments yielded several critical insights into the value of categorical information in clustering:
- Accuracy Gains: On synthetic benchmarks, the proposed algorithms consistently achieved higher F-measures and lower total costs compared to the baseline. This confirms that categorical labels are a vital feature for accurate data partitioning.
- Real-World Impact: On the YouTube and DBLP datasets, the Chromatic Balls variants achieved up to a 27.74% reduction in solution cost over the standard baseline.
- Scalability: The "Balls" algorithms (CB and LCB) proved to be exceptionally fast, capable of processing the DBLP graph—containing over 312,000 vertices and 2.1 million edges—in just a few seconds. While the AM algorithm is more computationally intensive, it remains viable for medium-sized datasets and offers a more direct optimization path.
Conclusion
Chromatic Correlation Clustering provides a robust framework for analyzing networks with categorical relationships. By explicitly modeling edge labels, the proposed algorithms uncover structures that traditional numerical methods overlook. While the current work assumes single-labeled edges and non-overlapping clusters, it lays the groundwork for future extensions into multi-labeled and overlapping community detection. The combination of theoretical guarantees and practical efficiency makes these methods highly suitable for large-scale data mining tasks in biology, social science, and beyond.
Summary updated