Balanced Energy Regularization Loss for Out-of-distribution Detection

Hyunjun Choi, Hawook Jeong, Jin Young Choi
6/18/2023
cs.CVcs.AIcs.LG

Official code: hyunjunChhoi/Balanced_Energy (13 stars, MIT, last commit 2023-06-21).

Abstract

In the field of out-of-distribution (OOD) detection, a previous method that use auxiliary data as OOD data has shown promising performance. However, the method provides an equal loss to all auxiliary data to differentiate them from inliers. However, based on our observation, in various tasks, there is a general imbalance in the distribution of the auxiliary OOD data across classes. We propose a balanced energy regularization loss that is simple but generally effective for a variety of tasks. Our balanced energy regularization loss utilizes class-wise different prior probabilities for auxiliary data to address the class imbalance in OOD data. The main concept is to regularize auxiliary samples from majority classes, more heavily than those from minority classes. Our approach performs better for OOD detection in semantic segmentation, long-tailed image classification, and image classification than the prior energy regularization loss. Furthermore, our approach achieves state-of-the-art performance in two tasks: OOD detection in semantic segmentation and long-tailed image classification. Code is available at https://github.com/hyunjunChhoi/Balanced_Energy.

View on arXivView PDF

Code Implementations(1)

MIT
130Shell, PythonJun 18, 20233 years agoMIT

Similar Papers

Cite this paper

@article{choi2023balanced,
  title  = {Balanced Energy Regularization Loss for Out-of-distribution Detection},
  author = {Hyunjun Choi and Hawook Jeong and Jin Young Choi},
  year   = {2023},
  eprint = {2306.10485},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.10485v1},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.10485.svg)](https://codeofpaper.com/paper/2306.10485)

Discussion