Out-of-Distribution Detection on Graphs: A Survey
Organizations: Zhejiang Normal University, China · Huzhou University, China · Griffith University, Australia · Zhejiang Institute of Optoelectronics, China
Abstract
Graph learning has advanced prediction and discovery across a wide range of relational data applications. In evolving environments, new categories and changes in attributes or relationships can produce out-of-distribution (OOD) inputs on which models make confident but unreliable predictions. Graph out-of-distribution (GOOD) detection identifies such nodes or graphs to support rejection and further assessment. This paper presents the first systematic survey dedicated to GOOD detection. We clarify the problem settings and organize existing methods into six categories according to their primary OOD discrimination mechanisms. The review examines their technical connections, supervision and reference requirements, and conditions of use, alongside representative datasets, OOD constructions, benchmarks, and evaluation metrics. Controlled synthetic comparisons deepen the understanding of detection settings by illustrating how representative methods respond to different distribution shifts and graph conditions. We discuss open challenges and outline future research directions, aiming to provide a common foundation for advancing GOOD detection.
Figures & tables
| Input: a known-class graph from a new domain. | ||
|---|---|---|
| Detection target | IND scope | Task label |
| Semantic novelty | Known classes; domain variation is accepted | IND |
| Domain membership | Graphs from the reference domain | OOD |
| Unit | Domain | Representative sources | OOD Settings in Representative Studies |
| Node | Academic / collaboration | Cora, CoraML, Citeseer, PubMed, DBLP, Coauthor-CS/Physics, ogbn-arxiv | Class holdout, feature/structure interventions, temporal partition [ 8 , 18 ] ; multi-label settings [ 70 ] . |
| Node | Co-purchase | Amazon-Computers, Amazon-Photo | Unknown classes and feature/structure changes [ 8 ] . |
| Node | Social networks | Twitch, Reddit | Regional partition or unknown-class construction [ 8 , 18 ] . |
| Node | Biological / multi-label | ogbn-proteins, PPI, PCG, HumLoc, EukLoc | Feature-based and cross-dataset detection with multi-label targets [ 70 ] . |
| Graph | Molecular | BZR, COX2, AIDS, DHFR; Tox21, SIDER, BBBP, BACE, ESOL, MUV | Cross-dataset detection [ 16 ] ; molecular domain settings [ 87 ] . |
| Graph | Protein / enzyme | ENZYMES, PROTEINS | Cross-dataset graph detection [ 16 ] . |
| Benchmark | Level | Training Setting | OOD Settings | Evaluation Focus |
|---|---|---|---|---|
| GNNSafe [ 8 ] | Node | Labeled IND data; optional outlier exposure | Feature and structural shifts, class holdout, domain and temporal shifts | Detection across different distribution shifts and training settings |
| GOOD-D [ 16 ] | Graph | Unlabeled IND graphs | Cross-dataset IND/OOD graph pairs | Unsupervised graph-level OOD detection |
| UB-GOLD [ 34 ] | Graph | Unsupervised graph-level detection | OOD detection and graph anomaly detection across 35 datasets | Detection performance, robustness, and computational efficiency |
| Synthetic Benchmark (Ours) | Node | IND training, validation, and calibration; method-specific training resources | Controlled feature, structural, semantic, and compound shifts | Detection sensitivity to distribution shifts and graph structure |
| Method | Unit | Detection mechanism | Information used |
|---|---|---|---|
| Representation Shaping | |||
| GOOD-D [ 16 ] | G | Contrastive consistency across node, graph, and group representations | Unlabeled IND training graphs |
| TNT-OOD [ 52 ] | N | Alignment of textual and topological representations | IND node labels; node text and pretrained text representations |
| UniGOOD [ 51 ] | G | Spectral contrastive learning of invariant subgraphs | Labeled IND graphs; an unlabeled graph pool |
| IND Distribution Modeling | |||
| GraphDE [ 29 ] | G | Generative modeling with latent IND/OOD membership | Labeled training graphs, potentially containing outliers |
| Shift | Env. | MSP | Energy | TIDE † | DeGEM † | GPN | GNNSafe | NODESAFE | GOLD †,+ |
|---|---|---|---|---|---|---|---|---|---|
| F | Ht | ||||||||
| F | N | ||||||||
| F | Hm | ||||||||
| S | Ht | ||||||||
| S | N | ||||||||
| S | Hm |
OOD Detection
Out-of-distribution (OOD) detection identifies inputs unlike a model’s training data so systems can flag uncertainty, reject inputs, or adapt safely.
See all 248 papers