TL;DR
RTGen introduces a real-time generative object detection transformer that eliminates the need for predefined textual prompts or slow, decoupled language models. By unifying visual and textual decoding via a novel Region-Language Decoder and a non-autoregressive DAG-based text head, it achieves up to 131.3 FPS on a T4 GPU—over 270× faster than previous generative detectors—while maintaining competitive open-ended detection accuracy.
What Problem Does This Paper Address?
Traditional open-vocabulary object detectors (OVD) can identify novel objects beyond a closed set of training categories, but they suffer from a major operational bottleneck: they require users to provide a predefined list of candidate text prompts or classifier heads at inference time.
To achieve true open-ended detection, recent "generative" object detectors have emerged. These models directly generate the text name of any detected object. However, existing generative detectors typically use a decoupled architecture, slapping a heavy, autoregressive language model (like Flan-T5) onto a separate detector backbone. This results in severe structural redundancy and high latency, making them impractical for real-time applications. RTGen addresses this gap by unifying detection and text generation into a single, highly efficient framework.
Methods
RTGen builds upon the real-time RT-DETR architecture and introduces two core components to achieve unified, high-speed generative detection:
- Region-Language Decoder (RL-Decoder): Instead of separating the vision and language components, the RL-Decoder treats object queries and text embeddings as co-evolving representations within a single transformer decoding framework. Visual and textual features interact dynamically layer-by-layer through shared self-attention, allowing the model to efficiently propagate region-level visual semantics directly into the text embeddings.
- DAG Text Head: To bypass the slow, token-by-token generation inherent to autoregressive language models, the authors reformulate text generation as a non-autoregressive Directed Acyclic Graph (DAG) generation process. The DAG Text Head predicts token transition probabilities in parallel across all regions. At inference time, it uses Viterbi decoding to quickly extract the globally optimal and coherent category name.
Crucially, RTGen learns to generate category names directly from standard detection labels during training, completely eliminating the need for external vision-language models (like CLIP) or pretrained language models.
Datasets
The models were trained and evaluated on two standard, large-scale object detection benchmarks:
- COCO: Used for standard evaluation (80 categories).
- Objects365 V1: A large-scale dataset containing 365 categories, utilized to evaluate the model's zero-shot generalization capabilities.
The authors only utilized the category names as text strings, discarding the traditional discrete classification labels.
Key Insights and Ideas
- Co-Evolution Beats Decoupling: Merging object detection and text generation into a single decoding process eliminates the computational overhead of transferring features between separate vision and language networks, unlocking significant cross-modal synergy.
- DAGs for Short Text Generation: While non-autoregressive translation often struggles with long paragraphs due to weak token dependency modeling, it is exceptionally well-suited for the short phrases typical of object category names (e.g., "ski parka"). Organizing tokens into a DAG preserves structural dependencies without the latency penalty of autoregressive decoding.
- Emergent Generative Capability: A detector can learn open-ended text generation purely from standard bounding-box text labels, proving that massive image-text pre-training isn't a strict requirement for generative vision tasks.
Key Results
- Massive Speedups: RTGen-R34 achieves an impressive 131.3 FPS on an NVIDIA T4 GPU (using TensorRT FP16), making it over 270× faster than GenerateU (0.48 FPS). The larger RTGen-R101 variant still comfortably maintains real-time performance at 59.7 FPS.
- Competitive Accuracy: When trained on the combined Objects365 and COCO datasets, RTGen-R101 achieves 40.7 AP on the COCO validation set.
- Strong Zero-Shot Generalization: In a zero-shot setting (trained on Objects365 and evaluated on COCO novel classes), RTGen-R101 achieves 37.0 $\text{AP}_{50}$, outperforming established open-set detectors like ViLD ($27.6\ \text{AP}_{50}$) and Detic ($27.8\ \text{AP}_{50}$) without relying on CLIP pre-training.
Limitations and Future Work
The primary limitation of RTGen is that its vocabulary is inherently bounded by the annotations of the detection datasets it trains on. For instance, training solely on Objects365 limits its vocabulary to those 365 category names. This makes it less effective for benchmarks requiring massive, fine-grained vocabularies (like LVIS) compared to models trained on billions of web-scale image-text pairs.
The authors note that incorporating richer linguistic supervision and scaling up the training dataset vocabulary are promising directions to extend RTGen's capabilities to broader, truly open-world domains.
Summary updated