PrisonBreak:用至多25次定向比特翻转越狱大语言模型
PrisonBreak: Jailbreaking Large Language Models with at Most Twenty-Five Targeted Bit-flips
AI总结:
该研究提出PrisonBreak攻击方法,通过高效比特选择算法,仅用5-25次比特翻转即可破解安全对齐大语言模型,在10个开源模型上取得80-98%的成功率,还通过Rowhammer实现了端到端漏洞利用,且对现有防御有效。
摘要:
我们研究了商业规模安全对齐大语言模型(LLM)中的一种新漏洞:仅翻转模型参数中的少量比特,就能破解其拒绝生成有害响应的机制。我们的攻击仅用5到25次比特翻转就能破解十亿参数级的语言模型,所需比特翻转数比针对小得多的计算机视觉模型的现有攻击最多少40倍。与基于提示的越狱不同,我们的方法在运行时直接在内存中解除模型的审查,无需修改输入即可生成有害输出。我们的核心创新是一种高效的比特选择算法,其识别LLM越狱关键比特的速度比现有方法最快快20倍。\n我们在10个开源LLM上评估了该攻击,取得了80-98%的高攻击成功率(ASRs),且对模型效用的影响极小。我们进一步通过基于Rowhammer(行锤)的故障注入展示了端到端漏洞利用,在GDDR6 GPU上可靠破解了5个模型(ASR为69-91%)。我们的分析表明:(1)训练后对齐较弱的模型所需的越狱比特翻转数更少;(2)某些模型组件(如value projection layers,值投影层)的脆弱性显著更高;(3)该攻击的机制与现有越狱方法不同。我们评估了潜在的防御措施,发现我们的攻击对LLM流水线各阶段的防御依然有效。
英文摘要:
We study a new vulnerability in commercial-scale safety-aligned large language models (LLMs): their refusal to generate harmful responses can be broken by flipping only a few bits in model parameters. Our attack jailbreaks billion-parameter language models with just 5 to 25 bit-flips, requiring up to 40$\times$ fewer bit flips than prior attacks on much smaller computer vision models. Unlike prompt-based jailbreaks, our method directly uncensors models in memory at runtime, enabling harmful outputs without requiring input-level modifications. Our key innovation is an efficient bit-selection algorithm that identifies critical bits for language model jailbreaks up to 20$\times$ faster than prior methods. We evaluate our attack on 10 open-source LLMs, achieving high attack success rates (ASRs) of 80-98% with minimal impact on model utility. We further demonstrate an end-to-end exploit via Rowhammer-based fault injection, reliably jailbreaking 5 models (69-91% ASR) on a GDDR6 GPU. Our analyses reveal that: (1) models with weaker post-training alignment require fewer bit-flips to jailbreak; (2) certain model components, e.g., value projection layers, are substantially more vulnerable; and (3) the attack is mechanistically different from existing jailbreak methods. We evaluate potential countermeasures and find that our attack remains effective against defenses at various stages of the LLM pipeline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。