[Paper Review] Conversational Prompt Engineering
Conversational Prompt Engineering (CPE) is a chat-based tool that helps users craft personalized prompts for LLMs from unlabeled data, producing few-shot prompts and often matching the effectiveness of longer few-shot prompts while saving tokens. A user study on summarization shows CPE can replace lengthy prompts with zero-shot prompts that meet user preferences, especially for repetitive tasks.
Prompts are how humans communicate with LLMs. Informative prompts are essential for guiding LLMs to produce the desired output. However, prompt engineering is often tedious and time-consuming, requiring significant expertise, limiting its widespread use. We propose Conversational Prompt Engineering (CPE), a user-friendly tool that helps users create personalized prompts for their specific tasks. CPE uses a chat model to briefly interact with users, helping them articulate their output preferences and integrating these into the prompt. The process includes two main stages: first, the model uses user-provided unlabeled data to generate data-driven questions and utilize user responses to shape the initial instruction. Then, the model shares the outputs generated by the instruction and uses user feedback to further refine the instruction and the outputs. The final result is a few-shot prompt, where the outputs approved by the user serve as few-shot examples. A user study on summarization tasks demonstrates the value of CPE in creating personalized, high-performing prompts. The results suggest that the zero-shot prompt obtained is comparable to its - much longer - few-shot counterpart, indicating significant savings in scenarios involving repetitive tasks with large text volumes.
Motivation & Objective
- Reduce the burden of prompt engineering by removing the need for labeled data or seed prompts.
- Enable users to articulate and refine task requirements through an interactive chat.
- Generate a few-shot prompt incorporating user preferences and approved outputs.
- Demonstrate CPE’s effectiveness in summarization tasks and potential token savings.
Proposed method
- Three-party chat design (user, system, model) running on Llama-3-70B to build prompts.
- Context management with per-message filtering to handle long contexts and side-chats for testing prompts.
- Chat-driven instruction refinement and output enhancement using Chain-of-Thought in side-chats.
- Generation of a CPE FS (few-shot) prompt once user approves instruction and outputs.
- Iterative prompt refinement driven by user feedback to converge on CPE FS prompt.
Experimental results
Research questions
- RQ1Can CPE generate effective personalized prompts for a given task using only unlabeled data?
- RQ2Does CPE reduce the need for long few-shot prompts while preserving output quality?
- RQ3How do users perceive the usefulness, usability, and convergence time of CPE in real tasks?
Key findings
- In a user study with 12 participants, CPE prompts were preferred over a baseline prompt.
- The zero-shot prompt produced by CPE was comparable to its longer few-shot counterpart, enabling token savings for repetitive tasks.
- Average convergence required 32 turns and about 25 minutes to reach a final prompt.
- Two-thirds of chats used the output enhancement phase, indicating substantial refinement through feedback.
- Across chats, final instructions often changed substantially, with an average character distance of 96.3 from the initial instruction.
- When comparing CPE ZS and CPE FS prompts, the proportion rated as best was 53% vs 47%, with the difference not statistically significant.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.