Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Sketching Curvature for Efficient Out-of-Distribution Detection for Deep Neural Networks

About

In order to safely deploy Deep Neural Networks (DNNs) within the perception pipelines of real-time decision making systems, there is a need for safeguards that can detect out-of-training-distribution (OoD) inputs both efficiently and accurately. Building on recent work leveraging the local curvature of DNNs to reason about epistemic uncertainty, we propose Sketching Curvature of OoD Detection (SCOD), an architecture-agnostic framework for equipping any trained DNN with a task-relevant epistemic uncertainty estimate. Offline, given a trained model and its training data, SCOD employs tools from matrix sketching to tractably compute a low-rank approximation of the Fisher information matrix, which characterizes which directions in the weight space are most influential on the predictions over the training data. Online, we estimate uncertainty by measuring how much perturbations orthogonal to these directions can alter predictions at a new test input. We apply SCOD to pre-trained networks of varying architectures on several tasks, ranging from regression to classification. We demonstrate that SCOD achieves comparable or better OoD detection performance with lower computational burden relative to existing baselines.

Apoorva Sharma, Navid Azizan, Marco Pavone• 2021

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionCIFAR-10 vs SVHN (test)
AUROC0.75
101
Out-of-Distribution DetectionCIFAR-10 vs CIFAR-100 (test)
AUROC54
93
Out-of-Distribution DetectionFashionMNIST (ID) vs MNIST (OoD)
AUROC0.84
61
Out-of-Distribution DetectionMNIST vs FASHIONMNIST (test)
AUROC0.89
27
Out-of-Distribution DetectionCIFAR-10 Corruption avg (test)
AUROC58
16
Out-of-Distribution DetectionCELEBA vs Hold-out (avg) (test)
AUROC70
16
Out-of-Distribution DetectionCELEBA vs FOOD-101 (test)
AUROC0.94
16
Out-of-Distribution DetectionMNIST vs KMNIST (test)
AUROC0.36
16
Out-of-Distribution DetectionMNIST vs Rotation (test)
AUROC0.54
16
Out-of-Distribution DetectionFashionMNIST (ID) vs Rotation (avg) (OoD)
AUROC71
8
Showing 10 of 12 rows

Other info

Follow for update