arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2306.11270cs.CLcs.LG
收藏

评估指令微调语言模型的零样本鲁棒性

Evaluating the Zero-shot Robustness of Instruction-tuned Language Models

Northeastern University(东北大学)

Jiuding Sun, Chantal Shaib, Byron C. Wallace

AI总结:

本文通过收集80多个任务的319条人工指令评估指令微调LLM的零样本鲁棒性,发现未见过的等价措辞会显著降低并放大性能波动,进而提出优化软提示嵌入以拉近语义等价指令表示的方法,持续提升鲁棒性。

摘要:

指令微调最近已成为一种很有前景的方法,可用于提升大型语言模型(LLM)在新任务上的零样本能力。该技术在提升中等规模 LLM 的性能方面表现尤为突出,有时能使其性能与规模大得多的模型变体相竞争。本文提出两个问题:(1)指令微调模型对指令的具体措辞有多敏感?(2)如何让它们对此类自然语言变化更具鲁棒性?为回答前一个问题,我们收集了由 NLP 从业者针对广泛使用的基准中所包含的 80 多个独特任务手工编写的 319 条指令,并评估这些指令相对于指令微调期间观察到的指令措辞所产生的方差和平均性能。我们发现,使用新颖(未观察到)但恰当的指令措辞会持续降低模型性能,有时降幅显著。此外,尽管这些自然指令在语义上等价,它们仍会在下游性能上产生很大方差。换言之,指令微调模型对指令改写并不特别鲁棒。我们提出一种简单方法来缓解这一问题:引入“软提示”嵌入参数,并对这些参数进行优化,以最大化语义等价指令的表示之间的相似性。我们表明,该方法能够持续提升指令微调模型的鲁棒性。

英文摘要:

Instruction fine-tuning has recently emerged as a promising approach for improving the zero-shot capabilities of Large Language Models (LLMs) on new tasks. This technique has shown particular strength in improving the performance of modestly sized LLMs, sometimes inducing performance competitive with much larger model variants. In this paper we ask two questions: (1) How sensitive are instruction-tuned models to the particular phrasings of instructions, and, (2) How can we make them more robust to such natural language variation? To answer the former, we collect a set of 319 instructions manually written by NLP practitioners for over 80 unique tasks included in widely used benchmarks, and we evaluate the variance and average performance of these instructions as compared to instruction phrasings observed during instruction fine-tuning. We find that using novel (unobserved) but appropriate instruction phrasings consistently degrades model performance, sometimes substantially so. Further, such natural instructions yield a wide variance in downstream performance, despite their semantic equivalence. Put another way, instruction-tuned models are not especially robust to instruction re-phrasings. We propose a simple method to mitigate this issue by introducing ``soft prompt'' embedding parameters and optimizing these to maximize the similarity between representations of semantically equivalent instructions. We show that this method consistently improves the robustness of instruction-tuned models.

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

↑