Q-MLLM: Vector Quantization for Robust Multimodal Large Language Model SafetyQ-MLLM: Vector Quantization for Robust Multimodal Large Language Model Security
Wei Zhao et al. propose Q-MLLM, an architecture that defends multimodal large language models against visual adversarial attacks by discretizing visual representations through two-level vector quantization. The method quantizes visual representations at both the pixel-block and semantic levels, blocking gradient-based attack paths to bridge the cross-modal safety alignment gap, and uses two-stage training to maintain model utility. The authors report that Q-MLLM's defense success rate against jailbreak attacks and harmful image attacks is significantly better than existing methods, reaching 100% for jailbreak attacks except for one questionable case, while maintaining competitive performance on multiple utility benchmarks with minimal inference overhead. The code is publicly available on GitHub.