Skip to main content
QUICK REVIEW

[Paper Review] GDDA: Semantic OOD Detection on Graphs under Covariate Shift via Score-Based Diffusion Models

Zhixia He, Chen Zhao|arXiv (Cornell University)|Oct 23, 2024
Advanced Text Analysis TechniquesComputer Science3 citations
TL;DR

This paper proposes GDDA, a two-phase framework for graph-level semantic OOD detection under covariate shift, using disentangled graph representation learning and score-based diffusion models to generate pseudo-in-distribution and pseudo-out-of-distribution representations. GDDA achieves state-of-the-art performance, improving AUROC by up to 14.47% on benchmark datasets compared to prior methods.

ABSTRACT

Out-of-distribution (OOD) detection poses a significant challenge for Graph Neural Networks (GNNs), particularly in open-world scenarios with varying distribution shifts. Most existing OOD detection methods on graphs primarily focus on identifying instances in test data domains caused by either semantic shifts (changes in data classes) or covariate shifts (changes in data features), while leaving the simultaneous occurrence of both distribution shifts under-explored. In this work, we address both types of shifts simultaneously and introduce a novel challenge for OOD detection on graphs: graph-level semantic OOD detection under covariate shift. In this scenario, variations between the training and test domains result from the concurrent presence of both covariate and semantic shifts, where only graphs associated with unknown classes are identified as OOD samples (OODs). To tackle this challenge, we propose a novel two-phase framework called Graph Disentangled Diffusion Augmentation (GDDA). The first phase focuses on disentangling graph representations into domain-invariant semantic factors and domain-specific style factors. In the second phase, we introduce a novel distribution-shift-controlled score-based generative diffusion model that generates latent factors outside the training semantic and style spaces. Additionally, auxiliary pseudo-in-distribution (InD) and pseudo-OOD graph representations are employed to enhance the effectiveness of the energy-based semantic OOD detector. Extensive empirical studies on three benchmark datasets demonstrate that our approach outperforms state-of-the-art baselines.

Motivation & Objective

  • Address the challenge of detecting out-of-distribution (OOD) graphs when both semantic shifts (unknown classes) and covariate shifts (feature distribution changes) occur simultaneously.
  • Develop a method that maintains robust OOD detection performance in open-world scenarios where test domains are unknown and inaccessible during training.
  • Overcome limitations of existing methods that focus only on one type of distribution shift (semantic or covariate) or require exposure to OOD data during training.
  • Enhance the performance of energy-based OOD detectors through auxiliary pseudo-InD and pseudo-OOD graph representations generated via diffusion modeling.
  • Enable effective disentanglement of graph representations into domain-invariant semantic factors and domain-specific style factors to improve generalization under distribution shifts.

Proposed method

  • Disentangle graph representations into semantic factors (c) and style factors (s) using two encoders, E_c and E_s, followed by reconstruction via a decoder D.
  • Introduce alternative style factors s' sampled from a Gaussian distribution and reconstruct representations using c concatenated with s and c with s' to enforce disentanglement.
  • Train a score-based diffusion model that generates latent factors outside the training semantic and style spaces by controlling perturbations via λ_c.
  • Control distribution shifts in the diffusion process by setting λ_c = 0 (in-distribution) and λ_c ≠ 0 (out-of-distribution), generating corresponding c_ind and c_ood.
  • Combine perturbed semantic factors (c_ood) with perturbed style factors (s_ood) and decode them into pseudo-OOD representations using a pre-trained decoder.
  • Use both pseudo-InD and pseudo-OOD representations as auxiliary signals to enhance the energy-based OOD detector’s ability to distinguish known from unknown classes.
Figure 1: Illustration of InD and semantic OOD graphs under covariate shift. In the GOOD-CMNIST dataset [ 1 ] , digit numbers represent the semantic classes, and digit colors represent domain variations. The training graphs span multiple domains (red and yellow), each containing known classes (2 and
Figure 1: Illustration of InD and semantic OOD graphs under covariate shift. In the GOOD-CMNIST dataset [ 1 ] , digit numbers represent the semantic classes, and digit colors represent domain variations. The training graphs span multiple domains (red and yellow), each containing known classes (2 and

Experimental results

Research questions

  • RQ1How can graph-level OOD detection be effectively performed when both semantic shifts and covariate shifts co-occur in test data?
  • RQ2Can disentangled representation learning improve the robustness of OOD detection under joint distribution shifts?
  • RQ3To what extent can score-based diffusion models generate meaningful, distribution-shift-controlled pseudo-OOD samples for improving detector generalization?
  • RQ4Does the inclusion of auxiliary pseudo-InD and pseudo-OOD representations significantly improve the performance of energy-based OOD detectors on graphs?
  • RQ5How does the proposed GDDA framework compare to state-of-the-art OOD detection and generalization methods under covariate shift?

Key findings

  • GDDA achieves state-of-the-art AUROC performance across three benchmark datasets, with improvements of 10.01%, 5.39%, and 14.47% on GOOD-CMNIST, GOOD-SST2, and ogbg-molbbbp, respectively, compared to the best baseline.
  • The method outperforms the energy-based detector by 2.44%, 1.90%, and 6.69% in AUROC on GOOD-CMNIST, GOOD-SST2, and ogbg-molbbbp, respectively, demonstrating the effectiveness of the auxiliary pseudo-representations.
  • Abllation studies show that removing either pseudo-InD or pseudo-OOD representations degrades performance, with pseudo-OOD contributing more significantly to detection improvement.
  • t-SNE visualization confirms that pseudo-InD representations extend vertically, while pseudo-OOD representations expand horizontally, indicating effective exploration of the latent space under distribution shifts.
  • The open-set domain generalization baseline SCONE performs poorly on datasets with smaller shifts, suggesting limited robustness compared to GDDA’s consistent performance across diverse shift scenarios.
  • GDDA is the first method to jointly address both semantic and covariate shifts in graph-level OOD detection without requiring access to OOD data during training.
Figure 2: An overview of GDDA framework comprising two phases. ( Left ) In the first phase, two encoders $\bm{E}_{c}$ and $\bm{E}_{s}$ are employed to disentangle the graph representations $\mathbf{h}$ into semantic factors $\mathbf{c}$ and style factors $\mathbf{s}$ . We sample alternative style fa
Figure 2: An overview of GDDA framework comprising two phases. ( Left ) In the first phase, two encoders $\bm{E}_{c}$ and $\bm{E}_{s}$ are employed to disentangle the graph representations $\mathbf{h}$ into semantic factors $\mathbf{c}$ and style factors $\mathbf{s}$ . We sample alternative style fa

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.