Dynamic Dual-Output Diffusion Models

Yaniv Benny, Lior Wolf

Introduction

Diffusion models have revolutionized generative AI, enabling the creation of high-fidelity images by iteratively denoising a signal. However, these models typically rely on a fixed prediction target—either the added noise ($\epsilon$) or the original image ($x_0$). This paper introduces Dynamic Dual-Output Diffusion Models, which utilize a learned, time-dependent "gate" to interpolate between these two targets. This architectural refinement addresses the inherent instabilities of standard diffusion paths, particularly when generating images in low-iteration regimes (5–20 steps).

The Tug-of-War: Noise vs. Image Prediction

Standard $\epsilon$-prediction models encounter a mathematical "tug-of-war." At high noise levels (early in the generation process), small errors in noise estimation are significantly amplified because the reconstruction formula involves dividing by a term that approaches zero. Conversely, $x_0$-prediction is stable at the start but struggles during the final refinement stages, as it lacks the fine-grained adjustment capability of the noise path.

Analysis of $x_0$ variance and mean over timesteps for noise ($\epsilon_\theta$) and image ($x_\theta$) prediction paths.

As illustrated in Figure 1, the variance of the $\epsilon_\theta$ path spikes dramatically as the process approaches the final steps (high noise), while the $x_\theta$ path maintains lower variance but exhibits a mean shift relative to real data. This discrepancy highlights the need for a mechanism that leverages the strengths of both paths at different stages of the denoising trajectory.

Methodology: Dynamic Interpolation and Training Stability

The authors propose a Dual-Output U-Net architecture featuring three distinct output heads: $\epsilon_\theta$ (noise prediction), $x_\theta$ (image prediction), and $r_\theta$ (a learned interpolation parameter). At each timestep $t$, the model calculates the next state mean ($\mu_\theta$) by blending the two paths: $$\mu_\theta = r_\theta \cdot \mu_x(x_\theta) + (1 - r_\theta) \cdot \mu_\epsilon(\epsilon_\theta)$$

To ensure the model learns effectively, a composite loss function is employed. A critical component of this training regime is the "stop-grad" technique applied during the calculation of the blended loss. This prevents the complex gradients of the interpolation gate from destabilizing the individual noise and image predictors.

Loss curves for $\mu$, $\epsilon_t$, and $x_0$ across timesteps.

Figure 3 demonstrates the loss behavior across different components. The model learns to optimize the transition between paths, often favoring the image path early on and switching to the noise path for final details. This dataset-specific logic allows the model to adapt to different image distributions, such as the sharp transitions required for CIFAR10 versus the more gradual blending needed for CelebA faces.

Key Results and Empirical Insights

The model was benchmarked on CIFAR10, CelebA, and ImageNet, showing significant gains in Fréchet Inception Distance (FID):

  • Efficiency at Low Steps: On CIFAR10 with 10 sampling steps, the Dual-Output model achieved an FID of 11.68, compared to 18.57 for the standard DDIM baseline.
  • Human Preference: In a user study on ImageNet, participants preferred images from the Dual-Output model 78% of the time over single-path alternatives.
  • Minimal Overhead: The modification adds a negligible number of parameters, making it a "plug-and-play" structural improvement for existing diffusion pipelines.

Conclusion

Dynamic Dual-Output Diffusion Models provide a robust solution to the stability issues inherent in single-target diffusion. By dynamically gating between noise and image predictions, the architecture achieves state-of-the-art performance in fast sampling scenarios with negligible computational overhead. This structural improvement is highly compatible with existing diffusion frameworks and samplers, offering a more efficient path toward high-quality image generation.

Summary updated

BibTeX
@inproceedings{benny2022dynamic,
  author = {Yaniv Benny and Lior Wolf},
  title = {{Dynamic Dual-Output Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure