How to train your ViT for OOD Detection

Maximilian Mueller, Matthias Hein
5/21/2024
cs.CVcs.LG

No confident code implementation found for this paper.

Abstract

VisionTransformers have been shown to be powerful out-of-distribution detectors for ImageNet-scale settings when finetuned from publicly available checkpoints, often outperforming other model types on popular benchmarks. In this work, we investigate the impact of both the pretraining and finetuning scheme on the performance of ViTs on this task by analyzing a large pool of models. We find that the exact type of pretraining has a strong impact on which method works well and on OOD detection performance in general. We further show that certain training schemes might only be effective for a specific type of out-distribution, but not in general, and identify a best-practice training recipe.

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. Any repos shown below are weak matches — 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{mueller2024train,
  title  = {How to train your ViT for OOD Detection},
  author = {Maximilian Mueller and Matthias Hein},
  year   = {2024},
  eprint = {2405.17447},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.17447v1}
}

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

Discussion