← Back to feed

What are Diffusion Models?

L5 · ResearcherTutorials & GuidesLilian Weng's Blog· 7/11/2021

Essential reference for ML researchers and engineers building or understanding generative models; provides rigorous mathematical foundations and connects diffusion theory to modern architectures like Stable Diffusion.

AI Summary

A comprehensive technical deep-dive into diffusion models, covering forward and reverse diffusion processes, mathematical parameterizations, conditioning techniques (classifier-guided and classifier-free), and optimization methods. This is Lilian Weng's seminal explainer that bridges foundational theory (stochastic gradient Langevin dynamics, score networks) with practical implementations and recent advances like latent diffusion and consistency models.

Excerpt

[Updated on 2021-09-19: Highly recommend this blog post on score-based generative modeling by Yang Song (author of several key papers in the references)]. [Updated on 2022-08-27: Added classifier-free guidance, GLIDE, unCLIP and Imagen. [Updated on 2022-08-31: Added latent diffusion model. [Updated on 2024-04-13: Added progressive distillation, consistency models, and the Model Architecture section.

Read Original
0 upvotes · 0 downvotes · 1 min read

Related Articles

L3 · BuilderTutorials & GuidesHacker News
AI Engineer Notebooks – free, framework-free RAG/agents/evals on Colab

Free Colab notebooks teach framework-free AI engineering skills including RAG, agents, evals, and tool calling using Groq API.

L4 · DeveloperTutorials & GuidesHacker News
OpenAI: Migrating to HTTPX2

OpenAI's Python SDK now uses HTTPX2 instead of HTTPX, requiring developers to handle TLS certificate changes and custom HTTP client configurations.

L4 · DeveloperTutorials & GuidesHugging Face Blog
Training and Finetuning Multi-Vector Embedding Models with Sentence Transformers

Sentence Transformers v6.0 introduces a new MultiVectorEncoder model type, with a detailed guide for finetuning or training from scratch for late-interaction/ColBERT-style retrieval.

L3 · BuilderTutorials & GuidesTowards Data Science
Why Claude Code Time Estimates Are Poor

Claude Code provides inaccurate time estimates for engineering tasks due to training on human data, but this article explains how to improve estimates for better team communication.

L3 · BuilderTutorials & GuidesTowards Data Science
Connecting My LangGraph AI Agent to Postgres

Shows how to connect a LangGraph AI agent to Postgres for persistent state management and database operations in a customer service booking system.