Back to paper library
arXiv 2024CVPR 2024Object detectionPaper notes

YOLO-World

The Pursuer of Nouns

Original paper

YOLO-World: Real-Time Open-Vocabulary Object Detection

Paper authors

Tianheng Cheng · Lin Song · Yixiao Ge · Wenyu Liu · Xinggang Wang · Ying Shan

Publication
CVPR 2024Conference
First submitted to arXiv
arXiv:2401.17270
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{objectdetectionyoloworld2024,
  title = {{YOLO-World: Real-Time Open-Vocabulary Object Detection}},
  author = {Tianheng Cheng and Lin Song and Yixiao Ge and Wenyu Liu and Xinggang Wang and Ying Shan},
  year = {2024},
  eprint = {2401.17270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.17270}
}
On this page

In this era of object detection represented by YOLO, speed and efficiency have long ceased to be new topics.

What is truly challenging is the closed nature of categories.

Problem Definition

Over the past decade, the progress in object detection has been revolutionary.

We witnessed the R-CNN series gradually constructing the rule-based world of two-stage detection, saw SSD and RetinaNet simplify the process by querying each anchor on a pixel basis; we also saw DETR introduce query design and Transformers, transforming "detection" from mere localization to semantic interaction.

Among all these architectures, the YOLO series remains a distinctive existence.

It continuously compresses computational costs, pushing the limits of real-time inference with a minimalist architecture: fast! faster! fastest!

However, despite these technological iterations, one thing has rarely been shaken:

Almost all mainstream detection models still live in a world of "fixed vocabularies."

Training data defines the language the model can speak; if "kite" is absent from a fixed detector’s class list, it cannot report a detected region as a kite at inference. COCO has 80 categories, Objects365 has 365, but the real world contains many more objects without names in these datasets.

How can we enable models to have the ability to "open the dictionary" instead of only responding within a few known options?

Open-Vocabulary Object Detection (abbreviated OVD) was born to solve this bottleneck. It aims for object detection to transcend fixed-class boundaries and learn to understand "semantics" rather than merely memorizing the mapping between images and labels.

But every attempt at OVD comes at a high cost.

Solution

The architecture of YOLO-World is shown above.

It retains the overall design familiar in the YOLO series: after the image is encoded by a backbone, it passes through a multi-scale feature fusion module, ultimately outputting predicted bounding boxes and object representations. Unlike past fixed-category setups, YOLO-World introduces a language encoder and cross-modal fusion module, enabling the whole architecture to handle open-vocabulary detection tasks.

The overall process is as follows:

  1. The user input prompt (which could be a description, a set of nouns, or a class list) is first converted into semantic vectors by CLIP’s text encoder.

  2. The image is processed by YOLOv8’s image encoder to extract multi-scale image features.

  3. Then, through the newly proposed RepVL-PAN, language and image features are aligned and fused.

  4. Finally, a decoupled head simultaneously outputs bounding boxes and object semantic representations, which are matched against the input vocabulary.

This design allows YOLO-World to no longer rely on fixed-class classifiers but to find the regions in the image that best match the input prompt via semantic matching. The vocabulary can be changed for inference after the new words are encoded and the offline vocabulary weights are updated; zero-shot transfer still depends on the vision-language alignment learned during pretraining.

Under such a structure, object detection shifts from "predicting which class" to "whether this region corresponds to the concept described by a certain word."

Next, let's take a closer look at the design of RepVL-PAN.

RepVL-PAN

As shown above, YOLO-World proposes RepVL-PAN (Re-parameterizable Vision-Language Path Aggregation Network), a module that enhances vision-language interaction and operates during YOLO’s multi-scale feature fusion stage.

Traditional PAN only handles top-down and bottom-up image feature passing and fusion. However, in open-vocabulary detection tasks, relying solely on visual signals is insufficient for semantic matching. Therefore, RepVL-PAN injects language information into the image feature pipeline, allowing semantics to permeate the feature map generation process.

