Abstract
Graph Neural Networks (GNNs) have achieved significant success in graph classification tasks, yet their performance often degrades when faced with real-world datasets characterized by long-tailed class distributions. In such scenarios, a small number of "head" classes dominate the training data, while numerous "tail" classes are sparsely represented, leading to biased models that generalize poorly to minority classes. This paper introduces CoMe (Collaborative Multi-expert Learning), a novel framework designed to address these challenges by jointly optimizing balanced representation learning and multi-expert classifier fusion. Through the use of Balanced Contrastive Learning (BCL) and Disentangled Knowledge Distillation (DKL), CoMe achieves state-of-the-art performance across multiple graph benchmarks.
Introduction
While GNNs are powerful tools for modeling structural data, their efficacy typically hinges on the assumption of balanced class distributions. In practice, graph data—ranging from molecular structures to social networks—is frequently imbalanced. Standard approaches to mitigate this, such as re-sampling or re-weighting, often prove insufficient for graphs. Over-sampling tail classes can lead to over-fitting on specific topological patterns, while under-sampling head classes may discard critical structural information necessary for robust feature extraction.
A fundamental limitation of existing methods is the failure to jointly optimize the graph representation (the embedding space) and the classification mechanism (the decision boundary). CoMe addresses this by ensuring that the feature space is balanced before classification occurs and by utilizing an ensemble of experts that collaborate to refine decision boundaries for "hard-to-classify" samples.
The CoMe Framework
The CoMe framework is composed of four synergistic modules that work together to balance the learning process:
1. Balanced Contrastive Learning (BCL)
Standard contrastive learning often results in embeddings where head classes occupy a disproportionately large volume of the feature space. BCL introduces "trainable anchors" for every class. These anchors act as prototypes, ensuring that even tail classes have a stable point of attraction during training. This prevents minority classes from being overshadowed by the high frequency of majority class samples during the feature extraction phase.
2. Individual-expert Classifier Training
Each expert within the CoMe ensemble is trained using a Bayesian approach that incorporates class frequency as a prior. This effectively decouples the influence of sample size from the final prediction. Furthermore, the framework employs Hard-to-classify Class Mining (HCM). Rather than focusing solely on difficult individual samples, HCM identifies the top-$M$ most confusing classes for a given input, forcing the model to learn more discriminative features for classes that are semantically or structurally similar.
3. Multi-expert Fusion
To leverage the diverse perspectives of multiple GNN encoders, CoMe utilizes a gating mechanism. This mechanism acts as a traffic controller, dynamically assigning weights to different experts based on the specific characteristics of the input graph. This allows the model to adaptively rely on the expert most suited for a particular structural pattern.
4. Inter-expert Distillation
To facilitate collaboration between experts, the authors implement Disentangled Knowledge Distillation (DKL). Traditional distillation can be counter-productive in long-tailed settings because the high confidence of head classes can suppress the nuanced information needed to distinguish tail classes. DKL splits the distillation process into "target" and "non-target" components, allowing experts to share knowledge about class relationships without being blinded by the dominance of majority classes.
Experimental Evaluation
The framework was evaluated on seven diverse benchmarks, including social networks (COLLAB), bioinformatics (ENZYMES), and synthetic datasets (Synthie), as well as graph-transformed computer vision datasets (MNIST, Letter-high, Letter-low, and COIL-DEL). To simulate real-world conditions, training sets were processed using Zipf’s law to create varying Imbalance Factors (IF), while test sets remained balanced to ensure a fair assessment of generalization.
Key Results
CoMe consistently outperformed existing state-of-the-art methods, including GraphSAGE and G²GNNe. Notable performance gains include:
- COLLAB (IF=10): CoMe achieved 76.88% accuracy, significantly higher than the base GraphSAGE (63.07%).
- Letter-high (IF=50): CoMe reached 54.12% accuracy, surpassing the nearest competitor (SBCL) by nearly 3%.
Ablation studies confirmed that the combination of BCL and HCM is particularly effective, proving that addressing bias in both the embedding space and the decision boundary is essential for long-tailed graph recognition.
Discussion and Insights
The success of CoMe highlights two critical insights for the graph community. First, fixing the classifier is insufficient if the underlying embeddings are biased; representation learning must be inherently balanced. Second, disentangling knowledge sharing between experts prevents the "noise" of majority classes from drowning out the signal of minority classes. By focusing on "hard classes" rather than just "hard samples," CoMe provides a more refined approach to distinguishing between structurally similar but distinct categories.
Conclusion and Future Work
CoMe represents a significant step forward in making GNNs robust for real-world, imbalanced applications. However, several avenues for future research remain. These include evaluating performance on unknown test distributions where the imbalance may differ from the training set, investigating the impact of noisy graph structures or labels, and exploring the framework's ability to generalize to out-of-distribution (OOD) graph data.
Summary updated