Abstract
Despite impressive recent advances in text-to-image diffusion models, obtaining high-quality images often requires prompt engineering by humans who have developed expertise in using them. In this work, we present NeuroPrompts, an adaptive framework that automatically enhances a user’s prompt to improve the quality of generations produced by text-to-image models. Our framework utilizes constrained text decoding with a pre-trained language model that has been adapted to generate prompts similar to those produced by human prompt engineers. This approach enables higher-quality text-to-image generations and provides user control over stylistic features via constraint set specification. We demonstrate the utility of our framework by creating an interactive application for prompt enhancement and image generation using Stable Diffusion. Additionally, we conduct experiments utilizing a large dataset of human-engineered prompts for text-to-image generation and show that our approach automatically produces enhanced prompts that result in superior image quality. We make our code1 and a screencast video demo2 of NeuroPrompts publicly available.
Original language | English |
---|---|
Title of host publication | EACL 2024 - 18th Conference of the European Chapter of the Association for Computational Linguistics, Proceedings of System Demonstrations |
Editors | Nikolaos Aletras, Orphee De Clercq |
Publisher | Association for Computational Linguistics (ACL) |
Pages | 159-167 |
Number of pages | 9 |
ISBN (Electronic) | 9798891760912 |
State | Published - 2024 |
Externally published | Yes |
Event | 18th Conference of the European Chapter of the Association for Computational Linguistics, EACL 2024 - St. Julian's, Malta Duration: 17 Mar 2024 → 22 Mar 2024 |
Publication series
Name | EACL 2024 - 18th Conference of the European Chapter of the Association for Computational Linguistics, Proceedings of System Demonstrations |
---|
Conference
Conference | 18th Conference of the European Chapter of the Association for Computational Linguistics, EACL 2024 |
---|---|
Country/Territory | Malta |
City | St. Julian's |
Period | 17/03/24 → 22/03/24 |
Bibliographical note
Publisher Copyright:© 2024 Association for Computational Linguistics.