https://wezteoh.github.io/posts/understanding-diffusion-through-vae/
Understanding diffusion through VAE