NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CARROT: Competitive Adaptive Graph Clustering via Semi-Relaxed Optimal Transport

Ching Fan Chiang, Jia-Yu Pan, Wen-Chieh LinarXiv 2026

TL;DR

Real-world networks rarely come with an instruction manual telling you how many communities exist, nor do they neatly divide into equal-sized groups. CARROT solves both headaches simultaneously in unsupervised graph clustering by pairing semi-relaxed optimal transport with a Darwinian competition among cluster prototypes. Starting with a loose upper bound of candidate clusters, it lets well-supported communities absorb nodes naturally—preserving massive size imbalances—while starving and pruning away redundant clusters to discover the true underlying count automatically.

What Problem Does This Paper Address?

Imagine mapping a citation network or a social graph where nodes have rich attributes (like paper keywords or user profiles). Grouping these nodes—known as Deep Graph Clustering (DGC)—requires balancing topological cohesion (who connects to whom) with semantic coherence (who looks like whom).

Existing DGC methods usually trip over two real-world realities:

  1. Unknown $K$: Most algorithms demand you specify the exact number of clusters ($K$) upfront. In the wild, you almost never know $K$ in advance.
  2. Severe Size Imbalance: Real communities follow power laws, not uniform distributions. In the Coauthor PHY dataset, for instance, the largest community holds 50.5% of the nodes while the smallest holds just 7.9%. To prevent "cluster collapse" (where an unsupervised model lazily dumps every node into one giant bucket), standard methods enforce uniformity regularizers or rely on K-means. Unfortunately, this creates an artificial bias toward equal-sized clusters, shattering giant communities and swallowing up tiny minorities.

Methods

CARROT (Competitive Adaptive gRaph clustering via semi-Relaxed Optimal Transport) frames cluster assignment as a mass-transport problem: moving "mass" from graph nodes to learnable cluster prototypes.

Figure 1: The overall framework of CARROT.

What is standard: CARROT begins by pre-training a standard two-layer Graph Convolutional Network (GCN) using self-supervised link prediction, then L2-normalizes embeddings onto a unit hypersphere and initializes $K_{\text{max}}$ candidate prototypes via Spherical K-Means.

What is novel is the Adaptive Clustering Mechanism, a three-part loop that jointly optimizes embeddings and prototypes:

  • Semi-Relaxed Optimal Transport (OT): Standard OT enforces rigid constraints on both source (nodes) and target (clusters) capacities, forcing balanced clusters. Unbalanced OT relaxes both, risking leaving some nodes unassigned. CARROT introduces semi-relaxed OT to deep graph clustering: it strictly requires every node to be 100% assigned, while relaxing cluster capacities via a soft KL-divergence penalty so clusters can swell or shrink freely.
  • Competition Loss: Semi-relaxed OT permits unequal sizes, but doesn't actively reduce $K_{\text{max}}$. CARROT adds a competition loss (minimizing the negative squared $L_2$-norm of cluster mass fractions, dynamically weighted against the transport cost) that creates a "rich-get-richer" rivalry—concentrating mass onto strong prototypes and starving weak ones.
  • Hard Pruning: Periodically, starved prototypes whose assigned node counts fall below a dynamic threshold are permanently masked out, stepping down the active cluster count until convergence.

Datasets

No new benchmarks are introduced; the authors evaluate on five public attributed graph benchmarks chosen for varying scales and class imbalances:

  • Relatively Balanced Citation Networks: Cora (7 clusters), CiteSeer (6 clusters), and PubMed (3 clusters).
  • Highly Imbalanced Networks: Amazon PC (co-purchase, 10 clusters) and Coauthor PHY (co-authorship, 5 clusters).

Key Insights and Ideas

  • Closing the NMI–ARI Gap: Across baselines, Normalized Mutual Information (NMI) is consistently much higher than the Adjusted Rand Index (ARI)—averaging a 0.13 gap. Why? Because ARI harshly penalizes pairwise errors when dominant clusters are fragmented or minorities are merged. By accommodating true size heterogeneity, CARROT shrinks this gap below 0.06 (and its ARI actually exceeds NMI on two datasets).
  • Permission Needs a Push: Ablation studies reveal a neat synergy. Without semi-relaxed OT, clusters lock into uniform sizes. Without the competition loss, semi-relaxed OT barely budges from its K-means initialization, leaving all 50 candidate clusters alive. You need relaxation to allow imbalance, and competition to drive cluster discovery.
  • Set-and-Forget $K_{\text{max}}$: Unlike prior adaptive-$K$ methods that secretly require tight upper bounds, CARROT is remarkably insensitive to $K_{\text{max}}$.
Sensitivity analysis showing flat NMI, ARI, and Found-K curves across Kmax from 25 to 150.

Key Results

Evaluated against five adaptive-$K$ baselines (using a unified loose bound of $K_{\text{max}} = 50$), CARROT achieves state-of-the-art NMI and ARI across all five benchmarks:

  • Big Jumps in Pairwise Accuracy: On Coauthor PHY, CARROT hits 0.7194 NMI and 0.8027 ARI, outperforming the runner-up baseline (0.5818 NMI / 0.3950 ARI) by over 40 percentage points in ARI. On CiteSeer, it reaches 0.4430 ARI vs. the best baseline's 0.2718.
  • Spot-On Cluster Counts: Starting from $K_{\text{max}} = 50$, CARROT recovers average cluster counts remarkably close to ground truth without supervision: 8.0 on Cora ($K=7$), 5.3 on CiteSeer ($K=6$), 3.4 on PubMed ($K=3$), 9.5 on Amazon PC ($K=10$), and 6.3 on Coauthor PHY ($K=5$). Even when $K_{\text{max}}$ is cranked from 25 up to 150, Found-$K$ fluctuates by fewer than 1–2 clusters.
  • Preserving Super-Majorities: On Coauthor PHY, CARROT captures the giant 17,426-node community with 93.2% recall in a single cluster, whereas baselines shatter it into pieces.

Limitations and Future Work

  • Hyperparameter Sensitivity: While CARROT is very robust to $K_{\text{max}}$ and the target marginal penalty $\rho$, the authors note that the Sinkhorn entropic regularization parameter $\epsilon$ (which controls assignment sharpness) still requires careful tuning.
  • Unsupervised Metric Caveats: CARROT relies on an internal metric ($Q \times \text{CHI}$) for unsupervised checkpoint selection, though the authors note that the Calinski–Harabasz Index (CHI) inherently favors coarser (under-segmented) partitions when cluster counts vary wildly.
  • Future Work: Extending this recipe—semi-relaxed optimal transport paired with prototype competition—beyond graphs to general unsupervised learning domains where unknown $K$ and class imbalance remain open problems.

Summary updated

BibTeX
@misc{chiang2026carrot,
  author = {Ching Fan Chiang and Jia-Yu Pan and Wen-Chieh Lin},
  title = {{CARROT: Competitive Adaptive Graph Clustering via Semi-Relaxed Optimal Transport}},
  year = {2026},
  eprint = {2611.34012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34012},
}
Figure