SlideShare a Scribd company logo
Denoising MCMC for Accelerating
Diffusion-Based Generative Models
Beomsu Kim and Jong Chul Ye
Kim Jaechul Graduate School of AI
Korea Advanced Institute of Science and Technology (KAIST)
Bioimaging, Signal Processing, and Learning Lab (BiSPL)
The Fortieth International Conference on Machine Learning, 2023, Honolulu, Hawai’i
Diffusion Models
2
Image Source : Score-Based Generative Modeling through Stochastic Differential Equations, ICLR, 2021.
Diffusion Models
3
Diffusion Models
4
Denoising MCMC
5
Denoising MCMC
6
Denoising MCMC
7
𝑝 𝑥, 𝑡 ≔ 𝑝𝑡 𝑥 ⋅ 𝑝(𝑡)
𝑥𝑛, 𝑡𝑛 𝑛=1
𝑁
∼ 𝑝(𝑥, 𝑡) such that 𝑥𝑛 ∼ 𝑝𝑡𝑛
(𝑥)
Run reverse-S/ODE from t = 𝑡𝑛 to 0 for 𝑥𝑛
MCMC
Diffusion
Model
Denoising MCMC
8
𝑝 𝑥, 𝑡 ≔ 𝑝𝑡 𝑥 ⋅ 𝑝(𝑡)
𝑥𝑛, 𝑡𝑛 𝑛=1
𝑁
∼ 𝑝(𝑥, 𝑡) such that 𝑥𝑛 ∼ 𝑝𝑡𝑛
(𝑥)
Run reverse-S/ODE from t = 𝑡𝑛 to 0 for 𝑥𝑛
MCMC
Diffusion
Model
Gibbs Sampling
Denoising MCMC
9
Current MCMC iterate (𝑥𝑛, 𝑡𝑛)
𝑡𝑛+1 ∼ 𝑞𝜙(𝑡|𝑥𝑛+1)
Langevin
MCMC
Time
Classifier
𝑞𝜙(𝑡|𝑥)
𝑥𝑛+1 = 𝑥𝑛 + 𝜂 2 ⋅ 𝑠𝜃 𝑥𝑛, 𝑡𝑛 + 𝜂 ⋅ 𝜖 ∼ 𝑝(𝑥|𝑡𝑛)
Quantitative Results – CIFAR10
10
Quantitative Results – CelebA-256
11
Quantitative Results – SOTA
12
Qualitative Results – CelebA-256
13
Qualitative Results – FFHQ-1024
14
Conclusion
• Proposed DMCMC by combining MCMC with diffusion
• MCMC is used to find good initialization points near the
image manifold, leading to faster generation
• DMCMC successfully accelerated six reverse S/ODE
integrators on CIFAR10, CelebA-HQ-256, FFHQ-1024
• Achieved SOTA results in limited NFE setting
15

More Related Content

Similar to Denoising MCMC for Accelerating Diffusion-Based Generative Models

Dj31514517
Dj31514517Dj31514517
Dj31514517
IJMER
 
Dj31514517
Dj31514517Dj31514517
Dj31514517
IJMER
 
Possibility fuzzy c means clustering for expression invariant face recognition
Possibility fuzzy c means clustering for expression invariant face recognitionPossibility fuzzy c means clustering for expression invariant face recognition
Possibility fuzzy c means clustering for expression invariant face recognition
IJCI JOURNAL
 
Multi-scale 3D-convolutional neural network for hyperspectral image classific...
Multi-scale 3D-convolutional neural network for hyperspectral image classific...Multi-scale 3D-convolutional neural network for hyperspectral image classific...
Multi-scale 3D-convolutional neural network for hyperspectral image classific...
nooriasukmaningtyas
 
final year ieee pojects in pondicherry,bulk ieee projects ,bulk 2015-16 i...
  final  year ieee pojects in pondicherry,bulk ieee projects ,bulk  2015-16 i...  final  year ieee pojects in pondicherry,bulk ieee projects ,bulk  2015-16 i...
final year ieee pojects in pondicherry,bulk ieee projects ,bulk 2015-16 i...
nexgentech
 

Similar to Denoising MCMC for Accelerating Diffusion-Based Generative Models (20)

Tutorial on Deep Generative Models
 Tutorial on Deep Generative Models Tutorial on Deep Generative Models
Tutorial on Deep Generative Models
 
Machine Learning for Chemistry: Representing and Intervening
Machine Learning for Chemistry: Representing and InterveningMachine Learning for Chemistry: Representing and Intervening
Machine Learning for Chemistry: Representing and Intervening
 
A stochastic algorithm for solving the posterior inference problem in topic m...
A stochastic algorithm for solving the posterior inference problem in topic m...A stochastic algorithm for solving the posterior inference problem in topic m...
A stochastic algorithm for solving the posterior inference problem in topic m...
 
Dj31514517
Dj31514517Dj31514517
Dj31514517
 
Dj31514517
Dj31514517Dj31514517
Dj31514517
 
