Open-vocabulary object detection

Also known as: open-set object detection

On this page 7

Open-vocabulary object detection is a family of computer vision methods that locate and classify objects in an image using categories described in natural language, including categories that never appeared with bounding box labels during training. In computer vision and artificial intelligence more broadly, it replaces the fixed label set of a conventional detector with a text-conditioned classifier, so a user can ask for “forklift”, “broken pallet” or “person wearing a hard hat” at inference time.

The approach is also called open-set object detection, although strict usage distinguishes the two: open-set work flags unknown objects as “unknown”, while open-vocabulary work names them through language. The key enabler is vision-language pretraining on hundreds of millions of image-text pairs, which aligns visual regions and words in one shared embedding space.

How open-vocabulary detectors work

An open-vocabulary detector splits detection into class-agnostic localization and language-based classification. A localization stage proposes boxes that probably contain some object, and a classification stage compares the visual embedding of each box with text embeddings of the requested category names.

The text side usually comes from a pretrained encoder such as the one in CLIP, which turns a prompt like “a photo of a ladder” into a vector. The detector scores each region by cosine similarity between its region embedding and every class vector, then applies a learned temperature and threshold. Because classes are just vectors, the vocabulary can be changed without retraining the network.

The table below lists the main components and the role each one plays in the pipeline.

ComponentFunctionTypical implementation
Image backboneExtracts visual featuresResNet, Swin Transformer or ViT
Region proposerFinds candidate object boxesRPN or DETR-style object queries
Text encoderEmbeds category names or phrasesCLIP or BERT-style transformer
Alignment headScores region-text similarityDot product with learned temperature
Post-processingRemoves duplicate boxesNon-maximum suppression or set matching
Core components of an open-vocabulary detector

Training strategies and model families

Most open-vocabulary detectors combine a small amount of box-annotated data with a much larger amount of weakly labeled image-text data. The design question is how to transfer the broad vocabulary of the image-text data into region-level recognition, which image-level pretraining does not provide on its own.

Three broad strategies dominate. Knowledge distillation trains region embeddings to match the embeddings that a frozen vision-language model gives to cropped regions. Grounded pretraining treats detection as phrase grounding, so captions and referring expressions become box supervision. Pseudo-labeling runs a strong model on unlabeled images to create boxes for novel categories, then trains on them.

ApproachMain ideaMain trade-off
ViLDDistills CLIP embeddings into region featuresInherits CLIP biases on small crops
OWL-ViTAdds box heads to a contrastive ViTSimple design, weaker on small objects
GLIPUnifies detection and phrase groundingNeeds large grounding datasets
Grounding DINOFuses text and image features earlyHigher compute per prompt
YOLO-WorldAdds text prompts to a real-time detectorLower accuracy on rare categories
Representative approaches and their main idea

Prompt design matters. Prompt ensembling, which averages embeddings from templates such as “a photo of a {}” and “a {} in the scene”, often improves recall for rare classes, while descriptive phrases help separate visually similar categories.

Comparison with closed-set and zero-shot detection

Open-vocabulary detection differs from classic object detection mainly in how the label space is defined. A closed-set detector such as Faster R-CNN or a standard YOLO model has a fixed output layer with one logit per training class, so adding a category means collecting boxes and retraining.

Strict zero-shot detection forbids any knowledge of novel classes during training, whereas open-vocabulary detection explicitly allows large-scale image-text data that may mention them. This weaker restriction is the reason open-vocabulary models perform far better in practice.

SettingLabel space at inferenceNovel classes handled by
Closed-set detectionFixed training classes onlyRetraining with new boxes
Open-set detectionKnown classes plus “unknown”Rejection of unfamiliar objects
Zero-shot detectionSeen plus unseen classesAttribute or word vectors only
Open-vocabulary detectionAny text queryVision-language pretraining
How detection settings differ

Evaluation benchmarks and metrics

Open-vocabulary detectors are evaluated with mean average precision split into base and novel categories. The common protocol trains on base classes of COCO or LVIS and reports novel-class accuracy separately, because overall accuracy can hide weak generalization.

On LVIS, the key number is AP on rare categories (APr), which covers classes with very few training images. Results on these rare classes remain clearly below accuracy on common classes, and zero-shot transfer to datasets such as ODinW reveals how well a model handles new domains like aerial or medical images.

BenchmarkWhat it measuresHeadline metric
OV-COCO17 novel classes after 48 base classesNovel AP50
OV-LVISLong-tail recognition of rare classesMask or box APr
ODinWTransfer to 13 or 35 diverse datasetsAverage AP
Referring expressionsGrounding of full phrasesAccuracy at IoU 0.5
Common evaluation settings

Limitations and common failure modes

Open-vocabulary detection trades some precision and calibration for flexibility. Scores from text similarity are not probabilities, and a single global threshold rarely suits every category, so per-class threshold tuning is often required in production.

  • Hallucinated detections: a query for an absent object may still return confident boxes on similar shapes.
  • Fine-grained confusion: related categories such as “crow” and “raven” receive nearly identical scores.
  • Small and occluded objects: region features at low resolution align poorly with text embeddings.
  • Prompt sensitivity: synonyms, plurals and word order can change recall noticeably.
  • Inherited bias: web-scale image-text data carries cultural and demographic biases into predictions.
  • Higher compute cost: early text-image fusion makes inference slower than a compact closed-set detector.

A practical recommendation is to use an open-vocabulary model for prototyping and data labeling, then fine-tune or distill into a closed-set detector once the category list is stable and latency matters.

The simple explanation

A normal object detector is like a guard who knows only a fixed list of items. It can spot cars and people. It cannot spot a scooter unless someone trains it again with many labeled scooter pictures.

An open-vocabulary detector learned from pictures paired with captions. Because of that, it understands words and images together. You type what you want to find, and it draws boxes around matching objects. The main idea is simple: the list of objects is written, not built in. It is not perfect, so people still check its results for important jobs.

How it is used in practice

A logistics company wants to monitor a warehouse with 40 ceiling cameras. Its existing detector recognizes only people and forklifts. Managers now also want alerts for spilled liquid, blocked fire exits and unsecured pallets, and labeling thousands of new images would take months.

The engineering team runs an open-vocabulary model such as Grounding DINO on archived footage with prompts like “liquid spill on floor” and “pallet blocking a door”. Reviewers accept or reject the proposed boxes, which yields about 6,000 verified labels in two weeks. The team then trains a compact closed-set detector on these labels for real-time use on edge hardware. The outcome is a working alert system for three new hazard types without a manual labeling project, while the open-vocabulary model remains in use for exploring new categories.