Class-Agnostic Object Detection with Multi-modal Transformer

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

TL;DR

This paper introduces a novel approach to class-agnostic object detection using Multi-modal Vision Transformers (MViTs) trained on image-text pairs. Their method, MAVL, achieves state-of-the-art performance across diverse domains and downstream tasks by leveraging language semantics for object localization, offering enhanced interactability and generalization.

What Problem Does This Paper Address?

The core challenge this paper tackles is class-agnostic object detection (OD). Unlike traditional OD that focuses on identifying specific object categories (e.g., "cat," "dog"), class-agnostic OD aims to detect any object, regardless of its class. This is a fundamental problem for tasks like open-world detection, where new object categories might appear. While many methods exist for object proposal generation, they often struggle to generalize to new domains or novel objects, and many lack a high-level semantic understanding. Existing approaches often rely on bottom-up methods that are computationally expensive and less precise, or they require extensive task-specific supervision. The authors argue that a key missing piece is a top-down supervision signal guided by human-understandable semantics, which MViTs, with their ability to process both visual and textual information, are well-suited to provide.

Methods

The paper proposes MAVL (Multi-scale Attention ViT with Late fusion), an efficient MViT architecture designed for class-agnostic OD. Key innovations include:

  • Multi-scale Deformable Attention (MSDA): This module allows the model to attend to relevant image locations at multiple scales, improving context aggregation and efficiency compared to standard self-attention. It uses deformable attention to sparsely sample keys, achieving linear complexity with respect to feature map size.
  • Late Multi-modal Fusion: Instead of early fusion of text and image features (which can lose spatial information), MAVL fuses text embeddings with image features after they have been processed by a deformable DETR encoder-decoder. This late fusion is achieved through a series of transformer self-attention blocks.
  • Leveraging Image-Text Pretraining: MAVL is trained on large-scale image-text datasets (like MS-COCO, Flickr30k, Visual Genome). The authors hypothesize that the language structure (rather than just the lexicon) is crucial for learning a general notion of objectness.

Datasets

The paper uses the following datasets:

  • Training: LMDet dataset, a combination of Flickr30k, MS-COCO (2014), and Visual Genome, with annotations from Flickr entities, RefCOCO/+/g, VG regions, and GQA.
  • Evaluation:
    • Natural Image Datasets: Pascal VOC, MS COCO, KITTI, Objects365, LVIS.
  • Out-of-Domain Datasets: Kitchen, Clipart, Comic, Watercolor, DOTA (satellite imagery).
  • Downstream Tasks: Datasets for Salient Object Detection (DUT-OMRON, ECSSD) and Camouflaged Object Detection (CHAMELEON, CAMO, COD10K).
  • Open-World OD: A subset of LMDet for training ORE, with captions filtered to remove unknown categories.

Key Insights and Ideas

  • Language Structure is Key: The authors found that the structure of language (how words are related and form sentences) is more critical than the specific words themselves for learning a general notion of objectness. Even when trained without explicit captions, but with bounding boxes derived from captions, the model still generalizes well.
  • MViTs as General Detectors: Pre-trained MViTs, when fine-tuned for class-agnostic OD, demonstrate remarkable generalization capabilities across diverse domains and even to rare or novel object categories.
  • Interactive Object Detection: The ability to use natural language queries (e.g., "all objects," "all small objects") makes MAVL highly interactive and adaptable to specific detection needs without task-specific tuning.
  • Complementary Proposals: MAVL's proposals can complement existing methods like RPN, improving overall detection accuracy when combined.

Key Results

  • State-of-the-Art Performance: MAVL achieves state-of-the-art results on class-agnostic OD across multiple challenging datasets, significantly outperforming bottom-up methods and competitive uni-modal detectors. For instance, on Pascal VOC, MAVL achieves AP50 of 68.6 and R50 of 91.3.
  • Efficient Training: MAVL converges in 20 epochs, half the time of MDETR, while achieving better accuracy.
  • Strong Generalization: MAVL shows robust performance on out-of-domain datasets like Kitchen, Clipart, Comic, and Watercolor, indicating its ability to adapt to unseen visual styles.
  • Improved Downstream Tasks: MAVL proposals lead to improvements in open-world OD, salient OD, camouflaged OD, and self-supervised learning tasks. For example, using MAVL for unknown pseudo-labeling in ORE significantly boosts unknown detection performance.
  • High Recall with Fewer Proposals: MViTs achieve competitive recall with only the top-10 proposals, demonstrating high-quality proposal generation.

Limitations and Future Work

  • Domain Adaptation for Specific Tasks: While MAVL generalizes well, it cannot be directly adapted to highly specialized out-of-domain tasks like medical imaging without expert supervision. The authors note that general class-agnostic detection is not always sufficient for these niche applications.
  • Computational Cost: While MAVL is efficient, its inference speed is slightly slower than MDETR.
  • Future Work: The paper suggests exploring further applications of class-agnostic proposals in areas like continual learning and investigating the impact of different backbones and fusion strategies. The authors also highlight the potential for MAVL to improve performance in open-world OD and other specialized detection tasks.

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