Blog posts

2023

Diffusion Models From Scratch

In the ever-evolving landscape of artificial intelligence and machine learning, a new class of generative models has emerged, captivating researchers and practitioners alike: Diffusion Models. These powerful algorithms have taken the AI world by storm, producing results that push the boundaries of what we thought possible in computer-generated content. Diffusion Models represent a paradigm shift in how we approach generative tasks. Unlike their predecessors, such as Generative Adversarial Networks (GANs) or Variational Autoencoders (VAEs), Diffusion Models draw inspiration from thermodynamics and stochastic processes to create a unique approach to content generation. At their core, Diffusion Models work by gradually adding noise to data and then learning to reverse this process. In this blog post, we’ll embark on a journey to understand Diffusion Models from the ground up. We’ll explore the underlying principles, dive into the mathematics that makes them work, and even implement a simple version to see these fascinating models in action. Let’s begin our journey into the world of Diffusion Models!