Explanation-Preserving Augmentation for Semi-Supervised Graph Representation Learning

Zhuomin Chen, Jingchao Ni, Hojat Allah Salehi, Xu Zheng, Esteban Schafir, Farhad Shirani, Dongsheng Luo

Abstract

Self-supervised graph representation learning (GRL) typically generates paired graph augmentations from each graph to infer similar representations for augmentations of the same graph, but distinguishable representations for different graphs. While effective augmentation requires both semantics-preservation and data-perturbation, most existing GRL methods focus solely on data-perturbation, leading to suboptimal solutions. To fill the gap, in this paper, we propose a novel method, Explanation-Preserving Augmentation (EPA), which leverages graph explanation for semantics-preservation. EPA first uses a small number of labels to train a graph explainer, which infers the subgraphs that explain the graph’s label. Then these explanations are used for generating semantics-preserving augmentations for boosting self-supervised GRL. Thus, the entire process, namely EPA-GRL, is semi-supervised. We demonstrate theoretically, using an analytical example, and through extensive experiments on a variety of benchmark datasets, that EPA-GRL outperforms the state-of-the-art (SOTA) GRL methods that use semantics-agnostic augmentations.

Introduction

In Graph Representation Learning (GRL), contrastive learning has emerged as a powerful paradigm. By creating augmented views of a graph and training a model to recognize their shared identity, we can learn robust features without extensive labeling. However, standard GRL methods often rely on "semantics-agnostic" augmentations, such as randomly dropping nodes or edges. This approach is fundamentally flawed: in a molecular graph, for instance, randomly deleting a functional group can destroy the very semantic signal the model is supposed to learn. This leads to suboptimal representations derived from corrupted data.

The EPA-GRL Framework

To address this, we propose Explanation-Preserving Augmentation (EPA), a two-stage semi-supervised framework designed to ensure that augmentations preserve the semantic core of the graph.

The EPA-GRL framework: (left) pre-training the explainer on labeled data; (right) using the frozen explainer to guide semantics-preserving augmentation for contrastive learning.

The process consists of two main phases:

  1. Pre-training the Explainer: A small set of labeled data is used to train a Graph Neural Network (GNN) and an associated explainer model. This explainer learns to identify the "explanation subgraph"—the specific structural elements most critical for classification.
  2. Explanation-Preserving GRL: On the larger, unlabeled dataset, the frozen explainer partitions each graph into an explanation subgraph (the semantic core) and a marginal subgraph (the context). Standard perturbations—like node dropping or edge masking—are applied exclusively to the marginal subgraph, leaving the semantic core intact.

This ensures that augmented views inherit the original graph's semantics while still providing the variance necessary for contrastive learning.

Experimental Evaluation

We evaluated EPA-GRL across a diverse range of benchmarks, including real-world chemical datasets (MUTAG, Benzene, Alkane-Carbonyl), large-scale synthetic datasets (BA-2motifs), and social network graphs (REDDIT-BINARY). Datasets like MUTAG and Benzene were chosen specifically because they contain ground-truth subgraphs, allowing us to verify the quality of the explanations generated.

Results and Discussion

Our experiments reveal that EPA-GRL consistently outperforms state-of-the-art GRL methods that use random augmentations. A key insight is the "Aha" moment regarding random noise: as shown in Figure 1, a pre-trained GNN's accuracy remains stable when using EPA-Aug but plummets with Random-Aug. This confirms that random perturbations frequently destroy the essential signal.

Comparison of EPA-Aug vs. Random-Aug: (a) classification accuracy remains stable with EPA-Aug but drops significantly with Random-Aug; (b) t-SNE visualization shows EPA-Aug embeddings are closer to the original data distribution.

Key findings include:

  • Performance Gains: EPA-GRL improved accuracy on the BA-2motifs dataset by an average of 17.3% over standard random augmentation.
  • Label Efficiency: The explainer requires only a "handful" of labels (as few as 50) to significantly enhance the representation learning of thousands of unlabeled graphs.
  • Fidelity Correlation: There is a direct correlation between the quality of the explanation and the final accuracy of the GRL model, highlighting the importance of semantics-preservation.

Conclusion

EPA-GRL demonstrates that "where" a graph is perturbed is just as important as "how much" it is perturbed. By leveraging a semi-supervised explainer to protect the semantic core of a graph, we can achieve more robust and accurate representations. Future work may explore unsupervised explainers to eliminate the need for initial labels, potentially making the framework fully self-supervised while remaining semantics-aware.

Summary updated

BibTeX
@inproceedings{chen2026explanation,
  author = {Zhuomin Chen and Jingchao Ni and Hojat Allah Salehi and Xu Zheng and Esteban Schafir and Farhad Shirani and Dongsheng Luo},
  title = {{Explanation-Preserving Augmentation for Semi-Supervised Graph Representation Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i25.39183},
}
Figure