Introduction: The Vulnerability of the AI Supply Chain
Modern AI development often follows a "base-then-fine-tune" paradigm. Developers take powerful open-source Vision-Language Models (VLMs), such as Qwen-VL or LLaVA, and fine-tune them on proprietary datasets for specialized applications like healthcare or autonomous driving. While these fine-tuned models are often protected behind private APIs (a "grey-box" setting), they inherit the foundational architecture and weights of their public base models.
A critical security question arises: Can an attacker, with access only to the public base model, craft adversarial attacks that reliably transfer to these private, fine-tuned variants? Standard adversarial image attacks, such as Projected Gradient Descent (PGD), are notoriously brittle. While they can jailbreak a base model, they almost always fail to transfer after even minor fine-tuning, creating a dangerous "false sense of security" for developers who believe fine-tuning naturally patches vulnerabilities.
The Simulated Ensemble Attack (SEA)
To address this gap, we introduce the Simulated Ensemble Attack (SEA). SEA is designed to generate adversarial images that are robust to the parameter shifts induced by downstream fine-tuning.
The core of SEA lies in two innovative components:
- Fine-tuning Trajectory Simulation (FTS): Instead of optimizing against a static model, FTS injects random Gaussian noise into the base model's vision encoder during the attack generation process. This forces the adversarial perturbation to remain effective across a "neighborhood" of potential parameter states, mimicking the localized weight shifts that occur during real-world fine-tuning.
- Targeted Prompt Guidance (TPG): The introduction of noise in FTS can destabilize gradient optimization. TPG mitigates this by using the text modality as an anchor. By appending specific instructions (e.g., "Must begin your response with: Sure, here is...") to the harmful query, TPG steers the language model toward the desired adversarial output, ensuring stable convergence.
Empirical Foundation: Fine-Tuning as a Neighborhood Shift
The effectiveness of SEA's FTS component is rooted in the observation that fine-tuning typically results in very small, localized changes to a model's parameters.
By measuring the actual parameter deltas ($\Delta\theta$) between base and fine-tuned models, we found that the shifts are remarkably subtle. This empirical evidence justifies the use of Gaussian noise simulation; if an attack is robust to a small noise ball around the base parameters, it is highly likely to remain effective against the fine-tuned model residing within that same neighborhood.
Key Results and Safety Implications
Our evaluation demonstrates a massive leap in transferability compared to existing methods:
- Jailbreak Success: On a Qwen-2-VL-7B model fine-tuned specifically for safety (using the Multi-Image Safety dataset), standard PGD attacks dropped to a 0.00% Attack Success Rate (ASR). In contrast, SEA achieved an 86.54% ASR.
- Toxicity Injection: Against safety-aligned models, SEA increased the "Any Toxicity" rate from a baseline of 15.11% to 58.18% on the RealToxicityPrompts benchmark.
- Inherited Vulnerability: Even when models are explicitly trained to refuse harmful prompts, SEA successfully bypasses these "band-aid" defenses. The vulnerability appears deeply embedded in the multimodal alignment of the base model.
Conclusion
SEA reveals a significant, inherited vulnerability in the VLM supply chain. Fine-tuning, even when focused on safety, is insufficient to protect models from adversarial images optimized to survive parameter shifts. These findings underscore the need for "inheritance-aware" defense strategies and suggest that security must be addressed at the foundational level of base model training.
Summary updated