Distance Metric Learning tutorial at CVPR 2015
Distance Metric Learning tutorial at CVPR 2015Distance Metric Learning tutorial at CVPR 2015
Distance Metric Learning tutorial at CVPR 2015
 
Number of iterations needed in Monte Carlo Simulation using reliability analy...
Number of iterations needed in Monte Carlo Simulation using reliability analy...Number of iterations needed in Monte Carlo Simulation using reliability analy...
Number of iterations needed in Monte Carlo Simulation using reliability analy...
 
Possibility fuzzy c means clustering for expression invariant face recognition
Possibility fuzzy c means clustering for expression invariant face recognitionPossibility fuzzy c means clustering for expression invariant face recognition
Possibility fuzzy c means clustering for expression invariant face recognition
 
Multi-scale 3D-convolutional neural network for hyperspectral image classific...
Multi-scale 3D-convolutional neural network for hyperspectral image classific...Multi-scale 3D-convolutional neural network for hyperspectral image classific...
Multi-scale 3D-convolutional neural network for hyperspectral image classific...
 
Relevance Vector Machines for Earthquake Response Spectra
Relevance Vector Machines for Earthquake Response Spectra Relevance Vector Machines for Earthquake Response Spectra
Relevance Vector Machines for Earthquake Response Spectra
 
Relevance Vector Machines for Earthquake Response Spectra
Relevance Vector Machines for Earthquake Response Spectra Relevance Vector Machines for Earthquake Response Spectra
Relevance Vector Machines for Earthquake Response Spectra
 
www.ijerd.com
www.ijerd.comwww.ijerd.com
www.ijerd.com
 
PPT - Deep and Confident Prediction For Time Series at Uber
PPT - Deep and Confident Prediction For Time Series at UberPPT - Deep and Confident Prediction For Time Series at Uber
PPT - Deep and Confident Prediction For Time Series at Uber
 
MUMS: Transition & SPUQ Workshop - Stochastic Simulators: Issues, Methods, Un...
MUMS: Transition & SPUQ Workshop - Stochastic Simulators: Issues, Methods, Un...MUMS: Transition & SPUQ Workshop - Stochastic Simulators: Issues, Methods, Un...
MUMS: Transition & SPUQ Workshop - Stochastic Simulators: Issues, Methods, Un...
 
BULK IEEE PROJECTS IN MATLAB ,BULK IEEE PROJECTS, IEEE 2015-16 MATLAB PROJEC...
 BULK IEEE PROJECTS IN MATLAB ,BULK IEEE PROJECTS, IEEE 2015-16 MATLAB PROJEC... BULK IEEE PROJECTS IN MATLAB ,BULK IEEE PROJECTS, IEEE 2015-16 MATLAB PROJEC...
BULK IEEE PROJECTS IN MATLAB ,BULK IEEE PROJECTS, IEEE 2015-16 MATLAB PROJEC...
 
final year ieee pojects in pondicherry,bulk ieee projects ,bulk 2015-16 i...
  final  year ieee pojects in pondicherry,bulk ieee projects ,bulk  2015-16 i...  final  year ieee pojects in pondicherry,bulk ieee projects ,bulk  2015-16 i...
final year ieee pojects in pondicherry,bulk ieee projects ,bulk 2015-16 i...
 
Compressive stregnth of concerte using image processing ANM & ML
Compressive stregnth of concerte using image processing ANM & MLCompressive stregnth of concerte using image processing ANM & ML
Compressive stregnth of concerte using image processing ANM & ML
 
Conv xg
Conv xgConv xg
Conv xg
 
Compressed Sensing using Generative Model
Compressed Sensing using Generative ModelCompressed Sensing using Generative Model
Compressed Sensing using Generative Model
 
ADAPTIVE SEGMENTATION OF CELLS AND PARTICLES IN FLUORESCENT MICROSCOPE IMAGE
ADAPTIVE SEGMENTATION OF CELLS AND PARTICLES IN FLUORESCENT MICROSCOPE IMAGEADAPTIVE SEGMENTATION OF CELLS AND PARTICLES IN FLUORESCENT MICROSCOPE IMAGE
ADAPTIVE SEGMENTATION OF CELLS AND PARTICLES IN FLUORESCENT MICROSCOPE IMAGE
 

Recently uploaded

Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
Kamal Acharya
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DrGurudutt
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
Kamal Acharya
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
NO1 Pandit Black Magic Removal in Uk kala jadu Specialist kala jadu for Love ...
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
An improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technologyAn improvement in the safety of big data using blockchain technology
An improvement in the safety of big data using blockchain technology
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
Electrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission lineElectrostatic field in a coaxial transmission line
Electrostatic field in a coaxial transmission line
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationKIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
Soil Testing Instruments by aimil ltd.- California Bearing Ratio apparatus, c...
 
School management system project report.pdf
School management system project report.pdfSchool management system project report.pdf
School management system project report.pdf
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 

