arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.04618cs.CLcs.CRcs.LG
收藏

重新审视自然语言处理中的分布外鲁棒性:基准、分析与大语言模型评估

Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluations

Tsinghua University(清华大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Chinese Academy of Sciences(中国科学院大学);Tencent(腾讯)

Lifan Yuan, Yangyi Chen, Ganqu Cui, Hongcheng Gao, Fangyuan Zou, Xingyi Cheng, Heng Ji, Zhiyuan Liu, Maosong Sun

AI总结:

本文重新审视NLP中的分布外鲁棒性问题,提出确保挑战性分布偏移的基准构建协议并推出BOSS基准套件,通过系统实验揭示ID与OOD性能关系、经典方法局限及大语言模型在不同数据条件下的表现差异。

摘要:

本文重新审视了自然语言处理领域中关于分布外(OOD)鲁棒性的研究。我们发现,以往研究中的分布偏移设置在挑战性方面普遍不足,这阻碍了对OOD鲁棒性的准确评估。为了解决这些问题,我们提出了一种基准构建协议,该协议能够确保清晰的区分度和具有挑战性的分布偏移。随后,我们引入了BOSS,一个用于分布外鲁棒性评估的基准套件,涵盖5个任务和20个数据集。基于BOSS,我们对预训练语言模型进行了一系列实验,以分析和评估OOD鲁棒性。首先,对于普通微调,我们考察了分布内(ID)性能与OOD性能之间的关系。我们识别出三种典型类型,它们揭示了内在的学习机制,这可能有助于预测OOD鲁棒性,并与ID数据集上的进展相关联。然后,我们在BOSS上评估了5种经典方法,发现尽管它们在特定情况下表现出一定的有效性,但与普通微调相比,它们并没有提供显著的改进。此外,我们评估了采用各种适配范式的5个大语言模型(LLMs),发现当有足够的ID数据可用时,微调领域特定模型在ID样本上的表现显著优于大语言模型。然而,在OOD实例的情况下,优先使用具有上下文学习能力的大语言模型会获得更好的结果。我们发现,无论是微调后的小型模型还是大语言模型,在有效解决下游任务方面都面临挑战。代码已公开于\url{https://github.com/lifan-yuan/OOD_NLP}。

英文摘要:

This paper reexamines the research on out-of-distribution (OOD) robustness in the field of NLP. We find that the distribution shift settings in previous studies commonly lack adequate challenges, hindering the accurate evaluation of OOD robustness. To address these issues, we propose a benchmark construction protocol that ensures clear differentiation and challenging distribution shifts. Then we introduce BOSS, a Benchmark suite for Out-of-distribution robustneSS evaluation covering 5 tasks and 20 datasets. Based on BOSS, we conduct a series of experiments on pre-trained language models for analysis and evaluation of OOD robustness. First, for vanilla fine-tuning, we examine the relationship between in-distribution (ID) and OOD performance. We identify three typical types that unveil the inner learning mechanism, which could potentially facilitate the forecasting of OOD robustness, correlating with the advancements on ID datasets. Then, we evaluate 5 classic methods on BOSS and find that, despite exhibiting some effectiveness in specific cases, they do not offer significant improvement compared to vanilla fine-tuning. Further, we evaluate 5 LLMs with various adaptation paradigms and find that when sufficient ID data is available, fine-tuning domain-specific models outperform LLMs on ID examples significantly. However, in the case of OOD instances, prioritizing LLMs with in-context learning yields better results. We identify that both fine-tuned small models and LLMs face challenges in effectively addressing downstream tasks. The code is public at \url{https://github.com/lifan-yuan/OOD_NLP}.

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

↑