SimLabel: Consistency-Guided OOD Detection with Pretrained Vision-Language Models

Shu Zou, Xinyu Tian, Qinyu Zhao, Zhaoyuan Yang, Jing Zhang · Submission to ICLR 2025 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

Introduction

In the deployment of machine learning models, identifying Out-of-Distribution (OOD) inputs—samples that do not belong to any training category—is as critical as accurate classification. With the advent of Vision-Language Models (VLMs) like CLIP, zero-shot OOD detection has become a prominent research area. However, current methods often fail by treating class labels as isolated "islands," leading to high-confidence misclassifications of OOD data. This paper introduces SimLabel, a post-hoc method that leverages semantic consistency among related classes to robustly distinguish between In-Distribution (ID) and OOD samples.

The Problem: Semantic Islands in OOD Detection

Existing state-of-the-art methods, such as Multi-modal Conditional Matching (MCM), typically flag an image as ID if it shows high similarity to any single text label. The authors identify a fundamental flaw in this approach: an OOD image might accidentally align with a specific ID class (a "false positive") due to shared low-level features or noise. Because these methods treat classes independently, they ignore the broader semantic context that should accompany a true ID sample.

The SimLabel Approach: Semantic Consistency

The core insight of SimLabel is the Consistency Hypothesis: a true ID sample will naturally exhibit high similarity not just to its ground-truth label, but also to a "neighborhood" of semantically related classes (e.g., various cat breeds for an image of a cat). Conversely, an OOD sample that happens to match one ID label is unlikely to maintain that similarity across a whole group of related categories.

Semantic consistency in In-Distribution (ID) samples.

SimLabel implements this by constructing a "similar class pool" for every category. The authors explored three construction strategies:

  1. SimLabel-H (Hierarchy): Utilizing taxonomies like WordNet.
  2. SimLabel-L (LLM): Using GPT-4 to generate semantically similar labels.
  3. SimLabel-I (Image-Text Alignment): A data-driven approach identifying labels that frequently co-occur as top-k matches for ID images.

The final OOD score is an affinity measure that combines direct image-label similarity with the average similarity across the class's semantic neighbors.

Identifying Out-of-Distribution (OOD) samples through semantic inconsistency.

Experimental Results

Evaluated on ImageNet-1k against standard OOD benchmarks (iNaturalist, SUN, Places, Textures), SimLabel-I achieved state-of-the-art performance:

  • AUROC: 91.90%, significantly outperforming MCM.
  • FPR@95: Reduced to 36.46% (from MCM's 43.61%).
  • Fine-Grained Performance: On the CUB-200 dataset, the False Positive Rate dropped from 8.68% to 2.25%.

Beyond OOD detection, SimLabel also provided a slight boost to standard top-1 classification accuracy, demonstrating that semantic neighborhood information improves general model understanding.

Conclusion

SimLabel offers a simple yet effective post-hoc strategy for OOD detection in VLMs. By shifting the focus from individual label matches to semantic neighborhood consistency, it effectively filters out deceptive OOD samples. While challenges remain for "tail" classes with few neighbors, SimLabel sets a new benchmark for reliable zero-shot OOD detection.

Summary updated

BibTeX
@misc{zou2025simlabel,
  author = {Shu Zou and Xinyu Tian and Qinyu Zhao and Zhaoyuan Yang and Jing Zhang},
  title = {{SimLabel: Consistency-Guided OOD Detection with Pretrained Vision-Language Models}},
  year = {2025},
  eprint = {2501.11485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.11485},
}
Figure