Vocabulary-free Image Classification and Semantic Segmentation
Alessandro Conti, Enrico Fini, Massimiliano Mancini, Paolo Rota, Yiming Wang, Elisa Ricci
TL;DR
This work formalizes Vocabulary-free Image Classification and Vocabulary-free Semantic Segmentation, enabling open-ended semantic reasoning without pre-specified vocabularies. It introduces CaSED, a training-free pipeline that retrieves caption-based candidates from external databases using a frozen vision-language model and performs multimodal scoring to select labels, with UpperCaSED adding prompt ensembling for robustness. For segmentation, CaSED is extended via three variants, including DenseCaSED, which builds dense local representations from multi-scale patches and applies CaSED without training. Across diverse benchmarks, CaSED and its variants outperform many open-vocabulary baselines while using far fewer parameters, demonstrating the viability of retrieval-augmented, vocabulary-free semantic understanding in vision tasks. The approach highlights practical gains for open-world perception, though it notes biases in retrieval data and opportunities for memory and finer-grained granularity in future work.
Abstract
Large vision-language models revolutionized image classification and semantic segmentation paradigms. However, they typically assume a pre-defined set of categories, or vocabulary, at test time for composing textual prompts. This assumption is impractical in scenarios with unknown or evolving semantic context. Here, we address this issue and introduce the Vocabulary-free Image Classification (VIC) task, which aims to assign a class from an unconstrained language-induced semantic space to an input image without needing a known vocabulary. VIC is challenging due to the vastness of the semantic space, which contains millions of concepts, including fine-grained categories. To address VIC, we propose Category Search from External Databases (CaSED), a training-free method that leverages a pre-trained vision-language model and an external database. CaSED first extracts the set of candidate categories from the most semantically similar captions in the database and then assigns the image to the best-matching candidate category according to the same vision-language model. Furthermore, we demonstrate that CaSED can be applied locally to generate a coarse segmentation mask that classifies image regions, introducing the task of Vocabulary-free Semantic Segmentation. CaSED and its variants outperform other more complex vision-language models, on classification and semantic segmentation benchmarks, while using much fewer parameters.
