Iteratively Prompting Multimodal LLMs to Reproduce Natural and AI-Generated Images

With the digital imagery landscape rapidly evolving, image stocks and AI-generated image marketplaces have become central to visual media. Traditional stock images now exist alongside innovative platforms that trade in prompts for AI-generated visuals, driven by sophisticated APIs like DALL-E 3 and Midjourney. This paper studies the possibility of employing multi-modal models with enhanced visual understanding to mimic the outputs of these platforms, introducing an original attack strategy. Our method leverages fine-tuned CLIP models, a multi-label classifier, and the descriptive capabilities of GPT-4V to create prompts that generate images similar to those available in marketplaces and from premium stock image providers, yet at a markedly lower expense. In presenting this strategy, we aim to spotlight a new class of economic and security considerations within the realm of digital imagery. Our findings, supported by both automated metrics and human assessment, reveal that comparable visual content can be produced for a fraction of the prevailing market prices ($0.23 - $0.27 per image), emphasizing the need for awareness and strategic discussions about the integrity of digital media in an increasingly AI-integrated landscape. Our work also contributes to the field by assembling a dataset consisting of approximately 19 million prompt-image pairs generated by the popular Midjourney platform, which we plan to release publicly.

Paper

Similar papers

Reviewer 1ZQM6/10 · confidence 4/52024-05-10

Summary

This paper proposed a method to recover the prompt used to generate the input image and use the prompt the reproduce the image. The method is basically a captioning system consisting of (1) a fine-tuned CLIP model for constructing a pool of image and text embeddings, which will be used to retrieve relevant information for the input image, (2) a multilabel classifier to predict the modifiers given the image, and (3) use GPT-4V to generate and refine the final prompt given the information from (1) and (2) with the image to generate the prompt. The proposed method performs better than two off-the-shelf captioning models.

Rating

6

Confidence

4

Ethics flag

2

Reasons to accept

The method is technically sound and could have broad applications.

Reasons to reject

1. **Unfair baseline comparison.** This is the main problem for this paper, and important baselines are missing for a fair comparison to evaluate the effectiveness of the proposed method. This paper only chooses two off-the-shelf captioning models as baselines, while the proposed model is trained on **additional data** (2M samples for fine-tuning CLIP and 300k examples for modifier classification). The **model size** is also not comparable. The proposed model uses the backbone ViT- G/14 pretrained on LAION-2b. Do the BLIP2 and CLIP Interrogator use the same backbone and pretrained on a similar amount of data? Moreover, the proposed system uses GPT-4V, which is a big advantage. To make a fair comparison, the following baselines are suggested: 1) fine-tune the baselines with the same amount of data as the proposed method uses. 2) make sure the model size is comparable. 3) use GPT-4V as the captioning model. 2. **Lack of ablation studies** This is also important to evaluate the effectiveness of the model design. The proposed pipeline involves multiple steps: fine-tuning, multi-label classifier, and GPT-4V to summarize based on the entities, keywords, etc. Are all those steps necessary? Which step is more important to the final performance? This version of the paper did not carefully ablate those components. The performance gain over the baselines could be just because of using more data and a bigger model, as mentioned before. Overall, this paper has problems in baseline comparison and lacks ablations, making it difficult to evaluate the method's effectiveness.

Ethics concerns details

The method in this paper can be used to plagiarize copy-righted artworks. The authors should discuss the potential impact of using this method.

Reviewer imxU8/10 · confidence 4/52024-05-10

Summary

This paper explores a novel and intriguing question in the realm of text-to-image system safety: Is it possible to recover the prompt used to generate an image using a text-to-image system? Given the potential value of high-quality prompts in the AI-generated content (AIGC) domain, this question is worth investigating. The paper assumes that the attacker has black-box access to all text-to-image APIs without prior knowledge of the underlying models and data, and that the generated images are accessible. This setup seems to be very reasonable. The proposed method involves fine-tuning CLIP on a dataset of 4.8 million prompt-image pairs to generate text and image embeddings. Similar images to the target images are retrieved, and the corresponding text in the database is used to extract key entities. A multi-label classifier is trained based on the image embeddings to extract image modifiers from a set of 1,800 high-frequency modifiers. GPT-4V is then employed with task demonstration, instructions, the target image, and extracted information to generate the prompt. This generation process can be refined iteratively to improve accuracy. Evaluation results demonstrate that the proposed framework is more effective in terms of the quality of generated images, with Figure 4 providing clear illustrations of the cases. Furthermore, the method can be transferred from DALL-E 3 (source) to Midjourney (target), and the overall cost (excluding training) is low, at approximately $0.24 per sample.

Rating

