TL;DR
Multimodal Large Language Models (MLLMs) can spot and describe almost anything in an image from free-form text, yet they lag behind traditional object detectors at drawing crisp bounding boxes because predicting coordinates as text tokens lacks spatial intuition. GOD (Generative Object Detection) bridges this divide by grafting a lightweight detection branch directly onto an MLLM’s visual encoder and co-training spatial localization alongside language generation. Using a clever "training wheels" curriculum, the model internalizes strong spatial priors during training—allowing you to drop the extra detection machinery at inference time with zero extra latency.
What Problem Does This Paper Address?
Traditional object detectors are sharp and accurate, but rigid: even "open-vocabulary" detectors require you to hand them a predefined menu of category prompts at test time. MLLMs flip the script toward open-ended generative detection, where a model autonomously discovers, names, and localizes objects from natural instructions.
However, there is a fundamental structural mismatch in how MLLMs learn geometry. Standard supervised fine-tuning (SFT) chops bounding boxes into discrete text tokens (like <460> <300>) and grades them with cross-entropy loss. To the language model, predicting <461> instead of <460> looks just as wrong as predicting <999>—it treats coordinates as arbitrary symbols rather than unified spatial entities. You can try fixing this with Reinforcement Learning (using box-overlap rewards) or bolting on external region-proposal networks, but RL requires painfully slow rollouts, and external detectors create clunky two-stage pipelines that can't be optimized end-to-end.
Methods
Built on Qwen2.5-VL-3B, GOD introduces an end-to-end co-training framework that teaches the MLLM spatial geometry from the inside out:
- Single-Tower Plug-and-Play Architecture: Instead of adding a second vision backbone, GOD taps into multi-scale features from the MLLM’s existing visual encoder and feeds them into a lightweight DETR-style proposal decoder (adapted from GroundingDINO, stripped of text-fusion layers in favor of a class-agnostic objectness head). The resulting object queries are projected into the LLM’s token space right alongside standard visual and text tokens.
- Three-Part Co-Training: During training, GOD optimizes three losses simultaneously:
- Standard next-token prediction ($\mathcal{L}^{\text{text}}_{\text{MLLM}}$) for generating text and discretized coordinates.
- DETR-side detection loss ($\mathcal{L}^{\text{ovd}}_{\text{DETR}}$) for accurate box regression and objectness.
- MLLM-side object-query remodeling loss ($\mathcal{L}^{\text{ovd}}_{\text{MLLM}}$), which forces the object queries after passing through the LLM to retain spatial and semantic accuracy.
- Denoising Augmentation: Corrupted "noise" boxes are injected into both the DETR decoder and the LLM sequence (where coordinate losses are masked out so the LLM doesn't memorize bad boxes), curbing duplicate predictions and coordinate drift.
- Interleaved Attention-Mask Curriculum: If the LLM always sees detector queries during training, it uses them as a crutch. After an initial alignment phase (Stage 1) and full co-training (Stage 2a), Stage 2b randomly masks out the attention between answer tokens and object queries. This forces the LLM to internalize those spatial priors into its own visual representations, enabling fast, proposal-free inference (
MLLM-direct).
Datasets
- Training: A curated mixture covering object detection, visual grounding, grounded image captioning, referring expression comprehension (REC), region-level tasks, and general visual instruction data (exact dataset breakdown is deferred to the paper's appendices). No new benchmarks are introduced.
- Evaluation: Mainstream detection benchmarks (COCO val2017, ODinW13 test), referring expression benchmarks (RefCOCO, RefCOCO+, RefCOCOg), and general MLLM benchmarks (MMMU, POPE, MME).
Key Insights and Ideas
- Proposals as internal regularizers, not external crutches: Injecting raw DETR proposals into an LLM without MLLM-side remodeling barely helps generation. Conversely, supervising queries only inside the LLM collapses spatial anchoring (DETR AP drops to 2.3). You need both losses: DETR provides spatial anchors, and MLLM-side remodeling translates them into "LLM-ese."
- Keep the spatial supervision on, even behind the curtain: During the masking curriculum—when answer tokens are blocked from attending to object queries—still applying the detection loss to those hidden queries (
GOD-Full) yields the best results. It acts as an ongoing semantic regularizer within the shared representation space. - Free lunches at inference time: Because the curriculum transfers spatial priors into the base MLLM weights, you can completely bypass the DETR branch at test time, avoiding extra parameters and prefill latency while sacrificing less than 0.5 AP on COCO.
Key Results
- Direct Generative Detection: Operating without external proposals at test time,
GOD-MLLM-3Bachieves 38.1 AP on COCO val (outperforming the same-scaleRex-Omni-3Bat 30.8 AP andQwen2.5-7B-VLat 17.7 AP) and 47.9 $\text{AP}_{\text{avg}}$ on ODinW13. Keeping the proposal branch active (MLLM-ref) bumps COCO slightly to 38.56 AP with only a +12.7% end-to-end time overhead. - Discriminative Detection: Evaluated purely as a single-tower discriminative detector, GOD hits 53.7 AP on COCO, matching dedicated two-tower detectors like
WeDetect-L(54.5 AP). - Referring Expression Comprehension: Reaches 92.1 / 94.6 / 89.0 on RefCOCO (val/testA/testB) and 82.0 on the tough RefCOCO+ testB split, rivaling or beating 7B-scale models.
- True Category-Free Detection & General Capabilities: Prompted simply to find objects with zero category list provided, GOD emits 528 distinct labels and achieves 26.9 mAP on COCO (compared to
Rex-Omni's 0.1 mAP, which defaults to outputting generic "object" tags). Meanwhile, it preserves strong general MLLM scores (45 on MMMU, 86 on POPE, 1520 on MME).
Limitations and Future Work
- Accuracy Gap: While GOD substantially advances direct coordinate generation, pure autoregressive box generation (38.1 AP) still trails retrieval-based generative pipelines (44.4–50.0 AP) and pure discriminative detectors (~53–59 AP).
- Prompt Sensitivity & Evaluation: The authors note that making generative detectors consistently reliable under diverse, unconstrained free-form user prompts—and establishing standardized benchmarks to evaluate open-ended naming and localization fairly—remains an open challenge for future work.
Summary updated