Heatmap-based Out-of-Distribution Detection
Julia Hornauer, Vasileios Belagiannis

TL;DR
This paper introduces a heatmap-based method for out-of-distribution detection that visualizes in- and out-of-distribution regions in images, outperforming prior methods on standard datasets.
Contribution
It proposes a novel heatmap definition for OOD detection based on classifier features, enabling simultaneous detection and visualization of OOD regions.
Findings
Outperforms prior OOD detection methods on CIFAR-10, CIFAR-100, Tiny ImageNet
Provides visual explanations of OOD regions in images
Uses a fixed classifier with a trained decoder for heatmap generation
Abstract
Our work investigates out-of-distribution (OOD) detection as a neural network output explanation problem. We learn a heatmap representation for detecting OOD images while visualizing in- and out-of-distribution image regions at the same time. Given a trained and fixed classifier, we train a decoder neural network to produce heatmaps with zero response for in-distribution samples and high response heatmaps for OOD samples, based on the classifier features and the class prediction. Our main innovation lies in the heatmap definition for an OOD sample, as the normalized difference from the closest in-distribution sample. The heatmap serves as a margin to distinguish between in- and out-of-distribution samples. Our approach generates the heatmaps not only for OOD detection, but also to indicate in- and out-of-distribution regions of the input image. In our evaluations, our approach mostly…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Heatmap-based Out-of-Distribution Detection· youtube
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Cell Image Analysis Techniques · Anomaly Detection Techniques and Applications
MethodsHeatmap