8

Confidence

4

Ethics flag

1

Reasons to accept

- Overall this paper is well-written, and the reading is enjoyable. - I like the question explored which might be valuable for future text2image safety research. - The framework is well-motivated and effective given the current results and the cases in Figure 4.

Reasons to reject

I did not find anything significant to reject this paper.

Questions to authors

Minor Suggestions: - When estimating the cost, it would be beneficial to consider the computational cost for training CLIP and the classifier. Although these costs are one-time and can be amortized later, it would still be informative to know the training cost. - Regarding the evaluation, adding an oracle analysis by comparing the generated prompts with the real prompts used to create the target images would provide interesting insights. Typos: - DALL-E 3 Betker et al. (2023) -> DALL-E 3 (Betker et al., 2023): Use \citep instead of \cite for these citations. - Figure 2: There is an empty period on the new line.

Reviewer w2oy9/10 · confidence 4/52024-05-10

Summary

This research work includes design attacks for generating images in a refined matter (iterative) that are significantly cheaper than online digital stock images using text-to-image APIs and LLMs. Participants are shown 4 images and an original image and are asked to tell how similar each image is to the original image using a Likert scale for similarity. From these 4 images, one is generated by the author’s attack, while the others are the baseline-generated images (CLIP interrogator 2 and BLIP2). Authors conclude that overall, while both midjourney and DALLE-3 (text-to-image) are high-performing, midjourny produces more realistic photos. The metrics used in the study is CLIP score alongside human evaluation. Main contributions: - A large-scale dataset of images from Midjourney collected from their official Discord channel that can enhance the text-to-image line of research. - Created an attack to create images that have a high similarity scores to the digital images from Web via 1-2 rounds of refining. GPT-4V and midjourney/DALLE-3 are used for the experiments. - Their work showcases that attention should be paid towards maintaining the integrity of digital images.

Rating

9

Confidence

4

Ethics flag

1

Reasons to accept

Strengths: - Great comparison of results both visually and quantitatively. - Cost analysis of the attack shows that with negligible money, images that are very close to the original digital image can be created. - Authors have provided enough details that makes this research paper reproducible for the most part. - Providing a set of failure cases that depicts what are some main flaws with the process. Further, expanding on limitations of their current work sheds light on what could be picked up and improve by future researchers.

Reasons to reject

I am pro accepting this paper. It is a novel concept and beneficial to the community.

Reviewer BmpJ7/10 · confidence 4/52024-05-12

Summary

The paper introduces an original attack strategy for generating images that look like traditional stock images or images generated with APIs like DALL-E 3 or Midjourney. The proposed strategy uses a fine-tuned multi-modal CLIP model to identify keywords and named entities representative for an image, and also a multi-label classifier to identify relevant modifiers. Such information is provided as instruction to GPT-4V, which finally produces a prompt that can be used to generate the desired images. The authors also perform a cost analysis and show that the proposed attach strategy can be used to generate images at at fraction of the current cost.

Rating

7

Confidence

4

Ethics flag

2

Reasons to accept

The authors propose a novel attack strategy and show that they can generate images that look like desirable real stock images or images generated by APIs such as DALL-E 3 or Midjourney at a fraction of the cost. The authors perform both quantitate and qualitative evaluation of the proposed approach. The authors clearly point out the limitations of the work.

Reasons to reject

While the proposed approach can be seen as a novel attack strategy, it leverages existing tools in a pretty straightforward way. The success of the approach depends on the collection of a large set of prompt/image pairs from Midjourney to fine-tune CLIP.

Questions to authors

The authors mention that the dataset assembled from Midjourney will be released publicly. Is that allowed by Midjourney? Can that data be shared?

Ethics concerns details

Generating images that look like real stock images may come with some ethical implications. While the authors present this as an attack strategy, in the wrong hands, the strategy can be misused. Of course, this is a danger posed by many modern deep learning approaches.

Reviewer 1ZQM2024-06-03

Reply to Rebuttal

Thank you for answering my comments. Please include those discussions and ablations in the paper, which will make it more solid. I raised my score.

Reviewer imxU2024-06-04

Thanks for your response and I believe these additional cost/oracle analyses could benefit the final version.

Reviewer BmpJ2024-06-04

Thank you for addressing my concerns. I am supporting the acceptance of this paper.

Reviewer w2oy2024-06-07

Reply to author's rebuttal

I read other reviewers' review and authors' answer to them and for the most part it seems we are in tune for accepting the paper however, I agree with reviewer 1ZQM that this discussion needs to be added to the paper.

Program Chairsdecision2024-07-10

Decision

Accept

© 2026 NYSGPT2525 LLC