Contrastive Out-of-Distribution Detection for Pretrained Transformers
원문 초록
Pretrained Transformers achieve remarkable performance when training and test data are from the same distribution. However, in real-world scenarios, the model often faces out-of-distribution (OOD) instances that can cause severe semantic shift problems at inference time. Therefore, in practice, a reliable model should identify such instances, and then either reject them during inference or pass them over to models that handle another distribution. In this paper, we develop an unsupervised OOD detection method, in which only the in-distribution (ID) data are used in training. We propose to fine-tune the Transformers with a contrastive loss, which improves the compactness of representations, such that OOD instances can be better differentiated from ID ones. These OOD instances can then be accurately detected using the Mahalanobis distance in the model's penultimate layer. We experiment with comprehensive settings and achieve near-perfect OOD detection performance, outperforming baselines drastically. We further investigate the rationales behind the improvement, finding that more compact representations through margin-based contrastive learning bring the improvement. We release our code to the community for future research.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection
Evidential Spectrum-Aware Contrastive Learning for OOD Detection in Dynamic Graphs
Extremely Simple Multimodal Outlier Synthesis for Out-of-Distribution Detection and Segmentation
Kernel PCA for Out-of-Distribution Detection: Non-Linear Kernel Selections and Approximations
Unsupervised Out-of-Distribution Detection in Medical Imaging Using Multi-Exit Class Activation Maps and Feature Masking
Safe Domain Randomization via Uncertainty-Aware Out-of-Distribution Detection and Policy Adaptation
토론
이 논문과 연결된 포럼 글이 아직 없습니다.