arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.16229cs.CRcs.AI
收藏

Q-MLLM:向量量化用于鲁棒多模态大语言模型安全

Q-MLLM: Vector Quantization for Robust Multimodal Large Language Model Security

Singapore Management University(新加坡管理大学)

Wei Zhao, Zhe Li, Yige Li, Jun Sun

AI总结:

Q-MLLM通过两级向量量化提升多模态大语言模型的安全性,有效防御对抗性攻击并保持模型实用性。

摘要:

多模态大语言模型(MLLMs)在跨模态理解方面展示了令人印象深刻的潜力,但尽管有强大的文本安全机制,仍然容易受到通过视觉输入的对抗性攻击的威胁。这些漏洞源于两个核心弱点:视觉表示的连续性,这允许基于梯度的攻击,以及文本安全机制向视觉内容的转移不足。我们引入了Q-MLLM,一种新的架构,通过两级向量量化来创建一个离散的瓶颈,以对抗攻击,同时保持多模态推理能力。通过在像素块和语义层面离散化视觉表示,Q-MLLM阻断了攻击路径,并弥合了跨模态安全对齐的差距。我们的两阶段训练方法确保了鲁棒的学习,同时保持模型的实用性。实验表明,Q-MLLM在对抗性攻击和有毒图像攻击方面的防御成功率显著优于现有方法。值得注意的是,Q-MLLM在对抗性攻击方面实现了完美的防御成功率(100%),除了一个有争议的情况,同时在多个实用性基准测试中保持了具有竞争力的性能,且推理开销极小。这项工作确立了向量量化作为一种有效的防御机制,用于安全的多模态AI系统,而无需昂贵的安全特定微调或检测开销。代码可在https://github.com/Amadeuszhao/QMLLM上获取。

英文摘要:

Multimodal Large Language Models (MLLMs) have demonstrated impressive capabilities in cross-modal understanding, but remain vulnerable to adversarial attacks through visual inputs despite robust textual safety mechanisms. These vulnerabilities arise from two core weaknesses: the continuous nature of visual representations, which allows for gradient-based attacks, and the inadequate transfer of text-based safety mechanisms to visual content. We introduce Q-MLLM, a novel architecture that integrates two-level vector quantization to create a discrete bottleneck against adversarial attacks while preserving multimodal reasoning capabilities. By discretizing visual representations at both pixel-patch and semantic levels, Q-MLLM blocks attack pathways and bridges the cross-modal safety alignment gap. Our two-stage training methodology ensures robust learning while maintaining model utility. Experiments demonstrate that Q-MLLM achieves significantly better defense success rate against both jailbreak attacks and toxic image attacks than existing approaches. Notably, Q-MLLM achieves perfect defense success rate (100\%) against jailbreak attacks except in one arguable case, while maintaining competitive performance on multiple utility benchmarks with minimal inference overhead. This work establishes vector quantization as an effective defense mechanism for secure multimodal AI systems without requiring expensive safety-specific fine-tuning or detection overhead. Code is available at https://github.com/Amadeuszhao/QMLLM.

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

↑