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

基于模型编辑的针对安全对齐大语言模型的越狱攻击

Model-Editing-Based Jailbreak against Safety-aligned Large Language Models

Huazhong University of Science and Technology(华中科技大学);Nanyang Technological University(南洋理工大学)

Yuxi Li, Zhibo Zhang, Kailong Wang, Ling Shi, Haoyu Wang

AI总结:

该研究提出白盒目标模型编辑方法TME,通过识别移除模型矩阵中安全关键变换实现无需输入修改的越狱攻击,在D-LLM框架下于四款开源LLM上取得84.86%平均攻击成功率,揭示了LLM安全的新型隐蔽威胁。

摘要:

大语言模型(LLMs)凭借先进的自然语言交互能力革新了众多领域,但仍存在严重漏洞,尤其是易受越狱攻击。当前的越狱技术虽然有效,但通常依赖对输入的修改,因而容易被检测,限制了其隐蔽性和可扩展性。本文提出目标模型编辑(Targeted Model Editing, TME)——一种新型白盒方法,通过最小程度改变模型内部结构绕过安全过滤器,同时保留模型的预期功能。TME识别并移除嵌入在模型矩阵中的安全关键变换(safety-critical transformations, SCTs),使恶意查询无需修改输入即可绕过限制。通过分析安全查询与不安全查询之间截然不同的激活模式,TME通过优化过程分离并近似得到SCTs。我们的方法在D-LLM框架中实现,在四个主流开源LLM上取得了84.86%的平均攻击成功率(Attack Success Rate, ASR),保持了高性能。与现有方法不同,D-LLM无需特定触发词或有害回复收集,提供了一种更隐蔽、更有效的越狱策略。这项工作揭示了LLM安全中一种隐蔽且顽固的威胁向量,强调了在模型安全对齐中需要更强的防护措施。

英文摘要:

Large Language Models (LLMs) have transformed numerous fields by enabling advanced natural language interactions but remain susceptible to critical vulnerabilities, particularly jailbreak attacks. Current jailbreak techniques, while effective, often depend on input modifications, making them detectable and limiting their stealth and scalability. This paper presents Targeted Model Editing (TME), a novel white-box approach that bypasses safety filters by minimally altering internal model structures while preserving the model's intended functionalities. TME identifies and removes safety-critical transformations (SCTs) embedded in model matrices, enabling malicious queries to bypass restrictions without input modifications. By analyzing distinct activation patterns between safe and unsafe queries, TME isolates and approximates SCTs through an optimization process. Implemented in the D-LLM framework, our method achieves an average Attack Success Rate (ASR) of 84.86% on four mainstream open-source LLMs, maintaining high performance. Unlike existing methods, D-LLM eliminates the need for specific triggers or harmful response collections, offering a stealthier and more effective jailbreak strategy. This work reveals a covert and robust threat vector in LLM security and emphasizes the need for stronger safeguards in model safety alignment.

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

↑