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

FlipGuard:防御针对大型语言模型的量化条件后门攻击

FlipGuard: Defending Large Language Models Against Quantization-Conditioned Backdoor Attacks

School of Cyber Science and Technology(网络安全科学与技术学院);Suzhou Research Institute of Shandong University(山东大学苏州研究院)

Aoying Zheng, Anqi Du, Zizhuang Deng, Yuxuan Chen

AI总结:

提出FlipGuard防御框架,通过量化前扰动权重打破后门触发条件,有效抑制量化条件后门攻击,并引入DER指标统一评估安全、效用与成本。

摘要:

模型量化对于大型语言模型(LLM)的高效部署至关重要,但引入了一个关键漏洞:量化条件后门(QCB)攻击。在这些攻击中,恶意行为在全精度模型中保持休眠状态,仅在特定量化失真后激活,从而绕过标准安全审计。为缓解这一问题,我们提出了FlipGuard,一种主动防御框架,在量化前选择性地扰动模型权重。通过破坏攻击者权重模式与量化边界之间的精确对齐,FlipGuard抑制了后门激活,无需访问训练数据或触发器样本。我们进一步提出了防御有效性比(DER),一个统一指标,用于联合评估安全增益、效用保持和计算成本。在七个LLM(包括StarCoder和LLaMA系列模型)和三种量化方案(INT8、FP4、NF4)上的大量实验表明,FlipGuard有效中和了三种场景下的QCB,即易受攻击的代码生成、内容注入和过度拒绝,在实现高安全性的同时性能下降可忽略不计。

英文摘要:

Model quantization is essential for the efficient deployment of Large Language Models (LLMs), but introduces a critical vulnerability: Quantization-Conditioned Backdoor (QCB) attacks. In these attacks, malicious behaviors remain dormant in full-precision models and activate only after specific quantization distortions, bypassing standard security audits. To mitigate this, we introduce FlipGuard, a proactive defense framework that selectively perturbs model weights prior to quantization. By breaking the adversary's precise alignment between weight patterns and quantization boundaries, FlipGuard suppresses backdoor activation without requiring access to training data or trigger samples. We further propose the Defense Effectiveness Ratio (DER), a unified metric to jointly evaluate security gains, utility preservation, and computational cost. Extensive experiments across seven LLMs (including StarCoder and LLaMA-family models) and three quantization schemes (INT8, FP4, NF4) demonstrate that FlipGuard effectively neutralizes QCBs across three scenarios, i.e., vulnerable code generation, content injection, and over-refusal, achieving high security with negligible performance degradation.

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

↑