VIGraph: Self-supervised Learning for Class-Imbalanced Node Classification

Yulan Hu, Sheng Ouyang, Zhirui Yang, Yong LiuarXiv 2023 · DOI

Abstract

Class imbalance is a pervasive challenge in graph-based machine learning, where minority classes are often overlooked by standard Graph Neural Networks (GNNs). VIGraph introduces a generative self-supervised learning framework that utilizes a Variational Graph Autoencoder (VGAE) to learn minority class distributions. Unlike traditional interpolation methods, VIGraph generates high-quality, semantically rich nodes that integrate directly into classification tasks, significantly improving performance on imbalanced benchmarks.

Introduction

In real-world graph data, such as social networks or citation graphs, class distributions are rarely uniform. Fraudulent users or niche research topics represent a tiny fraction of the total population, leading standard GNNs to overfit to majority classes. VIGraph addresses this by shifting from "smearing" existing data points (interpolation) to generating entirely new nodes from learned distributions.

The Rigorous Construction Gap

A critical observation made by the authors is the "Rigorous Construction" gap in existing research. Many studies simulate imbalance by masking nodes while retaining their original edges. This is unrealistic; in a true imbalanced graph, the message-passing paths associated with missing nodes would not exist.

Comparison between original and refined imbalanced graph construction, showing the performance drop when edges are properly removed.

When edges are removed alongside nodes (the "Refined" construction), the performance of state-of-the-art methods drops significantly, as shown in the figure above. VIGraph is designed to be robust under these more realistic, challenging conditions.

The VIGraph Framework

VIGraph employs a Variational Graph Autoencoder (VGAE) to capture the underlying distribution of node features and graph structure.

The VIGraph architecture: from imbalanced graph construction to generative self-supervised learning with Siamese contrastive decoding.

The framework consists of three core components:

  1. Variational Inference (VI): The encoder maps nodes to a distribution (mean and variance) rather than a single point. Sampling from this distribution allows for the generation of diverse, representative nodes for minority classes.
  2. Siamese Contrastive Decoding: To ensure semantic consistency, a contrastive learning step is applied during decoding. This forces the model to recognize that different samples from the same node's distribution should represent the same underlying concept.
  3. Structure Reconstruction: The model learns to reconstruct the adjacency matrix using a weighted cross-entropy loss, effectively handling graph sparsity and learning how new nodes should connect to the existing structure.

Experimental Evaluation

VIGraph was evaluated on five benchmarks: citation networks (Cora, CiteSeer, PubMed), a co-purchase graph (AmazonPhoto), and a Wikipedia-based graph (Wiki-CS). To simulate real-world imbalance, node counts for half the classes were manually reduced.

Key Results

  • Superior Performance: VIGraph consistently outperformed eight state-of-the-art methods, achieving an average 2.34% improvement in Macro F1-score.
  • Robustness to Extreme Imbalance: The model remained stable even when minority classes were reduced to 10% of the majority class size.
  • Ablation Insights: The Siamese contrastive loss emerged as the most critical component for handling imbalance, particularly on Cora and CiteSeer.

Conclusion and Future Work

VIGraph represents a significant step forward by applying generative self-supervised learning to class-imbalanced node classification. While it demonstrates strong performance and robustness, future work may address the computational cost of full adjacency matrix reconstruction for massive graphs and explore more advanced backbones like Graph Transformers or Diffusion Models.

Summary updated

BibTeX
@misc{hu2023vigraph,
  author = {Yulan Hu and Sheng Ouyang and Zhirui Yang and Yong Liu},
  title = {{VIGraph: Self-supervised Learning for Class-Imbalanced Node Classification}},
  year = {2023},
  eprint = {2311.01191},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.01191},
}
Figure