Skip to main content
QUICK REVIEW

[论文解读] Conversational Prompt Engineering

Liat Ein‐Dor, Orith Toledo‐Ronen|arXiv (Cornell University)|Aug 8, 2024
Education and Critical Thinking DevelopmentSocial Sciences被引用 5
一句话总结

Conversational Prompt Engineering (CPE) 是一种基于对话的工具,帮助用户从 unlabeled 数据为大语言模型(LLMs)设计个性化提示,生成少样本提示,通常能达到比更长的少样本提示更接近的效果,同时节省令牌。关于摘要的用户研究显示 CPE 可以用零-shot 提示替代冗长提示,满足用户偏好,特别是在重复性任务中。

ABSTRACT

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.

研究动机与目标

  • 通过去除对带标签数据或种子提示的需求,降低提示工程的负担。
  • 通过互动对话使用户能够表达和完善任务要求。
  • 生成包含用户偏好和经批准输出的少数-shot 提示。
  • 演示 CPE 在摘要任务中的有效性和潜在的令牌节省。

提出的方法

  • 三方对话设计(用户、系统、模型),在 Llama-3-70B 上运行以构建提示。
  • 带有逐条消息过滤的上下文管理,用于处理长上下文和用于测试提示的侧对话。
  • 通过侧对话中的连锁推理进行对话驱动的指令细化与输出增强。
  • 一旦用户批准指令和输出,生成 CPE FS(少样本)提示。
  • 基于用户反馈的迭代提示细化,以收敛到 CPE FS 提示。

实验结果

研究问题

  • RQ1CPE 是否能仅利用未标记数据为给定任务生成有效的个性化提示?
  • RQ2CPE 是否在保留输出质量的同时减少对较长少样本提示的需求?
  • RQ3用户在真实任务中如何感知 CPE 的有用性、易用性和收敛时间?

主要发现

  • 在包含 12 名参与者的用户研究中,CPE 提示比基线提示更受欢迎。
  • CPE 产生的零-shot 提示与其更长的少样本版本相当,为重复任务实现令牌节省。
  • 平均收敛需要 32 轮,大约 25 分钟才能达到最终提示。
  • 三分之二的对话使用输出增强阶段,表明通过反馈进行了显著改进。
  • 在所有对话中,最终指令通常发生了实质性变化,初始指令的字符距离平均为 96.3。
  • 比较 CPE ZS 与 CPE FS 提示时,被评为最佳的比例为 53% vs 47%,差异在统计学上不显著。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。