arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.28137cs.CVcs.LG
收藏

无安全剂量:训练数据如何驱动不安全图像生成

No Safe Dose: How Training Data Drives Unsafe Image Generation

Black Forest Labs(黑森林实验室);TU Darmstadt & hessian.AI(图腾达姆施塔特大学 & heessian.AI);DFKI(德意志联邦鹰嘴豆研究所);Lab1141(Lab1141实验室)

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

AI总结:

通过控制训练数据中不安全图像的比例(0%至9.6%),发现输出不安全率随比例单调上升,且比例而非绝对数量是关键因素,同时文本编码器(如SafeCLIP)可降低基线风险,但剂量效应持续存在。

摘要:

基于大规模数据训练的文本到图像模型往往不可避免地包含不安全内容。虽然有人观察到输入输出放大效应,但训练数据组成是否以及如何直接驱动模型输出安全性,还是由其他因素决定,仍不清楚。我们通过隔离这一变量来阐明问题:在多个数据集规模(10万到800万)下,我们在仅在不安全图像比例(0%到9.6%)上不同的数据集上训练相同的文本到图像模型。然后使用生成的模型生成图像,并用四个独立的安全分类器进行评估。输出不安全率从0%污染时的16.6%单调上升到5%污染时的25.5%。析因设计揭示,不安全训练图像的 extit{比例}而非绝对数量是操作变量。零污染时16.6%的不可降低基线表明其他组件(如冻结的文本编码器)是残余安全风险——通过文本编码器消融实验证实,SafeCLIP将这一底线降至9.6%,而剂量效应在所有测试的三个编码器中持续存在。关键的是,在FID、CLIPscore和ImageReward方面,安全过滤并未伴随质量下降。这些结果表明,数据整理和文本编码器安全是互补且独立有效的干预措施。同时,剩余的不安全水平为未来关于新兴能力和组合性的研究提出了问题。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