Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizers

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Williams, Joshua Nathaniel, Schwarzschild, Avi, He, Yutong, Kolter, J. Zico
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915266114355200
author Williams, Joshua Nathaniel
Schwarzschild, Avi
He, Yutong
Kolter, J. Zico
author_facet Williams, Joshua Nathaniel
Schwarzschild, Avi
He, Yutong
Kolter, J. Zico
contents Recovering natural language prompts for image generation models, solely based on the generated images is a difficult discrete optimization problem. In this work, we present the first head-to-head comparison of recent discrete optimization techniques for the problem of prompt inversion. We evaluate Greedy Coordinate Gradients (GCG), PEZ , Random Search, AutoDAN and BLIP2's image captioner across various evaluation metrics related to the quality of inverted prompts and the quality of the images generated by the inverted prompts. We find that focusing on the CLIP similarity between the inverted prompts and the ground truth image acts as a poor proxy for the similarity between ground truth image and the image generated by the inverted prompts. While the discrete optimizers effectively minimize their objectives, simply using responses from a well-trained captioner often leads to generated images that more closely resemble those produced by the original prompts.
format Preprint
id arxiv_https___arxiv_org_abs_2408_06502
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizers
Williams, Joshua Nathaniel
Schwarzschild, Avi
He, Yutong
Kolter, J. Zico
Computer Vision and Pattern Recognition
Machine Learning
Recovering natural language prompts for image generation models, solely based on the generated images is a difficult discrete optimization problem. In this work, we present the first head-to-head comparison of recent discrete optimization techniques for the problem of prompt inversion. We evaluate Greedy Coordinate Gradients (GCG), PEZ , Random Search, AutoDAN and BLIP2's image captioner across various evaluation metrics related to the quality of inverted prompts and the quality of the images generated by the inverted prompts. We find that focusing on the CLIP similarity between the inverted prompts and the ground truth image acts as a poor proxy for the similarity between ground truth image and the image generated by the inverted prompts. While the discrete optimizers effectively minimize their objectives, simply using responses from a well-trained captioner often leads to generated images that more closely resemble those produced by the original prompts.
title Prompt Recovery for Image Generation Models: A Comparative Study of Discrete Optimizers
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2408.06502