arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.12670cs.AIcs.LG
收藏

对大语言模型的隐秘编辑

Stealth edits to large language models

King’s College London(伦敦国王学院);University of Leicester(莱斯特大学);University of Edinburgh(爱丁堡大学)

Oliver J. Sutton, Qinghua Zhou, Wei Wang, Desmond J. Higham, Alexander N. Gorban, Alexander Bastounis, Ivan Y. Tyukin

AI总结:

该研究揭示大语言模型编辑的理论基础,提出基于特征固有维度指标的隐秘编辑方法与jet-pack网络模块,同时指出模型易受无需训练数据的隐秘攻击威胁,为模型编辑与安全防护提供新依据。

摘要:

我们揭示了大语言模型编辑技术的理论基础,并提出了无需重新训练即可实现模型编辑的新方法。我们的理论洞见表明,单一指标(衡量模型特征固有维度的指标)可用于评估模型的可编辑性,还揭示了模型此前未被识别的、易受恶意隐秘攻击的特性。该指标是预测多种编辑方法效果的核心,还为不同类别的编辑方法之间搭建了新的桥梁。我们将这类方法统称为隐秘编辑方法,因为它们直接更新模型权重,以指定模型对特定已知幻觉提示词的响应,同时不会影响模型的其他行为。通过审慎运用我们的理论洞见,我们提出了一种全新的jet-pack网络模块,该模块专为高选择性模型编辑优化,仅使用标准网络操作,可插入现有网络中。我们还揭示了语言模型面临的隐秘攻击漏洞:对模型权重进行微小改动,就能固定模型对攻击者选定的单个提示词的响应。隐秘攻击计算简单,无需获取或了解模型的训练数据,因此对再分发的基础模型构成了一种此前未被识别的强力威胁。大量实验结果验证并支撑了我们的方法及其理论基础。演示和源代码可在https://github.com/qinghua-zhou/stealth-edits获取。

英文摘要:

We reveal the theoretical foundations of techniques for editing large language models, and present new methods which can do so without requiring retraining. Our theoretical insights show that a single metric (a measure of the intrinsic dimension of the model's features) can be used to assess a model's editability and reveals its previously unrecognised susceptibility to malicious stealth attacks. This metric is fundamental to predicting the success of a variety of editing approaches, and reveals new bridges between disparate families of editing methods. We collectively refer to these as stealth editing methods, because they directly update a model's weights to specify its response to specific known hallucinating prompts without affecting other model behaviour. By carefully applying our theoretical insights, we are able to introduce a new jet-pack network block which is optimised for highly selective model editing, uses only standard network operations, and can be inserted into existing networks. We also reveal the vulnerability of language models to stealth attacks: a small change to a model's weights which fixes its response to a single attacker-chosen prompt. Stealth attacks are computationally simple, do not require access to or knowledge of the model's training data, and therefore represent a potent yet previously unrecognised threat to redistributed foundation models. Extensive experimental results illustrate and support our methods and their theoretical underpinnings. Demos and source code are available at https://github.com/qinghua-zhou/stealth-edits.

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

↑