Skip to main content

Towards an Automatic Prompt Optimization Framework for AI Image Generation

  • Conference paper
  • First Online:
HCI International 2023 Posters (HCII 2023)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1836))

Included in the following conference series:

  • 1247 Accesses

Abstract

Generative AI experienced a boom in 2022 with highlights such as the releases of Stable Diffusion for image generation and ChatGPT for conversational text generation. Although millions of images have been generated using products such as DALL-E 2, DreamStudio, and Midjourney, the learning curve for developing good text prompts that can lead to high-quality images remains steep, especially for inexperienced and less-technical users. Although various prompt engineering guides and tutorials have been developed to provide tips and guidance on prompt writing, there has been scant research on automatic prompt improvement algorithms and methods. In this paper, we present an automatic prompt optimization framework based on NLP analysis of a large prompt database and various machine learning models. A product based on our framework was developed and deployed for two months and real data were collected to evaluate our framework.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Stable Diffusion prompt Generator-promptoMANIA. https://promptomania.com/stable-diffusion-prompt-builder/. Accessed 03 Mar 2023

  2. Lexica. https://lexica.art/. Accessed 03 Mar 2023

  3. MagicPrompt-Stable-Diffusion. https://huggingface.co/Gustavosta/MagicPrompt-Stable-Diffusion. Accessed 03 Mar 2023

  4. Pushp, P.K., Srivastava, M.M.: Train Once, Test Anywhere: Zero-Shot Learning for Text Classification (2017). http://arxiv.org/abs/1712.05972

  5. Priyam, A., Gupta, R., Rathee, A., Srivastava, S.: Comparative analysis of decision tree classification algorithms. Int. J. Curr. Eng. Technol. 2, 334–337 (2013)

    Google Scholar 

  6. spaCy. https://spacy.io/. Accessed 03 Mar 2023

  7. Raffel, C., et al.: Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res. 21(1), 5485–5551 (2020)

    MathSciNet  MATH  Google Scholar 

  8. Wang, Z.J., Montoya, E., Munechika, D., Yang, H., Hoover, B., Chau, D.H.: DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Models (2022). http://arxiv.org/abs/2210.14896

  9. Liu, X.Y., Wu, J., Zhou, Z.H.: Exploratory undersampling for class-imbalance learning. IEEE Trans. Syst. Man Cybern. B. 39, 539–550 (2009)

    Google Scholar 

  10. t5-base. https://huggingface.co/t5-base. Accessed 03 Mar 2023

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ling Fan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Fan, L., Wang, H.J., Zhang, K., Pei, Z., Li, A. (2023). Towards an Automatic Prompt Optimization Framework for AI Image Generation. In: Stephanidis, C., Antona, M., Ntoa, S., Salvendy, G. (eds) HCI International 2023 Posters. HCII 2023. Communications in Computer and Information Science, vol 1836. Springer, Cham. https://doi.org/10.1007/978-3-031-36004-6_55

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-36004-6_55

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-36003-9

  • Online ISBN: 978-3-031-36004-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics