Uncertainty of Network Topology with Applications to Out-of-Distribution Detection
Sing-Yuan Yeh, Chun-Hao Yang
TL;DR
This work introduces predictive topological uncertainty (pTU), a topology-based uncertainty measure for Bayesian neural networks that captures the interaction between inputs and the model via activation-graph persistent diagrams. pTU is defined as the average Fréchet variance of layerwise persistence diagrams across the posterior over weights, linking sample similarity to identical distributions and enabling an architecture-insensitive OOD detector. A theoretical stability result shows Lipschitz continuity of pTU under the Wasserstein distance, and a significance test for covariate shift OOD is proposed based on the Wasserstein distance between pTU distributions, with empirical validation on standard image datasets. Experiments demonstrate pTU’s sensitivity to architecture, effectiveness for OOD detection, and robustness to distributional shifts and data augmentation, highlighting its potential as a principled, topology-informed reliability tool.
Abstract
Persistent homology (PH) is a crucial concept in computational topology, providing a multiscale topological description of a space. It is particularly significant in topological data analysis, which aims to make statistical inference from a topological perspective. In this work, we introduce a new topological summary for Bayesian neural networks, termed the predictive topological uncertainty (pTU). The proposed pTU measures the uncertainty in the interaction between the model and the inputs. It provides insights from the model perspective: if two samples interact with a model in a similar way, then they are considered identically distributed. We also show that the pTU is insensitive to the model architecture. As an application, pTU is used to solve the out-of-distribution (OOD) detection problem, which is critical to ensure model reliability. Failure to detect OOD input can lead to incorrect and unreliable predictions. To address this issue, we propose a significance test for OOD based on the pTU, providing a statistical framework for this issue. The effectiveness of the framework is validated through various experiments, in terms of its statistical power, sensitivity, and robustness.
