Back to search

Nanyang Technological University

Efficient training and sampling of diffusion-based generative models

Abstract

dc:description.abstract

The recent surge of AI generative models has led to significant breakthroughs in content creation, particularly with diffusion-based models such as diffusion models and rectified flow models (a.k.a. flow matching models). However, these models suffer from limitations in training efficiency, sampling speed, gradient consistency, and others. This thesis proposes a suite of three methods that tries to address these challenges from complementary perspectives. First, we improved the training efficiency of diffusion-based models. Recent studies have shown that different diffusion methods and architectures trained on the same dataset tend to produce similar results for the same input noise. This observation suggests that certain noise inputs consistently guide the models to generate a specific sample. Those noise inputs are referred to as ``preferable noise'' for that sample. By visualizing the noise-sample pairs of rectified flow models and stable diffusion models in two-dimensional spaces, it is observed that the preferable paths, connecting preferable noises to the corresponding samples, are better organized with significantly fewer crossings compared with the random paths, connecting random noises to training samples. The path crossings in two-dimensional spaces indicate a shorter inter-path distance in the corresponding high-dimensional spaces. Inspired by this observation, this study proposes the Distance-Aware Noise-Sample Matching (DANSM) method to lengthen the inter-path distance for speeding up the model training. DANSM is derived from rectified flow models which use a closed-form formula to calculate the inter-path distance. To further simplify the optimization, this study derives the relationship between inter-path distance and path length, and use the latter in the optimization surrogate. DANSM is evaluated on both image and latent spaces by rectified flow models and diffusion models. The experimental results show that DANSM can significantly improve the training speed by 30% ~ 40% without sacrificing the generation quality. Second, we enhanced the sampling quality of diffusion models. Diffusion models have become emergent generative models. Their sampling process involves multiple steps, and in each step the models predict the noise from a noisy sample. When the models make prediction, the output deviates from the ground truth, and such a deviation is referred to as prediction error. The prediction error accumulates over the sampling process and deteriorates generation quality. This study introduces a novel technique for statistically measuring the prediction error and proposes the Variance-Reduction Guidance (VRG) method to mitigate this error. VRG does not require model fine-tuning or modification. Given a predefined sampling trajectory, it searches for a new trajectory which has the same number of sampling steps but produces higher quality results. VRG is applicable to both conditional and unconditional generation. Experiments on various datasets and baselines demonstrate that VRG can significantly improve the generation quality of diffusion models. Third, we optimized the training process of rectified flow models for few-step generation. Compared with diffusion models, rectified flow models have a different design suitable for few-step generation. However, existing rectified flow models overlook the consistency of predicted gradients across different timesteps. In this study, it aims to improve gradient consistency and elevate few-step generation quality. In each training iteration, the proposed approach makes two predictions at different timesteps, and incorporates an additional regularizer to reconcile the two predictions. The regularizer enhances gradient consistency and overall generation quality. Experimental evaluations across multiple datasets demonstrate that this approach significantly improves few-step generation of rectified flow models. Together, these contributions advance the understanding and practicality of generative models. By improving training dynamics, refining sampling trajectories, and stabilizing gradient prediction, this thesis paves the way for more efficient and robust generative systems in both academic and real-world applications.

Degree

thesis:*
College dc:contributor.school
College of Computing and Data Science
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Xu, Shifeng
Advisor dc:contributor.supervisor
  • Kong Wai-Kin Adams

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
Language dc:language.iso
en

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-28
Source record
OAI-PMH GetRecord
citation

Xu, Shifeng. Efficient training and sampling of diffusion-based generative models. Nanyang Technological University, 2025. https://doi.org/10.32657/10356/210465