NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TagOOD: A Novel Approach to Out-of-Distribution Detection via Vision-Language Representations and Class Center Learning

Jinglun Li, Xinyu Zhou, Kaixun Jiang, Lingyi Hong, Pinxue Guo, Zhaoyu Chen, Weifeng Ge, Wenqiang Zhang · DOI

Abstract

Out-of-Distribution (OOD) detection is critical for the reliable deployment of computer vision models. However, existing methods often suffer from semantic confusion, where background features shared between in-distribution (IND) and OOD samples lead to false positives. We present TagOOD, a framework that leverages vision-language models (VLMs) to decouple object-level features from background noise. By utilizing a multi-tagging approach and learning representative class centers through a lightweight projection network, TagOOD achieves state-of-the-art performance on ImageNet-1K benchmarks, significantly reducing the False Positive Rate (FPR95) compared to existing CLIP-based methods.

Introduction

In computer vision, OOD detection is the ability of a model to flag a sample as "unseen" or "unknown" rather than confidently misclassifying it. A persistent challenge in this field is the "background noise" trap. Most current OOD detection methods rely on whole-image features. For instance, a model looking at an orangutan might also encode the trees and grass in the background. If an OOD image (e.g., a desert) contains similar "withered grass," the model may mistakenly classify it as a known category. This semantic confusion occurs because the model fails to distinguish between the primary object and incidental environmental features.

Methodology

TagOOD addresses semantic confusion through a two-stage pipeline: Image Feature Decomposition and Class Center Learning.

1. Image Decomposition (The "Tag" Stage)

TagOOD utilizes a pre-trained vision-language model, specifically the Recognize Anything Model (RAM). Instead of a single label, RAM generates multiple semantic tags for an image. The framework filters these tags to retain only those belonging to known IND categories. By leveraging the model's internal attention maps, TagOOD isolates specific regions of the feature map corresponding to these tags, effectively stripping away background noise and focusing on the semantic core of the object.

2. Class Center Generation and OOD Scoring

The isolated object features are fed into a lightweight projection network that maps them into a common space. Here, the model learns representative "class centers" for every IND category, updated via an Exponential Moving Average (EMA). During inference, the cosine similarity between a test sample's features and these learned centers is calculated. A low similarity across all known centers flags the sample as OOD.

The TagOOD framework consists of (a) an image decomposition stage using a tagging model and (b) a projection training stage for class center generation.

Experimental Evaluation

The authors evaluated TagOOD using ImageNet-1K as the In-Distribution dataset. OOD detection capabilities were tested against several standard benchmarks, including iNaturalist, SUN, Places, Textures, OpenImage-O, and ImageNet-O.

Key Results

TagOOD demonstrates superior performance in reducing the False Positive Rate (FPR95)—the rate at which OOD samples are incorrectly flagged as known when 95% of known samples are correctly identified.

  • Average Performance: TagOOD achieved an average AUROC of 92.40% and an FPR95 of 27.85% across standard benchmarks.
  • Comparison with Baselines: TagOOD outperformed specialized CLIP-based methods such as MCM and LoCoOp. Notably, it improved the FPR95 by 2.82% over previous state-of-the-art results, even when competing against models with larger backbones (e.g., ViT-L).
  • Robustness: The model showed strong resilience on the OpenImage-O dataset (96.28% AUROC), indicating its effectiveness against diverse real-world OOD samples.
Radar charts illustrating AUROC and FPR95 performance across various OOD datasets for different threshold values (τ).

Discussion and Conclusion

The success of TagOOD highlights that semantic decoupling is key to robust OOD detection. By isolating object-level features, the model creates a cleaner boundary for "known" data. Furthermore, using multiple predicted tags from a VLM provides a richer representation than single ground-truth labels.

While TagOOD is currently dependent on the quality of the underlying tagging model's feature extraction (e.g., Swin-L), it offers a highly efficient path forward. By training only a lightweight projection head, it harnesses the power of massive vision-language pre-training without the prohibitive costs of full-model fine-tuning. Future work may explore alternative feature extractors and enhanced methods for handling adversarial OOD samples.

Summary updated

BibTeX
@inproceedings{li2024tagood,
  author = {Jinglun Li and Xinyu Zhou and Kaixun Jiang and Lingyi Hong and Pinxue Guo and Zhaoyu Chen and Weifeng Ge and Wenqiang Zhang},
  title = {{TagOOD: A Novel Approach to Out-of-Distribution Detection via Vision-Language Representations and Class Center Learning}},
  booktitle = {ACM Multimedia},
  year = {2024},
  url = {https://openreview.net/forum?id=s9WLhE2c75},
}
Figure