[Paper Review] Contextual Object Detection with Multimodal Large Language Models
This paper introduces ContextDET, a novel end-to-end multimodal model that enables contextual object detection by combining a visual encoder, a pre-trained large language model (LLM) for contextual decoding, and a visual decoder for bounding box prediction. It achieves state-of-the-art performance on open-vocabulary detection and a new benchmark (CODE), demonstrating MLLMs' potential for fine-grained, language-conditioned object localization beyond standard detection.
Recent Multimodal Large Language Models (MLLMs) are remarkable in vision-language tasks, such as image captioning and question answering, but lack the essential perception ability, i.e., object detection. In this work, we address this limitation by introducing a novel research problem of contextual object detection -- understanding visible objects within different human-AI interactive contexts. Three representative scenarios are investigated, including the language cloze test, visual captioning, and question answering. Moreover, we present ContextDET, a unified multimodal model that is capable of end-to-end differentiable modeling of visual-language contexts, so as to locate, identify, and associate visual objects with language inputs for human-AI interaction. Our ContextDET involves three key submodels: (i) a visual encoder for extracting visual representations, (ii) a pre-trained LLM for multimodal context decoding, and (iii) a visual decoder for predicting bounding boxes given contextual object words. The new generate-then-detect framework enables us to detect object words within human vocabulary. Extensive experiments show the advantages of ContextDET on our proposed CODE benchmark, open-vocabulary detection, and referring image segmentation. Github: https://github.com/yuhangzang/ContextDET.
Motivation & Objective
- Address the limitation of multimodal large language models (MLLMs) in lacking object detection capabilities despite strong vision-language understanding.
- Introduce a new research problem—contextual object detection—where models detect and localize objects based on rich, human-like language context.
- Develop a unified framework capable of end-to-end, differentiable modeling of visual-language contexts for accurate object localization and identification.
- Overcome the constraints of closed-set detectors and the locate-then-classify paradigm by enabling detection of open-vocabulary, context-specific object terms (e.g., 'groom', 'hockey goalie').
Proposed method
- Propose a generate-then-detect framework: first generate natural language descriptions using a pre-trained LLM conditioned on visual and task-specific tokens.
- Use the LLM’s generated tokens as conditional priors to guide a visual decoder that predicts object bounding boxes via cross-attention mechanisms.
- Employ a visual encoder (e.g., ResNet) to extract both local and global visual features, with local tokens serving as visual prefix inputs for the LLM.
- Design a visual decoder with cross-attention layers that compute conditional object queries from LLM tokens and attend to full visual tokens to predict matching scores and bounding boxes.
- Train the model end-to-end using a unified objective that aligns language-generated object words with their corresponding visual locations.
- Adapt the model to open-vocabulary detection by prompting the MLLM with 'Does the [CLASS] appear in this picture?' and using the response as a conditional input for detection.

Experimental results
Research questions
- RQ1Can multimodal large language models be effectively extended to perform contextual object detection beyond standard classification?
- RQ2How well can an MLLM-based model detect and localize open-vocabulary, context-specific object terms (e.g., 'groom', 'cowboy', 'hockey goalie')?
- RQ3Can a generate-then-detect framework outperform traditional object detectors in zero-shot and open-vocabulary settings with rich linguistic context?
- RQ4To what extent does using MLLM-generated context improve generalization and interpretability in object detection tasks?
Key findings
- ContextDET achieves 36.8% AP50 on the novel set of the OV-COCO benchmark, outperforming the previous SOTA method BARON by 2.8 percentage points.
- On the base and all classes, ContextDET achieves 65.1% and 57.7% AP50, respectively, surpassing BARON by 4.7% and 4.2%.
- The model significantly improves zero-shot generalization by detecting out-of-distribution object terms such as 'groom', 'bride', and 'hockey goalie' that standard detectors fail to recognize.
- Qualitative results show ContextDET successfully localizes objects mentioned in generated captions or questions, unlike standard MLLMs that only produce text.
- Ablation studies confirm that using 9 visual tokens as a prefix (p=9) yields optimal performance, validating the design of the visual prefix mechanism.
- The model demonstrates strong interpretability by generating context-aware object names and their precise bounding boxes, enabling richer human-AI interaction.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.