Combining Statistical Depth and Fermat Distance for Uncertainty Quantification
Hai-Vy Nguyen, Fabrice Gamboa, Reda Chhaibi, Sixin Zhang, Serge Gratton, Thierry Giaccone
TL;DR
This work tackles Out-of-domain uncertainty in neural networks by applying a non-parametric framework based on Lens Depth (LD) and Fermat Distance to the feature space, enabling a test-time uncertainty score $S(x)$ without retraining. It introduces a Modified Sample Fermat Distance to fix artifacts and demonstrates stability and effectiveness on toy datasets and real benchmarks (FashionMNIST/MNIST and CIFAR10/SVHN) with favorable comparisons to Gaussian-based, distance-based, and ensemble methods. The approach is non-parametric and non-intrusive, scalable to class- and cluster-wise LDs, and leverages per-class LDs via a max operation to form robust OOD uncertainty scores. Overall, the method provides a principled, geometry- and density-aware uncertainty quantification that complements existing training-time techniques and can extend to kernel-based settings.
Abstract
We measure the Out-of-domain uncertainty in the prediction of Neural Networks using a statistical notion called ``Lens Depth'' (LD) combined with Fermat Distance, which is able to capture precisely the ``depth'' of a point with respect to a distribution in feature space, without any assumption about the form of distribution. Our method has no trainable parameter. The method is applicable to any classification model as it is applied directly in feature space at test time and does not intervene in training process. As such, it does not impact the performance of the original model. The proposed method gives excellent qualitative result on toy datasets and can give competitive or better uncertainty estimation on standard deep learning datasets compared to strong baseline methods.
