Class-Agnostic Object Detection with Multi-modal Transformer

Muhammad Maaz, Hanoona Abdul Rasheed, Salman Khan, Fahad Shahbaz Khan, Rao Muhammad Anwer, Ming-Hsuan Yang

Introduction

A fundamental challenge in computer vision is defining what constitutes an "object." Traditional object detectors are typically "class-aware," meaning they are trained to recognize a predefined set of categories like "person," "car," or "dog." However, in many real-world scenarios—such as open-world navigation or robotic manipulation—a system must be able to identify any potential object, regardless of whether it has seen that specific category before. This task is known as class-agnostic object detection.

Existing solutions often rely on bottom-up heuristics (e.g., Selective Search) which lack semantic understanding, or uni-modal deep learning models that frequently overfit to their training data. This paper, presented at ECCV 2022, introduces MAVL (Multiscale Attention ViT with Late fusion), a multi-modal approach that leverages the rich semantic signals in image-text pairs to build a universal "objectness" detector.

The MAVL Framework

The core innovation of MAVL lies in its use of Multi-modal Vision Transformers (MViTs). Unlike standard detectors, MAVL processes both visual and linguistic information to determine object boundaries.

Key Architectural Components:

  1. Multi-scale Deformable Attention (MSDA): To handle high-resolution images and objects of varying sizes efficiently, MAVL employs deformable attention. This mechanism focuses on a sparse set of sampling points, allowing the model to scale better than global attention mechanisms used in previous transformers.
  2. Late Multi-modal Fusion: While earlier models like MDETR fused image and text features early in the network, MAVL processes them independently for a longer period, performing fusion late in the pipeline. This strategy preserves the spatial integrity of visual features, which is essential for precise localization.
  3. Language-Driven Queries: MAVL can be prompted with natural language queries such as "all objects" or "all small entities." This allows the model to utilize linguistic "common sense" to identify distinct entities in a scene.

Generalization Across Diverse Domains

One of the most striking features of MAVL is its ability to generalize to domains far removed from its training data. By training on the LMDet dataset (1.3 million image-text pairs), the model learns a robust concept of objectness that transcends specific visual styles.

MAVL demonstrates robust class-agnostic detection across a wide variety of domains, including natural photos, sketches, satellite imagery, and camouflaged scenes.

As shown in the figure above, MAVL successfully identifies objects in diverse contexts—from standard COCO images to artistic watercolors, comic strips, and even top-down aerial views (DOTA).

Quantitative Results

The researchers evaluated MAVL against a battery of state-of-the-art uni-modal and multi-modal baselines across several benchmark datasets.

Performance comparison of MAVL against various baselines. MAVL consistently achieves the highest AP50 and Recall 50 across all tested datasets.

MAVL significantly outperforms traditional class-agnostic detectors. For instance, on the Pascal VOC dataset, MAVL achieved an AP50 of 68.6, a substantial improvement over the 43.2 achieved by a class-agnostic RetinaNet. Furthermore, MAVL shows superior performance in "out-of-domain" scenarios, such as the LVIS dataset, where it maintains a high recall for rare and novel categories.

Insights and Future Directions

The study revealed that the "language skeleton" (the way captions group objects) is a powerful supervision signal, even more so than the specific vocabulary used. This suggests that the relationship between entities described in natural language provides a structural prior for what humans consider an "object."

While MAVL is more computationally intensive than simple edge-detection heuristics, its superior accuracy and generalization make it a powerful tool for downstream tasks like unsupervised pre-training and open-world object detection. Future work may involve exploring hierarchical language queries and extending the model to video domains.

Summary updated

BibTeX
@inproceedings{maaz2022class,
  author = {Muhammad Maaz and Hanoona Abdul Rasheed and Salman Khan and Fahad Shahbaz Khan and Rao Muhammad Anwer and Ming-Hsuan Yang},
  title = {{Class-Agnostic Object Detection with Multi-modal Transformer}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20080-9\_30},
}
Figure