AnySynth: Harnessing the Power of Image Synthetic Data Generation for Generalized Vision-Language Tasks

You Li, Fan Ma, Yi YangarXiv 2024 · OpenReview

Abstract

Diffusion models have recently been employed to generate high-quality images, reducing the need for manual data collection and improving model generalization in tasks such as object detection, instance segmentation, and image perception. However, the synthetic framework is usually designed with meticulous human effort for each task due to various requirements on image layout, content, and annotation formats, restricting the application of synthetic data on more general scenarios. In this paper, we propose AnySynth, a unified framework integrating adaptable, comprehensive, and highly controllable components capable of generating an arbitrary type of synthetic data given diverse requirements. Specifically, the Task-Specific Layout Generation Module is first introduced to produce reasonable layouts for different tasks by leveraging the generation ability of large language models and layout priors of real-world images. A Uni-Controlled Image Generation Module is then developed to create high-quality synthetic images that are controllable and based on the generated layouts. In addition, user specific reference images, and style images can be incorporated into the generation to task requirements. Finally, the Task-Oriented Annotation Module offers precise and detailed annotations for the generated images across different tasks. We have validated our framework's performance across various tasks, including Few-shot Object Detection, Cross-domain Object Detection, Zero-shot Composed Image Retrieval, and Multi-modal Image Perception and Grounding. The specific data synthesized by our framework significantly improves model performance in these tasks, demonstrating the generality and effectiveness of our framework.

Introduction

Training modern vision-language models requires a mountain of high-quality, well-annotated data. While real-world datasets like COCO and LAION have fueled the current AI boom, they are expensive to curate, labor-intensive to annotate, and often lack the diversity needed for niche or "long-tail" tasks. Synthetic data generation via diffusion models offers a way out, but most existing pipelines are task-specific, requiring significant manual redesign to adapt from one task (like object detection) to another (like image retrieval). This "data bottleneck" hinders the scalability of vision-language models across diverse scenarios.

AnySynth addresses this by providing a unified framework capable of generating high-quality synthetic images and precise annotations for a wide range of tasks. By automating the creation of diverse, task-specific datasets—complete with bounding boxes, masks, and captions—AnySynth significantly boosts model performance in few-shot and cross-domain scenarios.

Overview of AnySynth's ability to handle diverse tasks through a unified synthetic framework.

Methodology

AnySynth employs a modular, three-stage pipeline designed to overcome hurdles in layout complexity, generation control, and annotation precision.

  1. Task-Specific Layout Generation: Instead of random placement, AnySynth uses a Large Language Model (LLM) as a "spatial architect." The LLM reasons about object placement based on user-defined rules. To ensure these layouts are statistically realistic, a Layout Adjustment module refines the LLM’s suggestions using priors from real-world datasets to fix issues with object scale and overlap.
  2. Uni-Controlled Image Generation: The framework utilizes a Multi-Instance Generation Controller (MIGC) to render scenes. It supports multi-conditioned generation, allowing users to inject specific styles (via DDIM inversion) or reference images (using the ELITE global mapper). This enables the generation of high-fidelity images that adhere to specific domain requirements.
  3. Task-Oriented Annotation: Post-generation, AnySynth uses a suite of "expert" models (e.g., Grounding-DINO for boxes, SAM for masks, LLaVA for captions) to automatically generate dense annotations. A Quality and Position-based Filtering step ensures that only images where objects were correctly placed are used for training, reducing noise.
The detailed three-stage pipeline of AnySynth: Layout Generation, Uni-Controlled Image Generation, and Task-Oriented Annotation.

Results and Insights

The framework was validated across standard benchmarks including VOC and MS COCO for object detection, Roboflow and People-in-Art for cross-domain detection, and CIRCO/CIRR for composed image retrieval.

Key results include:

  • Few-shot Detection: On VOC (10-shot), AnySynth improved mAP for novel classes from 68.2 to 69.1. On COCO, the improvement was more pronounced, rising from 15.8 to 18.8 AP.
  • Composed Image Retrieval: On CIRCO, AnySynth improved mAP@k=5 from 23.35 to 24.57.
  • Cross-Domain Generalization: For the "People-in-Art" dataset, AnySynth’s domain alignment increased YOLOv5’s AP50 from 21.2 to 22.7.

A critical insight from this work is that while LLMs are excellent at logical reasoning (e.g., spatial relationships), they lack the statistical grounding for natural pixel coordinates. The statistical adjustment step is vital for bridging this gap. Furthermore, the inclusion of a verification step (filtering) is as important as the generation itself to ensure high-quality training data.

Conclusion

AnySynth demonstrates the power of a unified synthetic data engine for vision-language tasks. While it currently faces limitations in extremely fine-grained details and highly specialized domains like medical imaging, it provides a robust foundation for scaling data generation. Future work will focus on these data-scarce domains and improving the underlying generative models' precision.

Summary updated

BibTeX
@misc{li2024anysynth,
  author = {You Li and Fan Ma and Yi Yang},
  title = {{AnySynth: Harnessing the Power of Image Synthetic Data Generation for Generalized Vision-Language Tasks}},
  year = {2024},
  eprint = {2411.16749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.16749},
}
Figure