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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Qu, Yiting, Shen, Xinyue, Wu, Yixin, Backes, Michael, Zannettou, Savvas, Zhang, Yang
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911148408832000
author Qu, Yiting
Shen, Xinyue
Wu, Yixin
Backes, Michael
Zannettou, Savvas
Zhang, Yang
author_facet Qu, Yiting
Shen, Xinyue
Wu, Yixin
Backes, Michael
Zannettou, Savvas
Zhang, Yang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_03486
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle UnsafeBench: Benchmarking Image Safety Classifiers on Real-World and AI-Generated Images
Qu, Yiting
Shen, Xinyue
Wu, Yixin
Backes, Michael
Zannettou, Savvas
Zhang, Yang
Cryptography and Security
Computer Vision and Pattern Recognition
Social and Information Networks
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.
title UnsafeBench: Benchmarking Image Safety Classifiers on Real-World and AI-Generated Images
topic Cryptography and Security
Computer Vision and Pattern Recognition
Social and Information Networks
url https://arxiv.org/abs/2405.03486