Kaist cs492d Fall 2024 Lecture 6
Kaist cs492d Fall 2024 Lecture 6
Applications
Denoising Diffusion Implicit Models 2 /
Classifier-Free Guidance
LECTURE 6
MINHYUK SUNG
Fall 2024
KAIST
'! #"&
'!"# & !"# )!
'
2. Compute 𝜇5 = 𝒙! + 𝒙$|! .
#"&'! #"&
'!
3. Sample 𝒛! ~𝒩 𝟎, 𝐈 .
#"&
'!"#
4. Compute 𝒙!"# = 𝜇5 + 𝛽! 𝒛! .
#"&
'!
& ! 𝒙$|!
𝒙! " '
2. Compute 𝜇5 = 𝛼*!"#𝒙$|! + 1 − 𝛼*!"# − 𝜎!+ ; .
#"&
'!
3. Sample 𝒛! ~𝒩 𝟎, 𝐈 .
4. Compute 𝒙!"# = 𝜇5 + 𝜎! 𝒛! .
2. Sample 𝒛! ~𝒩 𝟎, 𝐈 .
#"&
'!"#
3. Compute 𝒙!"# = 𝜇5 + #"&
'!
𝛽! 𝒛! .
% !"#
$#&
Let 𝜎! = 𝜂 𝛽! .
$#%
&!
• 𝜂 = 0: Deterministic process.
For the same 𝒙 ' ~𝒩 𝟎, 𝐈 , we always obtain the same 𝒙( .
• 𝜂 = 1: Same as DDPM.
𝑝* 𝒙+ = 𝑝 𝐱 ' : 𝑝* 𝐱 +$"# |𝐱 +$
!,$
Dog
𝛆> * 𝒙! , 𝑡 → 𝛆> * 𝒙! , 𝑦, 𝑡
𝛆! * 𝒙! , 𝑦, 𝑡 = 1 + 𝜔 𝛆> * 𝒙! , 𝑦, 𝑡 − 𝜔>𝛆* 𝒙! , 𝜙, 𝑡
where 𝜔 ≥ 0.
𝛆! * 𝒙! , 𝑦, 𝑡 = 1 + 𝜔 𝛆> * 𝒙! , 𝑦, 𝑡 − 𝜔>𝛆* 𝒙! , 𝜙, 𝑡
where 𝜔 ≥ 0.
• (+) Versatile; can be used not only for labels but also for
any additional information (e.g., text descriptions).
Wildlife
Cat
Dog