SpectralGap: Graph-Level Out-of-Distribution Detection via Laplacian Eigenvalue Gaps
Jiawei Gu, Ziyue Qiao, and Zechao Li

TL;DR
This paper introduces SpecGap, a spectral gap-based method for graph-level out-of-distribution detection that leverages Laplacian eigenvalue differences to identify anomalous graphs, achieving state-of-the-art results.
Contribution
The paper proposes a novel, parameter-free post-hoc spectral gap method for graph OOD detection, supported by theoretical analysis and extensive empirical validation.
Findings
SpecGap outperforms existing methods on benchmark datasets.
Spectral gaps effectively distinguish in-distribution and OOD graphs.
The method is easy to integrate without retraining models.
Abstract
The task of graph-level out-of-distribution (OOD) detection is crucial for deploying graph neural networks in real-world settings. In this paper, we observe a significant difference in the relationship between the largest and second-largest eigenvalues of the Laplacian matrix for in-distribution (ID) and OOD graph samples: \textit{OOD samples often exhibit anomalous spectral gaps (the difference between the largest and second-largest eigenvalues)}. This observation motivates us to propose SpecGap, an effective post-hoc approach for OOD detection on graphs. SpecGap adjusts features by subtracting the component associated with the second-largest eigenvalue, scaled by the spectral gap, from the high-level features (i.e., ). SpecGap achieves state-of-the-art performance across multiple benchmark datasets.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsGraph Neural Network
