Abstract
Graph Transplant is a novel data augmentation technique for graph classification that adapts the popular "Mixup" strategy to irregular graph structures. By utilizing node saliency to select and swap subgraphs between instances, it creates semantically meaningful training samples that preserve critical local motifs. This approach improves model accuracy, robustness, and calibration across various graph neural network architectures and diverse datasets, ranging from molecular biology to social networks.
Introduction
Deep learning models are typically data-hungry, requiring extensive training sets to generalize effectively. In computer vision, techniques like Mixup—which linearly interpolates two images—have become standard for improving generalization. However, applying Mixup to graphs is challenging due to their irregular sizes, lack of fixed node ordering, and varying connectivity.
Existing graph augmentation methods often rely on "structural noise," such as randomly dropping nodes or flipping edges. These methods are context-agnostic and may inadvertently remove critical structural information. For instance, deleting a key functional group in a molecule might change its chemical properties while the label remains unchanged, leading to misleading training data. Graph Transplant addresses this by performing mixup in the data space while preserving the local structures that define a graph's category.
Methodology
The Graph Transplant algorithm consists of four primary stages designed to create semantically coherent augmented samples:
- Node Saliency Mapping: To avoid random mixing, the algorithm calculates a saliency score for every node, defined as the $\ell_2$ norm of the gradient of the classification loss with respect to node features. This identifies the components most critical to the model's classification decision.
- The Transplant (Subgraph Mixing): A "salient" $K$-hop subgraph is selected from a source graph (the "donor") and "stitched" into a destination graph, replacing a randomly removed $K$-hop subgraph.
- Connectivity Strategies: To integrate the new subgraph, two variants are proposed: Degree Preservation (DP), which matches original node degrees, and Edge Prediction (EP), which uses a trainable neural module to predict edge probabilities between new and existing nodes based on their features.
- Adaptive Label Mixing: Unlike standard 50/50 splits, the new label is weighted by the ratio of total saliency between the transplanted subgraph and the remaining host graph. This ensures the final label reflects the relative importance of the combined components.
Results and Discussion
The authors evaluated Graph Transplant across nine benchmark datasets, including social networks (COLLAB), bioinformatics (NCI1, Mutagenicity, ENZYMES), and computer vision (COIL-DEL). This broad evaluation ensures the method's effectiveness across different graph types, from sparse social networks to dense molecular structures.
Performance and Scale
Graph Transplant consistently outperformed vanilla GNNs and standard augmentations like DropNode or EdgePerturbation across multiple architectures (GCN, GIN, GAT). On the large-scale ogbg-ppa dataset (150k samples), it improved accuracy from 0.638 to 0.680, a significant jump for this benchmark.
Calibration and Robustness
Beyond accuracy, models trained with Graph Transplant demonstrated better calibration, showing lower Expected Calibration Error (ECE). This indicates that the predicted probabilities more accurately reflect actual likelihoods. Furthermore, the method improved resistance to adversarial attacks (specifically the GradArgMax attack), suggesting the model learns fundamental structural features rather than overfitting to noise.
Conclusion
Graph Transplant introduces a principled way to apply Mixup to graphs by using saliency as a guide. By preserving local motifs and weighting labels based on component importance, it provides a robust augmentation strategy that outperforms context-agnostic methods. While the method introduces some computational overhead due to gradient calculations and auxiliary module training, its benefits in generalization and robustness are significant. Future work may explore more sophisticated connectivity strategies or extend this transplant logic to other graph-related tasks beyond classification.
Summary updated