arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.02160cs.CR
收藏

针对上下文学习的数据投毒

Data Poisoning for In-context Learning

Pengfei He, Han Xu, Yue Xing, Hui Liu, Makoto Yamada, Jiliang Tang

AI总结:

本文提出ICLPoison攻击框架,通过离散文本扰动操纵示例数据影响LLMs隐藏状态,揭示上下文学习(ICL)在多种模型和任务(含GPT-4)中易受数据投毒攻击,表明亟需增强防御机制。

摘要:

在大语言模型(LLMs)领域,上下文学习(ICL)因其依靠示例而非重新训练或微调来适应新任务的创新能力而受到认可。本文深入探讨了ICL易受数据投毒攻击的关键问题,这是一个尚未被充分探索的领域。我们想知道ICL是否脆弱,即攻击者能否通过操纵示例数据来降低模型性能。为此,我们提出了ICLPoison,一个专门设计用于利用ICL学习机制的攻击框架。我们的方法独特地采用离散文本扰动,在ICL过程中策略性地影响LLMs的隐藏状态。我们概述了在我们的框架下实施攻击的三种代表性策略,每种策略都在多种模型和任务上进行了严格评估。我们的全面测试,包括在复杂的GPT-4模型上的试验,表明在我们的框架下ICL的性能受到了显著损害。这些发现表明,迫切需要增强防御机制,以保障依赖上下文学习的应用中LLMs的完整性和可靠性。

英文摘要:

In the domain of large language models (LLMs), in-context learning (ICL) has been recognized for its innovative ability to adapt to new tasks, relying on examples rather than retraining or fine-tuning. This paper delves into the critical issue of ICL's susceptibility to data poisoning attacks, an area not yet fully explored. We wonder whether ICL is vulnerable, with adversaries capable of manipulating example data to degrade model performance. To address this, we introduce ICLPoison, a specialized attacking framework conceived to exploit the learning mechanisms of ICL. Our approach uniquely employs discrete text perturbations to strategically influence the hidden states of LLMs during the ICL process. We outline three representative strategies to implement attacks under our framework, each rigorously evaluated across a variety of models and tasks. Our comprehensive tests, including trials on the sophisticated GPT-4 model, demonstrate that ICL's performance is significantly compromised under our framework. These revelations indicate an urgent need for enhanced defense mechanisms to safeguard the integrity and reliability of LLMs in applications relying on in-context learning.

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

↑