SafetyPairs: Isolating Safety Critical Image Features with Counterfactual Image Generation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Helbling, Alec, Palaskar, Shruti, Krishna, Kundan, Chau, Polo, Gatys, Leon, Cheng, Joseph Yitan
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914111360598016
author Helbling, Alec
Palaskar, Shruti
Krishna, Kundan
Chau, Polo
Gatys, Leon
Cheng, Joseph Yitan
author_facet Helbling, Alec
Palaskar, Shruti
Krishna, Kundan
Chau, Polo
Gatys, Leon
Cheng, Joseph Yitan
contents What exactly makes a particular image unsafe? Systematically differentiating between benign and problematic images is a challenging problem, as subtle changes to an image, such as an insulting gesture or symbol, can drastically alter its safety implications. However, existing image safety datasets are coarse and ambiguous, offering only broad safety labels without isolating the specific features that drive these differences. We introduce SafetyPairs, a scalable framework for generating counterfactual pairs of images, that differ only in the features relevant to the given safety policy, thus flipping their safety label. By leveraging image editing models, we make targeted changes to images that alter their safety labels while leaving safety-irrelevant details unchanged. Using SafetyPairs, we construct a new safety benchmark, which serves as a powerful source of evaluation data that highlights weaknesses in vision-language models' abilities to distinguish between subtly different images. Beyond evaluation, we find our pipeline serves as an effective data augmentation strategy that improves the sample efficiency of training lightweight guard models. We release a benchmark containing over 3,020 SafetyPair images spanning a diverse taxonomy of 9 safety categories, providing the first systematic resource for studying fine-grained image safety distinctions.
format Preprint
id arxiv_https___arxiv_org_abs_2510_21120
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SafetyPairs: Isolating Safety Critical Image Features with Counterfactual Image Generation
Helbling, Alec
Palaskar, Shruti
Krishna, Kundan
Chau, Polo
Gatys, Leon
Cheng, Joseph Yitan
Computer Vision and Pattern Recognition
What exactly makes a particular image unsafe? Systematically differentiating between benign and problematic images is a challenging problem, as subtle changes to an image, such as an insulting gesture or symbol, can drastically alter its safety implications. However, existing image safety datasets are coarse and ambiguous, offering only broad safety labels without isolating the specific features that drive these differences. We introduce SafetyPairs, a scalable framework for generating counterfactual pairs of images, that differ only in the features relevant to the given safety policy, thus flipping their safety label. By leveraging image editing models, we make targeted changes to images that alter their safety labels while leaving safety-irrelevant details unchanged. Using SafetyPairs, we construct a new safety benchmark, which serves as a powerful source of evaluation data that highlights weaknesses in vision-language models' abilities to distinguish between subtly different images. Beyond evaluation, we find our pipeline serves as an effective data augmentation strategy that improves the sample efficiency of training lightweight guard models. We release a benchmark containing over 3,020 SafetyPair images spanning a diverse taxonomy of 9 safety categories, providing the first systematic resource for studying fine-grained image safety distinctions.
title SafetyPairs: Isolating Safety Critical Image Features with Counterfactual Image Generation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2510.21120