Class-Imbalanced Graph Learning without Class Rebalancing

Zhining Liu, Ruizhong Qiu, Zhichen Zeng, Hyunsik Yoo, David Zhou, Zhe Xu, Yada Zhu, Kommy Weldemariam, Jingrui He, Hanghang Tong

TL;DR

This paper shifts the focus of class-imbalanced graph learning from traditional data-level rebalancing to a topological paradigm. By identifying and rectifying two key structural phenomena—Ambivalent and Distant Message-Passing—the authors introduce BAT, a lightweight, plug-and-play framework that significantly boosts performance and reduces predictive bias in Graph Neural Networks (GNNs) without needing to resample or reweight the original classes.

The Problem: Topology Exacerbates Class Imbalance

In real-world node classification, some classes often have far fewer examples than others, creating a class imbalance. Standard GNNs struggle in these scenarios, exhibiting a massive "predictive bias" where they perform well on majority classes but fail miserably on minority ones.

Most existing solutions rely on Class Rebalancing (CR)—essentially oversampling the small classes or giving them more weight in the loss function. However, the authors argue that this ignores the root cause: the graph's topology. They identify two structural hurdles that disproportionately hurt minority classes:

  1. Ambivalent Message-Passing (AMP): Minority nodes are often surrounded by majority-class neighbors, leading to an influx of "noisy" or conflicting information during message passing.
  2. Distant Message-Passing (DMP): Minority nodes are frequently located far away from other labeled nodes of the same class, making it difficult for them to receive strong, accurate supervision signals during training.
Concepts of Ambivalent and Distant Message-Passing and their impact on predictive bias.

The BAT Framework

To address these topological bottlenecks, the authors propose BAT (BAlanced Topological augmentation). BAT is designed to locate and fix the "critical nodes" affected by AMP and DMP through a three-step process:

  1. Node Misclassification Risk Estimation: Since ground-truth labels are unavailable for all nodes, BAT uses model uncertainty (Total Variation distance) to estimate which nodes are at risk of being misclassified. It applies an imbalance-aware calibration to ensure it doesn't simply flag all minority nodes as high-risk.
  2. Posterior Likelihood Estimation: For high-risk nodes, BAT estimates their true class. The framework offers two variations: BAT₀ (zeroth-order, based purely on node predictions) and BAT₁ (first-order, incorporating local neighborhood patterns).
  3. Virtual Topology Augmentation: Instead of adding thousands of dense edges, BAT creates one virtual node per class. High-risk nodes are then connected to these virtual nodes via virtual edges. This creates "shortcuts" to the correct class information, effectively bypassing the noisy or distant original topology.

Key Insights and Results

The framework was rigorously validated on seven diverse real-world datasets, including citation networks (Cora, CiteSeer, PubMed), co-author networks, and large-scale graphs (OGBN-arXiv), under both Step and Natural imbalance ratios.

  • Topology Amplifies Bias: The paper theoretically proves that minority classes are inherently more susceptible to AMP and DMP. As the imbalance ratio increases, the signal-to-noise ratio for minority classes drops exponentially compared to majority classes.
  • Orthogonality and Versatility: Because BAT focuses on topology rather than class weights, it is orthogonal to existing rebalancing methods. It functions as a plug-and-play module that can be layered on top of existing reweighting or resampling techniques (like GraphENS or ReNode) for an additional performance boost.
  • High Efficiency: By utilizing virtual nodes, BAT avoids the quadratic complexity of adding edges between all similar nodes. It adds only a tiny fraction of edges (typically 1-3%), allowing it to run in milliseconds during training.
  • State-of-the-Art Performance: BAT consistently outperformed baselines across GCN, GAT, and GraphSAGE architectures. It delivered up to a 46.27% improvement in balanced accuracy and reduced predictive bias by up to 72.74%, remaining robust even under extreme imbalance ratios.

Limitations and Future Directions

While highly effective, BAT relies on the model's own predictions to estimate risk and likelihood (a potential "cold start" problem). If the initial model is extremely poor, early augmentations might be less accurate. Furthermore, while this work focuses on node-level imbalance, extending these topological insights to edge-level or feature-space imbalances, as well as mitigating group unfairness in graphs, remain promising areas for future research.

Summary updated

BibTeX
@inproceedings{liu2024class,
  author = {Zhining Liu and Ruizhong Qiu and Zhichen Zeng and Hyunsik Yoo and David Zhou and Zhe Xu and Yada Zhu and Kommy Weldemariam and Jingrui He and Hanghang Tong},
  title = {{Class-Imbalanced Graph Learning without Class Rebalancing}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=pPnkpvBeZN},
}
Figure