Skip to main navigation Skip to search Skip to main content

UnsafeBench: Benchmarking Image Safety Classifiers on Real-World and AI-Generated Images

  • Yiting Qu
  • , Xinyue Shen
  • , Yixin Wu
  • , Michael Backes
  • , Savvas Zannettou
  • , Yang Zhang*
  • *Corresponding author for this work

Research output: Chapter in Book/Conference proceedings/Edited volume › Conference contribution › Scientific › peer-review

Abstract

With the advent of text-to-image models and concerns about their misuse, developers are increasingly relying on image safety classifiers to moderate their generated unsafe images. Yet, the performance of current image safety classifiers remains unknown for both real-world and AI-generated images. In this work, we propose UnsafeBench, a benchmarking framework that evaluates the effectiveness and robustness of image safety classifiers, with a particular focus on the impact of AI-generated images on their performance. First, we curate a large dataset of 10K real-world and AI-generated images that are annotated as safe or unsafe based on a set of 11 unsafe categories of images (sexual, violent, hateful, etc.). Then, we evaluate the effectiveness and robustness of five popular image safety classifiers, as well as three classifiers that are powered by general-purpose visual language models. Our assessment indicates that existing image safety classifiers are not comprehensive and effective enough to mitigate the multifaceted problem of unsafe images. Also, there exists a distribution shift between real-world and AI-generated images in image qualities, styles, and layouts, leading to degraded effectiveness and robustness. Motivated by these findings, we build a comprehensive image moderation tool called PerspectiveVision, which improves the effectiveness and robustness of existing classifiers, especially on AI-generated images. UnsafeBench and PerspectiveVision can aid the research community in better understanding the landscape of image safety classification in the era of generative AI.
Original languageEnglish
Title of host publicationCCS 2025 - Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security
Place of PublicationNew York, NY
PublisherAssociation for Computing Machinery (ACM)
Pages3221-3235
Number of pages15
ISBN (Electronic)9798400715259
DOIs
Publication statusPublished - 2025
Event32nd ACM SIGSAC Conference on Computer and Communications Security, CCS 2025 - Taipei, Taiwan
Duration: 13 Oct 2025 → 17 Oct 2025

Conference

Conference32nd ACM SIGSAC Conference on Computer and Communications Security, CCS 2025
Country/TerritoryTaiwan
CityTaipei
Period13/10/25 → 17/10/25

Bibliographical note

Green Open Access added to TU Delft Institutional Repository as part of the Taverne amendment. More information about this copyright law amendment can be found at https://www.openaccess.nl. Otherwise as indicated in the copyright section: the publisher is the copyright holder of this work and the author uses the Dutch legislation to make this work public.

Keywords

  • AI-Generated Images
  • Image Safety Classifiers
  • Real-World Images

Fingerprint

Dive into the research topics of 'UnsafeBench: Benchmarking Image Safety Classifiers on Real-World and AI-Generated Images'. Together they form a unique fingerprint.

Cite this