# No Safe Dose: How Training Data Drives Unsafe Image Generation

DevFeed: [No Safe Dose: How Training Data Drives Unsafe Image Generation](<https://devfeed.tech/articles/no-safe-dose-how-training-data-drives-unsafe-image-generation-123168.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.28137>)

Author: Felix Friedrich, Lukas Helff, Niharika Hegde, Patrick Schramowski, Kristian Kersting

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [stable-diffusion](<https://devfeed.tech/topics/stable-diffusion.md>), [ai-image-generator](<https://devfeed.tech/topics/ai-image-generator.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [ai security](<https://devfeed.tech/topics/ai-security.md>)

Tags: [adversarial](<https://devfeed.tech/tags/adversarial.md>), [budget](<https://devfeed.tech/tags/budget.md>), [classifiers](<https://devfeed.tech/tags/classifiers.md>), [computer-vision](<https://devfeed.tech/tags/computer-vision.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [curation](<https://devfeed.tech/tags/curation.md>), [data](<https://devfeed.tech/tags/data.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [generation](<https://devfeed.tech/tags/generation.md>), [generative](<https://devfeed.tech/tags/generative.md>), [image](<https://devfeed.tech/tags/image.md>), [image-generation](<https://devfeed.tech/tags/image-generation.md>), [images](<https://devfeed.tech/tags/images.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [safety](<https://devfeed.tech/tags/safety.md>), [synthetic](<https://devfeed.tech/tags/synthetic.md>), [text](<https://devfeed.tech/tags/text.md>), [text-to-image](<https://devfeed.tech/tags/text-to-image.md>), [training](<https://devfeed.tech/tags/training.md>), [training-data](<https://devfeed.tech/tags/training-data.md>)

## AI overview

In controlled training experiments, increasing the fraction of unsafe images raised unsafe generations from 16.6% to 26.4%, with the effect appearing only under adversarial prompts. At a fixed training budget, contamination proportion mattered more than the unsafe-image count or cumulative exposure; filtering a fixed fraction worked at both 1M and 8M images without measurable changes in FID, CLIPScore, or ImageReward. Curation reduced but did not eliminate unsafe outputs: the reported floor was 13.6% after removing images flagged by any of four judges, and 23.1% with real rather than synthetic images. A safety-aligned text encoder lowered the floor to 9.6%, while safe-data fine-tuning eroded curation's benefit by 8.7 percentage points. The results indicate that curation and encoder choice help, but neither alone ensures safety.

## Source excerpt

arXiv:2605.28137v2 Announce Type: replace-cross Abstract: Text-to-image models are trained on web-scale data that inevitably contains unsafe images, yet whether this contamination directly drives unsafe generation has not been tested under controlled conditions. We train the same text-to-image model on corpora that differ only in their fraction of unsafe images (0% to 9.6%) and in size (100K to 8M), and evaluate 10,000 generations per model with four independent safety classifiers. Output unsafety rises monotonically and saturates, from 16.6% at 0% to 26.4% at 9.6% contamination, and the effect appears only under adversarial prompts. At a fixed training budget, the level is set by the proportion of unsafe images rather than their absolute count or cumulative exposure, so filtering a fixed fraction is equally effective at 1M and 8M images, at no measurable cost in FID, CLIPScore, or ImageReward. Filtering alone, however, does not eliminate unsafe generation: a floor persists when every image flagged by any of four judges is removed (13.6%) and rises when training on real instead of synthetic images (23.1%). A safety-aligned text encoder lowers the floor to 9.6%, but it is not carried by a removable encoder direction, which implicates the generative backbone. Finally, fine-tuning on entirely safe data erodes the benefit of curation (+8.7pp). Data curation and encoder choice are complementary and effective, but neither makes a model safe on its own.