TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Enhanced OoD Detection through Cross-Modal Alignment of Mu...

Enhanced OoD Detection through Cross-Modal Alignment of Multi-Modal Representations

JEONGHYEON KIM, Sangheum Hwang

2025-03-24CVPR 2025 1Image Classificationcross-modal alignmentOut-of-Distribution Detection
PaperPDFCode(official)

Abstract

Prior research on out-of-distribution detection (OoDD) has primarily focused on single-modality models. Recently, with the advent of large-scale pretrained vision-language models such as CLIP, OoDD methods utilizing such multi-modal representations through zero-shot and prompt learning strategies have emerged. However, these methods typically involve either freezing the pretrained weights or only partially tuning them, which can be suboptimal for downstream datasets. In this paper, we highlight that multi-modal fine-tuning (MMFT) can achieve notable OoDD performance. Despite some recent works demonstrating the impact of fine-tuning methods for OoDD, there remains significant potential for performance improvement. We investigate the limitation of na\"ive fine-tuning methods, examining why they fail to fully leverage the pretrained knowledge. Our empirical analysis suggests that this issue could stem from the modality gap within in-distribution (ID) embeddings. To address this, we propose a training objective that enhances cross-modal alignment by regularizing the distances between image and text embeddings of ID data. This adjustment helps in better utilizing pretrained textual information by aligning similar semantics from different modalities (i.e., text and image) more closely in the hyperspherical representation space. We theoretically demonstrate that the proposed regularization corresponds to the maximum likelihood estimation of an energy-based model on a hypersphere. Utilizing ImageNet-1k OoD benchmark datasets, we show that our method, combined with post-hoc OoDD approaches leveraging pretrained knowledge (e.g., NegLabel), significantly outperforms existing methods, achieving state-of-the-art OoDD performance and leading ID accuracy.

Results

TaskDatasetMetricValueModel
Out-of-Distribution DetectionImageNet-1k vs iNaturalistAUROC99.62CMA(ViT-B/16, NegLabel)
Out-of-Distribution DetectionImageNet-1k vs iNaturalistFPR951.65CMA(ViT-B/16, NegLabel)
Out-of-Distribution DetectionImageNet-1k vs TexturesAUROC91.64CMA(ViT-B/16, NegLabel)
Out-of-Distribution DetectionImageNet-1k vs TexturesFPR9533.58CMA(ViT-B/16, NegLabel)
Out-of-Distribution DetectionImageNet-1k vs PlacesAUROC93.11CMA(ViT-B/16, NegLabel)
Out-of-Distribution DetectionImageNet-1k vs PlacesFPR9527.65CMA(ViT-B/16, NegLabel)
Out-of-Distribution DetectionImageNet-1k vs SUNAUROC96.36CMA(ViT-B/16, NegLabel)
Out-of-Distribution DetectionImageNet-1k vs SUNFPR9516.84CMA(ViT-B/16, NegLabel)

Related Papers

Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17Transformer-based Spatial Grounding: A Comprehensive Survey2025-07-17Hashed Watermark as a Filter: Defeating Forging and Overwriting Attacks in Weight-based Neural Network Watermarking2025-07-15CATVis: Context-Aware Thought Visualization2025-07-15