Graph Rationalization with Environment-based Augmentations

Gang Liu, Tong Zhao, Jiaxin Xu, Tengfei Luo, Meng Jiang · DOI

TL;DR

This paper introduces a novel framework called GREA that enhances graph rationalization for property prediction by using "environment-based augmentations." By creating virtual data examples through environment removal and replacement in a latent space, GREA improves the accuracy and interpretability of graph neural networks, especially on smaller datasets, outperforming existing methods.

What Problem Does This Paper Address?

Machine learning models, particularly Graph Neural Networks (GNNs), are increasingly used for predicting properties of molecules and polymers. However, these models can suffer from overfitting and poor generalization, especially with limited data. Graph rationalization aims to address this by identifying the most important subgraph structures (rationales) that explain a prediction, thereby improving interpretability and robustness. Existing methods for graph rationalization often struggle with small datasets and can be computationally expensive. They also tend to focus solely on the rationale subgraph, potentially missing valuable information from the rest of the graph (the "environment"). This paper tackles the challenge of improving graph rationalization by leveraging data augmentation techniques that specifically consider the graph's environment.

Methods

The core innovation of this work is the Graph Rationalization enhanced by Environment-based Augmentations (GREA) framework. GREA operates in a latent space to avoid the computational burden of explicitly decoding and encoding graph structures.

Here's a breakdown of the key methods:

  • Rationale-Environment Separation: A GNN-based separator (GNN₁ and MLP₁) is used to identify a "rationale subgraph" (the part that best explains the property) and an "environment subgraph" (the remaining part) for each input graph. This separation is done by learning node-level masks indicating the probability of a node belonging to the rationale.
  • Latent Space Representation Learning: Another GNN (GNN₂) generates contextualized node representations for the entire graph. These representations are then used to derive latent representations for the rationale subgraph ($h^{(r)}$) and the environment subgraph ($h^{(e)}$).
  • Environment-based Augmentations:
    • Environment Removal: The rationale subgraph's representation ($h^{(r)}$) is used directly for property prediction, mimicking existing methods that discard the environment.
  • Environment Replacement: This is the novel augmentation technique. The rationale subgraph's representation ($h^{(r)}$) is combined (using an aggregation function like sum pooling) with the environment subgraph's representation ($h^{(e)}$) from another graph in the batch. This creates augmented examples ($h^{(i,j)}$) that are trained to predict the original graph's label. The idea is that by exposing the model to different environments for the same rationale, it learns to rely more on the rationale itself.
  • Joint Optimization: The framework is trained by minimizing losses from both environment removal and environment replacement augmentations, along with a regularization term to control the size of the rationale.

Datasets

The paper evaluates GREA on a combination of polymer and molecule datasets:

  • Polymer Datasets (4):

    • Glass Temp (Glass Transition Temperature)
    • Melting Temp (Melting Temperature)
    • PolyDensity (Polymer Density)
    • O₂ Perm (Oxygen Permeability) These datasets are smaller, posing a significant challenge for model generalization.
  • Molecule Datasets (7):

    • ogbg-HIV (HIV virus replication inhibition)
    • ogbg-ToxCast (Toxicological properties)
    • ogbg-Tox21 (Toxicity measurements)
    • ogbg-BBBP (Blood-brain barrier permeability)
    • ogbg-BACE (Beta-secretase 1 inhibition)
    • ogbg-ClinTox (FDA approval status)
    • ogbg-SIDER (Drug side effects) These are standard benchmarks from the Open Graph Benchmark (OGB) and MoleculeNet.

The paper uses a scaffold splitting procedure for molecule datasets, which is a more realistic way to evaluate generalization by separating structurally distinct molecules.

Key Insights and Ideas

  • The "Environment" Matters: The paper's central insight is that the non-rationale parts of a graph (the "environment") are not just noise but can be actively used to improve the learning of rationales. By creating augmented data where the environment is varied, the model is forced to learn more robust and generalizable rationales.
  • Latent Space Augmentation is Efficient: Performing augmentations directly on latent representations, rather than explicitly constructing and encoding augmented graphs, significantly reduces computational complexity. This is crucial for handling large datasets or complex graph structures.
  • Interpretability and Accuracy Go Hand-in-Hand: The study demonstrates that by improving the accuracy of graph rationalization, the identified rationales become more meaningful and aligned with domain expertise, leading to better interpretability.
  • Small Datasets Benefit Most: The environment-based augmentation strategy is particularly effective on smaller datasets (like the polymer datasets) where traditional methods struggle with overfitting.

Key Results

  • State-of-the-Art Performance: GREA consistently outperforms existing graph pooling, representation learning, and graph rationalization methods on both polymer and molecule datasets, achieving the highest R² and smallest RMSE for polymer regression and the highest AUC for molecule classification.
  • Significant Improvement on Polymer Data: For instance, on the O₂ Perm dataset, GREA achieved an R² of 0.716±0.016, significantly outperforming the baseline DIR (0.380±0.214).
  • Efficiency Gains: GREA is substantially faster than DIR, especially as batch sizes increase, due to its latent-space augmentation approach.
  • Robustness to Hyperparameters: The performance of GREA is shown to be relatively insensitive to the choice of augmentation hyperparameters (α, β) and rationale size (γ), making it easier to tune.
  • Qualitative Validation: Case studies on polymer data visualize rationales identified by GREA, showing they are more coherent and align better with chemical domain expertise than those from DIR, correctly identifying functional groups that influence oxygen permeability.

Limitations and Future Work

  • Computational Complexity of Explicit Decoding: While GREA avoids explicit decoding for augmentation, the paper notes that prior methods like DIR suffer from high computational complexity in this regard.
  • Hyperparameter Tuning: Although GREA is shown to be less sensitive to certain hyperparameters, optimal tuning for α, β, and the aggregation function (AGG) might still be necessary for peak performance.
  • Future Work: The paper suggests exploring more sophisticated aggregation functions for combining rationale and environment representations and investigating the application of GREA to other graph-based tasks beyond property prediction. The authors also highlight the potential for GREA to improve generalization on out-of-distribution data.

Summary updated

BibTeX
@inproceedings{liu2022graph,
  author = {Gang Liu and Tong Zhao and Jiaxin Xu and Tengfei Luo and Meng Jiang},
  title = {{Graph Rationalization with Environment-based Augmentations}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
  doi = {10.1145/3534678.3539347},
}
Figure