Large Language Models Are Human-Level Prompt Engineers
원문 초록
By conditioning on natural language instructions, large language models (LLMs) have displayed impressive capabilities as general-purpose computers. However, task performance depends significantly on the quality of the prompt used to steer the model, and most effective prompts have been handcrafted by humans. Inspired by classical program synthesis and the human approach to prompt engineering, we propose Automatic Prompt Engineer (APE) for automatic instruction generation and selection. In our method, we treat the instruction as the "program," optimized by searching over a pool of instruction candidates proposed by an LLM in order to maximize a chosen score function. To evaluate the quality of the selected instruction, we evaluate the zero-shot performance of another LLM following the selected instruction. Experiments on 24 NLP tasks show that our automatically generated instructions outperform the prior LLM baseline by a large margin and achieve better or comparable performance to the instructions generated by human annotators on 19/24 tasks. We conduct extensive qualitative and quantitative analyses to explore the performance of APE. We show that APE-engineered prompts can be applied to steer models toward truthfulness and/or informativeness, as well as to improve few-shot learning performance by simply prepending them to standard in-context learning prompts. Please check out our webpage at https://sites.google.com/view/automatic-prompt-engineer.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
The Sample Complexity of Parameter-Free Stochastic Convex Optimization
Does Prompt Design Impact Quality of Data Imputation by LLMs?
From Parameters to Prompts: Understanding and Mitigating the Factuality Gap between Fine-Tuned LLMs
In-context learning capabilities of Large Language Models to detect suicide risk among adolescents from speech transcripts
In-Context Watermarks for Large Language Models
Large Language Models as Computable Approximations to Solomonoff Induction
토론
이 논문과 연결된 포럼 글이 아직 없습니다.