通过剪枝与低秩修改评估安全对齐的脆弱性
Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications
AI总结:
本文利用剪枝与低秩修改定位LLM中稀疏且与效用分离的安全关键区域,证明移除它们会破坏安全而较少影响效用,并揭示低成本微调攻击仍可绕过限制。
摘要:
大型语言模型(LLM)的安全机制表现出内在的脆弱性,其易受越狱攻击甚至非恶意微调影响便证明了这一点。本研究利用剪枝和低秩修改来探究安全对齐的这种脆弱性。我们开发了若干方法,以识别对安全护栏至关重要的关键区域,并在神经元层级和秩层级将这些区域与效用相关区域分离开来。令人惊讶的是,我们发现的孤立区域非常稀疏,在参数层级约占3%,在秩层级约占2.5%。移除这些区域会削弱安全性,却不会显著影响效用,这证实了模型安全机制的内在脆弱性。此外,我们表明,即使限制对安全关键区域的修改,LLM仍易受低成本微调攻击。这些发现凸显出迫切需要为LLM制定更稳健的安全策略。
英文摘要:
Large language models (LLMs) show inherent brittleness in their safety mechanisms, as evidenced by their susceptibility to jailbreaking and even non-malicious fine-tuning. This study explores this brittleness of safety alignment by leveraging pruning and low-rank modifications. We develop methods to identify critical regions that are vital for safety guardrails, and that are disentangled from utility-relevant regions at both the neuron and rank levels. Surprisingly, the isolated regions we find are sparse, comprising about $3\%$ at the parameter level and $2.5\%$ at the rank level. Removing these regions compromises safety without significantly impacting utility, corroborating the inherent brittleness of the model's safety mechanisms. Moreover, we show that LLMs remain vulnerable to low-cost fine-tuning attacks even when modifications to the safety-critical regions are restricted. These findings underscore the urgent need for more robust safety strategies in LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。