It consists of two key components:

  1. Text-guided CSPLayer

    In the YOLO architecture, CSPLayer is an improved residual stack module responsible for maintaining feature stability and channel expressiveness. In YOLO-World, the authors design a text-guided version of CSPLayer, enabling each feature layer to be adjusted based on vocabulary semantics.

    Specifically, for an image feature at a certain scale Xl∈RH×W×DX_l \in \mathbb{R}^{H \times W \times D}, and a set of word embedding vectors from the text encoder W={wj}j=1CW = \{w_j\}_{j=1}^C, we compute the similarity between each position and the semantics, and apply a sigmoid function to form attention weights:

    Xl′=Xl⋅δ(max⁡j∈{1..C}(XlWj⊤))⊤X_l' = X_l \cdot \delta\left( \max_{j \in \{1..C\}} (X_l W_j^\top) \right)^\top

    Here δ(⋅)\delta(\cdot) is sigmoid: it turns the maximum similarity to the supplied words at each location into a gate. This design weights each position’s image feature according to semantic cues, generating a feature map Xl′X_l' that better corresponds to the vocabulary.

    These enhanced image features are concatenated with the cross-stage branch features, then passed to the next PAN layer, gradually building a semantically sensitive pyramid representation.

  2. Image-Pooling Attention

    Besides letting language influence images, YOLO-World also designs a feedback path so image information can refine language representations. This is implemented through Image-Pooling Attention.

    Specifically, image features from various scales are pooled down to several regional vectors (a 3×33 \times 3 grid per scale, or 27 tokens across three scales), denoted as X~∈R27×D\tilde{X} \in \mathbb{R}^{27 \times D}, which serve as Key and Value to update the original word embeddings via multi-head attention:

    W′=W+MultiHeadAttention(W,X~,X~)W' = W + \text{MultiHeadAttention}(W, \tilde{X}, \tilde{X})

    As a result, the word embeddings are no longer static semantic vectors but enriched with current image context, strengthening the correspondence between words and image content.


These two designs form a symmetrical semantic loop: one allows language to infiltrate the image, the other lets the image refine the language.

Ultimately, these updated language and image features jointly participate in object detection, enabling the model to perform stable semantic matching without relying on fixed-class classifiers.

A key aspect of this entire mechanism is that it supports re-parameterization: the chosen vocabulary can be encoded once and folded into convolutional or linear weights. For a fixed offline vocabulary, the CLIP text encoder need not run for every image, reducing computational cost. Changing the vocabulary requires encoding the new words and updating those weights.

Pretraining Strategy

Although language and images are different modalities, if we want the model to understand what a "word refers to," it ultimately comes down to one thing:

The correspondence between words and image regions.

YOLO-World adopts a region-text contrastive learning strategy, aiming to teach the model to distinguish: "This is a dog," not "This looks like a dog."

To train this ability, the authors unify the annotation format for detection, grounding, and image-text data, representing each annotated sample as:

Ω={(Bi,ti)}i=1N\Omega = \{(B_i, t_i)\}_{i=1}^N

where BiB_i is the bounding box of the ii-th region in the image, and tit_i is the corresponding word.

This word can be a category noun or a noun phrase extracted from the description.

Contrastive Learning

During the forward phase, YOLO-World predicts KK object regions per training image, each with a representation vector eke_k. Meanwhile, the text encoder generates corresponding word vectors {wj}\{w_j\} for the input vocabulary set TT.

To make the similarity between these vectors meaningful, the model calculates similarity as follows:

sk,j=α⋅L2Norm(ek)⋅L2Norm(wj)⊤+βs_{k,j} = \alpha \cdot \text{L2Norm}(e_k) \cdot \text{L2Norm}(w_j)^\top + \beta

where α,β\alpha, \beta are trainable scale and bias parameters to stabilize training; L2 normalization ensures similarity mainly reflects direction (semantics) rather than magnitude.

With this similarity matrix, the model transforms the word classification task into a semantic matching task. It first matches predictions to annotations through task-aligned assignment, then computes the region-text contrastive loss for positive predictions:

Lcon=CrossEntropy(sk,j,yk)\mathcal{L}_{\text{con}} = \text{CrossEntropy}(s_{k,j}, y_{k})

Task Separation

In the overall training process, YOLO-World uses data not only from annotated datasets such as Objects365 but also samples from grounding tasks or image-text paired datasets.

Considering data quality differences, the authors use an indicator variable λI\lambda_I to control whether to apply box regression losses:

  • When image II comes from detection or grounding data, IoU loss and distribution focal loss are calculated.
  • When image II comes from image-text data (e.g., CC3M), only the semantic contrastive loss is calculated.

The total loss is:

L(I)=Lcon+λI⋅(Liou+Ldfl)\mathcal{L}(I) = \mathcal{L}_{\text{con}} + \lambda_I \cdot (\mathcal{L}_{\text{iou}} + \mathcal{L}_{\text{dfl}})

This design enables YOLO-World to flexibly handle data of varying quality and sources, maintaining generalization ability while preserving bounding box regression accuracy.

