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

利用自然语言解释提升上下文学习的鲁棒性

Using Natural Language Explanations to Improve Robustness of In-context Learning

University College London(伦敦大学学院);Weco AI;University of Edinburgh(爱丁堡大学)

Xuanli He, Yuxiang Wu, Oana-Maria Camburu, Pasquale Minervini, Pontus Stenetorp

AI总结:

本文提出用少量人工NLE引导LLM生成更多解释以增强ICL,在五个模型和八个对抗性NLI/复述数据集上较基线提升逾6%,并优于提示选择策略。

摘要:

近期研究表明,大型语言模型(LLM)能够通过上下文学习(ICL)在众多任务中表现出色。然而,近期工作显示,采用ICL提示的模型在面对对抗性输入时,往往会产生不准确的结果。在本研究中,我们考察了利用自然语言解释(NLE)增强ICL,是否能够提升LLM在涵盖自然语言推理和复述识别的对抗性数据集上的鲁棒性。我们用少量人工生成的NLE来提示LLM,使其生成更多NLE;相比零样本ICL设置以及仅使用人工生成NLE的做法,这样做能够得到更准确的结果。我们在五种常用LLM(GPT3.5-turbo、Llama2、Vicuna、Zephyr和Mistral)上的结果表明,在八个对抗性数据集(HANS、ISCS、NaN、ST、PICD、PISP、ANLI和PAWS)上,我们的方法相比基线方法带来超过6%的提升。此外,以往研究已经证明,提示选择策略能够在分布内测试集上显著增强ICL。然而,我们的发现揭示,在鲁棒性评估中,这些策略的效果不及我们的方法;与所提出的方法相比,其准确率下降8%。

英文摘要:

Recent studies demonstrated that large language models (LLMs) can excel in many tasks via in-context learning (ICL). However, recent works show that ICL-prompted models tend to produce inaccurate results when presented with adversarial inputs. In this work, we investigate whether augmenting ICL with natural language explanations (NLEs) improves the robustness of LLMs on adversarial datasets covering natural language inference and paraphrasing identification. We prompt LLMs with a small set of human-generated NLEs to produce further NLEs, yielding more accurate results than both a zero-shot-ICL setting and using only human-generated NLEs. Our results on five popular LLMs (GPT3.5-turbo, Llama2, Vicuna, Zephyr, and Mistral) show that our approach yields over 6% improvement over baseline approaches for eight adversarial datasets: HANS, ISCS, NaN, ST, PICD, PISP, ANLI, and PAWS. Furthermore, previous studies have demonstrated that prompt selection strategies significantly enhance ICL on in-distribution test sets. However, our findings reveal that these strategies do not match the efficacy of our approach for robustness evaluations, resulting in an accuracy drop of 8% compared to the proposed approach.

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

↑