GOLD: Graph Out-of-Distribution Detection via Implicit Adversarial Latent Generation
Danny Wang, Ruihong Qiu, Guangdong Bai, Zi Huang
Abstract
Despite graph neural networks' (GNNs) great success in modelling graphstructured data, out-of-distribution (OOD) test instances still pose a great challenge for current GNNs. One of the most effective techniques to detect OOD nodes is to expose the detector model with an additional OOD node-set, yet the extra OOD instances are often difficult to obtain in practice. Recent methods for image data address this problem using OOD data synthesis, typically relying on pre-trained generative models like Stable Diffusion. However, these approaches require vast amounts of additional data, as well as one-for-all pre-trained generative models, which are not available for graph data. Therefore, we propose the GOLD framework for graph OOD detection, an implicit adversarial learning pipeline with synthetic OOD exposure without pre-trained models. The implicit adversarial training process employs a novel alternating optimisation framework by training: (1) a latent generative model to regularly imitate the in-distribution (ID) embeddings from an evolving GNN, and (2) a GNN encoder and an OOD detector to accurately classify ID data while increasing the energy divergence between the ID embeddings and the generative model's synthetic embeddings. This novel approach implicitly transforms the synthetic embeddings into pseudo-OOD instances relative to the ID data, effectively simulating exposure to OOD scenarios without auxiliary data. Extensive OOD detection experiments are conducted on five benchmark graph datasets, verifying the superior performance of GOLD without using real OOD data compared with the state-of-the-art OOD exposure and non-exposure baselines. 1 Recent work has made significant strides in developing OOD detection techniques tailored for graph-
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Rethinking Graph Generalization through the Lens of Sharpness-Aware Minimization cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Rethinking Graph Generalization through the Lens of Sharpness-Aware Minimization cites Energy-based Out-of-distribution Detection
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
- Uncertainty Estimation on Graphs with Structure Informed Stochastic Partial Differential Equations cites Energy-based Out-of-distribution Detection
- Coarse-to-Fine Open-Set Graph Node Classification with Large Language Models cites Energy-based Out-of-distribution Detection
- Coarse-to-Fine Open-Set Graph Node Classification with Large Language Models cites ReAct: Out-of-distribution Detection With Rectified Activations
- ReAct: Out-of-distribution Detection With Rectified Activations cites Energy-based Out-of-distribution Detection
- Both Topology and Text Matter: Revisiting LLM-guided Out-of-Distribution Detection on Text-attributed Graphs cites Energy-based Out-of-distribution Detection
- Text Meets Topology: Rethinking Out-of-distribution Detection in Text-Rich Networks cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Text Meets Topology: Rethinking Out-of-distribution Detection in Text-Rich Networks cites Energy-based Out-of-distribution Detection
Cited by top-tier papers8
- Uncertainty Estimation on Graphs with Structure Informed Stochastic Partial Differential EquationsFred Xu, Thomas MarkovichNeurIPS 2025 · 5 citations
- Text Meets Topology: Rethinking Out-of-distribution Detection in Text-Rich NetworksDanny Wang, Ruihong Qiu, Guangdong Bai, Zi HuangEMNLP 2025 · 1 citation
- Rethinking Graph Generalization through the Lens of Sharpness-Aware MinimizationYang Qiu, Yixiong Zou, Jun WangWWW 2026
- Coarse-to-Fine Open-Set Graph Node Classification with Large Language ModelsXueqi Ma, Xingjun Ma, Sarah Monazam Erfani, Danilo P. Mandic et al.AAAI 2026
- Both Topology and Text Matter: Revisiting LLM-guided Out-of-Distribution Detection on Text-attributed GraphsYinlin Zhu, Di Wu, Xu Wang, Guocong Quan et al.KDD 2026
Builds on44
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
- ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
Related papers
- Learning to Explore: Policy-Guided Outlier Synthesis for Graph Out-of-Distribution DetectionLi Sun, Lanxu Yang, Jiayu Tian, Bowen Fang et al.AAAI 2026
- From Subtle to Significant: Prompt-Driven Self-Improving Optimization in Test-Time Graph OOD DetectionLuzhi Wang, Xuanshuo Fu, He Zhang, Chuang Liu et al.AAAI 2026
- A Data-centric Framework to Endow Graph Neural Networks with Out-Of-Distribution Detection AbilityYuxin Guo, Cheng Yang, Yuluo Chen, Jixi Liu et al.KDD 2023 · 26 citations
- Energy-based Out-of-Distribution Detection for Graph Neural NetworksQitian Wu, Yiting Chen, Chenxiao Yang, Junchi YanICLR 2023 · 8 citations
- Graph Out-of-Distribution Detection Goes Neighborhood ShapingTianyi Bao, Qitian Wu, Zetian Jiang, Yiting Chen et al.ICML 2024 · 11 citations
