Beta-Tuned Timestep Diffusion Model

Tianyi Zheng, Peng-Tao Jiang, Ben Wan, Hao Zhang, Jinwei Chen, Jia Wang, Bo Li

Abstract

Standard diffusion models typically employ uniform timestep sampling during training, assuming equal importance across all stages of the noise-adding process. We present the Beta-Tuned Timestep Diffusion Model (B-TTDM), which replaces uniform sampling with a Beta distribution. By prioritizing training on the initial stages where the most significant distribution changes occur, B-TTDM achieves superior image quality and up to a 4.7x training speedup.

Introduction

In Denoising Diffusion Probabilistic Models (DDPM), the training objective involves learning to reverse a forward diffusion process that incrementally adds noise to data. Conventional training regimes sample timesteps $t$ uniformly, implying that every step of the noise-adding process contributes equally to the learning signal. However, empirical evidence suggests that the "signal" disappears most rapidly at the very beginning of the forward process.

PSNR and LPIPS metrics over diffusion timesteps.

As shown in the figure above, metrics like Peak Signal-to-Noise Ratio (PSNR) drop sharply in the early timesteps, while perceptual distance (LPIPS) increases rapidly. This indicates that the most "violent" changes to image structure happen right at the start, making these early transitions critical for the model to master.

Methodology

The core innovation of B-TTDM is the shift from uniform sampling to Beta Distribution Sampling.

Theoretical Grounding

Using the Fokker-Planck equation, the authors demonstrate that as the timestep $t$ approaches zero, the rate of change in the probability distribution becomes unbounded. This theoretical insight confirms that the early stages of diffusion are the most informative and difficult to learn.

The Beta Distribution

To align training density with this discovery, timesteps $t$ are sampled using a Beta distribution $f(t; \alpha, \beta)$. By selecting parameters such as $\alpha < 1$ and $\beta = 1$, the sampling density forms a "reverse J-shape," focusing the model's attention on low-noise stages.

Probability Density Functions (PDF) for various Beta distribution parameters.

The figure above illustrates how different $\alpha$ and $\beta$ values affect the sampling probability across the diffusion steps. B-TTDM typically utilizes configurations that favor the early steps (e.g., $\alpha=0.5, \beta=0.5$ or $\alpha < 1, \beta=1$).

Implementation Details

To ensure numerical stability at $t=0$, a tuning step caps the sampling weight at the first position ($1/T$). Notably, B-TTDM modifies the sampling strategy rather than the loss function, making it a "plug-and-play" enhancement compatible with other techniques like Min-SNR or P2-Weight.

Results and Discussion

B-TTDM was evaluated across various resolutions using benchmarks such as CIFAR-10, ImageNet, CelebA, and FFHQ.

Performance and Efficiency

  • Quality Improvement: On the FFHQ dataset, B-TTDM improved the Frechet Inception Distance (FID) by 3.79 points over the baseline DDPM.
  • Training Speedup: B-TTDM reached baseline quality levels in significantly fewer iterations—achieving a 4.71x speedup on ImageNet and a 3.33x speedup on AFHQ-D.
  • Synergy: Combining B-TTDM with DDPM-IP yielded state-of-the-art results, such as an FID of 2.46 on CIFAR-10.

Qualitative Observations

Beyond quantitative metrics, B-TTDM mitigates common color biases found in standard DDPM outputs. Reconstruction tests also show that B-TTDM-trained models recover images from noise with higher fidelity to the ground truth.

Conclusion

B-TTDM demonstrates that efficient training is not just about the volume of data, but about the strategic allocation of training effort. By focusing on the mathematically "hardest" parts of the diffusion process via Beta-distributed sampling, models can be trained faster and to a higher standard of quality. Future work includes exploring applications in latent space diffusion models and automated hyperparameter tuning for $\alpha$ and $\beta$.

Summary updated

BibTeX
@inproceedings{zheng2024beta,
  author = {Tianyi Zheng and Peng-Tao Jiang and Ben Wan and Hao Zhang and Jinwei Chen and Jia Wang and Bo Li},
  title = {{Beta-Tuned Timestep Diffusion Model}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72646-0\_7},
}
Figure