arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.03772cs.CLcs.AI
收藏

精准知识编辑:增强大型语言模型的安全性

Precision Knowledge Editing: Enhancing Safety in Large Language Models

HydroX AI

Xuying Li, Zhuo Li, Yuji Kosuga, Yasuhiro Yoshida, Victor Bian

AI总结:

本研究提出精准知识编辑(PKE)技术,通过神经元权重追踪和激活路径追踪精细修改LLMs中的有毒参数区域,显著降低攻击成功率且保持模型性能,其安全性甚至超越闭源模型。

摘要:

大型语言模型(LLMs)展示了卓越的能力,但也带来了与生成有毒或有害内容相关的风险。本研究引入了精准知识编辑(PKE),这是一种先进技术,它在现有知识编辑方法的基础上构建,以更有效地识别和修改LLMs内部的有毒参数区域。通过利用神经元权重追踪和激活路径追踪,与诸如去毒实例神经元修改(DINM)等先前方法相比,PKE在有毒内容管理上实现了更细的粒度。我们的实验表明,PKE在包括Llama2-7b和Llama-3-8b-instruct在内的各种模型上显著降低了攻击成功率(ASR),同时保持了整体模型性能。此外,我们还在实验中比较了一些闭源模型(gpt-4-0613和Claude 3 Sonnet)的性能,发现使用我们方法调整的模型在安全性方面远超这些闭源模型。本研究有助于推动使LLMs在现实应用中更安全、更可靠的持续努力。

英文摘要:

Large language models (LLMs) have demonstrated remarkable capabilities, but they also pose risks related to the generation of toxic or harmful content. This work introduces Precision Knowledge Editing (PKE), an advanced technique that builds upon existing knowledge editing methods to more effectively identify and modify toxic parameter regions within LLMs. By leveraging neuron weight tracking and activation pathway tracing, PKE achieves finer granularity in toxic content management compared to previous methods like Detoxifying Instance Neuron Modification (DINM). Our experiments demonstrate that PKE significantly reduces the attack success rate (ASR) across various models, including Llama2-7b and Llama-3-8b-instruct, while maintaining overall model performance. Additionally, we also compared the performance of some closed-source models (gpt-4-0613 and Claude 3 Sonnet) in our experiments, and found that models adjusted using our method far outperformed the closed-source models in terms of safety. This research contributes to the ongoing efforts to make LLMs safer and more reliable for real-world applications.

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

↑