In real-world deployments, machine learning models frequently encounter data they were not trained on—known as Out-of-Distribution (OOD) data. For Graph Neural Networks (GNNs), this translates to identifying "alien" nodes in a social network or "unknown" molecules in a biological graph.
While computer vision has developed robust OOD detection tools, these methods typically assume data points are independent. Graphs present a unique challenge because nodes are inherently interconnected. A prevailing solution in graph learning is score propagation, a post-hoc technique where an initial OOD score is calculated for each node and then "smoothed" by averaging it with the scores of its neighbors.
The underlying intuition is simple: In-Distribution (ID) nodes likely cluster with other ID nodes. However, this assumption does not always hold. If an ID node is surrounded by OOD neighbors, naive propagation can actually obscure its true identity, making detection harder. This paper meticulously derives the exact conditions under which score propagation proves beneficial and introduces a novel edge augmentation strategy to fix the graph structure when it doesn't.
The Inter-edge Trap
The authors provide a theoretical framework demonstrating that score propagation is a double-edged sword. It is only beneficial when the density of intra-edges (connections between ID-to-ID or OOD-to-OOD nodes) is significantly higher than inter-edges (connections between ID and OOD nodes).
In "noisy" or heterophilic graphs where ID and OOD nodes are heavily intertwined, naive propagation acts like a blur filter, destroying the very signal the model is trying to detect.
The Solution: GRASP (GRaph-Augmented Score Propagation)
Instead of merely altering the propagation algorithm, the authors propose changing the underlying data structure. By strategically adding "good" edges, they reshape the graph's topology to make it more propagation-friendly. Their proposed method, GRASP, follows a clever four-step post-hoc workflow:
- Identify Anchors: The method uses the base model's confidence (Max Softmax Probability) to identify the most "certain" ID and OOD nodes within the test set.
- Evaluate Training Nodes: For nodes in the training set (which are guaranteed to be ID), GRASP calculates a likelihood score based on how many "certain" ID versus OOD test nodes they connect to.
- Augment the Graph: The algorithm selects a high-quality subset of these training nodes and adds edges between them. This artificially inflates the "intra-edge" density of the ID distribution, providing a stronger structural signal.
- Propagate: Finally, standard score propagation is executed on this newly augmented graph.
This approach effectively uses the known training data as a structural anchor, pulling ID test nodes away from misleading OOD signals.
Experimental Validation
The researchers evaluated GRASP across 10 diverse real-world datasets, encompassing both small-scale and large-scale graphs. Crucially, these datasets included both homophilic (similar neighbors) and heterophilic (dissimilar neighbors) structures. Heterophilic graphs are particularly challenging, as standard propagation usually fails when neighbors naturally differ from one another.
Key Results: * Massive FPR95 Reduction: On average, GRASP reduced the False Positive Rate (at a 95% True Positive Rate) by 17.87% on common benchmarks, and by a staggering 32.21% on large-scale benchmarks compared to previous state-of-the-art methods like GNNSafe. * Success in Heterophily: On the difficult "Wiki" dataset (a large heterophilic graph), GRASP achieved an AUROC of 77.97, obliterating the next best traditional baseline (MSP), which scored only 54.70. * Computational Efficiency: Despite the addition of new edges, GRASP relies on sparse matrix-vector multiplication, keeping its computational footprint low enough for viable large-scale deployment.
Limitations and Future Directions
While highly effective, the authors acknowledge a few constraints. First, GRASP's success is tied to the graph's existing connectivity; extremely sparse graphs or those with purely random connections offer less "raw material" for the augmentation strategy to work with. Second, because GRASP relies on initial confidence scores to pick its anchor nodes, an overly confident base model could introduce pseudo-labeling bias into the augmentation process.
Future work will likely explore more complex edge-selection strategies and investigate how different types of graph diffusion (such as Heat Kernels) might interact with this promising structural augmentation approach.
Summary updated