Slight Corruption in Pre-training Data Makes Better Diffusion Models

Hao Chen, Yujin Han, Diganta Misra, Xiang Li, Kai Hu, Difan Zou, Masashi Sugiyama, Jindong Wang, Bhiksha Raj

Abstract

Conventional wisdom in machine learning suggests that "cleaner is better" regarding training data. However, recent research into Diffusion Models (DMs) suggests a counterintuitive reality: a small amount of condition corruption—such as mismatched labels or text—during pre-training can significantly improve image quality and diversity. This paper explores the theoretical and empirical foundations of this phenomenon and introduces Condition Embedding Perturbation (CEP), a simple training regularization technique that harnesses the benefits of data corruption without requiring manual dataset manipulation.

Introduction

Large-scale diffusion models, such as Stable Diffusion, are typically trained on massive, web-crawled datasets like LAION. These datasets are inherently noisy, often containing mismatches between images and their corresponding text prompts. While researchers have traditionally viewed this noise as a hurdle to be mitigated through rigorous filtering, this study investigates whether such corruption might actually serve a constructive purpose. By analyzing how "condition corruption" affects performance, diversity, and downstream adaptability, we demonstrate that perfectly clean data may actually lead to suboptimal generative performance.

Methodology

The researchers investigated the impact of data corruption through three distinct lenses: empirical experimentation, theoretical modeling, and methodological innovation.

1. Synthetic Corruption Experiments

To isolate the effects of noise, the authors utilized "clean" versions of ImageNet-1K and CC3M. They intentionally introduced errors by flipping class labels in ImageNet and swapping text captions or using GPT-4 to generate inaccurate descriptions for CC3M. This allowed for a controlled study of how varying levels of noise impact model output.

2. Theoretical Framework

Using a Gaussian Mixture Model (GMM) framework, the authors mathematically analyzed the generative process. They proved that slight corruption increases the entropy (diversity) of the generated distribution and reduces the 2-Wasserstein distance to the ground truth. Theoretically, this suggests that slight noise prevents the model from "collapsing" into a few specific training points, instead encouraging it to cover the entire data manifold more effectively.

3. Condition Embedding Perturbation (CEP)

Based on these findings, the authors proposed Condition Embedding Perturbation (CEP). Rather than manually corrupting a dataset, CEP adds a small amount of noise ($\delta$) directly to the conditional embeddings during the training process. This acts as a form of regularization that mimics the benefits of data corruption in a computationally efficient manner.

Key Insights and Ideas

The "Sweet Spot" of Noise

The relationship between data cleanliness and model performance is non-linear. While severe corruption (exceeding 20%) predictably degrades performance, a "sweet spot" exists around 5% to 7.5% corruption. Models trained within this range consistently outperform those trained on perfectly clean data.

Preventing Distribution Collapse

Training on finite, perfectly clean data can cause a model's generated distribution to collapse toward specific training samples. Slight corruption effectively "smears" these points, forcing the model to learn a more continuous and flexible representation of the underlying data. This results in a lower "Memorization Ratio," indicating that the model is learning general concepts rather than simply regurgitating training images.

CEP as a "Free Lunch"

CEP proved to be a computationally inexpensive addition to the training pipeline. It improved performance across various architectures, including Latent Diffusion Models (LDM), Diffusion Transformers (DiT), and Latent Consistency Models (LCM), suggesting broad applicability.

Experimental Results

Quantitative evaluations across multiple benchmarks demonstrated significant improvements:

  • Image Quality (FID): On ImageNet-1K, an LDM-4 model’s Fréchet Inception Distance (FID) improved from 9.44 (clean) to 6.91 when utilizing Gaussian CEP.
  • Diversity (IS): The Inception Score (IS) for the same model rose from 138.46 to 180.77.
  • Downstream Adaptability: Models pre-trained with CEP proved to be superior foundations for downstream tasks. When fine-tuned for ControlNet (canny edge control), CEP-pre-trained models achieved better FID scores and higher fidelity to spatial controls than their clean-trained counterparts.
  • Qualitative Improvements: Visually, images generated by models trained with slight corruption exhibited more realistic textures and varied compositions, avoiding the "stiff" or repetitive nature often seen in models trained on hyper-curated data.

Limitations and Future Work

While the results are robust for the datasets tested, several avenues for future research remain:

  • Scaling: Future work should evaluate whether these findings hold for billion-scale datasets like the full LAION-5B.
  • Theoretical Scope: The current GMM-based proofs are a simplification of real-world image manifolds; more complex theoretical models may be required for deeper understanding.
  • Cross-Modality: It remains to be seen if slight corruption offers similar benefits for non-image modalities, such as audio, video, or 3D generation.
  • Evaluation Metrics: As FID and IS do not always align with human aesthetic preferences, further studies involving human evaluation are warranted.

Summary updated

BibTeX
@inproceedings{chen2024slight,
  author = {Hao Chen and Yujin Han and Diganta Misra and Xiang Li and Kai Hu and Difan Zou and Masashi Sugiyama and Jindong Wang and Bhiksha Raj},
  title = {{Slight Corruption in Pre-training Data Makes Better Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=VFpXYBqMSU},
}
Figure