arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.19898cs.CL
收藏

同义词类型激发提示工程能力

Paraphrase Types Elicit Prompt Engineering Capabilities

University of Göttingen(戈丁根大学);University of Toronto(多伦多大学)

Jan Philip Wahle, Terry Ruas, Yang Xu, Bela Gipp

AI总结:

本研究通过分析同义词类型对提示工程的影响,发现特定语言变化可提升语言模型的任务表现。

摘要:

现代语言模型的成功很大程度上取决于找到合适的提示来指导模型。到目前为止,人们 largely 不清楚提示的语义表达变化如何影响这些模型。本研究系统且实证地评估了哪些语言特征通过同义词类型影响模型,即在特定位置进行不同的语言变化。我们测量了五个模型在120个任务和六种 paraphrase 类型(即形态、语法、词汇、词汇-语法、语篇和其他)上的行为变化。我们还控制了其他提示工程因素(例如提示长度、词汇多样性以及接近训练数据的 proximity)。我们的结果表明,当提示在特定的同义词类型中进行调整时,语言模型有可能提高任务表现(例如,Mixtral 8x7B 的中位增益为6.7%;LLaMA 3 8B 为5.5%)。特别是形态和词汇的变化,即使用的词汇,显示出在改进提示方面的潜力。这些发现有助于开发更稳健的语言模型,能够处理语言表达的变化。

英文摘要:

Much of the success of modern language models depends on finding a suitable prompt to instruct the model. Until now, it has been largely unknown how variations in the linguistic expression of prompts affect these models. This study systematically and empirically evaluates which linguistic features influence models through paraphrase types, i.e., different linguistic changes at particular positions. We measure behavioral changes for five models across 120 tasks and six families of paraphrases (i.e., morphology, syntax, lexicon, lexico-syntax, discourse, and others). We also control for other prompt engineering factors (e.g., prompt length, lexical diversity, and proximity to training data). Our results show a potential for language models to improve tasks when their prompts are adapted in specific paraphrase types (e.g., 6.7% median gain in Mixtral 8x7B; 5.5% in LLaMA 3 8B). In particular, changes in morphology and lexicon, i.e., the vocabulary used, showed promise in improving prompts. These findings contribute to developing more robust language models capable of handling variability in linguistic expression.

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

↑