Introduction
Multi-Modal Large Language Models (MLLMs), such as LLaVA, are increasingly integrated into complex systems. However, their robustness against adversarial manipulation remains a critical concern. This report details the top-ranked solution for the ICML 2024 TiFA Workshop MLLM Attack Challenge, demonstrating how a combination of text-based suffix injection and image-based Projected Gradient Descent (PGD) can significantly degrade model performance across helpfulness, honesty, and harmlessness dimensions.
The Challenge: Fooling LLaVA 1.5
The competition required participants to perturb images and/or text queries to deceive the LLaVA 1.5 (13B) model. Attacks were categorized into three dimensions:
- Helpfulness (H1) & Honesty (H2): Targeted attacks aimed at tricking the model into selecting incorrect answers in a multiple-choice format.
- Harmlessness (H3): Non-targeted attacks designed to provoke the model into generating toxic or unsafe content.
A key constraint was "imperceptibility": adversarial inputs had to maintain a cosine similarity of $>0.9$ with the original text (via BERT) and images (via ResNet50).
Methodology
The winning strategy employed a dual-modality approach:
Targeted Attacks (H1 & H2)
The authors first performed pseudo-labeling using GPT-4o to identify correct answers, followed by manual verification. They then implemented:
- Suffix Injection: An incorrect option was selected, and its text was appended to the query as a suffix. The length was maximized while respecting the BERT similarity constraint.
- Adaptive Projected Gradient Descent (PGD): To ensure the ResNet50 similarity constraint was met, an adaptive $\epsilon$ strategy was used. The algorithm searched for the largest perturbation radius that satisfied the constraint before executing the PGD steps on the image.
Non-Targeted Attacks (H3)
For the harmlessness dimension, simple suffix injection was ineffective. Instead, the authors appended manually crafted harmful templates from open-source corpora to the text query. Interestingly, image-based PGD provided negligible gains for this specific task.
Key Results
The combined attack strategy proved highly effective, particularly for targeted questions. As shown in the table below, the overall Attack Success Rate (ASR) improved by over 11%.
The most dramatic improvement was seen in the Helpful category, where the ASR jumped from 48.09% to 80.92%.
Insights: Language Bias and Suffix Length
A primary finding of this work is the severe language bias present in MLLMs. By injecting a text "shortcut" (the wrong answer) into the prompt, the model often ignores visual evidence entirely. The effectiveness of this shortcut is directly tied to the length of the injected suffix.
As illustrated in the figure above, increasing the suffix length consistently leads to higher attack success rates. For the "Helpful" task, adding the query perturbation alone improved the ASR by 22.14% compared to image-only attacks.
Discussion and Limitations
Despite the success, the authors identified several challenges:
- Prompt Misalignment: A significant drop in H3 performance on the evaluation server (39% vs. 80% locally) suggests the presence of hidden system prompts that format inputs, effectively turning a white-box scenario into a black-box one.
- Scalability: The reliance on human-verified pseudo-labels limits the scalability of the attack and introduces potential biases.
Future research should explore more advanced parameter-free PGD methods like AutoPGD and develop more diverse, dynamic prompts to overcome system-level defenses.
Summary updated