M-Evolve: Structural-Mapping-Based Data Augmentation for Graph Classification

Jiajun Zhou, Jie Shen, Shanqing Yu, Guanrong Chen, Qi Xuan · DOI

Abstract

Graph classification, which aims to identify the category labels of graphs, plays a significant role in drug classification, toxicity detection, protein analysis, etc. However, the limitation of scale in benchmark datasets makes it easy for graph classification models to fall into over-fitting and under-generalization. To improve this, we introduce data augmentation on graphs (i.e., graph augmentation) and present four methods: random mapping, vertex-similarity mapping, motif-random mapping, and motif-similarity mapping, to generate more weakly labeled data for small-scale benchmark datasets via heuristic transformation of graph structures. Furthermore, we propose a generic model evolution framework, named M-Evolve, which combines graph augmentation, data filtration, and model retraining to optimize pre-trained graph classifiers. Experiments on six benchmark datasets demonstrate that the proposed framework helps existing graph classification models alleviate over-fitting and under-generalization in the training on small-scale benchmark datasets, which successfully yields an average improvement of 3–13% accuracy on graph classification tasks.

Introduction

In specialized domains such as bioinformatics and chemoinformatics, graph datasets representing molecular structures or brain networks are often constrained by small sample sizes, frequently containing only a few hundred instances. This scarcity poses a significant challenge for modern machine learning models, which are prone to overfitting—memorizing specific samples rather than learning generalizable patterns.

Unlike computer vision, where data augmentation techniques like rotation or flipping are standard, graphs lack a fixed grid or coordinate system. Arbitrary modifications to graph connectivity can inadvertently destroy the underlying chemical or biological properties that define a class. The M-Evolve framework addresses this by generating meaningful synthetic graphs through structural mapping and ensuring their quality via a rigorous filtration process.

Proposed Methodology

1. Structural Mapping Strategies

The authors propose four structural mapping methods to perturb graph structures while preserving essential characteristics:

  • Random Mapping: A baseline approach that randomly adds and removes edges while maintaining a constant edge count.
  • Vertex-Similarity Mapping: Utilizes the Resource Allocation (RA) index to identify structurally similar nodes, prioritizing edge additions between similar nodes and removals between dissimilar ones.
  • Motif-Random Mapping: Focuses on motifs—small, recurring sub-structures like triads or quads. It performs edge swaps within these motifs to maintain local connectivity patterns.
  • Motif-Similarity Mapping: The most sophisticated approach, combining motif-based swapping with similarity scores to ensure structural changes are logically consistent with the graph's topology.
The structural mapping process: selecting candidate motifs, computing addition weights based on similarity (RA), and sampling edges to add or remove to create an augmented graph.

2. The M-Evolve Framework

Generating synthetic data is only the first step. To ensure these graphs contribute positively to model training, M-Evolve employs an iterative "evolutionary" loop:

  1. Augmentation: A pool of "weakly labeled" synthetic graphs is generated from the training set.
  2. Filtration: A Label Reliability ($r$) metric is calculated for each synthetic graph. This metric assesses how well a synthetic sample aligns with its assigned label based on the classifier's current performance on a validation set. Only samples exceeding a threshold $\theta$ are retained.
  3. Retraining: The classifier is retrained on a merged dataset consisting of the original training data and the filtered "fine" augmented data.
  4. Iteration: This process repeats, allowing the model and the dataset to evolve in tandem, refining the decision boundaries.
The M-Evolve framework detailing the iterative loop of graph augmentation, classifier pre-training, label reliability filtration, and model retraining.

Experimental Setup

The framework was evaluated across six small-scale benchmark datasets:

  • Chemical Compounds: MUTAG (188 graphs), PTC-MR (344 graphs), and ENZYMES (600 graphs).
  • Brain Networks: KKI (83 graphs), Peking-1 (85 graphs), and OHSU (79 graphs).

These datasets represent a significant challenge due to their limited sample sizes and high variability in graph scale.

Results and Discussion

Performance Gains

The M-Evolve framework yielded an average accuracy improvement of 3–13% across the tested datasets. Notably, the framework improved performance in 96.81% of experimental combinations, demonstrating its robustness across various model architectures, including SVMs, GNNs, and Graph2vec.

Key Insights

  • Structural Preservation: Motif-Similarity Mapping generally outperformed other methods, confirming that respecting local structures and node similarities is vital for effective graph augmentation.
  • The Role of Filtration: The Label Reliability filter acts as a critical quality control gate. Without it, noisy synthetic data can degrade model performance. The filter ensures that only the most "logical" synthetic samples are used for retraining.
  • Decision Space Smoothing: Visual analysis indicates that M-Evolve helps merge fragmented decision regions. In small datasets, classes often appear as isolated clusters; M-Evolve enables the model to perceive these as continuous, well-defined territories.

Conclusion

M-Evolve provides a generic and effective framework for alleviating overfitting in graph classification tasks. While highly successful on small-scale benchmarks, future work will focus on improving the computational scalability of motif searching for massive networks and exploring more complex generative models, such as GANs or VAEs, within the filtration loop.

Summary updated

BibTeX
@article{zhou2020m,
  author = {Jiajun Zhou and Jie Shen and Shanqing Yu and Guanrong Chen and Qi Xuan},
  title = {{M-Evolve: Structural-Mapping-Based Data Augmentation for Graph Classification}},
  journal = {IEEE Trans. Network Science \& Engineering},
  year = {2020},
  doi = {10.1109/tnse.2020.3032950},
}
Figure