cs.CVMar 8, 2026

A Systematic Comparison of Training Objectives for Out-of-Distribution Detection in Image Classification

Authors: Furkan Genç, Onat Özdemir, Emre Akbaş

Organizations: Dept. of Electrical and Electronics Engineering, Bilkent University · Dept. of Computer Engineering, Middle East Technical University

Abstract

Out-of-distribution (OOD) detection is critical in safety-sensitive applications. While this challenge has been addressed from various perspectives, the influence of training objectives on OOD behavior remains comparatively underexplored. In this paper, we present a systematic comparison of four widely used training objectives: Cross-Entropy Loss, Prototype Loss, Triplet Loss, and Average Precision (AP) Loss, spanning probabilistic, prototype-based, metric-learning, and ranking-based supervision, for OOD detection in image classification under standardized OpenOOD protocols. Within the evaluated ResNet-18/OpenOOD setting and objective-specific OOD scoring rules, Cross-Entropy Loss, Prototype Loss, and AP Loss achieve comparable in-distribution accuracy, while Cross-Entropy Loss provides the most consistent near- and far-OOD AUROC overall; the other objectives can be competitive in specific settings.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Prototype Fusion: A Training-Free Multi-Layer Approach to OOD Detection

    Mar 24, 2026Shreen Gul, Mohamed Elmahallawy, Ardhendu Tripathy +1OOD Detection

  2. DynProto: Dynamic Prototype Evolution for Out-of-Distribution Detection

    Apr 26, 2026Yanqi Wu, Xinhua Lu, Runhe Lai +4Prototype-Based ClassificationOOD Detection

  3. AOE: Exhaustive Out-of-Distribution Detection via Recalibrating Outlier Labels

    May 27, 2026Fengqiang Wan, Qing-Yuan Jiang, Yang YangOOD Detection