Automatic Annotation

The real key enabling YOLO-World to conduct large-scale pretraining is the pseudo-labeling strategy.

After all, large image-text datasets like CC3M have rich descriptions but lack bounding box annotations; relying on manual labeling is impractical.

Therefore, YOLO-World adopts a three-stage automatic annotation pipeline:

  1. Word Extraction: Extract noun phrases from descriptions (e.g., "a dog running in the park" → "dog," "park").
  2. Bounding Box Generation: Use a pretrained GLIP model to generate predicted boxes in the image based on these words.
  3. Filtering: Use CLIP to evaluate both image-caption and region-word relevance, remove unreliable pseudo pairs and images, and apply NMS to eliminate redundant boxes.

In the end, the authors collected 246k images from CC3M and generated 821k pseudo region-text annotations, becoming a crucial data source for training YOLO-World.

Discussion

The experiments in the paper cover three aspects: zero-shot, fine-tuning, and open-vocabulary segmentation, verifying YOLO-World’s generalization ability, practical value, and extensibility respectively.

We highlight several key results here; please refer to the original paper for full details.

Generalization Ability of Small Models

The authors conducted zero-shot evaluation on LVIS, shown above. Parentheses show both parameter counts and FPS before re-parameterization; the values outside them describe the deployed version with offline vocabulary and no per-image text encoding.

Without any LVIS fine-tuning, YOLO-World-L pretrained on O365, GoldG, and pseudo-labeled CC3M achieves 35.4 Fixed AP / 52.0 FPS on LVIS minival, exceeding the GLIP-T and Grounding DINO-T rows shown in this table for both AP and speed. Their pretraining data and parameter counts differ, so the gap cannot be assigned to architecture alone.

More importantly, this result was measured on a pure V100 setup without TensorRT or FP16 acceleration, demonstrating the model’s highly efficient inference pipeline.

Several observations arise from this result:

  • Offline vocabulary avoids re-encoding text for every image. This LVIS evaluation uses 1,203 category names and retains at most 1,000 predictions per image; box filtering remains part of detection, so this is not a post-processing-free result.
  • YOLO-World-S, the smallest version with 13M parameters after re-parameterization (77M before), still reaches 26.2 AP, close to other medium-sized architectures, showing that the pretraining scheme also works on the S variant.

Previously, open-vocabulary detection models were often impractical for deployment due to their large size and language model dependencies.

This makes real-time open-vocabulary detection plausible beyond very large detectors. The 52 FPS figure comes from one NVIDIA V100, however; edge-device latency remains to be measured.

Module Ablation Study

To validate the contribution of the RepVL-PAN module in YOLO-World, the authors designed ablation studies on two core modules: Text-guided CSPLayer (T→I) and Image-Pooling Attention (I→T), corresponding to language influencing image and image feeding back to language respectively. The table shows zero-shot detection performance on LVIS under five settings.

Here:

  • “T→I” means enabling Text-guided CSPLayer;
  • “I→T” means enabling Image-Pooling Attention;
  • “GQA” indicates whether the language-rich GQA dataset was used in pretraining.

The experiments divide into two parts:

First, without GQA pretraining:

  • The baseline with no language module has AP only 22.4, and rare category (APrAP_r) at 14.5.
  • Enabling T→I module raises AP to 23.2, with slight increase of APrAP_r to 15.2.
  • Enabling both T→I and I→T (bidirectional language fusion) further improves AP to 23.5, and notably raises APrAP_r to 16.2, with rare-class AP rising another 1.0 point after I→T is added in this setting.

This shows that even without the richer GQA text annotations, adding the language modules improves YOLO's zero-shot AP in this O365 setting.

Next, with GQA pretraining:

  • Adding GQA alone without language modules improves the model significantly to 29.7 AP / 21.0 APrAP_r, indicating the semantic information in GQA benefits recognition.
  • Enabling both language modules with GQA yields the highest scores: 31.9 AP / 22.5 APrAP_r, with common and frequent categories (APcAP_c, APfAP_f) also reaching 29.9 / 35.4.

Overall:

  • T→I provides early fusion, language-guided capability, gating PAN image features with text;
  • I→T supplements contextual feedback, making word embeddings more image-context aware;
  • When pretrained on semantically dense data (like GQA), the joint gain rises from 1.1 to 2.2 AP; the table does not isolate each module under GQA.

These results show YOLO-World does not rely on stacking backbones but establishes bidirectional language fusion paths within the PAN structure, enabling stable and fine-grained semantic alignment for open vocabularies.