Denoising MCMC for Accelerating Diffusion-Based Generative Models

  • 1. Denoising MCMC for Accelerating Diffusion-Based Generative Models Beomsu Kim and Jong Chul Ye Kim Jaechul Graduate School of AI Korea Advanced Institute of Science and Technology (KAIST) Bioimaging, Signal Processing, and Learning Lab (BiSPL) The Fortieth International Conference on Machine Learning, 2023, Honolulu, Hawai’i
  • 2. Diffusion Models 2 Image Source : Score-Based Generative Modeling through Stochastic Differential Equations, ICLR, 2021.
  • 7. Denoising MCMC 7 𝑝 𝑥, 𝑡 ≔ 𝑝𝑡 𝑥 ⋅ 𝑝(𝑡) 𝑥𝑛, 𝑡𝑛 𝑛=1 𝑁 ∼ 𝑝(𝑥, 𝑡) such that 𝑥𝑛 ∼ 𝑝𝑡𝑛 (𝑥) Run reverse-S/ODE from t = 𝑡𝑛 to 0 for 𝑥𝑛 MCMC Diffusion Model
  • 8. Denoising MCMC 8 𝑝 𝑥, 𝑡 ≔ 𝑝𝑡 𝑥 ⋅ 𝑝(𝑡) 𝑥𝑛, 𝑡𝑛 𝑛=1 𝑁 ∼ 𝑝(𝑥, 𝑡) such that 𝑥𝑛 ∼ 𝑝𝑡𝑛 (𝑥) Run reverse-S/ODE from t = 𝑡𝑛 to 0 for 𝑥𝑛 MCMC Diffusion Model Gibbs Sampling
  • 9. Denoising MCMC 9 Current MCMC iterate (𝑥𝑛, 𝑡𝑛) 𝑡𝑛+1 ∼ 𝑞𝜙(𝑡|𝑥𝑛+1) Langevin MCMC Time Classifier 𝑞𝜙(𝑡|𝑥) 𝑥𝑛+1 = 𝑥𝑛 + 𝜂 2 ⋅ 𝑠𝜃 𝑥𝑛, 𝑡𝑛 + 𝜂 ⋅ 𝜖 ∼ 𝑝(𝑥|𝑡𝑛)
  • 11. Quantitative Results – CelebA-256 11
  • 13. Qualitative Results – CelebA-256 13
  • 14. Qualitative Results – FFHQ-1024 14
  • 15. Conclusion • Proposed DMCMC by combining MCMC with diffusion • MCMC is used to find good initialization points near the image manifold, leading to faster generation • DMCMC successfully accelerated six reverse S/ODE integrators on CIFAR10, CelebA-HQ-256, FFHQ-1024 • Achieved SOTA results in limited NFE setting 15

Editor's Notes

  1. Hello, my name is Beomsu Kim, and I will give an overview of our research on Denoising MCMC for Accelerating Diffusion-Based Generative Models.
  2. Diffusion model is a method for generating data from noise by solving a SDE or an ODE. Specifically, given a forward SDE which sends data to prior noise, there exists a reverse SDE/ODE. The reverse SDE or ODE can be solved numerically after learning the time-dependent score function by solving denoising score matching.
  3. However, Gaussian noise is generally far away from data. So, diffusion models usually need to integrate the reverse SDE or ODE over a long time interval to generate samples.
  4. So, when there is not enough computation budget, diffusion models tend to generate poor-quality samples, as shown in the current figure.
  5. Our method, Denoising MCMC, DMCMC in short, uses Markov Chain Monte Carlo to generate initialization points that are near the image manifold. Then, reverse SDE or ODE is applied to the initialization points to generate clean data.
  6. Since those initialization points lie near the image manifold, high-quality samples can be produced with little computation budget.
  7. To achieve this, we first define a joint distribution of noisy data x and diffusion time t, denoted p(x,t). Here, p(t) is a custom prior on diffusion time. Then, we use MCMC to generate samples from p(x,t). Finally, we use a diffusion model to denoise each x_n and obtain clean data.
  8. Here, to sample from p(x,t) we use Gibbs sampling.
  9. Specifically, suppose we currently have the MCMC iterate x_n, t_n. Then, x is updated via Langevin MCMC using the pre-trained score function. Next, t is updated with a diffusion time classifier, which predicts the diffusion time for a given sample.
  10. On CIFAR10, we verified whether DLG, a variant of DMCMC is able to accelerate diffusion sampling. The blue line denotes the performance of reverse-S/ODE sampler without DLG, and the orange line denotes the performance with DLG. We observed DLG was able to greatly accelerate all six samplers considered in this paper.
  11. We observed a similar trend on CelebA-HQ-256 as well. Dot denotes performance without DLG, cross denotes performance with DLG, and dotted line denotes performance improvement due to DLG.
  12. Surprisingly, DLG was able to achieve state-of-the-art performance in the limited NFE setting on CIFAR10.
  13. Qualitatively, we observed remarkable improvements in sample quality regardless of the reverse-S/ODE solver used.
  14. Qualitatively, we observed improvements on the FFHQ-1024 dataset as well. This demonstrates the scalability of DMCMC.