Abstract
Multimodal large language models (MLLMs) exhibit strong capabilities across diverse applications, yet remain vulnerable to adversarial perturbations that distort their feature representations and induce erroneous predictions. To address this vulnerability, we propose Feature-space Smoothing (FS), a general framework that provides certified robustness guarantees at the feature representation level of MLLMs. We theoretically prove that FS converts a given feature extractor into a smoothed variant that is guaranteed a certified lower bound on the cosine similarity between clean and adversarial features under $\ell_2$-bounded perturbations. Moreover, we establish that the value of this Feature Cosine Similarity Bound (FCSB) is determined by the intrinsic Gaussian robustness score of the given encoder. Building on this insight, we introduce the Gaussian Smoothness Booster (GSB), a plug-and-play module that enhances the Gaussian robustness score of pretrained MLLMs, thereby strengthening the robustness guaranteed by FS, without requiring additional MLLM retraining. Extensive experiments demonstrate that applying the FS to various MLLMs yields strong certified feature-space robustness and consistently leads to robust task-oriented performance across diverse applications.
Introduction
Multimodal Large Language Models (MLLMs) such as GPT-4 and LLaVA have revolutionized human-AI interaction by integrating visual and textual understanding. However, these models possess a critical security vulnerability: adversarial susceptibility. A malicious actor can introduce imperceptible noise into an input image, causing the MLLM to ignore the visual content and generate a targeted, incorrect, or even harmful response.
Traditional defenses typically fall into two categories: empirical defenses like adversarial training, which lack formal guarantees and are computationally expensive for large models, and certified defenses like randomized smoothing. While randomized smoothing provides mathematical guarantees, it is traditionally designed for simple classification outputs. Applying it to the high-dimensional, autoregressive text generation of MLLMs is computationally prohibitive. This research introduces a novel approach: certifying the feature space of the vision encoder to provide provable robustness without the overhead of full-model retraining.
Methodology: Feature-Space Smoothing and GSB
The core innovation lies in shifting the certification target from the final text output to the intermediate feature representations produced by the vision encoder (e.g., CLIP).
Feature-space Smoothing (FS)
The authors propose Feature-space Smoothing (FS), an adaptation of randomized smoothing for feature extractors. By injecting Gaussian noise into the input image and averaging the resulting feature vectors over multiple passes, the system creates a "smoothed" encoder. This process mathematically guarantees a lower bound on the cosine similarity between clean and adversarial features, termed the Feature Cosine Similarity Bound (FCSB).
Gaussian Smoothness Booster (GSB)
Theoretical analysis reveals that the FCSB is fundamentally limited by the original encoder's intrinsic robustness to Gaussian noise. To overcome this without retraining the entire MLLM, the authors developed the Gaussian Smoothness Booster (GSB).
As shown in Figure 2, the GSB is a plug-and-play module consisting of:
- Gaussian Denoiser: A lightweight U-Net that pre-processes the image to mitigate the effects of injected noise.
- Residual Smoothness Mapper: A post-extraction module that refines feature vectors using FiLM and multi-head attention, ensuring they remain within the expected distribution while maximizing the Gaussian robustness score.
Experimental Evaluation
The framework was evaluated across several downstream tasks, including image captioning (NIPS 2017 dataset), image classification (ImageNet), and Visual Question Answering (ScienceQA). The researchers tested against state-of-the-art white-box attacks such as AttackVLM, M-Attack, and FOA.
Key Results
The empirical performance gains are substantial. For instance, on the LLaVA-1.5-7B model under the FOA attack:
- Classification Accuracy: Increased from 3.8% (undefended) to 87.2% with FS+GSB.
- Attack Success Rate (ASR): Dropped from 81% to a mere 0.2%.
- Efficiency: The defense is practical for real-world use, adding only approximately 0.28 seconds of latency per image on modern hardware (RTX 4090).
Furthermore, the GSB module demonstrated impressive cross-model generalization, enhancing the robustness of various vision encoders (including those already adversarially trained like FARE and TeCoA) without requiring model-specific fine-tuning.
Conclusion and Future Directions
By certifying the bottleneck—the vision encoder's output—rather than the final text, this work provides a scalable and mathematically sound defense for MLLMs. While currently focused on $\ell_2$-norm perturbations, this approach sets a precedent for feature-level certification. Future research may extend these techniques to other modalities like audio or video and explore deterministic smoothing methods to further reduce inference latency.
Summary updated