Skip to main content
QUICK REVIEW

[Paper Review] Out-of-Distribution Detection using Multiple Semantic Label Representations

Gabi Shalev, Yossi Adi|arXiv (Cornell University)|Aug 20, 2018
Adversarial Robustness in Machine LearningComputer Science40 references37 citations
TL;DR

This paper proposes a novel out-of-distribution (OOD) detection method that uses multiple semantic word embeddings as supervisory signals during training, enabling the model to detect OOD, adversarial, and misclassified examples via the L2-norm of its output representations. The approach achieves a 62.04% detection rate on adversarial examples—18% higher than ensemble baselines—while maintaining robustness through semantic diversity in supervision.

ABSTRACT

Deep Neural Networks are powerful models that attained remarkable results on a variety of tasks. These models are shown to be extremely efficient when training and test data are drawn from the same distribution. However, it is not clear how a network will act when it is fed with an out-of-distribution example. In this work, we consider the problem of out-of-distribution detection in neural networks. We propose to use multiple semantic dense representations instead of sparse representation as the target label. Specifically, we propose to use several word representations obtained from different corpora or architectures as target labels. We evaluated the proposed model on computer vision, and speech commands detection tasks and compared it to previous methods. Results suggest that our method compares favorably with previous work. Besides, we present the efficiency of our approach for detecting wrongly classified and adversarial examples.

Motivation & Objective

  • To address the critical challenge of detecting out-of-distribution inputs in deep neural networks, where models often produce overconfident predictions.
  • To improve uncertainty estimation in DNNs without requiring ensemble training or architectural modifications.
  • To leverage semantic diversity in word embeddings as a form of supervised redundancy to enhance detection robustness.
  • To investigate whether the L2-norm of output representations can serve as a reliable OOD detection score.
  • To evaluate the method on both vision and speech tasks, including adversarial and misclassified examples.

Proposed method

  • The model is trained using multiple distinct word embeddings (e.g., from different corpora or architectures) as target labels for each class, replacing standard one-hot encoding.
  • Each class is supervised by K different semantic representations, with the model learning K regression heads to predict these embeddings from input features.
  • During inference, predictions from all K regression heads are aggregated, and the L2-norm of the output vector is used as a confidence score for OOD detection.
  • The method exploits semantic structure across embeddings to produce semantically coherent predictions while introducing diversity through varied training data and architectures.
  • The approach shares a common feature representation across all regression heads, enabling parameter efficiency and shared feature learning.
  • A threshold on the L2-norm is used to classify inputs as in-distribution or out-of-distribution, with empirical tuning based on validation data.

Experimental results

Research questions

  • RQ1Can multiple semantic word embeddings as supervision improve out-of-distribution detection compared to standard one-hot labeling?
  • RQ2Does the L2-norm of the model's output representation correlate with uncertainty and OOD status?
  • RQ3How does the proposed method compare to ensemble-based approaches in detecting adversarial examples?
  • RQ4Can the L2-norm also detect misclassified examples, and is there a consistent pattern in their representation norms?
  • RQ5Can the method detect OOD inputs without architectural changes or additional training beyond standard supervision?

Key findings

  • The proposed method achieved a 62.04% detection rate for adversarial examples, significantly outperforming the ensemble baseline at 43.88%.
  • When false positive rates were constrained to 3%, the proposed method achieved 28.64% detection rate versus 15.41% for the ensemble, a 13% improvement.
  • The model showed higher inter-predictor disagreement on adversarial examples (as measured by ranking differences) compared to the ensemble, suggesting better sensitivity to perturbations.
  • Wrongly classified and out-of-distribution examples consistently exhibited significantly lower L2-norms in the output representation than correctly classified examples.
  • The method achieved an AUROC of 89.58 and AUPR-Out of 47.2 on ImageNet OOD detection, outperforming the ensemble baseline in AUPR-Out.
  • The L2-norm of the output representation was found to be a reliable indicator of uncertainty, aligning with findings from prior work on representation norms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.