The Prompt Report: A Systematic Survey of Prompting Techniques

Sander Schulhoff,Michael Ilie,Nishant Balepur,Konstantine Kahadze,Amanda Liu,Chenglei Si,Yinheng Li,Aayush Gupta,HyoJung Han,Sevien Schulhoff,Pranav Sandeep Dulepet,Saurav Vidyadhara,Dayeon Ki,Sweta Agrawal,Chau Pham,Gerson Kroiz,Feileen Li,Hudson Tao,Ashay Srivastava,Hevander Da Costa,Saloni Gupta,Megan L. Rogers,Inna Goncearenco,Giuseppe Sarli,Igor Galynker,Denis Peskoff,Marine Carpuat,Jules White,Shyamal Anadkat,Alexander Hoyle,Philip Resnik
2024-07-15
Abstract:Generative Artificial Intelligence (GenAI) systems are being increasingly deployed across all parts of industry and research settings. Developers and end users interact with these systems through the use of prompting or prompt engineering. While prompting is a widespread and highly researched concept, there exists conflicting terminology and a poor ontological understanding of what constitutes a prompt due to the area's nascency. This paper establishes a structured understanding of prompts, by assembling a taxonomy of prompting techniques and analyzing their use. We present a comprehensive vocabulary of 33 vocabulary terms, a taxonomy of 58 text-only prompting techniques, and 40 techniques for other modalities. We further present a meta-analysis of the entire literature on natural language prefix-prompting.
Computation and Language,Artificial Intelligence
What problem does this paper attempt to address?
The paper attempts to address the following issues: In the context of the increasing application of generative artificial intelligence (GenAI) systems across various industries and research fields, developers and end-users interact with these systems through prompting or prompt engineering. However, due to the emerging nature of the prompt field, there is a lack of consistent terminology and an insufficient ontological understanding of what constitutes a prompt. This paper aims to establish a structured framework for understanding prompts by constructing a taxonomy of prompt techniques and analyzing their applications, providing users with a systematic vocabulary and classification method for prompt techniques. Specifically, the goals of the paper include: 1. **Establishing a comprehensive classification of prompt techniques**: The paper proposes a taxonomy that includes 33 vocabulary terms, 58 text prompt techniques, and 40 other modality prompt techniques. 2. **Systematic literature review**: Through a systematic literature review, the paper analyzes the entire body of literature on natural language prefix prompts to provide a comprehensive perspective. 3. **Multilingual and multimodal prompts**: In addition to traditional English text prompts, the paper explores multilingual and multimodal prompt techniques, including methods for prompting with images, audio, video, and other media. 4. **Extending prompt techniques**: The paper discusses how to integrate external tools (such as internet browsing and calculators) into prompt techniques and how to evaluate the accuracy of prompts and agent outputs. 5. **Security and alignment issues**: The paper analyzes security and alignment issues in prompt techniques and proposes measures to mitigate risks. 6. **Case studies**: Through two case studies, the paper demonstrates the practical application of prompt techniques, including performance testing on the Multilingual Understanding Benchmark (MMLU) and the application of manual prompt engineering in real-world scenarios. Overall, this paper aims to enhance the understanding and application of prompt techniques through systematic research and classification, thereby promoting the effective use and development of generative artificial intelligence systems.