MDETR
Transformer detector that finds the objects in an image that a free-form text query refers to.
Multimodal · 2,516 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Multimodal
- Parameters
- 185.4M
- Operations
- 2,516
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICCV 2021
- Cited by
- 4 (as of 28 October 2026)
- Authors
- Aishwarya Kamath, Mannat Singh, Yann LeCun and others
- Source
- GitHub: ashkamath/mdetr
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18067
- Graph hash
- 587ee93987bf39d66e24da7663103835de519e6e37353410c7486ca2e7db7cdb
- Skeleton hash
- 6691a5dfce09e1cf4dcd2ecd8fdb1623dc9f0a455ae983b487464839b14af5ea
- Architecture hash
- 12503f71bc90992b8979b5e4f0f5d8f683960299454e8807c78726f7a8ad0ac7
- Diagram SHA-256
- 691816c68d7907f7add4808e71175813e55fd8b4aa22a548cc8edbfa06b3f600
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MDETR (Modulated DETR) is an object detector that looks for whatever a piece of text mentions, such as a caption or a question, instead of a fixed list of classes. The paper's starting point is that multi-modal reasoning systems rely on a pre-trained object detector that is typically used as a black box, trained independently of the downstream task and on a fixed vocabulary of objects and attributes. MDETR instead uses a transformer-based architecture that reasons jointly over text and image by fusing the two modalities at an early stage of the model.
The detector only returns objects that are relevant to the text query, and the class labels for those objects are just the relevant words in the query. The authors say this lets the vocabulary expand to anything found in free form text.
The network is pre-trained on 1.3M text-image pairs mined from existing multi-modal datasets that have explicit alignment between phrases in the text and objects in the image. It is then fine-tuned on downstream tasks such as phrase grounding, referring expression comprehension and segmentation. The paper also reports competitive performance on visual question answering on GQA and CLEVR. The code is released under the Apache 2.0 license.
Key idea. MDETR is an end-to-end modulated detector that detects objects in an image conditioned on a raw text query, fusing text and image early in a transformer-based architecture.
- MDETR
- Modulated Detection Transformer
- Modulated DETR
- MDETR-ground
- modulated detection
- phrase grounding
- referring expression comprehension
- text-conditioned object detection
- open-vocabulary detection
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{kamath2021mdetrmodulateddetection,
title={MDETR -- Modulated Detection for End-to-End Multi-Modal Understanding},
author={Aishwarya Kamath and Mannat Singh and Yann LeCun and Gabriel Synnaeve and Ishan Misra and Nicolas Carion},
year={2021},
eprint={2104.12763},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2104.12763},
}