LLM催眠:利用用户反馈进行未经授权的知识注入以影响所有用户
LLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Users
AI总结:
研究揭示语言模型通过用户反馈进行知识注入的漏洞,通过反馈信号可操控模型行为,导致事实错误、代码漏洞和虚假新闻。
摘要:
我们描述了在使用用户反馈训练的语言模型(LMs)中存在一个漏洞,单个用户仅通过提供提示并对LM输出进行点赞/踩反馈,即可持续改变LM的知识和行为。为实施攻击,攻击者会提示LM随机输出被污染或良性响应,然后对被污染响应点赞或对良性响应踩。当反馈信号用于后续偏好训练行为时,LMs在无恶意提示的上下文中也更可能生成被污染的响应。我们证明该攻击可用于(1)插入模型原本未拥有的事实知识,(2)修改代码生成模式以引入可利用的安全漏洞,(3)注入虚假财经新闻。本发现不仅识别了语言模型偏好训练的新定性特征(表明即使在高度受限的偏好数据形式下,也可用于对行为进行细粒度控制),还识别了训练使用用户反馈的LMs的新攻击机制(扩展了预训练时间数据污染和部署时间提示注入的研究)。
英文摘要:
We describe a vulnerability in language models (LMs) trained with user feedback, whereby a single user can persistently alter LM knowledge and behavior given only the ability to provide prompts and upvote / downvote feedback on LM outputs. To implement the attack, the attacker prompts the LM to stochastically output either a "poisoned" or benign response, then upvotes the poisoned response or downvotes the benign one. When feedback signals are used in a subsequent preference tuning behavior, LMs exhibit increased probability of producing poisoned responses even in contexts without malicious prompts. We show that this attack can be used to (1) insert factual knowledge the model did not previously possess, (2) modify code generation patterns in ways that introduce exploitable security flaws, and (3) inject fake financial news. Our finding both identifies a new qualitative feature of language model preference tuning (showing that it even highly restricted forms of preference data can be used to exert fine-grained control over behavior), and a new attack mechanism for LMs trained with user feedback (extending work on pretraining-time data poisoning and deployment-time prompt injection).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。