LLM meets Vision-Language Models for Zero-Shot One-Class Classification
Yassir Bendou, Giulia Lioi, Bastien Pasdeloup, Lukas Mauch, Ghouthi Boukli Hacene, Fabien Cardinaux, Vincent Gripon
TL;DR
Zero-shot one-class classification identifies whether a query image belongs to a target class using only the class label. The proposed approach combines LLM-generated visually confusing negatives with CLIP-style cosine similarity in a per-task adaptive boundary, formalized via $s(\\mathbf{x},\\mathbf{t})$ and a threshold $\\lambda_{\\mathbf{t}}(\\mathbf{x})$, with a hybrid ANP+FT scheme that blends adaptive and fixed thresholds. A realistic iNaturalist-based benchmark with hierarchical and uniform task sampling demonstrates state-of-the-art macro F1 across fine- and coarse-grained tasks, while ablations confirm the superiority of average negative prototypes and the value of combining adaptive and fixed thresholds. The work offers practical flexibility for dynamic target concepts and highlightsthreshold calibration as a key factor in zero-shot one-class discrimination, though it acknowledges dependencies on LLM prompts and the transferability of ImageNet-derived thresholds as areas for future improvement.
Abstract
We consider the problem of zero-shot one-class visual classification, extending traditional one-class classification to scenarios where only the label of the target class is available. This method aims to discriminate between positive and negative query samples without requiring examples from the target class. We propose a two-step solution that first queries large language models for visually confusing objects and then relies on vision-language pre-trained models (e.g., CLIP) to perform classification. By adapting large-scale vision benchmarks, we demonstrate the ability of the proposed method to outperform adapted off-the-shelf alternatives in this setting. Namely, we propose a realistic benchmark where negative query samples are drawn from the same original dataset as positive ones, including a granularity-controlled version of iNaturalist, where negative samples are at a fixed distance in the taxonomy tree from the positive ones. To our knowledge, we are the first to demonstrate the ability to discriminate a single category from other semantically related ones using only its label.
