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

Yiting Qu, Michael Backes, Yang Zhang
7/15/2025
cs.CRcs.AI

No official code found. Best implementation: TrustAIRLab/SaferVLM (9 stars, last commit 2025-07-19).

Abstract

Vision-language models (VLMs) are increasingly applied to identify unsafe or inappropriate images due to their internal ethical standards and powerful reasoning abilities. However, it is still unclear whether they can recognize various unsafe concepts when presented in different modalities, such as text and images. To address this, we first compile the UnsafeConcepts dataset, featuring 75 unsafe concepts, i.e., ``Swastika,'' ``Sexual Harassment,'' and ``Assaults,'' along with associated 1.5K images. We then conduct a systematic evaluation of VLMs' perception (concept recognition) and alignment (ethical reasoning) capabilities. We assess eight popular VLMs and find that, although most VLMs accurately perceive unsafe concepts, they sometimes mistakenly classify these concepts as safe. We also identify a consistent modality gap among open-source VLMs in distinguishing between visual and textual unsafe concepts. To bridge this gap, we introduce a simplified reinforcement learning (RL)-based approach using proximal policy optimization (PPO) to strengthen the ability to identify unsafe concepts from images. Our approach uses reward scores based directly on VLM responses, bypassing the need for collecting human-annotated preference data to train a new reward model. Experimental results show that our approach effectively enhances VLM alignment on images while preserving general capabilities. It outperforms baselines such as supervised fine-tuning (SFT) and direct preference optimization (DPO). We hope our dataset, evaluation findings, and proposed alignment solution contribute to the community's efforts in advancing safe VLMs.

View on arXivView PDF

Code Implementations(1)

93Shell, PythonJul 15, 20251 years ago

Similar Papers

Cite this paper

@article{qu2025bridging,
  title  = {Bridging the Gap in Vision Language Models in Identifying Unsafe Concepts Across Modalities},
  author = {Yiting Qu and Michael Backes and Yang Zhang},
  year   = {2025},
  eprint = {2507.11155},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.11155v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.11155.svg)](https://codeofpaper.com/paper/2507.11155)

Discussion