# 开放词汇目标检测

开放词汇目标检测（Open-vocabulary object detection，OVOD）是一种计算机视觉方法，它根据任意文本描述检测并定位图像中的物体，能够识别超出固定训练标签集的类别。它将检测从针对固定类别集对区域进行分类，重新构建为灵活的区域-文本对齐问题，依托于CLIP等大规模视觉-语言模型（VLM）。<sup>[1](https://www.mdpi.com/2504-446X/9/8/557)</sup> 标准闭集检测器在冻结的类别列表上输出边界框和分数，而开放词汇检测器则将每个区域与推理时提供的任意类别名称的文本嵌入进行打分。该领域通过弱监督信号、图文对、图像级标签，或通过大型预训练VLM来解决这种闭集局限，<sup>[2](https://arxiv.org/html/2307.09220)</sup> 相较早期的零样本检测实现了大幅性能飞跃。<sup>[2](https://arxiv.org/html/2307.09220)</sup>

| 关键事实 | 数值 |
|---|---|
| 核心机制 | 来自VLM编码器的文本嵌入充当冻结分类器；区域-文本相似度为标量积<sup>[3](https://ar5iv.labs.arxiv.org/html/2303.13518v1)</sup> |
| 标准基准 | COCO划分：48个基础类别和17个新类别；LVIS：337个稀有类别作为新类别；指标为Novel AP50和APr<sup>[4](https://ar5iv.labs.arxiv.org/html/2309.00227)</sup> |
| 基础-新类差距 | OVR-CNN：新类22.8 vs 基础类46.0 AP50；ViLD：在OVD-COCO上新类27.6 vs 基础类59.5 AP50<sup>[4](https://ar5iv.labs.arxiv.org/html/2309.00227)</sup> |
| 实时精度 | YOLO-World：在V100上LVIS数据集达到35.4 AP，52.0 FPS<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)</sup> |
| 零样本迁移 | Grounding DINO 1.5 Pro：COCO上54.3 AP，LVIS-minival上55.7 AP，LVIS-val上47.6 AP<sup>[6](https://arxiv.org/html/2405.10300v2)</sup> |
| 边缘端速度 | Grounding DINO 1.5 Edge：在TensorRT下LVIS-minival零样本36.2 AP，75.2 FPS<sup>[6](https://arxiv.org/html/2405.10300v2)</sup> |
| 扩展标签空间 | Detic将LVIS、Objects365、OpenImagesV4和Visual Genome数据集合并为包含2520个常见物体类别的标签空间<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2023/file/e6d58fc68c0f3c36ae6e0e64478a69c0-Paper-Conference.pdf)</sup> |

## 工作原理

该机制基于对比视觉-语言预训练。CLIP通过在4亿图文对上对比预训练实现了首次突破；由模板提示（如“一张[类别]的照片”填入类别名称）产生的文本嵌入充当冻结分类器，由于预训练的作用而与图像模态对齐。<sup>[2](https://arxiv.org/html/2307.09220)</sup> 检测器继承这种对齐：在基于对齐的开放词汇检测中，文本查询的分数通过其嵌入（由语言模型产生）与图像区域嵌入（由视觉编码器产生）之间的标量积获得。<sup>[3](https://ar5iv.labs.arxiv.org/html/2303.13518v1)</sup>

YOLO-World使融合点更加明确。它利用预训练的CLIP文本编码器对输入文本进行编码，产生文本嵌入 \( W = \mathrm{TextEncoder}(T) \in \mathbb{R}^{C \times D} \)，其中 \( C \) 为名词数量，\( D \) 为嵌入维度。<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)</sup> 它通过可重参数化视觉-语言路径聚合网络（RepVL-PAN）融合文本和图像特征，并以区域-文本对比损失进行训练。<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)</sup> 训练数据被重新构造为区域-文本对 \( \Omega = \{B_{i}, t_{i}\}_{i=1}^{N} \)，其中 \( t_{i} \) 可以是类别名称、名词短语或物体描述。<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)</sup>

已发表的综述将开放词汇检测方法分为四类，用于将VLM知识迁移至检测：区域感知训练、[伪标签](https://www.edgepedia.org/zh/pseudo-labeling)、知识蒸馏和迁移学习；所有方法都使用VLM文本编码器将类别名称编码为冻结文本嵌入作为分类器。<sup>[2](https://arxiv.org/html/2307.09220)</sup>

## 实现方法

实际流程如下。首先，选择预训练的VLM文本编码器，通常为CLIP的编码器，并将其冻结。其次，获取区域监督：在有人工标注框的情况下使用人工标注，或在带描述的网络图像上使用伪标签。YOLO-World的自动流水线使用GLIP生成伪框，使用CLIP过滤低相关对，为CC3M中24.6万张图像标注了82.1万个伪标注。<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)</sup> 第三，扩展标签空间：Detic结合LVIS、Objects365、OpenImagesV4和[Visual Genome](https://www.edgepedia.org/zh/visual-genome)数据集，去除重复项和复数形式，得到包含2520个常见物体类别的标签空间。<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2023/file/e6d58fc68c0f3c36ae6e0e64478a69c0-Paper-Conference.pdf)</sup> 第四，在扩大后的词汇表上以区域-文本对比目标进行训练。最后，高效部署：推理时可移除文本编码器，将文本嵌入重参数化到RepVL-PAN的权重中，<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)</sup> 官方YOLO-World实现通过将预计算词汇嵌入作为参数固化到模型中导出检测模型，无需额外训练或微调。<sup>[8](https://github.com/ailab-cvc/yolo-world)</sup>

伪标签一次生成即完成；在线训练期间迭代优化伪标签质量的研究仍然较少。<sup>[2](https://arxiv.org/html/2307.09220)</sup> [评估](https://www.edgepedia.org/zh/evaluation)遵循两种惯例：OVR-CNN的COCO划分，含48个基础类别和17个新类别；以及ViLD的LVIS划分，以337个稀有类别作为新类别；Novel AP50和APr分别是OVD-COCO和OVD-LVIS上的主要指标。<sup>[4](https://ar5iv.labs.arxiv.org/html/2309.00227)</sup>

## 起源

开放词汇目标检测由扎雷安及其同事于2020年在《利用图像描述进行开放词汇目标检测》中提出，发布于arXiv，后以OVR-CNN在CVPR 2021上展示。<sup>[9](https://doi.org/10.48550/arxiv.2011.10678)</sup> 已发表的文献将该CVPR 2021论文列为开放词汇目标检测的首项工作。<sup>[10](https://openaccess.thecvf.com/content/CVPR2021/papers/Zareian_Open-Vocabulary_Object_Detection_Using_Captions_CVPR_2021_paper.pdf)</sup> 一种相关的表述方式是将闭词汇检测器的分类层替换为类别名称的文本嵌入，这一方法被许多后续工作采用。<sup>[3](https://ar5iv.labs.arxiv.org/html/2303.13518v1)</sup> 两个谱系都建立在早期零样本检测之上，后者使用词嵌入投影等零样本学习技术来学习物体候选分类；班萨尔等人认为零样本检测的主要挑战在于背景类建模。<sup>[10](https://openaccess.thecvf.com/content/CVPR2021/papers/Zareian_Open-Vocabulary_Object_Detection_Using_Captions_CVPR_2021_paper.pdf)</sup> 在表示方面，CLIP的4亿对对比预训练（训练图像与其匹配描述对齐）提供了对齐的嵌入空间，<sup>[2](https://arxiv.org/html/2307.09220)</sup> ALIGN随后以与CLIP相同的架构和对比损失利用了十亿对带噪声的图像与替代文本。<sup>[2](https://arxiv.org/html/2307.09220)</sup>

## 变体

各命名方法的主要区别在于VLM知识进入检测器的位置。

**基于描述和蒸馏的方法。** OVR-CNN从图文对中学习。<sup>[9](https://doi.org/10.48550/arxiv.2011.10678)</sup> ViLD由顾及其同事于2021年报道，通过蒸馏迁移VLM知识。<sup>[11](https://doi.org/10.48550/arxiv.2104.13921)</sup> RegionCLIP由钟及其同事于2021年提出，执行基于区域的语言-图像预训练。<sup>[12](https://doi.org/10.48550/arxiv.2112.09106)</sup>

**提示与匹配方法。** DetPro由杜及其同事于2022年提出，利用视觉-语言模型学习开放词汇检测的提示。<sup>[13](https://doi.org/10.48550/arxiv.2203.14940)</sup> OV-DETR由臧及其同事于2022年提出，将开放词汇匹配引入DETR框架。<sup>[14](https://doi.org/10.48550/arxiv.2203.11876)</sup> VLDet由林及其同事于2022年提出，学习物体-语言对齐。<sup>[15](https://doi.org/10.48550/arxiv.2211.14843)</sup>

**扩展标签空间与单阶段设计。** Detic由周及其同事于2022年提出，通过在图像分类数据上训练检测器的分类器，将检测器词汇表扩展到数万个概念，<sup>[16](https://doi.org/10.48550/arxiv.2306.09683)</sup> OWL-ViT在零样本文本条件和单样本图像条件物体检测上取得强劲性能，代码位于谷歌研究院的Scenic仓库。<sup>[17](https://dl.acm.org/doi/10.1007/978-3-031-20080-9_42)</sup>

**视觉定位预训练与DetCLIP系列。** DetCLIP由姚及其同事于2022年提出，使用词典增强的视觉-概念并行预训练进行开放世界检测。<sup>[18](https://doi.org/10.48550/arxiv.2209.09407)</sup> DetCLIPv2由姚及其同事于2023年提出，通过词-区域对齐扩展预训练，<sup>[19](https://doi.org/10.48550/arxiv.2304.04514)</sup> DetCLIPv3由姚及其同事于2024年提出，将该系列扩展到通用生成式开放词汇检测。<sup>[20](https://doi.org/10.48550/arxiv.2404.09216)</sup> [Grounding DINO](https://www.edgepedia.org/zh/grounding-dino)将DINO与视觉定位预训练结合用于开集检测。<sup>[21](https://link.springer.com/chapter/10.1007/978-3-031-72970-6_3)</sup>

**实时模型。** YOLO-World由程及其同事于2024年提出，主要基于[YOLOv8](https://www.edgepedia.org/zh/yolov8)构建；此前的开放词汇方法常使用ATSS或DINO等重型检测器配合Swin-L骨干，导致高计算需求和部署挑战。<sup>[22](https://doi.org/10.48550/arxiv.2401.17270)</sup> DITO由金、安杰洛娃和郭于2023年提出，执行以区域为中心的图像-语言预训练，<sup>[23](https://doi.org/10.48550/arxiv.2310.00161)</sup> LaMI-DETR由杜及其同事于2024年提出，加入语言模型指令，<sup>[24](https://doi.org/10.48550/arxiv.2407.11335)</sup> LLMDet由傅及其同事于2025年提出，在大型语言模型监督下训练检测器。<sup>[25](https://doi.org/10.48550/arxiv.2501.18954)</sup>

## 应用

实时开放词汇检测器面向边缘应用，包括自动驾驶、医学图像处理、计算摄影和机器人学。<sup>[6](https://arxiv.org/html/2405.10300v2)</sup> 预训练的YOLO-World可适配下游任务，包括开放词汇实例分割和指代物体检测。<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)</sup> 在LVIS上，YOLO-World在V100上以52.0 FPS达到35.4 AP，在精度和速度上均优于许多最先进方法，<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)</sup> 而Grounding DINO 1.5 Edge在TensorRT优化下于LVIS-minival上零样本达到75.2 FPS和36.2 AP。<sup>[6](https://arxiv.org/html/2405.10300v2)</sup>

## 局限与替代方案

新类别性能大幅落后于基础类别。在OVD-COCO上，OVR-CNN新类AP50为22.8，基础类为46.0；ViLD新类为27.6，基础类为59.5。<sup>[4](https://ar5iv.labs.arxiv.org/html/2309.00227)</sup> 对基础类的[过拟合](https://www.edgepedia.org/zh/overfitting)表现为三种方式：基础候选框的质量和数量高于新类候选框；新类候选框容易被误分类为基础类；基础类的识别置信度远高于新类。<sup>[2](https://arxiv.org/html/2307.09220)</sup> 小物体使问题更加严重：普通裁剪-缩放流水线在OVD-COCO上以ResNet50且无额外数据达到31.8 Novel AP50，但在OVD-LVIS上表现很差，表明裁剪和缩放操作对识别小物体并非无关紧要。<sup>[4](https://ar5iv.labs.arxiv.org/html/2309.00227)</sup>

融合架构在召回率与幻觉之间权衡：使用早期融合训练的模型往往产生更高的检测召回率和更好的边界框精度，但模型幻觉增加，而晚期融合模型对幻觉更鲁棒但召回率较低。<sup>[6](https://arxiv.org/html/2405.10300v2)</sup> Grounding DINO在某些情况下产生假阳性结果，不能像GLIPv2那样用于分割任务，且训练数据量少于最大的GLIP模型，这可能限制最终性能。<sup>[21](https://link.springer.com/chapter/10.1007/978-3-031-72970-6_3)</sup> 来自图文对的区域-词对应关系弱且噪声大；双向视觉定位损失可能通过仅将区域袋与词袋对齐来作弊，且描述中的名词仅覆盖显著物体。<sup>[2](https://arxiv.org/html/2307.09220)</sup>

相较于零样本检测，开放词汇检测实现了大幅性能飞跃。<sup>[2](https://arxiv.org/html/2307.09220)</sup> 基于描述和伪标签的预训练需要多阶段训练和伪标签的手工处理，增加了复杂度和训练成本；GLIP、Grounding DINO、CoDet和DetCLIP等视觉定位类方法是相关的替代方案系列。<sup>[26](https://link.springer.com/chapter/10.1007/978-3-031-73036-8_10)</sup> 2024年之前的综述指出，当前模型具有不适合实时应用的重型骨干和颈部架构，<sup>[2](https://arxiv.org/html/2307.09220)</sup> Grounding DINO的多尺度图像特征和重型计算特征增强器同样不适用于实时场景，这促成了1.5 Edge模型的诞生。<sup>[6](https://arxiv.org/html/2405.10300v2)</sup>

## References

1. [Open-Vocabulary Object Detection in UAV Imagery: A Review and Future Perspectives (Drones, MDPI)](https://www.mdpi.com/2504-446X/9/8/557)
2. [A Survey on Open-Vocabulary Detection and Segmentation: Past, Present, and Future](https://arxiv.org/html/2307.09220)
3. [Three ways to improve feature alignment for open vocabulary detection (BARON)](https://ar5iv.labs.arxiv.org/html/2303.13518v1)
4. [What Makes Good Open-Vocabulary Detector: A Disassembling Perspective](https://ar5iv.labs.arxiv.org/html/2309.00227)
5. [YOLO-World: Real-Time Open-Vocabulary Object Detection (CVPR 2024)](https://openaccess.thecvf.com/content/CVPR2024/papers/Cheng_YOLO-World_Real-Time_Open-Vocabulary_Object_Detection_CVPR_2024_paper.pdf)
6. [Grounding DINO 1.5: Advance the 'Edge' of Open-Set Object Detection](https://arxiv.org/html/2405.10300v2)
7. [Scaling Open-Vocabulary Object Detection (Detic, NeurIPS 2023)](https://proceedings.neurips.cc/paper_files/paper/2023/file/e6d58fc68c0f3c36ae6e0e64478a69c0-Paper-Conference.pdf)
8. [AILab-CVC/YOLO-World (official project repository)](https://github.com/ailab-cvc/yolo-world)
9. [Zareian, Alireza and colleagues (2020). Open-Vocabulary Object Detection Using Captions. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2011.10678)
10. [Open-Vocabulary Object Detection Using Captions (OVR-CNN, Zareian et al., CVPR 2021)](https://openaccess.thecvf.com/content/CVPR2021/papers/Zareian_Open-Vocabulary_Object_Detection_Using_Captions_CVPR_2021_paper.pdf)
11. [Gu, Xiuye and colleagues (2021). Open-vocabulary Object Detection via Vision and Language Knowledge Distillation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2104.13921)
12. [Zhong, Yiwu and colleagues (2021). RegionCLIP: Region-based Language-Image Pretraining. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2112.09106)
13. [Du, Yu and colleagues (2022). Learning to Prompt for Open-Vocabulary Object Detection with Vision-Language Model. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2203.14940)
14. [Zang, Yuhang and colleagues (2022). Open-Vocabulary DETR with Conditional Matching. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2203.11876)
15. [Lin, Chuang and colleagues (2022). Learning Object-Language Alignments for Open-Vocabulary Object Detection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2211.14843)
16. [Minderer, Matthias, Gritsenko, Alexey, Houlsby, Neil (2023). Scaling Open-Vocabulary Object Detection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2306.09683)
17. [Simple Open-Vocabulary Object Detection (OWL-ViT, ECCV 2022)](https://dl.acm.org/doi/10.1007/978-3-031-20080-9_42)
18. [Yao, Lewei and colleagues (2022). DetCLIP: Dictionary-Enriched Visual-Concept Paralleled Pre-training for Open-world Detection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2209.09407)
19. [Yao, Lewei and colleagues (2023). DetCLIPv2: Scalable Open-Vocabulary Object Detection Pre-training via Word-Region Alignment. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2304.04514)
20. [Yao, Lewei and colleagues (2024). DetCLIPv3: Towards Versatile Generative Open-vocabulary Object Detection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2404.09216)
21. [Grounding DINO: Marrying DINO with Grounded Pre-training for Open-Set Object Detection (ECCV 2024, Springer)](https://link.springer.com/chapter/10.1007/978-3-031-72970-6_3)
22. [Cheng, Tianheng and colleagues (2024). YOLO-World: Real-Time Open-Vocabulary Object Detection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2401.17270)
23. [Kim, Dahun, Angelova, Anelia, Kuo, Weicheng (2023). Region-centric Image-Language Pretraining for Open-Vocabulary Detection. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2310.00161)
24. [Du, Penghui and colleagues (2024). LaMI-DETR: Open-Vocabulary Detection with Language Model Instruction. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2407.11335)
25. [Fu, Shenghao and colleagues (2025). LLMDet: Learning Strong Open-Vocabulary Object Detectors under the Supervision of Large Language Models. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2501.18954)
26. [Region-Centric Image-Language Pretraining for Open-Vocabulary Detection (DITO, ECCV 2024, Springer)](https://link.springer.com/chapter/10.1007/978-3-031-73036-8_10)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 25, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Foundation-model methods and training › Multimodal, embodied, and world-model methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/open-vocabulary-object-detection

English original: https://www.edgepedia.org/open-vocabulary-object-detection
