arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.10248cs.CLcs.AI
收藏

论大语言模型的最差提示性能

On the Worst Prompt Performance of Large Language Models

The Chinese University of Hong Kong(香港中文大学);Tencent AI Lab(腾讯AI实验室);Peking University(北京大学)

Bowen Cao, Deng Cai, Zhisong Zhang, Yuexian Zou, Wai Lam

AI总结:

针对大语言模型对提示措辞敏感、现有研究局限于任务级指令鲁棒性的问题,提出含语义等价案例级查询的RobustAlpacaEval基准,实验发现多模型性能波动大,现有方法提升最差性能效果有限,呼吁研发更具韧性的大语言模型。

摘要:

大语言模型(LLM)的性能对提示的措辞极为敏感,这引发了人们对其在现实场景中可靠性的重大担忧。现有研究通常将提示分为任务级指令和案例级输入,且主要聚焦于评估和提升模型对任务级指令变化的鲁棒性。然而,这种设置未能充分覆盖现实世界用户查询的多样性,且以存在特定任务数据集为前提。为解决这些局限,我们提出了RobustAlpacaEval(鲁棒羊驼评估基准),这一全新基准包含语义等价的案例级查询,强调使用最差提示性能衡量模型性能下限的重要性。我们在RobustAlpacaEval上对ChatGPT以及来自Llama、Mistral和Gemma系列的6个开源大语言模型开展了大量实验,发现模型性能存在显著波动;例如,Llama-2-70B-chat模型的最差性能与最佳性能之间相差45.48%,其最差性能低至9.38%。我们进一步从模型无关和模型依赖两个角度阐明了识别最差提示的难度,强调不存在刻画最差提示的捷径。我们还尝试使用现有的提示工程和提示一致性方法来提升最差提示性能,但发现其作用有限。这些发现凸显了开发更具韧性、能在各类提示下保持高性能的大语言模型的必要性。数据和代码可在https://github.com/cbwbuaa/On-the-Worst-Prompt-Performance-of-LLMs 获取。

英文摘要:

The performance of large language models (LLMs) is acutely sensitive to the phrasing of prompts, which raises significant concerns about their reliability in real-world scenarios. Existing studies often divide prompts into task-level instructions and case-level inputs and primarily focus on evaluating and improving robustness against variations in tasks-level instructions. However, this setup fails to fully address the diversity of real-world user queries and assumes the existence of task-specific datasets. To address these limitations, we introduce RobustAlpacaEval, a new benchmark that consists of semantically equivalent case-level queries and emphasizes the importance of using the worst prompt performance to gauge the lower bound of model performance. Extensive experiments on RobustAlpacaEval with ChatGPT and six open-source LLMs from the Llama, Mistral, and Gemma families uncover substantial variability in model performance; for instance, a difference of 45.48% between the worst and best performance for the Llama-2-70B-chat model, with its worst performance dipping as low as 9.38%. We further illustrate the difficulty in identifying the worst prompt from both model-agnostic and model-dependent perspectives, emphasizing the absence of a shortcut to characterize the worst prompt. We also attempt to enhance the worst prompt performance using existing prompt engineering and prompt consistency methods, but find that their impact is limited. These findings underscore the need to create more resilient LLMs that can maintain high performance across diverse prompts. Data and code are available at https://github.com/cbwbuaa/On-the-Worst-Prompt- Performance-of-LLMs.

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

↑