Abstract
Generative diffusion models often suffer from replication, where they generate near-identical copies of training data, posing privacy and copyright risks. This is particularly prevalent during fine-tuning on small datasets. We present FPAN (Fine-grained Probabilistic Addition of Noise), a novel regularization technique that injects high-intensity noise into individual text token embeddings with a specific probability. FPAN reduces replication scores by approximately 29% while maintaining or even improving image quality by targeting the "well-fitting" regime of the model.
Introduction
Generative AI models like Stable Diffusion have demonstrated remarkable capabilities in image synthesis. However, they are prone to "memorizing" training samples, leading to the replication of copyrighted or sensitive content. This issue is exacerbated during fine-tuning, where models often overfit to specific text-image pairs. Existing mitigation strategies often compromise image fidelity or involve complex architectural changes. FPAN addresses this by introducing controlled variance into the text conditioning process.
Methodology: Fine-grained Probabilistic Addition of Noise (FPAN)
FPAN addresses replication by targeting text embeddings at the token level. Unlike methods that modify the U-Net architecture or the input prompt, FPAN introduces surgical perturbations to the mathematical vectors representing words.
The process involves three key components:
- Fine-grained Perturbation: Noise is added to individual token embeddings (e.g., "cat") rather than the entire sentence embedding.
- Probabilistic Application: At each training step, every token has a probability $P$ (typically 0.3 to 0.6) of being modified.
- High-Intensity Noise: When selected, a token receives Gaussian noise with intensity $W \approx 1.7$.
By only perturbing some tokens, the model still understands the overall semantic context of the prompt, but it can no longer rely on hyper-specific token combinations to trigger a memorized image. This increases the variance of the embeddings without shifting their mean, fostering better generalization.
Key Insights and Results
Evaluation on a subset of 10,000 samples from LAION-2B using Stable Diffusion 2.1 revealed critical dynamics between noise intensity and model performance.
The "N-shaped" Quality Curve
A significant finding is the relationship between noise intensity ($W$) and the Fréchet Inception Distance (FID), which measures image quality and diversity. As $W$ increases, image quality initially declines (overfitting, higher FID), then enters a "well-fitting" phase where quality improves (lower FID), before finally degrading due to underfitting. FPAN is designed to operate within this optimal "well-fitting" window, acting as a perfect regularizer.
Performance Metrics
- Replication Reduction: FPAN achieved an average reduction of 28.78% in replication scores compared to standard fine-tuning.
- Superior Regularization: It outperformed constant-magnitude noise methods by 26.51%.
- Synergistic Effects: When combined with other state-of-the-art methods like Loyal Diffusion or TMAA, replication was further reduced by up to 16.82% without sacrificing image fidelity. In many cases, the FID score was actually better than the baseline because the noise prevented the model from becoming "stiff" and overfitted.
Conclusion
FPAN demonstrates that probabilistic, fine-grained noise injection is an effective regularizer for diffusion models. By preventing the model from memorizing specific training examples, it fosters generalization and mitigates replication risks. Future research will explore dynamic hyperparameter adjustment and importance-based token weighting to further refine the balance between creativity and data protection.
Summary updated