ImGAGN: Imbalanced Network Embedding via Generative Adversarial Graph Networks

Liang Qu, Huaisheng Zhu, Ruiqi Zheng, Yuhui Shi, Hongzhi Yin · DOI

In machine learning, the "needle-in-a-haystack" problem of imbalanced data—where critical minority classes like fraudsters or rare disease cases are vastly outnumbered—is a well-known challenge. When this data is structured as a graph, the problem intensifies. Standard Graph Neural Networks (GNNs) typically assume roughly equal class distributions; when they encounter skew, they often become biased toward the majority class, leading to poor performance on the minority nodes of interest.

At KDD '21, researchers introduced ImGAGN (Imbalanced Generative Adversarial Graph Network), a framework designed to mitigate these issues by synthetically balancing the graph through a generative adversarial approach.

The Challenge of Imbalanced Graphs

Most real-world networks are naturally skewed. In citation networks, niche topics have fewer papers; in social networks, malicious actors are rare. This imbalance creates two primary hurdles for GNNs:

  1. The Quantity Gap: There is insufficient signal from the minority class for effective learning.
  2. The Separability Gap: Minority nodes are often topologically "buried" within majority clusters, making it difficult for models like Graph Convolutional Networks (GCNs) to define clear decision boundaries.

Existing solutions like simple oversampling or cost-sensitive learning often ignore the topology—the unique connection patterns that define graph data.

The ImGAGN Framework

ImGAGN employs a Generative Adversarial Network (GAN) architecture to address these gaps by creating synthetic minority nodes that respect the original graph's manifold.

The ImGAGN architecture: A GraphGenerator creates synthetic nodes to balance the network, while a GCN-based Discriminator learns to distinguish between real/fake and majority/minority nodes.

1. The GraphGenerator ($G$)

Unlike standard GANs that generate independent samples, the GraphGenerator simulates the network's structure. It produces a normalized weight matrix to define how synthetic nodes connect to real minority nodes. Instead of inventing features, it synthesizes attributes by taking a weighted average of the features of its linked neighbors. This process continues until the minority class (real + synthetic) matches the size of the majority class.

2. The GCN Discriminator ($D$)

The discriminator is a two-layer GCN trained on a multi-task objective. It must distinguish between real and synthetic nodes while simultaneously classifying nodes as majority or minority. This adversarial game forces the GCN to learn robust node embeddings that are highly effective at separating classes in latent space.

Experimental Results

The researchers evaluated ImGAGN on four citation networks (Cora, Citeseer, Pubmed, and DBLP) with minority ratios as low as 1.31%. ImGAGN consistently outperformed state-of-the-art methods like GraphSAGE and specialized imbalanced models like RECT.

Comparison of node distributions: (a) A standard GCN remains imbalanced, while (b) ImGAGN introduces generated nodes (green) to balance the class distribution and improve topological representation.

Key Performance Metrics

  • Recall Boost: On the extreme DBLP dataset, ImGAGN achieved a Recall of 0.9055, compared to just 0.0363 for a standard GCN.
  • Superior AUC: The model showed higher Area Under the Curve (AUC) across all datasets, indicating better ranking performance rather than just frequent guessing of the minority class.
  • Visual Separability: t-SNE visualizations demonstrated that while other methods leave minority nodes scattered, ImGAGN clusters them into distinct, separable islands.

Conclusion

ImGAGN demonstrates that a node's identity is defined as much by its connections as its attributes. By generating a link distribution alongside features, the framework respects the graph's manifold and effectively bridges the quantity and separability gaps. Future work may extend this binary framework to multi-class scenarios and dynamic, evolving graphs.

Summary updated

BibTeX
@inproceedings{qu2021imgagn,
  author = {Liang Qu and Huaisheng Zhu and Ruiqi Zheng and Yuhui Shi and Hongzhi Yin},
  title = {{ImGAGN: Imbalanced Network Embedding via Generative Adversarial Graph Networks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467334},
}
Figure