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

对抗对比学习用于大语言模型量化攻击

Adversarial Contrastive Learning for LLM Quantization Attacks

Tsinghua University(清华大学);University of California, Merced(加州大学默塞德分校)

Dinghong Song, Zhiwei Xu, Hai Wan, Xibin Zhao, Pengfei Su, Dong Li

AI总结:

本文提出对抗对比学习方法,通过最大化良性与有害响应概率差距,有效提升大语言模型量化攻击的成功率。

摘要:

模型量化对于在资源受限硬件上部署大型语言模型(LLMs)至关重要,但近期研究表明,全精度的良性LLM在量化后可能表现出恶意行为。在本文中,我们提出了对抗对比学习(ACL),一种新的基于梯度的量化攻击方法,通过显式最大化良性与有害响应概率之间的差距来实现更高效的攻击效果。ACL将攻击目标 formulations 为基于三元组的对比损失,并将其与投影梯度下降的两阶段分布式微调策略相结合,以确保稳定和高效的优化。广泛的实验表明,ACL的显著有效性,实现了对过度拒绝的攻击成功率86.00%,对 jailbreak 的攻击成功率97.69%,对广告注入的攻击成功率92.40%,明显优于最先进方法,分别高出44.67%、18.84%和50.80%。

英文摘要:

Model quantization is critical for deploying large language models (LLMs) on resource-constrained hardware, yet recent work has revealed severe security risks that benign LLMs in full precision may exhibit malicious behaviors after quantization. In this paper, we propose Adversarial Contrastive Learning (ACL), a novel gradient-based quantization attack that achieves superior attack effectiveness by explicitly maximizing the gap between benign and harmful responses probabilities. ACL formulates the attack objective as a triplet-based contrastive loss, and integrates it with a projected gradient descent two-stage distributed fine-tuning strategy to ensure stable and efficient optimization. Extensive experiments demonstrate ACL's remarkable effectiveness, achieving attack success rates of 86.00% for over-refusal, 97.69% for jailbreak, and 92.40% for advertisement injection, substantially outperforming state-of-the-art methods by up to 44.67%, 18.84%, and 50.80%, respectively.

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

↑