PAC Learnability under Explanation-Preserving Graph Perturbations

Xu Zheng, Farhad Shirani, Tianchun Wang, Shouwei Gao, Wenqian Dong, Wei Cheng, Dongsheng LuoarXiv 2024 · DOI · arXiv

Abstract

This paper investigates the theoretical and practical implications of leveraging explanation-preserving perturbations to improve the sample complexity of Graph Neural Networks (GNNs). By identifying and preserving the "explanation" subgraphs—the specific structural motifs that determine a graph's label—the authors demonstrate that learning can be made significantly more efficient. We introduce the concept of Explanation-Assisted Empirical Risk Minimization (EA-ERM) and provide a theoretical framework based on VC dimension to quantify these gains. Furthermore, we propose a practical data augmentation strategy and identify a critical "augmentation trap" where out-of-distribution perturbations can degrade model performance.

Introduction

Graph Neural Networks (GNNs) are increasingly utilized for high-stakes predictions in chemistry, biology, and social network analysis. However, standard training via Empirical Risk Minimization (ERM) often requires vast amounts of labeled data because the model must discern relevant patterns from complex, noisy graph structures. In many domains, a graph's label is determined by a small, specific subgraph (an "explanation" or "motif"), such as a functional group in a molecule. This research asks: if we can identify these explanations, can we formally prove that learning becomes easier, and how can we best utilize this knowledge during training?

Theoretical Framework: Explanation-Assisted Learning

The authors approach this problem through the lens of Probably Approximately Correct (PAC) Learnability. They introduce two primary strategies:

  1. Explanation-Assisted ERM (EA-ERM): A learning rule where the model is constrained to provide invariant classifications for any graph containing the same explanation subgraph. To measure the complexity of this task, the authors define the Explanation-Assisted VC Dimension ($VC_{EA}$). They prove that $VC_{EA}$ can be significantly smaller than the standard VC dimension, implying a drastic reduction in the number of samples required to reach a target error rate.
  2. Explanation-Assisted Data Augmentation (DA-ERM): This strategy enlarges the training set by perturbing "irrelevant" edges (those not part of the explanation). While intuitive, the authors provide a surprising theoretical finding: if these augmented graphs are "out-of-distribution" (OOD) relative to the original data, the model's performance can actually suffer—a phenomenon termed the "Augmentation Trap."

Practical Algorithm and Implementation

Since ground-truth explanations are rarely available in real-world scenarios, the authors propose a practical training loop that utilizes automated GNN explainers (such as GNNExplainer or PGExplainer).

The proposed training framework using explanation-preserving perturbations.

As illustrated in Figure 1, the framework involves estimating the explanation subgraph $\Psi(\cdot)$ for an input graph $\bar{G}$. This estimate is used to generate perturbed graphs $\bar{G}_i$ through a perturbation function $\Pi(\cdot)$. The model is then trained using a weighted loss function that combines the cross-entropy (CE) loss of the original graph and its perturbed variants, enforcing label invariance across the explanation-preserving transformations.

Experimental Evaluation

The researchers evaluated their approach on synthetic benchmarks (BA-2motifs) and real-world molecular datasets (MUTAG, Benzene, Fluoride, Alkane). The results consistently showed that explanation-assisted methods outperform vanilla GNNs and standard augmentation techniques like Edge Dropping.

Accuracy vs. training samples for GCN and GIN on BA-2motifs and Benzene datasets.

As shown in Figure 5, the data efficiency gains are particularly striking in low-sample regimes. On the BA-2motifs dataset, a GIN model using in-distribution explanation augmentation reached over 90% accuracy with only 4 training samples, whereas the standard model required significantly more data to achieve comparable results. The experiments also validated the "Augmentation Trap" theory: when perturbations moved the graphs too far from the original distribution (OOD Aug.), performance gains were marginalized or reversed.

Discussion and Conclusion

This work provides a rigorous foundation for why and how explanations improve GNN training. The core insight is that knowing the explanation is equivalent to knowing what structural information is irrelevant, allowing the model to ignore noise and focus on causal motifs.

However, the method's success is tied to the quality of the underlying explainer. If an explainer incorrectly identifies the motif, the resulting perturbations may destroy the actual label-determining structure, leading to incorrect training signals. Future research should focus on developing "distribution-aware" explainers that ensure perturbations remain within the manifold of the training data, further mitigating the risks of the augmentation trap. Ultimately, this framework paves the way for more sample-efficient and robust graph learning in data-scarce domains.

Summary updated

Abstract

Graphical models capture relations between entities in a wide range of applications including social networks, biology, and natural language processing, among others. Graph neural networks (GNN) are neural models that operate over graphs, enabling the model to leverage the complex relationships and dependencies in graph-structured data. A graph explanation is a subgraph which is an `almost sufficient' statistic of the input graph with respect to its classification label. Consequently, the classification label is invariant, with high probability, to perturbations of graph edges not belonging to its explanation subgraph. This work considers two methods for leveraging such perturbation invariances in the design and training of GNNs. First, explanation-assisted learning rules are considered. It is shown that the sample complexity of explanation-assisted learning can be arbitrarily smaller than explanation-agnostic learning. Next, explanation-assisted data augmentation is considered, where the training set is enlarged by artificially producing new training samples via perturbation of the non-explanation edges in the original training set. It is shown that such data augmentation methods may improve performance if the augmented data is in-distribution, however, it may also lead to worse sample complexity compared to explanation-agnostic learning rules if the augmented data is out-of-distribution. Extensive empirical evaluations are provided to verify the theoretical analysis.
BibTeX
@misc{zheng2024pac,
  author = {Xu Zheng and Farhad Shirani and Tianchun Wang and Shouwei Gao and Wenqian Dong and Wei Cheng and Dongsheng Luo},
  title = {{PAC Learnability under Explanation-Preserving Graph Perturbations}},
  year = {2024},
  eprint = {2402.05039},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05039},
}
Figure