Skip to main content
QUICK REVIEW

[Paper Review] Vocabulary-free Image Classification

Alessandro Conti, Enrico Fini|arXiv (Cornell University)|Jun 1, 2023
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

This paper introduces Vocabulary-free Image Classification (VIC), a novel task that classifies images into an unconstrained semantic space without relying on a predefined vocabulary. The authors propose CaSED, a training-free method that retrieves semantically similar captions from external vision-language databases and uses CLIP to match the image to the best candidate category, achieving state-of-the-art performance across benchmarks with minimal computational cost.

ABSTRACT

Recent advances in large vision-language models have revolutionized the image classification paradigm. Despite showing impressive zero-shot capabilities, a pre-defined set of categories, a.k.a. the vocabulary, is assumed at test time for composing the textual prompts. However, such assumption can be impractical when the semantic context is unknown and evolving. We thus formalize a novel task, termed as Vocabulary-free Image Classification (VIC), where we aim to assign to an input image a class that resides in an unconstrained language-induced semantic space, without the prerequisite of a known vocabulary. VIC is a challenging task as the semantic space is extremely large, containing millions of concepts, with hard-to-discriminate fine-grained categories. In this work, we first empirically verify that representing this semantic space by means of an external vision-language database is the most effective way to obtain semantically relevant content for classifying the image. We then propose Category Search from External Databases (CaSED), a method that exploits a pre-trained vision-language model and an external vision-language database to address VIC in a training-free manner. CaSED first extracts a set of candidate categories from captions retrieved from the database based on their semantic similarity to the image, and then assigns to the image the best matching candidate category according to the same vision-language model. Experiments on benchmark datasets validate that CaSED outperforms other complex vision-language frameworks, while being efficient with much fewer parameters, paving the way for future research in this direction.

Motivation & Objective

  • To formalize a new image classification task, Vocabulary-free Image Classification (VIC), that removes the need for a pre-defined, static vocabulary of categories.
  • To address the challenge of classifying images into a vast, unconstrained semantic space containing millions of fine-grained and evolving concepts.
  • To develop a method that operates without any fine-tuning or additional training, ensuring computational efficiency and flexibility.
  • To propose evaluation metrics that accurately measure alignment between predicted and ground-truth semantic classes in the absence of a fixed vocabulary.
  • To demonstrate that external vision-language databases provide stronger semantic priors than caption-enhanced VLMs for zero-shot classification in unconstrained settings.

Proposed method

  • CaSED retrieves captions from an external vision-language database that are semantically similar to the input image using CLIP's vision encoder.
  • Candidate categories are extracted from the retrieved captions via text parsing and filtering to remove noise and irrelevant terms.
  • The final class prediction is made by computing multimodal similarity scores between the input image and each candidate category using CLIP's joint visual-textual embedding space.
  • The method operates in a training-free manner, relying solely on pre-trained CLIP and an external database, with no parameter updates or fine-tuning.
  • The approach leverages the large-scale coverage of modern vision-language databases (e.g., PMD, CC12M) to explore diverse semantic concepts, including fine-grained categories.
  • Performance is optimized by controlling the number of retrieved captions, with saturation observed beyond 10–20 captions due to potential noise from low-relevance results.

Experimental results

Research questions

  • RQ1Can external vision-language databases serve as effective semantic priors for zero-shot image classification in an unconstrained semantic space?
  • RQ2How does the size and quality of a vision-language database affect performance in vocabulary-free image classification?
  • RQ3Can a training-free method outperform complex, fine-tuned vision-language models in zero-shot classification without a predefined vocabulary?
  • RQ4What is the optimal number of retrieved captions for balancing semantic coverage and noise in the candidate generation phase?
  • RQ5How can we evaluate the semantic alignment between predicted and ground-truth labels when no fixed vocabulary exists?

Key findings

  • CaSED outperforms complex, fine-tuned vision-language models such as BLIP-2 across all benchmark datasets, including both coarse-grained (Caltech-101, UCF101) and fine-grained (FGVC-Aircraft, Flowers-102) classification tasks.
  • Performance improves with larger and higher-quality vision-language databases, with CC12M and Redcaps yielding results comparable or superior to the full YFCC100M subset.
  • The method achieves a +8.9% improvement in cluster accuracy when using the YFCC100M subset compared to CC3M, highlighting the impact of database quality.
  • Performance saturates after retrieving 10–20 captions, with a slight decline in semantic similarity at K=20, indicating diminishing returns and potential noise from irrelevant captions.
  • CaSED achieves state-of-the-art results with minimal computational cost, requiring no additional training or parameter updates, making it highly efficient and scalable.
  • The method demonstrates robustness across diverse semantic spaces, including fine-grained categories, by leveraging the broad coverage of external databases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.