CADet: Fully Self-Supervised Out-Of-Distribution Detection With Contrastive Learning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Guille-Escuret, Charles, Rodriguez, Pau, Vazquez, David, Mitliagkas, Ioannis, Monteiro, Joao
Natura: Preprint
Pubblicazione: 2022
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912149601779712
author Guille-Escuret, Charles
Rodriguez, Pau
Vazquez, David
Mitliagkas, Ioannis
Monteiro, Joao
author_facet Guille-Escuret, Charles
Rodriguez, Pau
Vazquez, David
Mitliagkas, Ioannis
Monteiro, Joao
contents Handling out-of-distribution (OOD) samples has become a major stake in the real-world deployment of machine learning systems. This work explores the use of self-supervised contrastive learning to the simultaneous detection of two types of OOD samples: unseen classes and adversarial perturbations. First, we pair self-supervised contrastive learning with the maximum mean discrepancy (MMD) two-sample test. This approach enables us to robustly test whether two independent sets of samples originate from the same distribution, and we demonstrate its effectiveness by discriminating between CIFAR-10 and CIFAR-10.1 with higher confidence than previous work. Motivated by this success, we introduce CADet (Contrastive Anomaly Detection), a novel method for OOD detection of single samples. CADet draws inspiration from MMD, but leverages the similarity between contrastive transformations of a same sample. CADet outperforms existing adversarial detection methods in identifying adversarially perturbed samples on ImageNet and achieves comparable performance to unseen label detection methods on two challenging benchmarks: ImageNet-O and iNaturalist. Significantly, CADet is fully self-supervised and requires neither labels for in-distribution samples nor access to OOD examples.
format Preprint
id arxiv_https___arxiv_org_abs_2210_01742
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle CADet: Fully Self-Supervised Out-Of-Distribution Detection With Contrastive Learning
Guille-Escuret, Charles
Rodriguez, Pau
Vazquez, David
Mitliagkas, Ioannis
Monteiro, Joao
Machine Learning
Computer Vision and Pattern Recognition
Handling out-of-distribution (OOD) samples has become a major stake in the real-world deployment of machine learning systems. This work explores the use of self-supervised contrastive learning to the simultaneous detection of two types of OOD samples: unseen classes and adversarial perturbations. First, we pair self-supervised contrastive learning with the maximum mean discrepancy (MMD) two-sample test. This approach enables us to robustly test whether two independent sets of samples originate from the same distribution, and we demonstrate its effectiveness by discriminating between CIFAR-10 and CIFAR-10.1 with higher confidence than previous work. Motivated by this success, we introduce CADet (Contrastive Anomaly Detection), a novel method for OOD detection of single samples. CADet draws inspiration from MMD, but leverages the similarity between contrastive transformations of a same sample. CADet outperforms existing adversarial detection methods in identifying adversarially perturbed samples on ImageNet and achieves comparable performance to unseen label detection methods on two challenging benchmarks: ImageNet-O and iNaturalist. Significantly, CADet is fully self-supervised and requires neither labels for in-distribution samples nor access to OOD examples.
title CADet: Fully Self-Supervised Out-Of-Distribution Detection With Contrastive Learning
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2210.01742