arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.12994cs.CLcs.AI
收藏

用于不同NLP任务的大型语言模型提示工程方法综述

A Survey of Prompt Engineering Methods in Large Language Models for Different NLP Tasks

New York University(纽约大学)

Shubham Vatsal, Harsh Dubey

AI总结:

本文综述了44篇研究论文,总结了29个NLP任务上的39种提示工程方法,分类讨论了这些技术在各数据集上的性能、所用LLMs及对应SoTA。

摘要:

大型语言模型(LLMs)在许多不同的自然语言处理(NLP)任务上展现出了卓越的性能。提示工程(Prompt engineering)在进一步增强LLMs的现有能力以在各种NLP任务上取得显著性能提升方面发挥着关键作用。提示工程需要编写称为提示的自然语言指令,以结构化的方式从LLMs中引出知识。与先前的最先进模型不同,提示工程不需要针对给定的NLP任务进行广泛的参数重训练或微调,因此完全依赖于LLMs的内在知识运行。此外,LLM爱好者可以通过基本的自然语言对话交流或提示工程智能地提取LLMs的知识,使得越来越多即使没有深厚数学机器学习背景的人也能对LLMs进行实验。随着提示工程在过去两年中日益普及,研究人员提出了围绕设计提示的众多工程技术,以提高从LLMs中提取信息的准确性。在本文中,我们总结了不同的提示技术,并根据它们所用于的不同NLP任务将它们组合在一起。我们进一步细致地强调了这些提示策略在属于该NLP任务的各种数据集上的性能,讨论了所使用的相应LLMs,提供了一个分类图,并讨论了特定数据集的可能SoTA。总的来说,我们阅读并呈现了44篇研究论文的综述,这些论文讨论了29个不同NLP任务上的39种不同提示方法,其中大多数发表于过去两年内。

英文摘要:

Large language models (LLMs) have shown remarkable performance on many different Natural Language Processing (NLP) tasks. Prompt engineering plays a key role in adding more to the already existing abilities of LLMs to achieve significant performance gains on various NLP tasks. Prompt engineering requires composing natural language instructions called prompts to elicit knowledge from LLMs in a structured way. Unlike previous state-of-the-art (SoTA) models, prompt engineering does not require extensive parameter re-training or fine-tuning based on the given NLP task and thus solely operates on the embedded knowledge of LLMs. Additionally, LLM enthusiasts can intelligently extract LLMs' knowledge through a basic natural language conversational exchange or prompt engineering, allowing more and more people even without deep mathematical machine learning background to experiment with LLMs. With prompt engineering gaining popularity in the last two years, researchers have come up with numerous engineering techniques around designing prompts to improve accuracy of information extraction from the LLMs. In this paper, we summarize different prompting techniques and club them together based on different NLP tasks that they have been used for. We further granularly highlight the performance of these prompting strategies on various datasets belonging to that NLP task, talk about the corresponding LLMs used, present a taxonomy diagram and discuss the possible SoTA for specific datasets. In total, we read and present a survey of 44 research papers which talk about 39 different prompting methods on 29 different NLP tasks of which most of them have been published in the last two years.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