Graph Out-of-Distribution Detection via Test-Time Calibration with Dual Dynamic Dictionaries

Yue Hou, Ruomei Liu, Yingke Su, Junran Wu, Ke Xu
11/17/2025
cs.LG

No official code found. Best implementation: name-is-what/BaCa (1 star, MIT, last commit 2026-01-27).

Abstract

A key challenge in graph out-of-distribution (OOD) detection lies in the absence of ground-truth OOD samples during training. Existing methods are typically optimized to capture features within the in-distribution (ID) data and calculate OOD scores, which often limits pre-trained models from representing distributional boundaries, leading to unreliable OOD detection. Moreover, the latent structure of graph data is often governed by multiple underlying factors, which remains less explored. To address these challenges, we propose a novel test-time graph OOD detection method, termed BaCa, that calibrates OOD scores using dual dynamically updated dictionaries without requiring fine-tuning the pre-trained model. Specifically, BaCa estimates graphons and applies a mix-up strategy solely with test samples to generate diverse boundary-aware discriminative topologies, eliminating the need for exposing auxiliary datasets as outliers. We construct dual dynamic dictionaries via priority queues and attention mechanisms to adaptively capture latent ID and OOD representations, which are then utilized for boundary-aware OOD score calibration. To the best of our knowledge, extensive experiments on real-world datasets show that BaCa significantly outperforms existing state-of-the-art methods in OOD detection.

View on arXivView PDF

Code Implementations(1)

name-is-what/BaCaCommunity56%
MIT

This repository is the official implementation of "Graph Out-of-Distribution Detection via Test-Time Calibration with Dual Dynamic Dictionaries" accepted by the Main Technical Track of the 40th Annual AAAI Conference on Artificial Intelligence (AAAI-2026).

10PythonNov 8, 20258 months agoMIT

Similar Papers

Cite this paper

@article{hou2025graph,
  title  = {Graph Out-of-Distribution Detection via Test-Time Calibration with Dual Dynamic Dictionaries},
  author = {Yue Hou and Ruomei Liu and Yingke Su and Junran Wu and Ke Xu},
  year   = {2025},
  eprint = {2511.13541},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.13541v2}
}

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/2511.13541.svg)](https://codeofpaper.com/paper/2511.13541)

Discussion