NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

G-Mixup: Graph Data Augmentation for Graph Classification

Xiaotian Han, Zhimeng Jiang, Ninghao Liu, Xia Hu

TL;DR

G-Mixup is a novel data augmentation technique for graph classification that interpolates "graphons" (graph generators) of different classes to create synthetic training data. By mixing the underlying generators rather than the irregular graph structures themselves, G-Mixup significantly enhances the generalization and robustness of Graph Neural Networks (GNNs).

What Problem Does This Paper Address?

Data augmentation is a cornerstone of modern deep learning, with "Mixup"—the process of creating synthetic samples by linearly interpolating pairs of training data—proving highly effective for images and text. However, applying Mixup to graphs is notoriously difficult.

Unlike images, which are regular grids, graphs are irregular and vary in size. They lack a natural alignment (which node in Graph A corresponds to which in Graph B?), and they exist in non-Euclidean spaces. Existing graph augmentation methods, like randomly dropping edges (DropEdge), typically operate within a single graph. They fail to facilitate the "between-graph" information exchange that makes Mixup so powerful for improving model robustness and generalization.

Methods

The authors propose G-Mixup, which shifts the interpolation from the graphs themselves to their "generators." The core idea relies on graphon theory, where a graphon is a continuous function that acts as a template or recipe for generating a specific class of graphs.

The G-Mixup pipeline consists of three main steps:

  1. Graphon Estimation: For each class in the dataset, the algorithm estimates a representative graphon. Since the true graphon is unknown, they approximate it using a "step function" (a matrix of edge probabilities) after aligning nodes based on their degrees.
  2. Graphon Mixup: Instead of mixing two specific graphs, G-Mixup linearly interpolates the estimated graphons of two different classes ($W_I = \lambda W_G + (1-\lambda) W_H$) and their corresponding labels.
  3. Graph Generation: New synthetic graphs are sampled from this mixed graphon. These synthetic graphs inherit structural properties from both parent classes.
An overview of the G-Mixup pipeline: estimating graphons for two classes, mixing them, and sampling new synthetic graphs.

Datasets

The authors evaluated G-Mixup across a diverse array of benchmarks:

  • Social Networks: IMDB-BINARY, IMDB-MULTI, REDDIT-BINARY, and REDDIT-MULTI-5K.
  • Bioinformatics: D&D, MUTAG, and PROTEINS.
  • Molecular Property Prediction: Three datasets from the Open Graph Benchmark (OGB)—ogbg-molhiv, ogbg-molbbbp, and ogbg-molbace.

Key Insights and Ideas

  • Graphons are Class-Discriminative: Visualizing estimated graphons reveals that different classes of real-world graphs have distinct "fingerprints" in their connectivity patterns.
Visualizing graphons for different classes across datasets like IMDB and REDDIT shows they are distinctly different, providing a solid foundation for interpolation.
  • Mixing Motifs: The authors theoretically prove that synthetic graphs generated by G-Mixup are a mixture of "discriminative motifs" (the key subgraphs that define a class). For example, if one class is defined by a star shape and another by a cycle, the synthetic graph will contain elements of both.
  • Generalization through Diversity: By sampling from a continuous graphon space, G-Mixup creates a much wider variety of training examples than simple edge-dropping methods, helping the model learn smoother decision boundaries.
  • Robustness to Corruption: Because the model is trained on "blended" structures, it becomes more resilient to noise, such as incorrectly labeled graphs or missing/extra edges in the test data.

Key Results

G-Mixup consistently outperformed vanilla GNNs and other state-of-the-art augmentation methods (like DropEdge and Subgraph) across various backbones (GCN, GIN) and pooling strategies (DiffPool, TopKPool).

  • Accuracy Boost: On the REDDIT-BINARY dataset, G-Mixup improved GCN accuracy from 78.82% to 89.81%—a massive jump. Across all tests, it provided an average performance gain of 2.84% over vanilla models.
  • Better Generalization: Training curves show that G-Mixup leads to consistently lower test loss and higher stability during training compared to standard methods.
  • Superior Robustness: In experiments with 10% to 40% "topology corruption" (randomly adding or removing edges), G-Mixup maintained significantly higher accuracy than its competitors, proving it helps GNNs focus on essential structural features rather than noise.

Limitations and Future Work

The authors identify a few areas for improvement:

  1. Intra-class Heterogeneity: G-Mixup assumes all graphs in a class come from a single graphon. If a class is actually composed of several different types of structures, a preliminary clustering step might be needed.
  2. Computational Cost: While sampling is fast, estimating graphons for very large datasets adds a pre-processing overhead.
  3. Node Features: Currently, G-Mixup focuses heavily on graph topology. If two classes have identical structures but differ only in their node features, the current version of G-Mixup might degenerate into standard within-graph augmentation. Future work could better integrate complex node feature interpolation.

Summary updated

BibTeX
@inproceedings{han2022g,
  author = {Xiaotian Han and Zhimeng Jiang and Ninghao Liu and Xia Hu},
  title = {{G-Mixup: Graph Data Augmentation for Graph Classification}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=SV9Q9_TV_bI},
}
Figure