ExplainCC: Explaining Correlated Clusters by Node Labels

Nadeesha Shyami Kumari Herath Mudiyanselage, Florian Adriaens, Nikolaj TattiarXiv 2026 · DOI

TL;DR

ExplainCC introduces a novel framework for Correlation Clustering that ensures every cluster is defined by a simple, human-readable decision tree based on node labels. By directly embedding explainability into the optimization process rather than treating it as an afterthought, the authors achieve high-quality clusters that are significantly more interpretable and scalable to graphs with millions of edges.

What Problem Does This Paper Address?

Correlation Clustering (CC) is a classic unsupervised learning task where you partition nodes in a graph based on "positive" edges (similarity) and "negative" edges (dissimilarity). The goal is to minimize "mistakes"—instances where similar nodes end up in different clusters or dissimilar nodes end up together.

While CC is powerful for social network analysis or bioinformatics, it has a major usability flaw: the resulting clusters are often "black boxes." A user might see a group of nodes but have no idea why they belong together beyond their connectivity.

The authors tackle this by requiring that clusters be explainable by node labels (metadata). For example, in a co-authorship graph, a cluster shouldn't just be "these people work together"; it should be "these people work together AND they all have the label 'Machine Learning'."

Methods

The core of the paper is the Label Tree, a binary decision tree where each internal node splits the data based on the presence or absence of a specific label. The leaves of this tree define the clusters.

The authors propose two main algorithmic components:

  1. Expand (Greedy Algorithm): This is a top-down approach. Starting from a single cluster, it recursively finds the label that, when used as a split, most reduces the CC objective function. To make this efficient, the authors developed a method to maintain counters for edge weights, allowing the algorithm to evaluate potential splits in $O(|L|)$ time (where $L$ is the set of labels) instead of re-scanning the whole graph.
  2. Prune (Dynamic Programming): To solve the $k$-ExplainCC problem (where you want at most $k$ clusters), the authors first build a large tree using Expand and then use a dynamic programming approach to find the optimal subtree with exactly $k$ leaves.
Figure 1: A toy graph and its corresponding label tree. The tree uses labels (colors) to partition nodes, making some mistakes (dashed red edges inside a cluster or black edges between clusters) to maintain explainability.

Datasets

The researchers evaluated their methods on:

  • Synthetic Datasets: Generated using Stochastic Block Models (SBM) with varying levels of noise in both the graph structure and the node labels.
  • Real-World Co-authorship Networks: Eight datasets (including SDM, KDD, NIPS, and a massive "2018" dataset) where nodes are authors, edges represent co-authorship, and labels are "field-of-study" terms. The largest dataset contains over 600,000 nodes and 1.8 million positive edges.

Key Insights and Ideas

  • The Failure of Post-hoc Explanations: A common "baseline" approach is to cluster the graph first and then fit a decision tree to those clusters. The authors demonstrate that this "reference-based" approach is often disastrously suboptimal. As shown in Figure 2, a tree fitted to an optimal unconstrained clustering can result in twice as many mistakes as a tree built with explainability in mind from the start.
  • The Price of Explainability: There is an inherent trade-off. Requiring clusters to be explainable by labels will always result in a CC cost that is equal to or higher than unconstrained clustering. However, the authors show that this "price" is often small compared to the gain in interpretability.
  • Scalability through Smart Accounting: By carefully removing edges that are already "cut" by higher-level splits and maintaining local counters, the Expand algorithm achieves near-linear scaling with respect to the number of edges.
Figure 2: The signed graph in (a) has an optimal CC cost of three, achieved by a clustering found by grouping together the nodes in a maximum-sized matching of its positive edges. There are two optimal clusterings, since there are two such matchings. The label tree shown in (b) explains one of those optimal clusterings. The baseline method might select a reference clustering which is the other optimal clustering, shown in (c). Any label tree fitted on this reference clustering cannot achieve accuracy more than 4/6, since the nodes 𝑣3 and 𝑣4 are in different clusters but are indistinguishable based on their labels, and likewise for 𝑣1 and 𝑣2. An optimal fitted tree achieving this accuracy is shown in (d). Note that the clustering induced by this tree makes 6 mistakes, twice as many as the tree from (b).

Key Results

  • Accuracy: On synthetic data, the DP pruning method achieved an Adjusted Rand Index (ARI) of nearly 1.0, meaning it almost perfectly recovered the ground-truth communities when the number of clusters $k$ was known.
  • Efficiency: The Expand algorithm is remarkably fast, processing a graph with 10 million edges in under 50 seconds.
  • Qualitative Quality: In real-world datasets, the generated trees were highly intuitive. For the "Conf" dataset, the root split was "Computer Science," with lower-level splits branching into specific sub-fields like "AI," "Data Mining," and "Machine Learning."
  • Baselines: ExplainCC consistently outperformed the "Gr+DT" baseline (clustering followed by decision tree fitting) across all benchmark datasets, often achieving significantly lower normalized disagreement scores.

Limitations and Future Work

  • Hardness of Approximation: The authors proved that $k$-ExplainCC is NP-hard and does not admit a polynomial-time approximation algorithm with a multiplicative guarantee. This justifies their reliance on greedy heuristics and DP.
  • Label Quality: The method's success is heavily dependent on the quality and relevance of the provided node labels. If labels are unrelated to the graph structure, the "price of explainability" becomes prohibitively high.
  • Theoretical Gap: There remains a theoretical gap between the known $O(n^2)$ approximation upper bound and the $\Omega(\log n)$ lower bound for the unconstrained ExplainCC problem, which the authors suggest as a path for future theoretical research.

Summary updated

Abstract

An increasingly important requirement for clustering algorithms is that decisions and outcomes need to be clearly understandable for human users. We address this requirement for the Correlation Clustering (CC) problem, in case the objects to be clustered are accompanied by labels. In CC one seeks to partition a set of objects into clusters based on pairwise similarity and dissimilarity information. Our proposed model only considers clusters that can be explained by a label tree, which is essentially a decision tree that partitions the objects according to labels. The goal is to find an explainable partition of the data that minimizes the CC objective function. We formalize this problem from a theoretical viewpoint, and prove several hardness of approximation results, also when constraining the size of the tree. Our proposed greedy method finds locally optimal splits, and works recursively in a top-down approach. To efficiently compute the best split, we carefully maintain certain counters. An experimental evaluation demonstrates its effectiveness. The proposed algorithm processes graphs with over million edges in a few minutes, can find the ground truth in synthetic data, and is able to produce interpretable clusters in real world networks.
BibTeX
@misc{mudiyanselage2026explaincc,
  author = {Nadeesha Shyami Kumari Herath Mudiyanselage and Florian Adriaens and Nikolaj Tatti},
  title = {{ExplainCC: Explaining Correlated Clusters by Node Labels}},
  year = {2026},
  eprint = {2610.38667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.38667},
}
Figure