Skip to content

[CVPR 2024] Improving out-of-distribution generalization in graphs via hierarchical semantic environments

Notifications You must be signed in to change notification settings

qkrdmsghk/GOODHSE

Repository files navigation

Improving out-of-distribution generalization in graphs via hierarchical semantic environments

Paper Github

Motivation

The complex nature of molecule graphs poses unique challenges to out-of-distribution (OOD) generalization, differentiating them from images and general graphs:

  1. Molecules with Similar Structures Can Have Different Functions:
  • Functional Group: Acts as a causal subgraph.
  • Scaffold: Serves as an environmental (noise) subgraph.
  1. Semantic Environments in OOD:
  • Environments are related.
  • Environments are hierarchical.

Figure 1. Challenges on molecule graphs in out-of-distribution setting.

Challenges

Existing methods use flat enviornments to conduct the graph invariant learning. There are two limitations in flat environment infernece:

  1. Provided (Real): neglect local similarity among the numerous environments.
  2. Inference (Infer #2): Inferring from a small number of environments may fail to capture global similarity and interrelationships among the environments.

Figure 2. (a) Results on IC50-SCA dataset from DrugOOD. (b) Flat environments from existing approaches. (c) Hierarchical environments from our methods. For visualization, we set #real environments as 10.

Instructions

Figure 3.Our Framework consists of (a) Hierarchical Stochastic Subgraph Generation, (b) Hierarchical Semantic Environments, (c) Robust GIL with Hierarchical Semantic Environments.

Installation and data preparation

Our code is based on the following libraries:

torch==1.9.0+cu111
torch-geometric==2.0.2

plus the DrugOOD benchmark repo.

The data used in the paper can be obtained following these instructions.

Reproduce results

We provide the hyperparamter tuning and evaluation details in the paper and appendix. In the below we give a brief introduction of the commands and their usage in our code. We provide the corresponding running scripts in the script folder.

Simply run

bash run.sh 0 icassay

with corresponding datasets and model specifications.

Ack: The readme is inspired by CIGA. 😄

About

[CVPR 2024] Improving out-of-distribution generalization in graphs via hierarchical semantic environments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published