NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DALL-E for Detection: Language-driven Context Image Synthesis for Object Detection

Yunhao Ge, Jiashu Xu, Brian Nlong Zhao, Laurent Itti, Vibhav VineetarXiv 2022 · DOI

TL;DR

This paper introduces a novel method for automatically generating large-scale, labeled datasets for object detection using text-to-image synthesis models like DALL-E. By decoupling foreground object mask generation from background context generation, they create synthetic data that significantly improves object detection performance, especially in low-resource and out-of-distribution scenarios.

What Problem Does This Paper Address?

Training modern deep learning models for computer vision tasks, particularly object detection, requires massive amounts of labeled data. Acquiring and annotating this data is a labor-intensive, time-consuming, and expensive process. Existing synthetic data generation methods often fall short due to limitations like requiring 3D models, lacking accurate foreground masks, or being difficult to scale to new object classes. This paper tackles the challenge of efficiently and automatically generating high-quality, labeled synthetic data that can rival or even surpass the performance of models trained on real-world datasets.

Methods

The proposed approach has two main components:

  1. Foreground Object Mask Generation:
    • They use simple text prompts (e.g., "A photo of a dog") with the object class name as input to text-to-image models like DALL-E or Stable Diffusion to generate diverse foreground object images.
  2. A standard foreground-background segmentation algorithm is then applied to extract the object masks.
  3. Background (Context) Image Generation:
    • A small set of "context description images" (CDIs) representing the desired environment is provided.
  4. An image captioning model (e.g., SCST) generates textual descriptions of these CDIs.
  5. These textual descriptions are then fed into text-to-image models to generate a diverse set of high-quality background context images.
  6. Crucially, they employ CLIP to filter generated images, ensuring they don't contain the target object classes.

Finally, foreground object masks are composited onto the generated background images using a "cut-and-paste" strategy, creating synthetic training data with accurate labels. The language-driven nature of the generation allows for compositional manipulation (adding/removing elements) and explainability.

Datasets

The paper evaluates their method on several standard object detection and instance segmentation datasets:

  • PASCAL VOC 2012: Used for both foreground and context generation experiments.
  • COCO: Used for foreground and context generation experiments.
  • GMU-Kitchen, Active Vision, and YCB-video datasets: Used for instance detection tasks, where their method primarily focuses on generating context images.

Key Insights and Ideas

  • Leveraging Text-to-Image for Data Generation: The core idea is that powerful generative models like DALL-E can be repurposed not just for creative image synthesis but also for the practical task of generating realistic and diverse training data for computer vision.
  • Decoupling Foreground and Background: Separating the generation of object instances from their environments allows for greater control and diversity in both aspects.
  • Language as a Compositional Tool: The use of natural language descriptions for context generation is a key innovation. It enables fine-grained control over the generated scenes, allowing for easy modification (adding, removing, or changing styles) of the context, which is crucial for out-of-distribution and zero-shot scenarios.
  • CLIP for Quality Control: Using CLIP to filter generated images is an effective way to ensure that background images do not inadvertently contain the objects being detected, a common pitfall in synthetic data generation.
  • Synthetic Data Outperforming Real Data (in some settings): The results show that models trained on their synthetically generated data can achieve performance comparable to, or even better than, models trained on large real-world datasets, especially when the real dataset is small or the context is challenging.

Key Results

  • PASCAL VOC: Their approach, using only synthetic foreground and background, achieved competitive results (43.2% mAP@50) compared to fully supervised training on the entire dataset (45.5% mAP@50) in a zero-shot setting. When combining their synthetic data with a small number of real images (1-shot), they achieved significant improvements, with one experiment reaching 51.82% mAP@50, outperforming the baseline trained on all real data.
  • COCO: Similar to VOC, their method showed substantial improvements (+14.75%) over a baseline trained on real data in a 1-shot setting.
  • Instance Detection: For datasets like GMU-Kitchen, Active Vision, and YCB-video, their context generation approach improved performance by 2.1 to 7.2 percentage points over object cut-and-paste baselines.
  • Compositional Benefits: Experiments demonstrated that modifying context descriptions (e.g., changing style from cartoon to real, removing "people" from scenes) led to further performance gains, highlighting the power of language-driven manipulation.

Limitations and Future Work

  • Foreground Mask Quality: While they use off-the-shelf segmentation, the quality of foreground masks can still impact performance. Future work could explore more advanced mask extraction techniques.
  • Scalability of Templates: The foreground generation relies on manually designed templates. While effective, expanding the set of templates or developing a more automated way to generate them could improve diversity.
  • Computational Cost: Generating large datasets with text-to-image models can be computationally intensive.
  • Future Work: The authors suggest extending their approach to other tasks like instance segmentation, handling long-tail and imbalanced data, and iteratively generating data to improve model robustness where it fails. They also envision using this method to democratize computer vision model training.

Summary updated

BibTeX
@misc{ge2022dall,
  author = {Yunhao Ge and Jiashu Xu and Brian Nlong Zhao and Laurent Itti and Vibhav Vineet},
  title = {{DALL-E for Detection: Language-driven Context Image Synthesis for Object Detection}},
  year = {2022},
  eprint = {2206.09592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.09592},
}
Figure