Diffusion models have emerged as a leading framework for generative modeling, yet their mathematical foundations are often presented in separate treatments. This tutorial offers a unified, self-contained introduction organized into three parts. First, we construct a forward generative stochastic differential equation (SDE) that transports noise to data, marginalize over the clean data endpoint, and derive training objectives directly from the forward dynamics. Second, we begin with a conditional path from data to noise, marginalize it to obtain the forward process, and derive the corresponding reverse-time SDE and training objectives. Within this forward-reverse framework, we also establish the connection between denoising diffusion probabilistic models (DDPMs) and variance-preserving (VP) SDEs. Third, we review numerical methods for solving SDEs and discuss two approaches to guided generation: classifier guidance and classifier-free guidance.
翻译:暂无翻译