不要忘记你的嵌入:通过精确编辑嵌入实现鲁棒的知识擦除
Don't Forget Your Embeddings: Robust Knowledge Erasure via Precise Editing of Embeddings
AI总结:
提出 EMBER 模块,利用稀疏矩阵分解精确擦除词嵌入中的概念相关特征,增强现有知识擦除方法的鲁棒性和特异性。
摘要:
随着语言模型在现实应用中的广泛部署,从模型中擦除特定知识的能力对安全性和合规性变得至关重要。主流方法通过更新模型参数实现持久移除,但目标知识往往可以通过对抗性提示或重新学习恢复。在这项工作中,我们假设这种局限性部分源于现有方法忽略了嵌入层。为了解决这个问题,我们引入了 EMBedding ERasure (EMBER),一个即插即用的擦除模块,利用稀疏矩阵分解从词嵌入中精确擦除概念相关特征。通过在 Gemma-2-2B-it 和 Llama-3.1-8B-Instruct 上对不同概念的综合评估,我们发现用 EMBER 增强现有方法可以一致地提高擦除效果和特异性,且连贯性损失最小。此外,它显著提高了对重新学习的鲁棒性,将恢复的准确率降低高达 50%,在 Llama 上限制在 35%,而先前方法为 70%-76%。进一步分析表明,连贯性成本是局部的,仅影响一小部分概念专属词元。我们的工作确立了精确的嵌入层干预对于鲁棒的概念擦除是必要的,并证明现有方法可以从这种增强中受益。
英文摘要:
As language models are increasingly deployed in real-world applications, the ability to erase specific knowledge from them becomes critical for safety and compliance. Prominent methods seek persistent removal by updating the model's parameters, yet the target knowledge often can be recovered through adversarial prompting or relearning. In this work, we hypothesize this limitation stems in part from existing methods overlooking the embedding layer. To address this, we introduce EMBedding ERasure (EMBER), a plug-n-play erasure module that leverages Sparse Matrix Factorization for precise erasure of concept-related features from token embeddings. Through comprehensive evaluations across diverse concepts on Gemma-2-2B-it and Llama-3.1-8B-Instruct, we find that augmenting existing methods with EMBER consistently improves erasure efficacy and specificity across task formats, with minimal coherence loss. Moreover, it dramatically improves robustness to relearning, reducing regained accuracy by up to 50%, limiting it to 35% on Llama compared to 70%-76% for prior methods. Further analysis shows that the coherence cost is localized, affecting only a small set of concept-exclusive tokens. Our work establishes that precise embedding-level intervention is necessary for robust concept erasure, and demonstrates that existing methods can benefit from such augmentation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。