Generative Object Detection with Co-Training

Yang Liu, Yao Zhang, Feng Hou, Yangzhou Du, Peng Wang, Yang Zhang, Zhongchao Shi, Jianping Fan, Zhiqiang HeNeurIPS 2026

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.

Comparison of generative object detection paradigms: Traditional SFT, RL Optimization, and GOD's co-training approach.

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).
Figure 2: Overview of GOD. The shared visual encoder provides visual tokens to the MLLM and multi-scale features to a DETR-style proposal decoder. Object-query embeddings are injected alongside visual and instruction tokens for structured generation. The displayed token sequence is schematic; task-specific JSON output formats are provided in Appendix B.

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-3B achieves 38.1 AP on COCO val (outperforming the same-scale Rex-Omni-3B at 30.8 AP and Qwen2.5-7B-VL at 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

Abstract

Recent progress in multimodal large language models (MLLMs) has strengthened visual understanding and instruction following, and opened a path to open-ended generative object detection, in which a model discovers, names, and localizes objects from free-form instructions without relying on a predefined category set. Nevertheless, current generative detectors remain less accurate than discriminative detectors, as token-level supervision provides only indirect and weak constraints on fine-grained visual perception. To equip MLLM with such an explicit optimization objective, we propose \textbf{GOD} (\textbf{G}enerative \textbf{O}bject \textbf{D}etection), a 3B-scale MLLM that injects object-level visual-prior supervision into generative detection by coupling visual-prior reconstruction with language generation. GOD attaches a lightweight DETR-style object-query branch to the MLLM visual encoder, maps the resulting object queries into the token space, and optimizes them jointly with autoregressive generation, MLLM-side object-query reconstruction, and DETR-side localization objectives. Specifically, in the training recipe, a multi-stage training pipeline first aligns the object decoder with the MLLM and then uses an interleaved-mask curriculum to transfer detector-grounded priors from proposal-assisted training to reference-free generation. Experiments on standard object detection and referring expression comprehension benchmarks show that GOD improves direct coordinate generation while preserving discriminative localization and language-conditioned grounding. These gains suggest that object-level visual priors are most effective when learned within the MLLM, rather than supplied only as external proposals, providing a practical bridge between generative language modeling and localization-aware perception.
BibTeX
@inproceedings{liu2026generative,
  author = {Yang Liu and Yao Zhang and Feng Hou and Yangzhou Du and Peng Wang and Yang Zhang and Zhongchao Shi and Jianping Fan and Zhiqiang He},
  title = {{Generative Object Detection with Co-Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=IdUJaSN2pj},
}
Figure