S2-DMs: Skip-Step Diffusion Models

Yixuan Wang, Shuangyin Li · DOI

Abstract

Skip-Step Diffusion Models ($S^2$-DMs) address the "asymmetry" in modern diffusion models, where models are trained on every step but sampled using accelerated "skip-step" methods like DDIM. By introducing a novel training objective called $L_{skip}$, the authors force the model to anticipate these jumps during training. This leads to significant improvements in image quality—up to 27% better FID scores—with minimal computational overhead and no changes to the sampling algorithm.

The Asymmetric Diffusion Problem

Diffusion models have become the gold standard for generative AI, but they suffer from a major bottleneck: sampling speed. Standard Denoising Diffusion Probabilistic Models (DDPMs) require hundreds or thousands of steps to generate a single image. To fix this, researchers developed accelerated samplers like Denoising Diffusion Implicit Models (DDIMs), which "skip" steps to generate images in a fraction of the time.

However, this creates a fundamental discrepancy. The model is trained to predict the noise for a single, tiny step ($t$ to $t-1$), but during fast sampling, it is asked to predict the noise for a much larger jump ($t$ to $t-skip$). The authors call this the "asymmetric diffusion model" problem. Because the model was never trained to handle these large gaps, the resulting image quality often degrades as you reduce the number of sampling steps.

Methodology: Skip-Step Loss

The core innovation of $S^2$-DMs is the Skip-Step Loss ($L_{skip}$). Instead of just training the model to predict noise at the current step, the authors introduce a loss function that encourages the model to predict a result that aligns with the "skipped" destination.

Comparison of standard sampling vs. S2-DMs training objective.

The total loss is a weighted combination: $L = \tau L_0 + (1 - \tau) L_{skip}$, where $L_0$ is the standard denoising loss and $\tau$ is a tuning parameter. This coordinated training ensures the model learns to make its current step prediction ($p_\theta(x_{t-1}|x_t)$) as close as possible to the target it would encounter after a skip ($q(x_t|x_{t-1})$). Remarkably, this method is "plug-and-play," requiring only minor code modifications during training and zero changes to existing sampling algorithms like DDIM, PNDM, or DEIS.

Experimental Results

The authors evaluated $S^2$-DMs on CIFAR10 ($32 \times 32$) and CelebA ($64 \times 64$) benchmarks. Models were trained for up to 600K steps on NVIDIA A100 GPUs.

Performance Gains

Using the Fréchet Inception Distance (FID) to measure image quality (lower is better), the researchers found:

  • CIFAR10: Improvements ranging from 3.27% to 14.06% across different samplers. For example, using DDIM with 10 steps, the FID dropped from 12.98 to 11.38.
  • CelebA: Gains between 8.97% and 27.08%. At 1000 steps, the FID improved from 4.23 to 3.13.
FID scores across different sampling steps for various skip configurations.

Efficiency and Robustness

Training time increased only slightly (e.g., from 0.0025s to 0.0031s per iteration on CIFAR10), and memory usage remained virtually identical. Furthermore, because the improvement is baked into the model weights, the benefits persist across different sampling algorithms, suggesting that $S^2$-DMs learn a more fundamental representation of the data manifold.

Key Insights

  • Bridging the Training-Inference Gap: The performance drop in fast diffusion isn't just a sampling problem—it's a training problem. By making the training process "aware" of the sampling strategy, you regain lost information.
  • Regularization-like Effect: The authors note that $L_{skip}$ acts similarly to a regularization term, guiding the model's trajectory more effectively and preventing it from drifting during the generation process.
  • Symmetry is Key: The best results occur when the training "skip" interval matches or nears the sampling interval, a state the authors call "coordinated" training.

Limitations and Future Work

The method introduces new hyperparameters ($\tau$ and the $skip$ value) that may require tuning depending on the target number of sampling steps. While training overhead is minimal, it is non-zero. Future work includes integrating skip-step information into Ordinary Differential Equation (ODE) solvers and investigating the method's effectiveness in non-continuous generative spaces. The authors also noted that $S^2$-DMs helped avoid "gradient explosion" issues that occurred when training standard DDIMs on CelebA with mixed-precision, a phenomenon they plan to investigate further.

Summary updated

BibTeX
@misc{wang2024s,
  author = {Yixuan Wang and Shuangyin Li},
  title = {{S2-DMs: Skip-Step Diffusion Models}},
  year = {2024},
  eprint = {2401.01520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.01520},
}
Figure