原始模型
研究论文 · 2026/10/15
在广泛、未经过滤的数据上训练可以实现高质量的图像生成,但也可能让模型学会不应生成的概念;限制训练数据可以确保安全,但会降低质量,因为包含不安全概念的样本也提供了本身并非不安全的有用知识。现有方法大多通过概念遗忘事后处理这一权衡,但随着需要移除的概念数量增加,可能导致灾难性遗忘。我们转而探究是否可以在预训练期间将不安全概念知识分隔开,以便在推理时禁用对其的访问。我们提出了Pristine Models,一种新颖的文本到图像生成架构,其注意力机制鼓励将安全和不安全知识分离到独立参数化的分支中。分支特定的参数在训练期间学习,而不安全分支可以在推理时分离。在ImageNet上,Pristine Models实现了更安全的生成,同时保留了全数据预训练的大部分效用,相比仅在安全数据上训练或应用事后概念移除,实现了更高的图像质量和更好的文本对齐。我们进一步将方法扩展到CC12M,证明其在更大、更多样化的开放世界预训练设置中仍然有效。
该研究提出了一种在预训练阶段分隔不安全概念知识的新架构,避免了事后概念移除导致的灾难性遗忘,并在ImageNet和CC12M上验证了其安全性与生成质量之间的更好权衡,对安全可控的文本到图像生成具有重要参考价值。
Training on broad, unfiltered data enables high-quality image generation, but can also teach models concepts that should not be generated; restricting the training data ensures safety, but reduces quality because examples containing unsafe concepts also provide useful knowledge that is not itself unsafe. Existing approaches largely address this trade-off post hoc through concept unlearning, which can lead to catastrophic forgetting as the number of concepts to remove grows. We instead ask whether unsafe concept knowledge can be compartmentalized during pretraining so that access to it can be disabled at inference. We introduce Pristine Models, a novel text-to-image generation architecture with an attention mechanism that encourages the separation of safe and unsafe knowledge into independently parameterized branches. The branch-specific parameters are learned during training, while the unsafe branch can be detached at inference. On ImageNet, Pristine Models enable safer generation while retaining much of the utility of full-data pretraining, achieving higher image quality and better text alignment than training only on safe data or applying post-hoc concept removal. We further scale our approach to CC12M, demonstrating that it remains effective in a substantially larger and more diverse open-world pretraining setting.