Are all outliers alike? On Understanding the Diversity of Outliers for Detecting OODs

Ramneet Kaur, Susmit Jha, Anirban RoyOpenReview 2020

Deep neural networks (DNNs) are notoriously overconfident when faced with out-of-distribution (OOD) data, posing a major safety risk in critical applications like autonomous driving or medical AI. This paper, presented by researchers from the University of Pennsylvania and SRI International, challenges the traditional "one-size-fits-all" approach to OOD detection. The authors demonstrate that OOD inputs are highly diverse and that current detection methods often fail because they focus on single statistical "signatures."

The Challenge of OOD Diversity

Existing OOD detection techniques usually rely on a single metric, such as the model's softmax confidence or the Mahalanobis distance from training data. However, these methods have significant "blind spots." An outlier might be "far away" from all known classes (high epistemic uncertainty), or it might sit right on the boundary between two classes (high aleatoric uncertainty).

Visualization of diverse OOD types relative to in-distribution class clusters.

As shown in the figure above, outliers can manifest in various geometric relationships to the in-distribution data. A method designed to catch far-away clusters (Type 1) will often miss those near the decision boundaries (Type 3), and vice versa. The authors argue that a robust safety net must account for this taxonomy of uncertainty.

The Integrated Detection Framework

To address these blind spots, the authors propose an Integrated OOD Detection Method that fuses four distinct attributes to cover the diverse landscape of outliers:

  1. Mahalanobis Distance: Effective for catching "far-away" outliers by measuring distance from class-conditional distributions.
  2. Reconstruction Error (via PCA): Identifies deviations in "non-principal" components—features that are usually invariant for a specific class.
  3. Softmax Prediction Confidence: Uses temperature scaling and input perturbations to identify inputs that confuse the classifier's internal probability distribution.
  4. Conformance Measure (Novel): A new metric fusing k-Nearest Neighbors (kNN) with Mahalanobis distance to capture ambiguity-based (aleatoric) uncertainty.

The final detector is a logistic regression classifier trained on these four features. To train this "meta-detector" without exposure to real OOD data, the authors utilize adversarial samples as a proxy for outliers.

Visualizing Blind Spots and Fusion Benefits

The necessity of this integrated approach is highlighted by the failure modes of individual metrics. When a single metric is used, certain clusters of OOD data may remain entirely undetected despite being clearly distinct from the training distribution.

Detection performance of a single-metric approach on the 'moons' dataset, highlighting blind spots where certain OOD clusters (red) remain undetected.

By combining specialized "experts," the integrated detector creates a more robust defense. In experimental evaluations across standard benchmarks (CIFAR10, SVHN, MNIST), the proposed method consistently outperformed state-of-the-art baselines. For instance, on the CIFAR10 vs. SVHN benchmark, the integrated approach achieved a True Negative Rate (TNR) of 85.90% (at a 95% TPR), nearly doubling the performance of the standard softmax baseline (44.69%).

Conclusion

The paper's primary contribution is the conceptual shift from viewing OOD detection as a single problem to viewing it as a multi-faceted challenge requiring a diverse set of metrics. While the integrated approach adds some computational overhead, its significant gains in robustness and its ability to generalize across visually similar OOD datasets make it a compelling framework for safety-critical AI systems.

Summary updated

BibTeX
@misc{kaur2020are,
  author = {Ramneet Kaur and Susmit Jha and Anirban Roy},
  title = {{Are all outliers alike? On Understanding the Diversity of Outliers for Detecting OODs}},
  year = {2020},
  eprint = {2103.12628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.12628},
}
Figure