Saved in:
Bibliographic Details
Main Authors: Zhang, Tianhao, Chen, Zhixiang, Mihaylova, Lyudmila S.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.20631
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912187160723456
author Zhang, Tianhao
Chen, Zhixiang
Mihaylova, Lyudmila S.
author_facet Zhang, Tianhao
Chen, Zhixiang
Mihaylova, Lyudmila S.
contents Vision Transformers (ViTs) have achieved remarkable success over various vision tasks, yet their robustness against data distribution shifts and inherent inductive biases remain underexplored. To enhance the robustness of ViT models for image Out-of-Distribution (OOD) detection, we introduce a novel and generic framework named Prior-augmented Vision Transformer (PViT). Taking as input the prior class logits from a pretrained model, we train PViT to predict the class logits. During inference, PViT identifies OOD samples by quantifying the divergence between the predicted class logits and the prior logits obtained from pre-trained models. Unlike existing state-of-the-art(SOTA) OOD detection methods, PViT shapes the decision boundary between ID and OOD by utilizing the proposed prior guided confidence, without requiring additional data modeling, generation methods, or structural modifications. Extensive experiments on the large-scale ImageNet benchmark, evaluated against over seven OOD datasets, demonstrate that PViT significantly outperforms existing SOTA OOD detection methods in terms of FPR95 and AUROC. The codebase is publicly available at https://github.com/RanchoGoose/PViT.
format Preprint
id arxiv_https___arxiv_org_abs_2410_20631
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PViT: Prior-augmented Vision Transformer for Out-of-distribution Detection
Zhang, Tianhao
Chen, Zhixiang
Mihaylova, Lyudmila S.
Computer Vision and Pattern Recognition
Vision Transformers (ViTs) have achieved remarkable success over various vision tasks, yet their robustness against data distribution shifts and inherent inductive biases remain underexplored. To enhance the robustness of ViT models for image Out-of-Distribution (OOD) detection, we introduce a novel and generic framework named Prior-augmented Vision Transformer (PViT). Taking as input the prior class logits from a pretrained model, we train PViT to predict the class logits. During inference, PViT identifies OOD samples by quantifying the divergence between the predicted class logits and the prior logits obtained from pre-trained models. Unlike existing state-of-the-art(SOTA) OOD detection methods, PViT shapes the decision boundary between ID and OOD by utilizing the proposed prior guided confidence, without requiring additional data modeling, generation methods, or structural modifications. Extensive experiments on the large-scale ImageNet benchmark, evaluated against over seven OOD datasets, demonstrate that PViT significantly outperforms existing SOTA OOD detection methods in terms of FPR95 and AUROC. The codebase is publicly available at https://github.com/RanchoGoose/PViT.
title PViT: Prior-augmented Vision Transformer for Out-of-distribution Detection
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.20631