TL;DR
This paper introduces Bidirectional Noise Injection (BNI), a novel training technique for diffusion models that injects synchronized noise into both the model's input and its target prediction. This approach effectively reduces bias between predicted and true data distributions, leading to improved generation quality and faster training without additional computational cost.
What Problem Does This Paper Address?
Diffusion models have become state-of-the-art for generative tasks, but they suffer from a persistent issue: a bias between the model's predictions and the true data distribution. This bias arises because each step in the diffusion process depends on the previous one, meaning small errors can accumulate and magnify, leading to suboptimal generated samples. Existing methods to address this bias often introduce extra computational overhead or are difficult to integrate with other improvements. The paper aims to tackle this bias problem in a computationally efficient and broadly applicable way.
Methods
The core innovation is Bidirectional Noise Injection (BNI), implemented through Coordinated Input-Output Perturbation (CIOP). During training, CIOP randomly applies synchronized noise to both the input data (e.g., a noisy image at a specific timestep) and the model's predicted output (the denoised version). This synchronized injection acts as a smoothing mechanism, bringing the predicted distribution closer to the target distribution.
The key aspects are:
- Bidirectional: Noise is applied to both the input and the output.
- Coordinated: The noise injected into the input and output comes from the same distribution at each step.
- Stochastic: The noise injection is applied with a certain probability (
ps), not in every training iteration. This allows the model to also train on unperturbed data, preserving the ground truth and preventing overfitting to the injected noise.
The theoretical underpinnings involve optimal transport theory, specifically the 2-Wasserstein distance, to mathematically demonstrate how CIOP reduces the discrepancy between distributions.
Datasets
The paper evaluates CIOP on a variety of standard benchmark datasets for image generation, including:
- CIFAR (32x32)
- CelebA (high-resolution)
- ImageNet (32x32, 256x256)
- FFHQ (128x128, 256x256)
- AFHQ-D (256x256)
- MS-COCO (for Text-to-Image generation)
The authors use these datasets with various diffusion model architectures (ADM, EDM, U-ViT, DiT, SiT) and in both pixel and latent spaces.
Key Insights and Ideas
- Synchronized Noise is Key: Unlike previous methods that might perturb only the input or output, synchronizing the noise injection is crucial. This preserves the alignment between the input and output distributions, preventing the introduction of new biases.
- Stochasticity Prevents Overfitting: Applying noise injection probabilistically is vital. It balances the benefits of smoothing with the need to stay close to the true data distribution, avoiding a scenario where the model only learns to predict the noisy targets.
- Theoretical Guarantees: The use of optimal transport theory provides a strong theoretical foundation, proving that CIOP effectively reduces the 2-Wasserstein distance without requiring strong assumptions about the data distributions.
- Orthogonal to Existing Methods: CIOP's design allows it to be seamlessly integrated with other diffusion model improvements (like loss weighting or timestep scheduling) and even boost their performance.
Key Results
- Improved Generation Quality: CIOP consistently achieves lower FID (Fréchet Inception Distance) and sFID (Spatially-aware FID) scores across various datasets and model architectures, indicating higher quality and more realistic generated samples. For example, on CIFAR, FID dropped from 3.47 to 2.46.
- Faster Training: Figure 6 shows that CIOP accelerates the training process, reaching lower FID scores in fewer iterations compared to standard DDPM.
- No Additional Computational Cost: CIOP is a training-time technique that adds no overhead during inference.
- Boosts Converged Models: CIOP can even improve the performance of diffusion models that have already converged, as shown in Figure 3.
- Robustness: The method demonstrates effectiveness across different diffusion model architectures, generation tasks (pixel, latent, text-to-image), and datasets.
Limitations and Future Work
- Sensitivity to Noise Magnitude: While CIOP generally improves performance, excessive noise injection (
dinj) can degrade results. The paper suggests controlling this parameter is important. - Sensitivity to Probability: The probability of noise injection (
ps) also needs careful tuning. The paper found 80% to be optimal in their experiments, with higher probabilities potentially harming performance. - Future Work: The authors suggest that CIOP's compatibility with other methods opens avenues for further exploration in combining various enhancement techniques. They also highlight the potential for CIOP to be applied to other diffusion-based generative tasks beyond image generation.
Summary updated