Encoder Fine-tuning Strategy

For generating word embeddings, YOLO-World adopts two text encoders with different traits: CLIP-base and BERT-base, comparing their performance when frozen and fine-tuned.

Observations:

  • When frozen, CLIP-base greatly outperforms BERT-base, with a rare category gap on LVIS of +11.1 AP (14.5 vs. 3.4), and overall AP increasing from 14.6 to 22.4.
  • Fine-tuning BERT-base improves its performance to 18.3 AP and rare category to 6.6 AP, but still below frozen CLIP.
  • Conversely, fine-tuning CLIP results in performance degradation: AP drops from 22.4 to 19.3, APrAP_r falls drastically from 14.5 to 8.6.

This indicates several insights:

  • CLIP was pretrained on image-text pairs; in this LVIS zero-shot experiment, frozen CLIP outperforms frozen BERT.
  • Fine-tuning BERT raises AP from 14.6 to 18.3 here. The table alone cannot show how its internal semantic mapping changes.
  • Fine-tuning CLIP lowers AP in this setting. The authors suggest that O365's narrower 365-category text distribution may weaken its prior generalization, an explanation for this experiment rather than a general rule.

This reminds us that, in this O365-to-LVIS experiment, whether text-encoder fine-tuning helps depends on its pretraining and the target vocabulary.

Downstream Task Extensibility

YOLO-World extends beyond detection to Open-Vocabulary Instance Segmentation (OVIS), requiring the model not only to locate "what it is" but also to outline "its contour."

The authors designed two experiment settings:

  1. COCO → LVIS: fine-tune the pretrained YOLO-World on COCO masks for 80 classes, then evaluate transfer to 1,203 LVIS classes.
  2. LVIS-base → LVIS: fine-tune on LVIS-base masks for 866 classes, test generalization on full set including 337 rare classes.

Two training strategies:

  • Fine-tune only the segmentation head, preserving the detection backbone and pretrained semantic generalization.
  • Fine-tune all modules (All), allowing full learning of segmentation context but possibly sacrificing zero-shot flexibility.

With only the segmentation head fine-tuned:

  • Training on COCO, YOLO-World-L achieves 16.2 AP / 12.4 APrAP_r;
  • Using the semantically denser, more finely annotated LVIS-base improves to 19.1 AP / 14.2 APrAP_r.

This shows that, with the detector frozen, training only the segmentation head still yields nonzero mask AP on LVIS rare classes. The two training sources also differ in annotation density, so the gap cannot be assigned to semantic pretraining alone.

Allowing full-model fine-tuning (including PAN, language module, detection head):

  • Under LVIS-base training, YOLO-World-L reaches 28.7 AP, a significant improvement over segmentation-head-only tuning.
  • However, APrAP_r rises only from 14.2 to 15.0, and box APrAP_r falls from 18.0 to 17.4, a 0.6-point drop.

This highlights a classic open-vocabulary dilemma:

Overall AP can hide changes in rare-class and box detection.

If the priority is overall mask AP, full fine-tuning scores higher in this experiment; when unfamiliar classes matter, both mask APrAP_r and box APrbAP_r^b should guide which modules to freeze.

In multimodal systems, accuracy and generalization form a dynamic balance, not an infinitely coexisting goal. Adjusting this balance per scenario may be a more important design choice going forward.

Conclusion

The bidirectional fusion mechanism of RepVL-PAN enables words to be not mere labels attached to predictions but active participants in feature construction. This design philosophy is not language-model-assisted nor vision-model-dominant, but an equal cooperative structure.

For developers, YOLO-World offers several insights:

  • Language-vision fusion does not need to wait for large multimodal models to start.

    With careful design and streamlined architecture, even a speed-focused YOLO framework can achieve generalizable semantic alignment.

  • Open-vocabulary tasks can move toward real-time inference.

    With modules like RepVL-PAN, we can evaluate deployment of detectors that recognize word-defined concepts in resource-constrained settings, beyond relying on fixed-class classifiers for dynamic scenes.

  • Re-parameterizable language modules provide a practical trade-off design.

    They move the cost of encoding a chosen vocabulary to setup time. Changing that vocabulary requires fresh embeddings and weights; V100 speed does not settle edge-device performance.

The contribution of this paper is not just plugging CLIP into YOLO, but rethinking language-vision intersection at the feature pathway level, and enabling semantic alignment without deployment burden via re-parameterization.

The fusion of words and vision is no longer the privilege of high-cost architectures.