Data Augmentation for Graph Neural Networks

Tong Zhao, Yozen Liu, Leonardo Neves, Oliver J. Woodford, Meng Jiang, Neil Shah

Abstract

Data augmentation is a cornerstone of modern deep learning in computer vision and natural language processing, yet its application to graph-structured data remains challenging due to the non-Euclidean nature of graphs. This paper introduces GAUG (Graph Data Augmentation), a framework designed to improve Graph Neural Network (GNN) performance by intelligently modifying graph connectivity. By employing neural edge predictors to identify likely intra-class edges and remove inter-class noise, GAUG creates more robust training environments. Our results demonstrate that GAUG consistently outperforms existing baselines across various architectures and datasets, particularly in scenarios with limited labeled data.

Introduction

In domains like computer vision, data augmentation is straightforward—flipping an image or adjusting its color does not change its semantic label. However, graphs are defined by their topology. Randomly adding or removing edges often destroys the structural signals that GNNs rely on for message passing. The core challenge is modifying the graph structure to improve generalization without access to the ground-truth "ideal" connectivity. GAUG addresses this by treating observed graphs as noisy or incomplete versions of an underlying ideal structure and using learned edge probabilities to "denoise" the graph.

The GAUG Framework

The authors propose two primary strategies for graph augmentation using a Graph Auto-Encoder (GAE) as an edge predictor:

  1. GAUG-M (Modified-graph): A deterministic preprocessing approach where the graph is permanently modified before training. The edge predictor identifies high-probability missing edges to add and low-probability existing edges to remove, refining the adjacency matrix once for both training and inference.
  2. GAUG-O (Original-graph): An end-to-end stochastic approach. During each training epoch, the graph is sampled using a differentiable Gumbel-Softmax trick based on edge probabilities. This forces the GNN to learn features that are robust to structural variations while maintaining the original graph for inference.
Comparison of graph modification strategies and their impact on F1 scores.

Key Insights and Results

The central hypothesis of GAUG is that neural edge predictors naturally favor class homophily—the tendency for similar nodes to connect. By strengthening these intra-class connections, the framework moves the observed graph closer to an "ideal" state where classification becomes more linearly separable.

Experimental evaluation across citation networks (Cora, Citeseer), social networks (Flickr, BlogCatalog), and protein-protein interactions (PPI) reveals several key findings:

  • Performance Gains: GAUG-M improved absolute F1 scores by up to 17% over standard GNNs, while GAUG-O saw improvements up to 9%.
  • Architecture Agnostic: The benefits of GAUG were consistent across multiple GNN backbones, including GCN, GraphSAGE, GAT, and JK-Net.
  • Robustness to Weak Supervision: GAUG is particularly effective when training labels are scarce. By "hallucinating" plausible edges, it provides more paths for message passing, effectively amplifying the limited supervision signal.
  • Denoising Capabilities: On social datasets like Flickr, where "spam" edges are common, GAUG successfully removed noisy inter-class links, leading to significant accuracy improvements.

Conclusion and Future Work

GAUG represents a significant step forward in making data augmentation a standard tool for graph representation learning. While the $O(N^2)$ complexity of the full-batch GAUG-O remains a challenge for massive graphs, the framework's ability to improve robustness and performance under weak supervision is a major contribution. Future work will explore more complex edge predictors and the application of these techniques to graph-level tasks beyond node classification.

Summary updated

BibTeX
@inproceedings{zhao2021data,
  author = {Tong Zhao and Yozen Liu and Leonardo Neves and Oliver J. Woodford and Meng Jiang and Neil Shah},
  title = {{Data Augmentation for Graph Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17315},
}
Figure