An analytic theory of creativity in convolutional diffusion models

M. Kamb, Surya Ganguli
12/1/2024
128 citations
diffusion-flow

No official code found. Best implementation: Kambm/convolutional_diffusion (19 stars, Jupyter Notebook, MIT, last commit 2025-06-20). 2 more below.

Abstract

We obtain an analytic, interpretable and predictive theory of creativity in convolutional diffusion models. Indeed, score-matching diffusion models can generate highly original images that lie far from their training data.

Show full abstract

However, optimal score-matching theory suggests that these models should only be able to produce memorized training examples. To reconcile this theory-experiment gap, we identify two simple inductive biases, locality and equivariance, that: (1) induce a form of combinatorial creativity by preventing optimal score-matching; (2) result in fully analytic, completely mechanistically interpretable, local score (LS) and equivariant local score (ELS) machines that, (3) after calibrating a single time-dependent hyperparameter can quantitatively predict the outputs of trained convolution only diffusion models (like ResNets and UNets) with high accuracy (median $r^2$ of $0.95, 0.94, 0.94, 0.96$ for our top model on CIFAR10, FashionMNIST, MNIST, and CelebA). Our model reveals a locally consistent patch mosaic mechanism of creativity, in which diffusion models create exponentially many novel images by mixing and matching different local training set patches at different scales and image locations. Our theory also partially predicts the outputs of pre-trained self-attention enabled UNets (median $r^2 \sim 0.77$ on CIFAR10), revealing an intriguing role for attention in carving out semantic coherence from local patch mosaics.

View on arXivView PDF

Code Implementations(3)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
Kambm/convolutional_diffusionCommunity19Jupyter NotebookMIT2025-06-20
Lee-Gyubin/Creativity-in-Convolutional-Diffusion-ModelCommunity1Python–2025-02-12
Studcamp-SPbU/els-patch-diffusionCommunity1PythonMIT2025-11-28
MIT

Code for https://arxiv.org/abs/2412.20292

192Jupyter Notebook, PythonFeb 3, 20251 years agoMIT

Simple implementation of Binary Black&White 2D image in "An analytic theory of creativity in convolutional diffusion models" paper with Feynman-Kac Diffusion Steering(Sequential Monte Carlo) Sampling

10PythonFeb 12, 20251 years ago
MIT

Els code for https://arxiv.org/abs/2412.20292

10PythonNov 19, 20251 years agoMIT

Similar Papers

Cite this paper

@article{kamb2024analytic,
  title  = {An analytic theory of creativity in convolutional diffusion models},
  author = {M. Kamb and Surya Ganguli},
  year   = {2024},
  eprint = {2412.20292},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2412.20292},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.20292.svg)](https://codeofpaper.com/paper/2412.20292)

Discussion