Red Teaming Visual Language Models

Mukai Li, Lei Li, Yuwei Yin, Masood Ahmed, Zhenguang Liu, Qi Liu

As Large Language Models (LLMs) evolve into Vision-Language Models (VLMs) like LLaVA or GPT-4V, they inherit the safety risks of text-only models while gaining entirely new vulnerabilities. Researchers have introduced RTVLM, the first comprehensive red teaming dataset designed to "stress test" these models across four critical pillars: faithfulness, privacy, safety, and fairness.

The RTVLM Framework

The researchers developed a systematic pipeline for data collection, evaluation, and alignment to address the lack of standardized red teaming for multimodal models.

The RTVLM pipeline: from data collection and red teaming cases to GPT-4V evaluation and alignment.

The pipeline involves:

  1. Dataset Construction: 10,200 question-image pairs were created using human annotation and GPT-4 "self-instruct" methods.
  2. Evaluation Framework: A scoring system (0-10) was established using GPT-4V as an automated judge, validated by high Inter-Annotator Agreement (IAA) with human audits.
  3. Red Teaming Alignment: Supervised Fine-Tuning (SFT) was performed on a subset of the data to test if models could be effectively "hardened" against attacks.

Dataset Pillars and Red Teaming Cases

The RTVLM dataset categorizes 12 subtasks into four main pillars to evaluate model robustness:

  • Faithfulness: Assessing if models are misled by visual or textual contradictions.
  • Privacy: Testing the disclosure of private vs. public information (e.g., using CelebA data).
  • Safety: Evaluating responses to CAPTCHAs, jailbreaks, and harmful content.
  • Fairness: Measuring race and gender bias in descriptive tasks, such as creating resumes from generated faces.
Examples of red teaming cases in RTVLM, including Face Fairness and Multimodal Jailbreak scenarios.

Key Insights and Results

The study reveals a significant performance gap between proprietary and open-source models. GPT-4V leads with an average score of 7.94, while the best open-source model, LLaVA-v1.6-34B, follows at 6.89. Smaller models often struggle significantly, with some scoring as low as 4.08.

The "Helpfulness" Trap

A primary finding is that open-source models often prioritize "helpfulness" over "harmlessness." While GPT-4V correctly refuses to solve CAPTCHAs or identify private individuals, open-source models frequently attempt these tasks, leading to safety and privacy violations.

Multimodal Jailbreaking

The research highlights the potency of multimodal jailbreaks. Text-based adversarial personas (like the "AIM" persona) are highly effective when rendered as text within an image, often bypassing internal text filters that would catch them in a standard prompt.

Alignment without the "Tax"

Crucially, the study demonstrates that safety alignment is not necessarily a zero-sum game. Fine-tuning LLaVA-v1.5 with RTVLM data improved its red teaming score by 10% and reduced hallucinations by 13% without degrading performance on general benchmarks like MM-Bench.

Conclusion

RTVLM provides a vital benchmark for the community to measure and improve the safety of Vision-Language Models. While a massive gap remains between top-tier models and open-source alternatives, targeted alignment through datasets like RTVLM offers a promising path forward for building more robust and ethical multimodal AI.

Summary updated

BibTeX
@inproceedings{li2024red,
  author = {Mukai Li and Lei Li and Yuwei Yin and Masood Ahmed and Zhenguang Liu and Qi Liu},
  title = {{Red Teaming Visual Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.198},
}
Figure