[论文解读] GDDA: Semantic OOD Detection on Graphs under Covariate Shift via Score-Based Diffusion Models
本文提出GDDA,一种用于在协变量偏移下进行图级别语义OOD检测的两阶段框架,通过解耦图表示学习与基于分数的扩散模型,生成伪内分布(in-distribution)和伪外分布(out-of-distribution)表示。GDDA在基准数据集上实现了最先进性能,相较于先前方法,AUROC最高提升14.47%。
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.
研究动机与目标
- 解决在同时存在语义偏移(未知类别)和协变量偏移(特征分布变化)时检测图的分布外(OOD)图的挑战。
- 开发一种方法,以在测试领域未知且训练期间不可访问的开放世界场景中保持稳健的OOD检测性能。
- 克服现有方法仅关注一种类型分布偏移(语义或协变量)或需要在训练期间接触OOD数据的局限性。
- 通过扩散建模生成的辅助伪内分布(InD)和伪外分布(OOD)图表示,提升基于能量的OOD检测器性能。
- 通过有效解耦图表示为域不变语义因子和域特定风格因子,提升在分布偏移下的泛化能力。
提出的方法
- 使用两个编码器 E_c 和 E_s 将图表示解耦为语义因子(c)和风格因子(s),随后通过解码器 D 进行重建。
- 引入从高斯分布采样的替代风格因子 s',并通过将 c 与 s 或 c 与 s' 进行拼接后重建表示,以强制实现解耦。
- 训练一个基于分数的扩散模型,通过控制 λ_c 的扰动,在训练的语义和风格空间之外生成潜在因子。
- 通过设置 λ_c = 0(内分布)和 λ_c ≠ 0(外分布)来控制扩散过程中的分布偏移,从而生成对应的 c_ind 和 c_ood。
- 将扰动后的语义因子(c_ood)与扰动后的风格因子(s_ood)结合,并通过预训练解码器解码为伪外分布表示。
- 将伪内分布和伪外分布表示作为辅助信号,增强基于能量的OOD检测器对已知与未知类别区分的能力。
![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](https://ar5iv.labs.arxiv.org/html/2410.17526/assets/x1.png)
实验结果
研究问题
- RQ1当测试数据中同时存在语义偏移和协变量偏移时,如何有效进行图级别OOD检测?
- RQ2解耦表示学习是否能提升在联合分布偏移下的OOD检测鲁棒性?
- RQ3基于分数的扩散模型在多大程度上能生成有意义的、受分布偏移控制的伪外分布样本,以提升检测器泛化能力?
- RQ4引入辅助伪内分布和伪外分布表示是否能显著提升基于能量的OOD检测器在图上的性能?
- RQ5所提出的GDDA框架在协变量偏移下与最先进OOD检测和泛化方法相比表现如何?
主要发现
- GDDA在三个基准数据集上均达到最先进AUROC性能,相较于最佳基线方法,在GOOD-CMNIST、GOOD-SST2和ogbg-molbbbp上的提升分别达到10.01%、5.39%和14.47%。
- 在GOOD-CMNIST、GOOD-SST2和ogbg-molbbbp上,相较于基线能量检测器,AUROC分别提升2.44%、1.90%和6.69%,证明了辅助伪表示的有效性。
- 消融研究显示,移除任一伪内分布或伪外分布表示均导致性能下降,其中伪外分布表示对检测性能提升的贡献更为显著。
- t-SNE可视化结果表明,伪内分布表示在垂直方向扩展,而伪外分布表示在水平方向扩展,表明在分布偏移下有效探索了潜在空间。
- 开放集域泛化基线SCONE在偏移较小的数据集上表现较差,表明其鲁棒性有限,而GDDA在多样化偏移场景下保持一致的优异表现。
- GDDA是首个在图级别OOD检测中无需训练期间访问OOD数据即可同时应对语义和协变量偏移的方法。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。