Well-designed prompts can guide text-to-image models to generate amazing images. However, the performant prompts are often model-specific and misaligned with user input. Instead of laborious human engineering, we propose prompt adaptation, a general framework that automatically adapts original user input to model-preferred prompts. Specifically, we first perform supervised fine-tuning with a pretrained language model on a small collection of manually engineered prompts. Then we use reinforcement learning to explore better prompts. We define a reward function that encourages the policy to generate more aesthetically pleasing images while preserving the original user intentions. Experimental results on Stable Diffusion show that our method outperforms manual prompt engineering in terms of both automatic metrics and human preference ratings. Moreover, reinforcement learning further boosts performance, especially on out-of-domain prompts. The pretrained checkpoints are available at https://aka.ms/promptist. The demo can be found at https://aka.ms/promptist-demo.
Optimizing Soft Prompt Tuning via Structural Evolution
School of Information and Software Engineering, University of Electronic Science and Technology of China(电子科技大学信息与软件工程学院);School of Computer Science and Engineering, University of Electronic Science and Technology of China(电子科技大学计算机科学与工程学院);College of Professional and Continuing Education, The Hong Kong Polytechnic University(香港理工大学专业及继续教育学院);School of Robotics and Advanced Manufacture, Harbin Institute of Technology(哈尔滨工业大学机器人与先进制造学院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);School of Computer Science and Technology, Tongji University(同济大学计算机科学与技术学院)
RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learning
Carnegie Mellon University(卡内基梅隆大学);UC San Diego(加州大学圣地亚哥分校);MIT(麻省理工学院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Petuum Inc.(Petuum公司)
AutoMedPrompt: A New Framework for Optimizing LLM Medical Prompts Using Textual Gradients
Keck Data Science Institute, Pepperdine University(佩珀代因大学凯克数据科学研究所);Department of Medicine, University of California, Los Angeles(加利福尼亚大学洛杉矶分校医学院);Biological Sciences Division, University of Chicago(芝加哥大学生物科学部);Brain Research Institute, University of California, Los Angeles(加利福尼亚大学洛杉矶分校脑研究所)
TextTIGER: Text-based Intelligent Generation with Entity Prompt Refinement for Text-to-Image Generation
Nara Institute of Science and Technology(奈良科学技術研究所);The University of Tokyo(东京大学);Chungnam National University(Chungnam国立大学);Institute of Science Tokyo(东京科学研究所)
SPRIG: Improving Large Language Model Performance by System Prompt Optimization
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Michigan(密歇根大学);University of Illinois Chicago(伊利诺伊大学芝加哥分校);LG AI Research(LG AI 研究院)
GreenStableYolo: Optimizing Inference Time and Image Quality of Text-to-Image Generation
Loughborough University(拉夫堡大学);Beijing University of Posts and Telecommunications(北京邮电大学);University of Waterloo(滑铁卢大学);University of Birmingham(伯明翰大学);University College London(伦敦大学学院)
EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Models
University of Massachusetts, Amherst(马萨诸塞大学阿姆赫斯特分校);Georgia Institute of Technology(佐治亚理工学院);Rutgers University(罗格斯大学);University of Utah(犹他大学);Dolby Laboratories(杜比实验室)
PromptSafe: Gated Prompt Tuning for Safe Text-to-Image Generation
Beihang University(北航);Beijing University of Posts and Telecommunications(北京邮电大学);Taishan University(泰山大学);Nanyang Technological University(南洋理工大学);Henan University of Science and Technology(河南科技大学)
Prompt Stability Scoring for Text Annotation with Large Language Models
Department of Sociology, New York University(纽约大学社会学系);Independent Researcher(独立研究者);Institute for Logic, Language, and Computation, University of Amsterdam(阿姆斯特丹大学逻辑、语言与计算研究所)