arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.16382cs.CR
收藏

旋转鲁棒性:一种对抗大语言模型位翻转攻击的无训练防御方法

Rotated Robustness: A Training-Free Defense against Bit-Flip Attacks on Large Language Models

University of Science and Technology of China(中国科学技术大学)

Deng Liu, Song Chen

AI总结:

本文提出旋转鲁棒性(RoR),通过正交Householder变换对激活空间进行旋转,有效消除激活异常值与敏感权重之间的对齐,提升大语言模型的可靠性。

摘要:

硬件故障,特别是量化权重中的位翻转,对大语言模型(LLMs)构成严重可靠性威胁,常引发灾难性模型崩溃。本文证明该漏洞的根本原因在于敏感权重位与极端激活异常值之间的空间对齐,导致单个硬件故障被大幅放大。为此,我们提出旋转鲁棒性(RoR),一种利用正交Householder变换的无训练防御方法。通过将激活空间进行正交旋转,RoR在所有特征维度上几何平滑极端异常值。该机制有效打破异常值与易损权重之间的对齐,数学上保证原始模型精度。在Llama-2/3、OPT和Qwen系列上进行了广泛的实证评估,证明了我们方法的优越可靠性。在随机位翻转攻击下,RoR将Qwen2.5-7B的随机崩溃率从3.15%降至0%。此外,在严重的针对性攻击中,RoR在Llama-2-7B上保持稳健推理,维持43.9%的MMLU准确率,几乎与未受攻击的45.2%准确率相当,而竞争防御崩溃到随机猜测。最值得注意的是,针对单点故障攻击(SPFA)——最激进的针对性威胁,RoR将攻击复杂度从几个位增加到超过17,000个精确位翻转。在Llama-2-7B上,RoR的存储开销仅为0.31%,推理延迟增加仅为9.1%,实现了真正的无损鲁棒性,为LLM部署提供了实用且高度可靠的防御。

英文摘要:

Bit-flip corruption of quantized weights poses a serious reliability threat to Large Language Models (LLMs), as even a small number of weight faults can trigger catastrophic model degradation. We show that such failures can be strongly amplified when corrupted weights are coupled to high-sensitivity activation channels. Based on this observation, we propose Rotated Robustness (RoR), a training-free sensitivity-aware hierarchical rotation that applies matched orthogonal transformations to activations and weights, redistributing sensitive channel contributions across feature dimensions while preserving the underlying linear mapping in exact arithmetic. Across eight evaluated LLMs, RoR matches or exceeds all compared methods in the number of cumulative PBS flips sustained before PPL exceeds 100 within the 100-flip evaluation horizon. Under BER-based random bit-flip injection, no RoR failures are observed in the evaluated 1,000-trial experiments for the tested models. Under defense-aware SPoF reconstruction, RoR increases the cost of reproducing specified one-bit catastrophic failures to thousands of deployed INT8 bit changes. RoR also preserves downstream-task utility under PBS perturbations. On NVIDIA H200 at batch size 8, RoR incurs 0.097\%--0.584\% persistent storage overhead, 5.2\%--14.1\% Prefill overhead, and 0.5\%--9.8\% Decode overhead across four representative models. These results show that sensitivity-aware hierarchical rotation provides a practical approach to improving the bit-flip robustness of quantized LLM Linear weights.

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

↑