LGMay 21, 2025

SpectralGap: Graph-Level Out-of-Distribution Detection via Laplacian Eigenvalue Gaps

arXiv:2505.15177v23 citationsh-index: 2IJCAI
Originality Incremental advance
AI Analysis

It addresses the problem of reliable deployment of graph neural networks in real-world settings, but is incremental as it builds on existing spectral graph theory.

The paper tackles graph-level out-of-distribution detection by observing that OOD samples often have anomalous spectral gaps in Laplacian eigenvalues, and proposes SpecGap, a parameter-free post-hoc method that achieves state-of-the-art performance on multiple benchmarks.

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., $\mathbf{X}-\left(λ_n-λ_{n-1}\right) \mathbf{u}_{n-1} \mathbf{v}_{n-1}^T$). SpecGap achieves state-of-the-art performance across multiple benchmark datasets. We present extensive ablation studies and comprehensive theoretical analyses to support our empirical results. As a parameter-free post-hoc method, SpecGap can be easily integrated into existing graph neural network models without requiring any additional training or model modification.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes