Image Captions are Natural Prompts for Text-to-Image Models

Shiye Lei, Hao Chen, Sen Zhang, Bo Zhao, Dacheng Tao
7/17/2023
cs.CVcs.AIcs.LG

No official code found. Best implementation: BAAI-DCAI/Training-Data-Synthesis (80 stars, MIT, last commit 2023-12-09).

Abstract

With the rapid development of Artificial Intelligence Generated Content (AIGC), it has become a common practice to train models on synthetic data due to data-scarcity and privacy leakage problems. Owing to massive and diverse information conveyed in real images, it is challenging for text-to-image generative models to synthesize informative training data with hand-crafted prompts. Considering the impressive ability of large generative models, could such models directly synthesize good training images for prediction tasks with proper prompts? We offer an affirmative response to this question by proposing a simple yet effective method, validated through ImageNet classification. Specifically, we caption each real image with the advanced captioning model to obtain informative and faithful prompts that extract class-relevant information and clarify the polysemy of class names. The image captions and class names are concatenated to prompt generative models for training image synthesis. We show that this simple caption incorporation significantly boosts the informativeness of synthetic data therefore enhancing downstream model generalization. More importantly, besides improvements in data augmentation and privacy preservation, our experiments demonstrate that synthesized images can exceed real data in terms of out-of-distribution robustness.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2024] Real-Fake: Effective Training Data Synthesis Through Distribution Matching

804Shell, PythonOct 9, 20232 years agoMIT

Similar Papers

Cite this paper

@article{lei2023image,
  title  = {Image Captions are Natural Prompts for Text-to-Image Models},
  author = {Shiye Lei and Hao Chen and Sen Zhang and Bo Zhao and Dacheng Tao},
  year   = {2023},
  eprint = {2307.08526},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.08526v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.08526.svg)](https://codeofpaper.com/paper/2307.08526)

Discussion