Detecting Out-of-Distribution Samples via Conditional Distribution Entropy with Optimal Transport

Chuanwen Feng, Wenlong Chen, Ao Ke, Yilong Ren, Xike Xie +1 more
1/22/2024
cs.LGcs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

When deploying a trained machine learning model in the real world, it is inevitable to receive inputs from out-of-distribution (OOD) sources. For instance, in continual learning settings, it is common to encounter OOD samples due to the non-stationarity of a domain. More generally, when we have access to a set of test inputs, the existing rich line of OOD detection solutions, especially the recent promise of distance-based methods, falls short in effectively utilizing the distribution information from training samples and test inputs. In this paper, we argue that empirical probability distributions that incorporate geometric information from both training samples and test inputs can be highly beneficial for OOD detection in the presence of test inputs available. To address this, we propose to model OOD detection as a discrete optimal transport problem. Within the framework of optimal transport, we propose a novel score function known as the \emph{conditional distribution entropy} to quantify the uncertainty of a test input being an OOD sample. Our proposal inherits the merits of certain distance-based methods while eliminating the reliance on distribution assumptions, a-prior knowledge, and specific training mechanisms. Extensive experiments conducted on benchmark datasets demonstrate that our method outperforms its competitors in OOD detection.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{feng2024detecting,
  title  = {Detecting Out-of-Distribution Samples via Conditional Distribution Entropy with Optimal Transport},
  author = {Chuanwen Feng and Wenlong Chen and Ao Ke and Yilong Ren and Xike Xie and S. Kevin Zhou},
  year   = {2024},
  eprint = {2401.11726},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.11726v1}
}

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/2401.11726.svg)](https://codeofpaper.com/paper/2401.11726)

Discussion