From Subtle to Significant: Prompt-Driven Self-Improving Optimization in Test-Time Graph OOD Detection

Luzhi Wang, Xuanshuo Fu, He Zhang, Chuang Liu, Xiaobao Wang +1 more
2/19/2026
cs.LGcs.AI

Official code: Ee1s/SIGOOD (0 stars, last commit 2026-02-19).

Abstract

Graph Out-of-Distribution (OOD) detection aims to identify whether a test graph deviates from the distribution of graphs observed during training, which is critical for ensuring the reliability of Graph Neural Networks (GNNs) when deployed in open-world scenarios. Recent advances in graph OOD detection have focused on test-time training techniques that facilitate OOD detection without accessing potential supervisory information (e.g., training data). However, most of these methods employ a one-pass inference paradigm, which prevents them from progressively correcting erroneous predictions to amplify OOD signals. To this end, we propose a \textbf{S}elf-\textbf{I}mproving \textbf{G}raph \textbf{O}ut-\textbf{o}f-\textbf{D}istribution detector (SIGOOD), which is an unsupervised framework that integrates continuous self-learning with test-time training for effective graph OOD detection. Specifically, SIGOOD generates a prompt to construct a prompt-enhanced graph that amplifies potential OOD signals. To optimize prompts, SIGOOD introduces an Energy Preference Optimization (EPO) loss, which leverages energy variations between the original test graph and the prompt-enhanced graph. By iteratively optimizing the prompt by involving it into the detection model in a self-improving loop, the resulting optimal prompt-enhanced graph is ultimately used for OOD detection. Comprehensive evaluations on 21 real-world datasets confirm the effectiveness and outperformance of our SIGOOD method. The code is at https://github.com/Ee1s/SIGOOD.

View on arXivView PDF

Code Implementations(1)

Ee1s/SIGOODOfficial100%

Code of From Subtle to Significant: Prompt-Driven Self-Improving Optimization in Test-Time Graph OOD Detection

00Feb 19, 20268 months ago

Similar Papers

Cite this paper

@article{wang2026from,
  title  = {From Subtle to Significant: Prompt-Driven Self-Improving Optimization in Test-Time Graph OOD Detection},
  author = {Luzhi Wang and Xuanshuo Fu and He Zhang and Chuang Liu and Xiaobao Wang and Hongbo Liu},
  year   = {2026},
  eprint = {2602.17342},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.17342v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.17342.svg)](https://codeofpaper.com/paper/2602.17342)

Discussion