Saved in:
Bibliographic Details
Main Authors: Yang, Shenzhi, Liang, Bin, Liu, An, Gui, Lin, Yao, Xingkai, Zhang, Xiaofang
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.13429
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917989536759808
author Yang, Shenzhi
Liang, Bin
Liu, An
Gui, Lin
Yao, Xingkai
Zhang, Xiaofang
author_facet Yang, Shenzhi
Liang, Bin
Liu, An
Gui, Lin
Yao, Xingkai
Zhang, Xiaofang
contents Given the critical role of graphs in real-world applications and their high-security requirements, improving the ability of graph neural networks (GNNs) to detect out-of-distribution (OOD) data is an urgent research problem. The recent work GNNSAFE proposes a framework based on the aggregation of negative energy scores that significantly improves the performance of GNNs to detect node-level OOD data. However, our study finds that score aggregation among nodes is susceptible to extreme values due to the unboundedness of the negative energy scores and logit shifts, which severely limits the accuracy of GNNs in detecting node-level OOD data. In this paper, we propose NODESAFE: reducing the generation of extreme scores of nodes by adding two optimization terms that make the negative energy scores bounded and mitigate the logit shift. Experimental results show that our approach dramatically improves the ability of GNNs to detect OOD data at the node level, e.g., in detecting OOD data induced by Structure Manipulation, the metric of FPR95 (lower is better) in scenarios without (with) OOD data exposure are reduced from the current SOTA by 28.4% (22.7%).
format Preprint
id arxiv_https___arxiv_org_abs_2504_13429
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Bounded and Uniform Energy-based Out-of-distribution Detection for Graphs
Yang, Shenzhi
Liang, Bin
Liu, An
Gui, Lin
Yao, Xingkai
Zhang, Xiaofang
Machine Learning
Artificial Intelligence
Given the critical role of graphs in real-world applications and their high-security requirements, improving the ability of graph neural networks (GNNs) to detect out-of-distribution (OOD) data is an urgent research problem. The recent work GNNSAFE proposes a framework based on the aggregation of negative energy scores that significantly improves the performance of GNNs to detect node-level OOD data. However, our study finds that score aggregation among nodes is susceptible to extreme values due to the unboundedness of the negative energy scores and logit shifts, which severely limits the accuracy of GNNs in detecting node-level OOD data. In this paper, we propose NODESAFE: reducing the generation of extreme scores of nodes by adding two optimization terms that make the negative energy scores bounded and mitigate the logit shift. Experimental results show that our approach dramatically improves the ability of GNNs to detect OOD data at the node level, e.g., in detecting OOD data induced by Structure Manipulation, the metric of FPR95 (lower is better) in scenarios without (with) OOD data exposure are reduced from the current SOTA by 28.4% (22.7%).
title Bounded and Uniform Energy-based Out-of-distribution Detection for Graphs
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2504.13429