Graph Size-imbalanced Learning with Energy-guided Structural Smoothing

Jiawen Qin, Pengfeng Huang, Qingyun Sun, Cheng Ji, Xingcheng Fu, Jianxin Li

Abstract

Graph classification models often struggle with "size-imbalance," where datasets are dominated by many small graphs and a few very large ones. This paper introduces SIMBA (Size-IMBAlanced learning framework), which addresses this by constructing a higher-level "graph-of-graphs" and employing energy-based belief propagation. By smoothing structural discrepancies across the dataset, SIMBA ensures robust generalization across varying graph sizes.

Introduction: The Size-Imbalance Challenge

In Graph Neural Networks (GNNs), real-world datasets like molecules or social networks typically follow a power-law distribution. This results in a "head" of a few large graphs and a long "tail" of many small ones. Standard GNNs are sensitive to this distribution, often achieving high accuracy on large graphs while struggling with "structure-scarce" small ones. This creates a significant gap in structural feature distribution, leading to poor generalization.

Figure 1: Power-law distribution of graph sizes across common benchmarks, illustrating the prevalence of small graphs (the "tail").

While previous research has focused on class imbalance, size imbalance is a distinct challenge because it affects the fundamental features the GNN aims to learn. Existing solutions that attempt to transfer knowledge from large to small graphs often introduce "out-of-distribution" errors.

The SIMBA Framework

The authors propose SIMBA, a framework designed to bridge the size gap through three integrated modules:

Figure 3: Overview of the SIMBA architecture, featuring discriminative embedding, Graphs-to-Graph message passing, and energy-guided re-weighting.

1. Discriminative Graph Embedding

To handle variable graph sizes, SIMBA utilizes a self-attentive mechanism to transform nodes into fixed-length vectors. It employs multi-level pooling to capture structural details across different convolutional layers, ensuring that even small graphs retain rich representations.

2. Graphs-to-Graph (G2G) Message Passing

Unlike traditional methods that treat graphs as isolated samples, SIMBA constructs a "meta-graph" where each node represents an entire graph. Edges are established between graphs with similar embeddings (based on cosine similarity). Message passing on this meta-graph allows structural information to "smooth" across the dataset, enabling small graphs to learn from their similar, often larger, neighbors.

3. Energy-guided Re-weighting

To ensure that only helpful neighbors influence the learning process, SIMBA uses an Energy-Based Model (EBM) to measure the "compatibility" of a graph within its local neighborhood. Energy "beliefs" are propagated across the meta-graph. Highly incompatible graphs (high energy) are down-weighted during training to prevent noise from disrupting the smoothed feature space.

Experimental Evaluation

SIMBA was evaluated on five benchmarks across bioinformatics (PTC-MR, FRANKENSTEIN, D&D, PROTEINS) and social networks (REDDIT-B). Datasets were partitioned using the Pareto principle (80/20 rule) to simulate high size-imbalance, designating the 20% largest graphs as the "head" and the remainder as the "tail."

Key Results

SIMBA consistently outperformed state-of-the-art baselines, including GCN, GIN, and the size-aware SOLT-GNN:

  • Overall Performance: SIMBA achieved superior Accuracy and Macro-F1 scores. On PTC-MR, it reached 59.43% accuracy, surpassing GIN's 57.43%.
  • Head vs. Tail Robustness: On the D&D dataset, SIMBA boosted "tail" graph accuracy to 72.73% (vs. GIN's 66.31%) while maintaining or improving performance on "head" graphs.
  • Ablation Study: Removing the G2G module resulted in a performance drop of up to 6.9%, confirming the meta-graph approach as a core driver of success.

Discussion and Future Work

SIMBA shifts the focus from simple knowledge transfer to distribution smoothing, reducing structural discrepancy (Central Moment Discrepancy) without creating artificial data. However, the framework faces challenges such as potential over-smoothing if the neighbor count ($k$) is too high. Future work may explore learnable similarity metrics and strategies to mitigate computational complexity in meta-graph construction.

Summary updated

BibTeX
@inproceedings{qin2024graph,
  author = {Jiawen Qin and Pengfeng Huang and Qingyun Sun and Cheng Ji and Xingcheng Fu and Jianxin Li},
  title = {{Graph Size-imbalanced Learning with Energy-guided Structural Smoothing}},
  booktitle = {WSDM},
  year = {2024},
}
Figure