SlideShare a Scribd company logo
Denoising Diffusion Probabilistic Models
Diffusion probabilistic models
Explanation of the Math Behind Stable Diffusion (DDPMs)
Background
• Full Latent Variables Model
• We want to model a probability distribution pθ(x0) over data points x0.
• Where XT are latents of the same dimensionality as the data X0 q(X0)
• ) is reverse process defined by Markov Chain with Learned Gaussian
Transitions started at
• Make data pure Gaussian noise with mean 0 and covariance identity
matrix (equal noise in all directions)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Equation describes the training objective for diffusion models, which is based on the variational bound
(ELBO: Evidence Lower Bound) on the negative log-likelihood of the data.
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Image Data Scaling
•Original Image Data: The image pixels are represented as integer values in the range {0, 1, ..., 255}.
•Scaled Data Representation: These pixel values are linearly scaled to [-1,1] using:
Why Scale to [-1,1]? Ensures that the input distribution to the neural network remains consistent.
•Helps in better training stability and convergence.
•Standardizes input for the reverse process.
Standard Normal Prior in Reverse Process
•The reverse process begins with a standard normal prior p(xT), meaning that at the final step of the
forward diffusion, the image data follows a normal distribution:
• The goal of the reverse process (decoder) is to gradually denoise this distribution and reconstruct the original
data.
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)
Explanation of the Math Behind Stable Diffusion (DDPMs)

More Related Content

PPTX
02 image processing
PDF
ARTIFICIAL-NEURAL-NETWORKMACHINELEARNING
PPTX
HistoSketch: Fast Similarity-Preserving Sketching of Streaming Histograms wit...
PPTX
Neural networks
PPTX
Machine learning interviews day4
PPTX
Machine Learning and Deep learning algorithms
PPTX
Fundamentals of Data Science Probability Distributions
PPTX
evidential-deep-learning-research-project.pptx
02 image processing
ARTIFICIAL-NEURAL-NETWORKMACHINELEARNING
HistoSketch: Fast Similarity-Preserving Sketching of Streaming Histograms wit...
Neural networks
Machine learning interviews day4
Machine Learning and Deep learning algorithms
Fundamentals of Data Science Probability Distributions
evidential-deep-learning-research-project.pptx

Similar to Explanation of the Math Behind Stable Diffusion (DDPMs) (20)

PPT
Neural Network in Depth presentation ,which provides in depth knowledge on n...
PPTX
W5_CLASSIFICATION.pptxW5_CLASSIFICATION.pptx
PPTX
lecture_3_2.pptx, Classification and prediction
PPTX
Supervised Learning.pptx
PPTX
ANN presentation explaination and architecture.pptx
KEY
PDF
Convolutional Neural Networks (DLAI D5L1 2017 UPC Deep Learning for Artificia...
PPTX
Supervised learning for IOT IN Vellore Institute of Technology
PPTX
Machine learning
PPTX
StatBasicsRefffffffffffffffffffffffffffffffffffffffffv2.pptx
PDF
Chris Dyer - 2017 - Neural MT Workshop Invited Talk: The Neural Noisy Channel...
PPT
huffman Codes + Programming 5TH (part1).ppt
PPT
huffman Codes +5TH Programming (part1).ppt
PDF
Sparse codes for natural images
PPTX
Neural networks and deep learning
PDF
PDF
Data mining knowledge representation Notes
PDF
Deep Generative Models I (DLAI D9L2 2017 UPC Deep Learning for Artificial Int...
PDF
Designing Test Collections for Comparing Many Systems
PDF
20200428135045cfbc718e2c.pdf
Neural Network in Depth presentation ,which provides in depth knowledge on n...
W5_CLASSIFICATION.pptxW5_CLASSIFICATION.pptx
lecture_3_2.pptx, Classification and prediction
Supervised Learning.pptx
ANN presentation explaination and architecture.pptx
Convolutional Neural Networks (DLAI D5L1 2017 UPC Deep Learning for Artificia...
Supervised learning for IOT IN Vellore Institute of Technology
Machine learning
StatBasicsRefffffffffffffffffffffffffffffffffffffffffv2.pptx
Chris Dyer - 2017 - Neural MT Workshop Invited Talk: The Neural Noisy Channel...
huffman Codes + Programming 5TH (part1).ppt
huffman Codes +5TH Programming (part1).ppt
Sparse codes for natural images
Neural networks and deep learning
Data mining knowledge representation Notes
Deep Generative Models I (DLAI D9L2 2017 UPC Deep Learning for Artificial Int...
Designing Test Collections for Comparing Many Systems
20200428135045cfbc718e2c.pdf
Ad

Recently uploaded (20)

PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
PPT on Performance Review to get promotions
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
composite construction of structures.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Welding lecture in detail for understanding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Embodied AI: Ushering in the Next Era of Intelligent Systems
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Internet of Things (IOT) - A guide to understanding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Sustainable Sites - Green Building Construction
Structs to JSON How Go Powers REST APIs.pdf
CH1 Production IntroductoryConcepts.pptx
PPT on Performance Review to get promotions
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
composite construction of structures.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Welding lecture in detail for understanding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Ad

Explanation of the Math Behind Stable Diffusion (DDPMs)

  • 4. Background • Full Latent Variables Model • We want to model a probability distribution pθ(x0) over data points x0. • Where XT are latents of the same dimensionality as the data X0 q(X0) • ) is reverse process defined by Markov Chain with Learned Gaussian Transitions started at • Make data pure Gaussian noise with mean 0 and covariance identity matrix (equal noise in all directions)
  • 12. Equation describes the training objective for diffusion models, which is based on the variational bound (ELBO: Evidence Lower Bound) on the negative log-likelihood of the data.
  • 27. Image Data Scaling •Original Image Data: The image pixels are represented as integer values in the range {0, 1, ..., 255}. •Scaled Data Representation: These pixel values are linearly scaled to [-1,1] using: Why Scale to [-1,1]? Ensures that the input distribution to the neural network remains consistent. •Helps in better training stability and convergence. •Standardizes input for the reverse process. Standard Normal Prior in Reverse Process •The reverse process begins with a standard normal prior p(xT), meaning that at the final step of the forward diffusion, the image data follows a normal distribution: • The goal of the reverse process (decoder) is to gradually denoise this distribution and reconstruct the original data.