CEGOOD: Community Enhanced Graph Out-of-Distribution Detection

View at publisher
Authors: Xinlei Wang, Bin Yu, Chen Zhang, Wenjie Mao, Yu Xie, Limei Peng, Pin‐Han Ho
Cited by: 0
References: 29

Abstract

Graph Neural Networks (GNNs) often suffer from degraded performance when encountering out-of-distribution (OOD) samples, particularly in multi-domain graph scenarios. Existing graph OOD detection methods typically require extensive modifications to data or model architectures, resulting in high computational costs and limited generalization. Moreover, prior approaches largely overlook local structural semantics and community-level patterns, leading to biased representations and suboptimal detection performance. To overcome these limitations, we propose community enhanced graph out-of-distribution detection (CEGOOD), a novel framework that incorporates community structure into GNN-based OOD detection. Specifically, we propose two community-aware view generation strategies: intra-community attribute aggregation (ICAA) to distill fine-grained feature coherence and inter-community edge dropping (ICED) to fortify structural robustness by pruning non-critical cross-community edges. Furthermore, We also design three community-level loss functions (compactness, separability, and balance) to optimize community hierarchical structures and improve community representation. Experimental results on various datasets show that CEGOOD outperforms state-of-the-art baselines by an average of 1.8% AUC, with notable gains of 2.4% on AIDS+DHFR and 2.8% on BBBP+BACE, demonstrating superior adaptability and effectiveness in graph OOD detection tasks.

Fields of Study & Subjects

Advanced Graph Neural Networks Anomaly Detection Techniques and Applications Adversarial Robustness in Machine Learning

Publication details

Journal / source
IEEE Transactions on Big Data
Volume
12
Issue
4
Pages
1233–1248
Publication date
12 March 2026
Language
EN