arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.18191cs.CLcs.AIcs.CRcs.LGmath.OC
收藏

探索带噪标签下上下文学习的鲁棒性

Exploring the Robustness of In-Context Learning with Noisy Labels

ShanghaiTech University(上海科技大学);Fudan University(复旦大学);Xi’an Jiaotong University(西安交通大学);Peking University(北京大学)

Chen Cheng, Xinzhi Yu, Haodong Wen, Jingsong Sun, Guanzhang Yue, Yihao Zhang, Zeming Wei

AI总结:

本文系统评估了Transformer在上下文学习中对示例标签噪声的鲁棒性,并发现向训练集引入噪声作为数据增强可进一步提升推理时的抗噪能力,为理解ICL韧性提供了新见解。

摘要:

近年来,Transformer架构(尤其是大型语言模型LLM)所展现出的神秘的上下文学习(In-Context Learning, ICL)能力引发了大量研究兴趣。然而,在训练语料和提示示例中普遍存在的带噪样本条件下,Transformer的上下文学习能力的韧性仍未得到充分探索。本文受先前利用简单函数类研究ICL能力的工作启发,通过考察Transformer对带噪标签的鲁棒性来更深入地审视这一问题。具体而言,我们首先对上下文学习过程中Transformer面对带噪标签的鲁棒性进行了全面评估与分析,并表明它们在示例标签存在多种类型噪声时表现出显著的韧性。此外,我们进一步深入探讨了该问题,即探究在训练集中引入噪声(类似于一种数据增强形式)是否会增强推理过程中的此类鲁棒性,并发现这种噪声确实能够提升ICL的鲁棒性。总体而言,我们丰富的分析与发现为理解Transformer模型在ICL期间对标签噪声的韧性提供了全面的认识,并为自然语言处理中Transformer的相关研究提供了有价值的见解。我们的代码可在 https://github.com/InezYu0928/in-context-learning 获取。

英文摘要:

Recently, the mysterious In-Context Learning (ICL) ability exhibited by Transformer architectures, especially in large language models (LLMs), has sparked significant research interest. However, the resilience of Transformers' in-context learning capabilities in the presence of noisy samples, prevalent in both training corpora and prompt demonstrations, remains underexplored. In this paper, inspired by prior research that studies ICL ability using simple function classes, we take a closer look at this problem by investigating the robustness of Transformers against noisy labels. Specifically, we first conduct a thorough evaluation and analysis of the robustness of Transformers against noisy labels during in-context learning and show that they exhibit notable resilience against diverse types of noise in demonstration labels. Furthermore, we delve deeper into this problem by exploring whether introducing noise into the training set, akin to a form of data augmentation, enhances such robustness during inference, and find that such noise can indeed improve the robustness of ICL. Overall, our fruitful analysis and findings provide a comprehensive understanding of the resilience of Transformer models against label noises during ICL and provide valuable insights into the research on Transformers in natural language processing. Our code is available at https://github.com/InezYu0928/in-context-learning.

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

↑