Aishwarya Kamath, Mannat Singh, Yann Lecun, Gabriel Synnaeve, Ishan Misra, Nicolas Carion
Multi-modal reasoning systems rely on a pre-trained object detector to extract regions of interest from the image. However, this crucial module is typically used as a black box, trained independently of the downstream task and on a fixed vocabulary of objects and attributes. This makes it challenging for such systems to capture the long tail of visual concepts expressed in free form text. In this paper we propose MDETR, an end-to-end modulated detector that detects objects in an image conditioned on a raw text query, like a caption or a question. We use a transformer-based architecture to reason jointly over text and image by fusing the two modalities at an early stage of the model. We pre-train the network on 1.3M text-image pairs, mined from pre-existing multi-modal datasets having explicit alignment between phrases in text and objects in the image. We then fine-tune on several downstream tasks such as phrase grounding, referring expression comprehension and segmentation, achieving state-of-the-art results on popular benchmarks. We also investigate the utility of our model as an object detector on a given label set when fine-tuned in a few-shot setting. We show that our pre-training approach provides a way to handle the long tail of object categories which have very few labelled instances. Our approach can be easily extended for visual question answering, achieving competitive performance on GQA and CLEVR. The code and models are available at https://github.com/ashkamath/mdetr.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Visual Question Answering (VQA) | GQA test-std | Accuracy | 62.45 | MDETR-ENB5 |
| Visual Question Answering (VQA) | CLEVR | Accuracy | 99.7 | MDETR |
| Visual Question Answering (VQA) | CLEVR-Humans | Accuracy | 81.7 | MDETR |
| Phrase Grounding | Flickr30k Entities Test | R@1 | 84.3 | MDETR-ENB5 |
| Phrase Grounding | Flickr30k Entities Test | R@10 | 95.8 | MDETR-ENB5 |
| Phrase Grounding | Flickr30k Entities Test | R@5 | 93.9 | MDETR-ENB5 |
| Instance Segmentation | PhraseCut | Mean IoU | 53.7 | MDETR ENB3 |
| Instance Segmentation | PhraseCut | Pr@0.5 | 57.5 | MDETR ENB3 |
| Instance Segmentation | PhraseCut | Pr@0.7 | 39.9 | MDETR ENB3 |
| Instance Segmentation | PhraseCut | Pr@0.9 | 11.9 | MDETR ENB3 |
| Referring Expression Segmentation | PhraseCut | Mean IoU | 53.7 | MDETR ENB3 |
| Referring Expression Segmentation | PhraseCut | Pr@0.5 | 57.5 | MDETR ENB3 |
| Referring Expression Segmentation | PhraseCut | Pr@0.7 | 39.9 | MDETR ENB3 |
| Referring Expression Segmentation | PhraseCut | Pr@0.9 | 11.9 | MDETR ENB3 |
| Referring Image Matting | RefMatte | MAD | 0.0482 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MAD(E) | 0.0515 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MSE | 0.0434 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MSE(E) | 0.0463 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | SAD | 84.7 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | SAD(E) | 90.45 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MAD | 0.0183 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MAD(E) | 0.019 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MSE | 0.0137 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MSE(E) | 0.0141 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | SAD | 32.27 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | SAD(E) | 33.52 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MAD | 0.0751 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MAD(E) | 0.0779 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MSE | 0.0675 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | MSE(E) | 0.07 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | SAD | 131.58 | MDETR (ResNet-101) |
| Referring Image Matting | RefMatte | SAD(E) | 136.59 | MDETR (ResNet-101) |
| Generalized Referring Expression Comprehension | gRefCOCO | N-acc. | 36.1 | MDETR |
| Generalized Referring Expression Comprehension | gRefCOCO | Precision@(F1=1, IoU≥0.5) | 41.5 | MDETR |