Abstract
Deep learning models for computer vision require vast amounts of annotated data, the manual collection of which is often prohibitively expensive. While AI-Generated Content (AIGC) models offer a potential source of synthetic data, they typically struggle with complex scene composition and lack automatic ground-truth annotations. We present ChatGenImage, a framework that employs Large Language Models (LLMs) as "mentors" to orchestrate AIGC models in synthesizing high-quality, annotated vision datasets. By iteratively refining scenes and generating precise bounding boxes and segmentation masks, ChatGenImage bridges the gap between simple text-to-image generation and robust dataset synthesis.
Introduction
The performance of modern vision models is heavily dependent on the scale and quality of training data. However, the "data bottleneck"—the high cost of manual labeling—remains a significant hurdle. Text-to-image models like Stable Diffusion can generate realistic images, but they are often limited by the need for complex prompt engineering and the absence of structural labels (e.g., masks and boxes) required for downstream tasks like object detection and segmentation.
ChatGenImage addresses these challenges by using an LLM (e.g., ChatGPT) to manage the entire synthesis pipeline. The LLM acts as a central controller, translating simple user concepts into rich visual descriptions and utilizing vision foundation models to provide feedback for iterative refinement.
The ChatGenImage Framework
The pipeline operates in two primary stages: initialization and iterative refinement.
Language-Enhanced Image Initialization
Starting with a single label word (e.g., "Bedroom"), the LLM leverages its extensive world knowledge to brainstorm a comprehensive scene description. This description includes details on lighting, textures, and spatial arrangements, which are then used to prompt an AIGC model to generate a high-fidelity base image.
Iterative Local Refinement and Labeling
The core of the framework is its "visual perception" loop. The system employs a Label Foundation Toolkit—comprising BLIP2 for captioning, Grounding DINO for object detection, and the Segment Anything Model (SAM) for mask generation—to analyze the generated image.
The LLM evaluates these labels against the desired scene complexity. If the scene is deemed too simple, the LLM generates local editing prompts to add objects or modify the background. Models like InstructPix2Pix execute these edits, while structural metrics (SSIM, PSNR) and CLIP similarity scores ensure the results remain semantically consistent and visually coherent.
Automatic Annotation and Scene Complexity
One of the primary advantages of ChatGenImage is its ability to produce "fine-grained pseudo-labels" automatically. As the scene grows in complexity through iterative edits, the system maintains a corresponding set of bounding boxes and segmentation masks.
This process transforms a standard generative model into a self-labeling data factory, capable of producing datasets for rare species or specific domains where real-world data is scarce.
Key Insights
- LLMs as Spatial Mentors: The research demonstrates that LLMs possess sufficient "spatial common sense" to guide object placement (e.g., placing a lamp on a nightstand) without direct pixel-level access.
- Iterative Complexity: Building scenes incrementally allows for more controlled and realistic compositions than attempting to generate a complex multi-object scene in a single step.
Conclusion
ChatGenImage represents a significant step toward automated dataset generation. By combining the reasoning capabilities of LLMs with the creative power of AIGC models, the framework produces high-quality, annotated data that can potentially reduce the reliance on manual labeling. Future work will focus on validating these synthetic datasets in downstream training tasks and exploring more complex human-object interactions.
Summary updated