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

Sketched Lanczos uncertainty score: a low-memory summary of the Fisher information

About

Current uncertainty quantification is memory and compute expensive, which hinders practical uptake. To counter, we develop Sketched Lanczos Uncertainty (SLU): an architecture-agnostic uncertainty score that can be applied to pre-trained neural networks with minimal overhead. Importantly, the memory use of SLU only grows logarithmically with the number of model parameters. We combine Lanczos' algorithm with dimensionality reduction techniques to compute a sketch of the leading eigenvectors of a matrix. Applying this novel algorithm to the Fisher information matrix yields a cheap and reliable uncertainty score. Empirically, SLU yields well-calibrated uncertainties, reliably detects out-of-distribution examples, and consistently outperforms existing methods in the low-memory regime.

Marco Miani, Lorenzo Beretta, S{\o}ren Hauberg• 2024

Related benchmarks

TaskDatasetResultRank
Out-of-Distribution DetectionCIFAR-10 vs SVHN (test)
AUROC0.76
101
Out-of-Distribution DetectionCIFAR-10 vs CIFAR-100 (test)
AUROC54
93
Out-of-Distribution DetectionFashionMNIST (ID) vs MNIST (OoD)
AUROC0.94
61
Out-of-Distribution DetectionMNIST vs FASHIONMNIST (test)
AUROC0.95
27
Out-of-Distribution DetectionCELEBA vs Hold-out (avg) (test)
AUROC72
16
Out-of-Distribution DetectionCELEBA vs FOOD-101 (test)
AUROC0.95
16
Out-of-Distribution DetectionCIFAR-10 Corruption avg (test)
AUROC57
16
Out-of-Distribution DetectionMNIST vs KMNIST (test)
AUROC0.46
16
Out-of-Distribution DetectionMNIST vs Rotation (test)
AUROC0.61
16
Out-of-Distribution DetectionFASHIONMNIST vs Rotation (test)
AUROC0.75
8
Showing 10 of 13 rows

Other info

Code

Follow for update