Skip to main content
QUICK REVIEW

[논문 리뷰] Conversational Prompt Engineering

Liat Ein‐Dor, Orith Toledo‐Ronen|arXiv (Cornell University)|2024. 08. 08.
Education and Critical Thinking DevelopmentSocial Sciences인용 수 5
한 줄 요약

Conversational Prompt Engineering (CPE)는 비표지 데이터에서 사용자가 LLM용 개인화된 프롬프트를 작성하도록 돕는 채팅 기반 도구로, few-shot 프롬프트를 생성하고 종종 더 긴 few-shot 프롬프트의 효과와 일치하면서 토큰을 절약합니다. 요약에 관한 사용자 연구는 CPE가 사용자의 선호를 충족하는 제로샷 프롬프트로 긴 프롬프트를 대체할 수 있음을 보여주며, 특히 반복 작업에서 그렇습니다.

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.

연구 동기 및 목표

  • 레이블링된 데이터 또는 시드 프롬프트의 필요성을 없애 프롬프트 엔지니어링의 부담을 줄인다.
  • 대화식 채팅을 통해 사용자가 작업 요구사항을 명확히 하고 다듬을 수 있도록 한다.
  • 사용자 선호 및 승인된 출력물을 반영한 few-shot 프롬프트를 생성한다.
  • 요약 작업에서 CPE의 효과와 토큰 절감 가능성을 입증한다.

제안 방법

  • 프롬프트 작성을 위한 사용자/시스템/모델의 3자 채팅 설계가 Llama-3-70B에서 작동한다.
  • 긴 맥락과 프롬프트 테스트를 위한 사이드 채팅을 다루는 메시지별 필터링을 포함한 맥락 관리.
  • 사이드 채팅에서 Chain-of-Thought를 이용한 채팅 주도형 지시사항 정교화 및 출력 향상.
  • 사용자가 지시와 출력을 승인하면 CPE FS( few-shot ) 프롬프트를 생성한다.
  • 사용자 피드백에 의해 이끌리는 반복적 프롬프트 정교화를 통해 CPE FS 프롬프트에 수렴한다.

실험 결과

연구 질문

  • RQ1CPE가 주어진 작업에 대해 레이블링된 데이터 없이도 효과적인 개인화 프롬프트를 생성할 수 있나요?
  • RQ2출력 품질을 유지하면서 긴 few-shot 프롬프트의 필요성을 줄일 수 있나요?
  • RQ3실제 작업에서 CPE의 유용성, 사용성, 수렴 시간을 사용자가 어떻게 느끼나요?

주요 결과

  • 12명의 참가자를 대상으로 한 사용자 연구에서 CPE 프롬프트가 기준 프롬프트보다 선호되었습니다.
  • CPE가 생성한 제로샷 프롬프트는 더 긴 few-shot과 비슷했고, 반복 작업에서 토큰 절감을 가능하게 했습니다.
  • 평균 수렴은 최종 프롬프트에 도달하는 데 32 턴과 약 25분이 걸렸습니다.
  • 채팅의 2/3가 출력 향상 단계를 사용했으며, 피드백을 통한 상당한 정교화를 나타냅니다.
  • 채팅 전반에 걸쳐 최종 지시사항은 종종 상당히 변경되었으며 초기 지시와의 평균 문자 거리는 96.3이었습니다.
  • CPE ZS와 CPE FS 프롬프트를 비교했을 때 최상으로 평가된 비율은 53% 대 47%였고 차이는 통계적으로 유의하지 않았다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.