AugWard: Augmentation-Aware Representation Learning for Accurate Graph Classification

Minjun Kim, Jaehyeon Choi, SeungJoo Lee, Jinhong Jung, U Kang

Abstract

Graph Neural Networks (GNNs) often struggle with overfitting, particularly in data-constrained environments. While data augmentation is a common remedy, standard practices typically enforce augmentation invariance—forcing the model to produce identical representations for both original and perturbed graphs. This paper introduces AugWard, a framework that shifts the paradigm from augmentation invariance to augmentation awareness. By training models to recognize the magnitude of structural and feature-based changes using advanced graph distance metrics, AugWard produces more expressive and transferable representations. Our evaluation across supervised, semi-supervised, and transfer learning tasks demonstrates that AugWard consistently outperforms existing state-of-the-art methods.

1. Introduction

Graph classification is a fundamental task in modern data science, with applications ranging from molecular toxicity prediction to community detection in social networks. Despite their power, Graph Neural Networks (GNNs) are prone to overfitting when training data is scarce. Data augmentation—the process of creating synthetic training examples by randomly dropping nodes or edges—is the standard defense against this issue.

However, most current GNN frameworks rely on the principle of augmentation invariance. This approach assumes that an augmented graph should result in the same internal representation as its original counterpart. This paper argues that this assumption is fundamentally flawed, leading to a loss of valuable structural information and failing to account for the actual impact of perturbations.

2. The Limitations of Augmentation Invariance

The authors identify two primary weaknesses in the current "invariance-based" approach to graph augmentation:

  1. Loss of Information: By forcing the model to ignore the differences between an original graph and its augmented version, we discard the "augmentation-induced difference." This limits the expressiveness of the learned embeddings, as the model is essentially trained to be blind to specific structural variations.
  2. The "p" Fallacy: Most augmentation strategies rely on a perturbation ratio ($p$) to control the amount of change. However, $p$ is a poor proxy for actual structural change. Due to randomness, two graphs modified with the same $p$ can result in vastly different structural shifts. Standard models fail to distinguish between a minor tweak and a significant structural overhaul if both are labeled with the same $p$.

3. The AugWard Framework

To address these limitations, the authors propose AugWard (Augmentation-Aware Training with Graph Distance and Consistency Regularization). The framework is built upon three core pillars:

3.1 Augmentation-Aware Training (I1)

Instead of enforcing invariance, AugWard utilizes a small auxiliary neural network to predict the "distance" between the original graph’s embedding and the augmented graph’s embedding. This ensures that the distance in the representation space directly reflects the physical difference between the two graphs, making the model "aware" of how much the data has been altered.

3.2 Graph Distance-based Difference (I2)

To provide a reliable ground truth for these differences, AugWard moves beyond the simplistic perturbation ratio. It employs the Fused Gromov-Wasserstein Distance (FGWD). FGWD is a sophisticated metric that simultaneously accounts for changes in node features (e.g., atom types in a molecule) and graph topology (connectivity). This provides a mathematically rigorous measure of how much a graph has truly changed.

3.3 Consistency Regularization (I3)

While the internal representations are encouraged to be distinct and aware of changes, the final classification must remain stable. AugWard applies a consistency regularization loss to ensure that the model predicts the same label for both the original and the modified graph. This creates a nuance where the model can distinguish that a graph has changed while still recognizing that its fundamental identity (class) remains the same.

4. Experimental Evaluation

The researchers conducted an extensive evaluation of AugWard across several learning paradigms:

  • Supervised & Semi-supervised Learning: Tested on 10 datasets from the TUDataset collection, including bioinformatics (DD, PROTEINS, ENZYMES) and social networks (IMDB, REDDIT).
  • Transfer Learning: The model was pre-trained on the ZINC15 dataset (containing 2 million molecules) and subsequently fine-tuned on eight MoleculeNet benchmarks (e.g., HIV, BACE, Tox21) to evaluate its generalization capabilities.

5. Key Insights and Results

5.1 Bridging the Correlation Gap

A significant finding of the study is the "Correlation Gap." In standard GNNs, there is nearly zero correlation between the physical change in a graph and the change in its embedding. AugWard successfully bridges this gap, ensuring that the embedding space faithfully represents the structural transformations occurring during augmentation.

5.2 Performance Gains

  • Supervised Learning: AugWard improved accuracy across all tested augmentation methods (NodeDrop, EdgeDrop, etc.), with average gains of up to 2.13 percentage points.
  • Semi-supervised Learning: In low-data scenarios (10% labels), AugWard provided a performance boost of up to 1.52%p.
  • Transfer Learning: The framework showed its greatest strength here, improving the ROC-AUC of state-of-the-art models by up to 3.71%p on molecular property prediction tasks. This suggests that augmentation-aware features are significantly more robust and transferable.

5.3 Computational Efficiency

Despite the complexity of the FGWD metric, the authors demonstrate that it is computationally practical. Integrating FGWD into the training pipeline adds less than 5% to the total training time, making it a viable solution for large-scale GNN applications.

6. Conclusion and Future Work

AugWard represents a shift in how we approach data augmentation for graphs. By replacing the goal of invariance with the goal of awareness, the framework allows GNNs to learn richer, more descriptive features. While currently focused on graph-level classification, future research may extend this logic to node-level tasks and link prediction. Additionally, exploring automated ways to select optimal augmentation strategies within the AugWard framework remains a promising avenue for further development.

Summary updated

BibTeX
@inproceedings{kim2025augward,
  author = {Minjun Kim and Jaehyeon Choi and SeungJoo Lee and Jinhong Jung and U Kang},
  title = {{AugWard: Augmentation-Aware Representation Learning for Accurate Graph Classification}},
  booktitle = {PAKDD},
  year = {2025},
  url = {https://openreview.net/forum?id=2EVqJsSGwL},
}
Figure