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

面向大语言模型对提示格式风格变化鲁棒性的研究

Towards LLMs Robustness to Changes in Prompt Format Styles

Rensselaer Polytechnic Institute(伦斯勒理工学院);IBM Research(IBM研究院)

Lilian Ngweta, Kiran Kate, Jason Tsay, Yara Rizk

AI总结:

本文提出格式混合(MOF)技术,通过多样化少样本提示风格来缓解大语言模型的提示脆弱性问题,实验证明其能降低风格引起的性能波动并提升整体表现。

摘要:

大语言模型(LLMs)近年来因其在各种应用中的实用性而广受欢迎。然而,它们对提示格式中的非语义变化非常敏感,提示格式的微小变化就可能导致显著的性能波动。在文献中,这一问题通常被称为提示脆弱性(prompt brittleness)。先前关于提示工程的研究主要集中在开发用于为特定任务识别最优提示的技术上。一些研究也探讨了提示脆弱性问题,并提出了量化性能变化的方法;然而,尚未找到解决这一挑战的简单方案。我们提出格式混合(Mixture of Formats,MOF),这是一种简单且高效的技术,通过多样化提示少样本示例中使用的风格来解决LLMs中的提示脆弱性问题。MOF的灵感来源于计算机视觉技术,这些技术利用多样化的风格数据集来防止模型将特定风格与目标变量相关联。实证结果表明,我们提出的技术降低了各种LLMs中由风格引起的提示脆弱性,同时提升了在不同提示变化和不同数据集上的整体性能。

英文摘要:

Large language models (LLMs) have gained popularity in recent years for their utility in various applications. However, they are sensitive to non-semantic changes in prompt formats, where small changes in the prompt format can lead to significant performance fluctuations. In the literature, this problem is commonly referred to as prompt brittleness. Previous research on prompt engineering has focused mainly on developing techniques for identifying the optimal prompt for specific tasks. Some studies have also explored the issue of prompt brittleness and proposed methods to quantify performance variations; however, no simple solution has been found to address this challenge. We propose Mixture of Formats (MOF), a simple and efficient technique for addressing prompt brittleness in LLMs by diversifying the styles used in the prompt few-shot examples. MOF was inspired by computer vision techniques that utilize diverse style datasets to prevent models from associating specific styles with the target variable. Empirical results show that our proposed technique reduces style-induced prompt brittleness in various LLMs while also enhancing overall performance across prompt variations and different datasets.

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

↑