Abstract
Graph Neural Networks (GNNs) face significant challenges when encountering out-of-distribution (OOD) samples in real-world applications. While OOD detection has been studied extensively in single-label settings, multi-label graph scenarios—where nodes can belong to multiple classes simultaneously—remain largely unexplored. This paper introduces ML-GOOD, an energy-based framework tailored for multi-label graph node classification. ML-GOOD calculates label-specific energy scores and employs a novel aggregation strategy to accurately identify OOD nodes. Experimental results across six real-world datasets demonstrate that ML-GOOD significantly improves AUROC and reduces false positive rates compared to state-of-the-art baselines.
Introduction: The Challenge of Multi-Label OOD Detection
As Graph Neural Networks (GNNs) are deployed in open-world scenarios, they inevitably encounter out-of-distribution (OOD) samples—data from distributions unseen during training. A trustworthy AI system must be able to detect and reject these OOD samples rather than making confident, incorrect predictions.
While graph OOD detection has gained traction, existing research almost exclusively assumes a single-label classification setting. However, real-world graphs are frequently multi-label. For instance, in a protein-protein interaction network, a single protein might be associated with multiple functions or diseases simultaneously.
Transitioning from single-label to multi-label OOD detection is not trivial. If a detection system relies solely on the uncertainty of a single dominant label, it suffers from massive estimation bias. The core challenge is how to jointly characterize uncertainty across multiple labels to accurately flag OOD nodes in graph-structured data. Standard OOD methods that look only at the maximum logit or a single softmax distribution fail because a node's true distribution is defined by the combination of its labels.
The ML-GOOD Framework
The authors propose ML-GOOD (Multi-Label Graph Out-Of-Distribution Detection), an energy-based model (EBM) approach designed specifically for multi-label graphs. The framework consists of four primary stages:
- Feature Extraction: A standard Graph Convolutional Network (GCN) captures topological dependencies and extracts node features.
- Label-Specific Energy Learning: In multi-label classification, the final layer typically uses a sigmoid function. ML-GOOD calculates a specific "free energy" score for each individual label based on its logit.
- Unified & Typical Energies Calculation: To obtain a single OOD score, the model aggregates label-specific energies. Simply averaging them (Unified Energy) can over-smooth the data, drowning out high-energy labels. ML-GOOD combines the mean energy across all labels with the maximum energy label (Typical Energy) to balance global context with strong individual anomalies.
- OOD Detection: The final aggregated score is compared against a threshold $\alpha$ to determine if a node should be rejected as OOD or accepted for prediction.
Theoretical grounding provided by the authors shows that this aggregated multi-label energy score is directly proportional to the inverse of the joint likelihood of the label set, making it a sound proxy for OOD uncertainty.
Experimental Evaluation
ML-GOOD was evaluated on six real-world multi-label datasets, including biological networks (OGB-Proteins, PPI, HumLoc, EukLoc) and citation networks (PCG, DBLP). To test robustness, the authors used feature interpolation for intra-domain OOD generation and cross-domain dataset pairs for severe distribution shifts.
Key Results
- Superior Performance: ML-GOOD outperformed six baselines, including standard OOD methods (MSP, ODIN) and graph-specific methods (GNNSafe++).
- Quantitative Gains: The method improved AUROC by an average of 5.26% in intra-domain tasks and 6.54% in cross-domain tasks.
- False Positive Reduction: ML-GOOD achieved significantly lower FPR95. For example, on the
HumLoc/EukLocbenchmark, ML-GOOD reached a 72.65% AUROC compared to the next best baseline at 66.20%.
Conclusion and Future Work
ML-GOOD addresses a critical gap in graph OOD detection by moving beyond the single-label assumption. By intelligently aggregating label-specific energies, it provides a more accurate assessment of uncertainty in complex multi-label environments. While currently memory-intensive for very large-scale graphs, ML-GOOD serves as a strong foundational baseline for future research into efficient multi-label OOD detection.
Summary updated