Bridging the Gap in Vision Language Models in Identifying Unsafe Concepts Across Modalities

Yiting Qu, Michael Backes, Yang Zhang

Introduction

As Vision Language Models (VLMs) like GPT-4V and LLaVA become increasingly integrated into content moderation systems, their ability to identify "unsafe concepts"—ranging from hate symbols to depictions of self-harm—is critical. However, researchers have identified a significant "modality gap": while these models often possess a strong internal "ethical compass" for text, they frequently fail to apply the same logic to visual content. This paper explores this discrepancy and proposes a novel alignment strategy to bridge the gap.

The Problem: Perception vs. Alignment

The core issue is not necessarily a lack of visual understanding, but a failure in judgment. The authors decompose VLM safety into two distinct capabilities:

  1. Perception: Can the model identify the objects and actions in the image?
  2. Alignment: Does the model judge that content as unsafe according to human ethical standards?
Figure 2: An example of the modality gap where a model correctly perceives self-cutting content when prompted specifically but fails to judge it as unsafe in a general context.

Strikingly, models often exhibit high perception scores but low alignment scores. For instance, LLaVA-7B demonstrated a 0.93 perception score (it knew what it was seeing) but only a 0.37 alignment score (it did not flag the content as unsafe). This suggests that the "language backbone" of the model is safer than its "vision encoder" integration.

Methodology: Simplified RLHF

To address this, the authors introduced a streamlined Reinforcement Learning from Human Feedback (RLHF) pipeline using Proximal Policy Optimization (PPO). Unlike traditional RLHF, which requires expensive human-annotated preference data to train a reward model, this approach uses:

  • Response Classifier: A fine-tuned RoBERTa model classifies VLM responses as "Safe," "Unsafe," or "N/A."
  • Direct Reward Signal: The VLM is rewarded when its safety judgment matches the ground-truth label of the image.
  • Length Bonus & KL Divergence: These terms prevent "reward hacking" (e.g., the model learning to just say "No" to everything) and ensure the model retains its original reasoning capabilities.

The UnsafeConcepts Dataset

To facilitate this research, the authors curated the UnsafeConcepts dataset. It consists of 1,567 images covering 75 fine-grained unsafe concepts across nine categories, including sensitive topics like "The 9/11 Conspiracy" and "Sexual Harassment."

Figure 5: An example from the UnsafeConcepts dataset illustrating a fine-grained unsafe concept related to conspiracy theories.

Key Results and Insights

The proposed PPO-based alignment achieved an accuracy of 0.903, significantly outperforming standard Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO).

Key findings include:

  • Informativeness: Unlike SFT, which often produces repetitive, "canned" refusals, the PPO-tuned model provides detailed explanations for why content is unsafe, maintaining high utility.
  • Generalization: The alignment generalizes well to unseen harmful content in external datasets like SMID and NSFW.
  • Preserving Intelligence: The safety training did not degrade the model's performance on general benchmarks like MME or LLaVABench.

Conclusion

By identifying the gap between perception and alignment, this work provides a clearer path for making VLMs safer. The simplified RLHF approach demonstrates that robust safety alignment can be achieved without the prohibitive costs of massive human preference datasets, ensuring that models can "judge" as well as they "see."

Summary updated

BibTeX
@inproceedings{qu2025bridging,
  author = {Yiting Qu and Michael Backes and Yang Zhang},
  title = {{Bridging the Gap in Vision Language Models in Identifying Unsafe Concepts Across Modalities}},
  booktitle = {USENIX Security},
  year = {2025},
}
Figure