Test-time Vocabulary Adaptation for Language-driven Object Detection

Mingxuan Liu, Tyler L. Hayes, Massimiliano Mancini, Elisa Ricci, Riccardo Volpi, Gabriela Csurka

TL;DR

Open-vocabulary object detectors often get confused when forced to search through large, noisy lists of potential target classes. This paper introduces VocAda (Vocabulary Adapter), a training-free, plug-and-play module that uses vision-language models at inference time to dynamically prune irrelevant classes from the vocabulary based on the image's global context. By filtering out these "distractors," VocAda consistently boosts the accuracy of off-the-shelf detectors on standard benchmarks.

What Problem Does This Paper Address?

Open-Vocabulary Object Detection (OvOD) allows users to specify any target classes at test time using natural language. However, if a user provides a massive or overly broad vocabulary, the detector's performance often degrades due to "distractor noise."

Because most OvOD models evaluate isolated image regions rather than the entire scene context, they easily misclassify objects that share visual similarities—such as mistaking a curling stone for a teapot. The authors address this limitation by asking: Can we use the global semantic context of an image to automatically tailor the vocabulary at test time?

Methods

VocAda is entirely training-free, runs in parallel with the underlying detector to minimize overhead, and operates in three main steps:

  1. Image Captioner (IC): A vision-language model (LLaVA-Next-7B) generates a comprehensive description of the image. Crucially, the authors use a structured prompt forcing the VLM to list both "primary" (foreground) and "secondary" (background) objects to ensure no categories are missed.
  2. Noun Extractor (NE): A text-parsing tool (spaCy) extracts noun phrases from the generated caption, preserving context-relevant adjectives (e.g., "plastic container" instead of just "container").
  3. Class Selector (CS): This module matches the extracted nouns against the user's original vocabulary to create a pruned, image-specific subset. The authors propose two variants:
  4. CLIP-based: Uses embedding similarity to match nouns to vocabulary classes.
  5. LLM-based: Uses a Large Language Model (Llama3-8B) with a system prompt enriched with synonyms to perform context-aware reasoning and map ambiguous terms.
Fig. 3: Pipeline of open-vocabulary object detection with VocAda. Top: Given an image and a user-defined vocabulary, VocAda uses an Image Captioner to describe visible objects, then extracts nouns representing category names via a Noun Extractor. Next, the Class Selector matches these nouns to the user vocabulary, yielding an adapted vocabulary for final detection. Bottom: Two Class Selector variants: (left) top-k CLIP text similarity; (right) an LLM that proposes the adapted vocabulary.

Datasets

The authors evaluated VocAda across two primary benchmarks:

  • COCO: Evaluated using the Open-Vocabulary Evaluation (OVE) protocol, splitting the 80 classes into 48 base (seen during training) and 17 novel (unseen) classes.
  • Objects365: Evaluated using the Cross-Dataset Transfer Evaluation (CDTE) protocol, where models are trained on LVIS and tested zero-shot on 80k images containing novel classes.

Key Insights and Ideas

  • The Power of the Oracle: The authors first tested an "Oracle" vocabulary containing only the ground-truth classes present in each image. This yielded massive performance spikes (+19.3 AP on Objects365), proving that vocabulary noise is a major bottleneck in modern OvOD.
  • Global Context Defeats Local Ambiguity: Traditional detectors look at cropped regions, missing the big picture. By using a VLM to read the entire scene first, the system can easily deduce that a round object on ice is a curling stone, not a teapot.
  • Precision vs. Recall Trade-off: The CLIP-based selector achieved higher recall (94.8%), meaning it rarely missed a relevant class, but lower precision. The LLM-based selector was much better at aggressively filtering out distractors (73.7% precision), leading to better overall detection accuracy.

Key Results

  • VocAda-LLM achieved the best results, delivering an average improvement of +3.3 $\text{AP}_{50}$ on COCO and +2.2 AP on Objects365 across three state-of-the-art detectors (Detic, VLDet, and CoDet).
  • It significantly outperformed alternative open-set tagging methods like RAM++.
  • Qualitative examples show VocAda successfully preventing silly mistakes, such as labeling a "Storage Box" as a "Computer Box" or misclassifying sports equipment.
Qualitative examples showing how VocAda filters out distracting classes to correct misclassifications.

Limitations and Future Work

  • Computational Overhead: Integrating large VLMs (7B) and LLMs (8B) into the inference pipeline increases latency and memory requirements (requiring up to 31 GB of GPU memory for the LLM variant). While the authors note this can be mitigated using deployment frameworks like TensorRT or SGLang, it remains a hurdle for real-time edge applications.
  • Future Directions: The authors suggest exploring ways to optimize the precision-recall balance—specifically, finding methods that match the high distractor-filtering precision of LLMs while retaining the high recall of CLIP-based matching.

Summary updated

BibTeX
@misc{liu2025test,
  author = {Mingxuan Liu and Tyler L. Hayes and Massimiliano Mancini and Elisa Ricci and Riccardo Volpi and Gabriela Csurka},
  title = {{Test-time Vocabulary Adaptation for Language-driven Object Detection}},
  year = {2025},
  eprint = {2506.00333},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00333},
}
Figure