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

文本生成中上下文内学习的噪声鲁棒性研究

On the Noise Robustness of In-Context Learning for Text Generation

Southern University of Science and Technology(南方科技大学);Nanjing University(南京大学)

Hongfu Gao, Feipeng Zhang, Wenyu Jiang, Jun Shu, Feng Zheng, Hongxin Wei

AI总结:

针对文本生成中噪声标注损害ICL性能的问题,本文提出LPR方法,通过语义近邻局部困惑度排序替换噪声候选,最高将EM分数提升18.75。

摘要:

大型语言模型(LLM)通过上下文内学习(ICL)在下游任务上展现出令人瞩目的性能,而ICL在很大程度上依赖于从大量标注样本中选出的示例质量。近期研究声称,在文本分类任务中,上下文内学习对噪声示例具有鲁棒性。在本研究中,我们表明,在文本生成任务上,噪声标注会显著损害上下文内学习的性能。为规避这一问题,我们提出了一种简单有效的方法,称为局部困惑度排序(Local Perplexity Ranking,LPR),该方法用更可能为干净样本的最近邻替换“噪声”候选样本。我们的方法源于分析噪声标签导致的困惑度偏差,并将困惑度分解为固有困惑度和匹配困惑度。因此,LPR背后的核心思想是通过在语义空间中的近邻之间执行排序,来解耦匹配困惑度。我们的方法能够防止所选示例包含不匹配的输入-标签对,同时保留原有选择方法的有效性。大量实验证明了LPR的有效性,在带有噪声标注的常用基准测试中,其将EM分数最高提升了18.75。我们的代码可在https://github.com/ml-stat-Sustech/Local-Perplexity-Ranking获取。

英文摘要:

Large language models (LLMs) have shown impressive performance on downstream tasks by in-context learning (ICL), which heavily relies on the quality of demonstrations selected from a large set of annotated examples. Recent works claim that in-context learning is robust to noisy demonstrations in text classification. In this work, we show that, on text generation tasks, noisy annotations significantly hurt the performance of in-context learning. To circumvent the issue, we propose a simple and effective approach called Local Perplexity Ranking (LPR), which replaces the "noisy" candidates with their nearest neighbors that are more likely to be clean. Our method is motivated by analyzing the perplexity deviation caused by noisy labels and decomposing perplexity into inherent perplexity and matching perplexity. Our key idea behind LPR is thus to decouple the matching perplexity by performing the ranking among the neighbors in semantic space. Our approach can prevent the selected demonstrations from including mismatched input-label pairs while preserving the effectiveness of the original selection methods. Extensive experiments demonstrate the effectiveness of LPR, improving the EM score by up to 18.75 on common benchmarks with noisy annotations. Our code is available at https://github.com/ml-stat-Sustech/Local-Perplexity-Ranking.

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

↑