Pristine Models

Anirudh Sundara Rajan, Krishna Kumar Singh, Richard Zhang, Yong Jae LeearXiv 2026

TL;DR

Pristine Models introduce a novel "compartmentalized" pretraining strategy for text-to-image generation that separates unsafe concepts from useful visual knowledge. By using a multi-branch attention mechanism and prompt decomposition, the model can learn general properties (like lighting and physics) from unsafe data while isolating restricted identities into a detachable branch that is simply removed at inference time.

What Problem Does This Paper Address?

Modern image generators face a frustrating "safety-utility trade-off." If you train a model on broad, unfiltered internet data, it learns to generate high-quality images but also picks up "unsafe" concepts like copyrighted characters, weapons, or harmful content. If you filter the training data to be strictly safe, the model’s quality plummets because it misses out on the "benign" knowledge contained within those unsafe images—things like how light reflects off metal, how shadows fall, or complex object interactions (see Figure 1).

Figure 1: An image is rarely unsafe in its entirety. A single image can entangle an unsafe concept that we wish to suppress at generation time, here a firearm, with safe, broadly use- ful properties like lighting, shadows, camera angle, and object interactions.

Existing solutions like post-hoc "unlearning" often lead to "catastrophic forgetting," where removing one concept accidentally damages unrelated parts of the model. Pristine Models aim to solve this by building safety into the architecture during pretraining.

Methods

The core innovation is Pristine Attention, which replaces standard attention layers with three independently parameterized branches:

  1. Safe Branch: Learns safe, specific identities (e.g., "Chihuahua").
  2. Unsafe Branch: Learns restricted identities (e.g., "Assault rifle").
  3. Shared Branch: Learns transferable, benign information (e.g., "A dark object resting on sand").

To make this work, the authors use Prompt Decomposition. During training, an LLM splits a caption into a "subject" (routed to the safe or unsafe branch) and a "residual" (routed to the shared branch).

Figure 2: Goal. The Full Model (Wang et al., 2026b), trained on both safe and unsafe data, generates high-quality images but can reproduce restricted concepts such as SpongeBob; the Safe Model, trained only on safe data, avoids them at the cost of useful visual knowledge, here reflected in incorrect gift-wrap placement. Pristine aims to retain the useful information learned from unsafe data while isolating restricted concept-specific knowledge in a detachable branch, achieving safe generation without sacrificing quality.

At inference time, the Unsafe Branch is detached. The model retains the Shared and Safe branches, allowing it to use the general visual knowledge it learned from all data while lacking the specific parameters needed to render prohibited subjects.

Datasets

The authors validated their approach on two main scales:

  • ImageNet (Dog Setting): A controlled environment where 131 canine classes were designated as "safe" and the remaining 869 as "unsafe." This allowed for precise measurement of how well knowledge transfers from unsafe to safe categories.
  • CC12M: A large-scale, open-world dataset. The authors designated 11 restricted categories (including weapons, IP like Mickey Mouse, and famous landmarks) to test the model's ability to scale.

Key Insights and Ideas

  • Knowledge Factorization: The most powerful idea here is that an image isn't "unsafe" in its entirety. By forcing the model to learn "what" an object is in one branch and "how it looks in a scene" in another, we can keep the "how" while discarding the "what."
  • Compositional Transfer: This is the "aha" moment. The model can learn how to render a specific material (like "bronze") from an unsafe image of a bronze teapot and successfully apply that knowledge to a safe prompt like "a bronze dog," even if it never saw a bronze dog during training (see Figure 5).
  • Pretraining vs. Post-hoc: It is much more effective to keep concepts isolated from the start than to try to untangle them after they've already become "polysemantic" (neurons contributing to multiple unrelated concepts) in a standard model.

Key Results

Pristine Models consistently outperformed both "Safe-only" training and post-hoc unlearning methods:

  • Safety: On ImageNet, Pristine reduced unsafe concept accuracy to 0% (matching the Safe baseline) while the Full model leaked these concepts at 67%.
  • Quality: Pristine achieved significantly better image quality (FID) and text alignment (VQAScore) than the Safe baseline. On CC12M, it recovered much of the generation quality lost by the Safe model while maintaining strong suppression of restricted content.
  • Qualitative Success: As shown in Figure 7, when asked for an unsafe concept like "Batman," the Pristine model generates a semantically related but safe alternative (a generic armored figure), whereas the Full model reproduces the copyrighted character.
Figure 7: Qualitative suppression of designated unsafe concepts.

Limitations and Future Work

  • Known Unknowns: This method requires knowing which concepts are "unsafe" before you start pretraining. It cannot proactively protect against concepts identified only after the model is deployed.
  • Complementary, Not a Replacement: The authors note that Pristine Models should be used alongside post-hoc unlearning and inference-time guardrails, not as a total replacement for them.
  • LLM Dependency: The training pipeline relies on an LLM for prompt decomposition, which adds complexity to the data preparation stage.

Summary updated

Abstract

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.
BibTeX
@misc{rajan2026pristine,
  author = {Anirudh Sundara Rajan and Krishna Kumar Singh and Richard Zhang and Yong Jae Lee},
  title = {{Pristine Models}},
  year = {2026},
  eprint = {2610.14091},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.14091},
}
Figure