Multi-modal Queried Object Detection in the Wild

Yifan Xu, Mengdan Zhang, Chaoyou Fu, Peixian Chen, Xiaoshan Yang, Ke Li, Changsheng Xu

Abstract

Open-set object detection has traditionally relied on text queries to identify novel categories. However, text often lacks the granularity required for fine-grained or ambiguous visual tasks. This paper presents MQ-Det, an efficient "plug-and-play" architecture that enhances language-queried detectors with visual exemplars. By integrating a Gated Class-scalable Perceiver (GCP) and a vision-conditioned training strategy, MQ-Det achieves significant performance gains—including a +7.8% AP boost on the LVIS benchmark—with only 3% of the original model's training overhead.

Introduction

The current paradigm for open-set object detection involves using natural language descriptions (e.g., "Find the golden retriever") to query images. While text provides a broad conceptual reach, it frequently encounters a "granularity wall." Two primary issues hinder text-only systems: ambiguity and description difficulty. A word like "bat" can refer to multiple distinct objects, and describing the intricate patterns of a rare species or a specific industrial component in words is often impractical.

While vision-only few-shot detectors exist, they often suffer from "catastrophic forgetting," where learning new visual examples degrades the model's general knowledge. MQ-Det addresses these challenges by creating a multi-modal query system that is efficient, scalable, and preserves the generalization capabilities of large-scale foundation models.

Methodology

MQ-Det introduces two primary innovations to existing language-queried detectors, such as GLIP and GroundingDINO, while keeping the base detector's weights frozen.

Gated Class-scalable Perceiver (GCP)

The GCP is a modular plug-in inserted into the text encoder. It utilizes cross-attention to inject visual features from image exemplars into the text embeddings. To ensure the model remains robust, it includes a conditional gate that dynamically adjusts the influence of visual information based on the quality of the visual query. This design allows the model to handle an arbitrary number of categories and visual examples per category without significant architectural changes.

Vision Conditioned Masked Language Prediction

A significant challenge in fine-tuning pre-trained detectors is "learning inertia." Because the base text-queried model is already highly capable, it tends to ignore new visual cues during training. To counteract this, the authors employ a masking strategy: text tokens (e.g., the name of the object) are randomly masked out during the prompt phase. This forces the model to rely exclusively on the visual exemplar to identify the target object, effectively jump-starting the multi-modal fusion process and ensuring the visual features are meaningfully integrated.

Experimental Setup

The model was modulated using the Objects365 dataset, which contains 0.66 million images across 365 categories. Evaluation was conducted across several challenging benchmarks:

  • LVIS Benchmark: A long-tail dataset featuring over 1,200 categories.
  • ODinW (Object Detection in the Wild): A suite of 35 diverse datasets ranging from fine-grained biological detection (Aquarium) to infrastructure monitoring (Pothole).
  • Few-shot Tasks: Evaluation on 13 specific downstream tasks to measure rapid adaptation with limited data.

Key Results and Insights

MQ-Det demonstrates that multi-modal queries are strictly superior to single-modal queries in "wild" scenarios. Key findings include:

  • State-of-the-Art Performance: MQ-Det improved the GLIP-L model by +7.8% AP on the LVIS benchmark without any downstream fine-tuning.
  • Few-Shot Efficiency: On 13 downstream tasks, the model achieved an average boost of +6.3% AP using only 5 visual exemplars per category.
  • Architectural Efficiency: The performance gains were achieved with only 3% of the original model's training overhead, proving that massive foundation models do not need to be retrained from scratch to gain multi-modal capabilities.
  • Versatility: The "plug-and-play" nature of the GCP module was validated by its successful application to different base models, including GLIP and GroundingDINO, showing consistent improvements across different architectures.

Discussion and Limitations

The core contribution of MQ-Det is the realization that text provides the breadth of knowledge, while images provide the granularity. By forcing the model to overcome its reliance on text through masked language prediction, MQ-Det successfully bridges the gap between these two modalities.

However, the authors noted that the advantage of multi-modal queries diminishes when massive amounts of full-shot training data are available, as the model eventually learns the specific categories through sheer volume. Additionally, the current scope is limited to object detection; extending this approach to denser tasks like instance segmentation or pose estimation remains an area for future research. Finally, as with all multi-modal systems, practitioners must remain vigilant regarding potential biases in visual exemplars that could influence model predictions in real-world deployments.

Summary updated

BibTeX
@inproceedings{xu2023multi,
  author = {Yifan Xu and Mengdan Zhang and Chaoyou Fu and Peixian Chen and Xiaoshan Yang and Ke Li and Changsheng Xu},
  title = {{Multi-modal Queried Object Detection in the Wild}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=h3CGHf7457},
}
Figure