Model design, implementation, and quantitative evaluation of DDPM for image generation
Abstract
This paper designs and implements a complete denoising diffusion probabilistic model (DDPM) for 32×32 CIFAR-10 image generation. The whole framework consists of forward noise addition, reverse denoising and U-Net noise prediction modules. A linear β scheduling strategy is adopted for the forward diffusion process to realize stable gradual noise injection. The symmetric U-Net network embedded with time embedding and multi-head attention is constructed to predict Gaussian noise in each time step, and MSE loss is utilized to optimize network parameters. Adam optimizer combined with Dropout regularization and early stopping strategy is applied to suppress overfitting during training. After full training, Inception Score (IS), Fréchet Inception Distance (FID) and Kernel Inception Distance (KID) are adopted as quantitative evaluation metrics. Experimental results show that the trained DDPM achieves IS=3.496, FID=38.2 and KID=0.023 on CIFAR-10 dataset. Generated images possess complete object contours, rich texture details and sufficient category diversity, which verifies the rationality of the proposed model architecture and training optimization scheme. This work provides a complete open-source implementation paradigm for lightweight diffusion image generation tasks on small-size datasets.