Exploring Simple, High Quality Out-of-Distribution Detection with L2 Normalization

Abstract

We demonstrate that L2 normalization over feature space can produce capable performance for Out-of-Distribution (OoD) detection for some models and datasets. Although it does not demonstrate outright state-of-the-art performance, this method is notable for its extreme simplicity: it requires only two addition lines of code, and does not need specialized loss functions, image augmentations, outlier exposure or extra parameter tuning. We also observe that training may be more efficient for some datasets and architectures. Notably, only 60 epochs with ResNet18 on CIFAR10 (or 100 epochs with ResNet50) can produce performance within two percentage points (AUROC) of several state-of-the-art methods for some near and far OoD datasets. We provide theoretical and empirical support for this method, and demonstrate viability across five architectures and three In-Distribution (ID) datasets.

Cite

Text

Haas et al. "Exploring Simple, High Quality Out-of-Distribution Detection with L2 Normalization." Transactions on Machine Learning Research, 2024.

Markdown

[Haas et al. "Exploring Simple, High Quality Out-of-Distribution Detection with L2 Normalization." Transactions on Machine Learning Research, 2024.](https://mlanthology.org/tmlr/2024/haas2024tmlr-exploring/)

BibTeX

@article{haas2024tmlr-exploring,
  title     = {{Exploring Simple, High Quality Out-of-Distribution Detection with L2 Normalization}},
  author    = {Haas, Jarrod and Yolland, William and Rabus, Bernhard T},
  journal   = {Transactions on Machine Learning Research},
  year      = {2024},
  url       = {https://mlanthology.org/tmlr/2024/haas2024tmlr-exploring/}
}