不懂就别用:利用层间过滤器消除木马
If You Don't Understand It, Don't Use It: Eliminating Trojans with Filters Between Layers
AI总结:
针对大语言模型预训练阶段注入的未知数据投毒木马难以检测消除的问题,本研究提出层间过滤器通用方案及LoRA过滤器实现,经实证其在中小模型残差流和深层效果最佳,也为LLM信息存储处理机制研究提供了方向。
摘要:
大语言模型(LLM)有时会表现出危险的非预期行为。由于攻击面极大,穷举所有可能触发此类行为的输入并不可行,因此发现并修复这些问题颇具挑战。其中一个尤为棘手的特定情况是数据投毒注入的木马,因为我们无从知晓木马的具体形式,也就无法针对性搜索。据我们所知,目前尚无通用方法能让模型遗忘预训练阶段注入的未知木马。本研究旨在提供一种通用方案(过滤器)及具体实现(LoRA过滤器),该方案在中小规模模型上可实际生效。研究以实证为核心,不过实验中发现的一些令人困惑的现象也为LLM如何存储和处理信息这一根本问题开辟了研究方向。不出所料,我们发现过滤器在残差流和最靠后的层上效果最佳。
英文摘要:
Large language models (LLMs) sometimes exhibit dangerous unintended behaviors. Finding and fixing these is challenging because the attack surface is massive -- it is not tractable to exhaustively search for all possible inputs that may elicit such behavior. One specific and particularly challenging case is that if data-poisoning-injected trojans, since there is no way to know what they are to search for them. To our knowledge, there is no generally applicable method to unlearn unknown trojans injected during pre-training. This work seeks to provide a general purpose recipe (filters) and a specific implementation (LoRA) filters that work in practice on small to medium sized models. The focus is primarily empirical, though some perplexing behavior opens the door to the fundamental question of how LLMs store and process information. Not unexpectedly, we find that our filters work best on the residual stream and the latest layers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。