An analytic theory of creativity in convolutional diffusion models
Mason Kamb, Surya Ganguli
TL;DR
This work derives an analytic, interpretable theory of creativity in convolutional diffusion models by focusing on two fundamental inductive biases: locality and translational equivariance. The authors formulate three progressively expressive score machines—Equivariant Score (ES), Local Score (LS), and Equivariant Local Score (ELS)—and, with boundary considerations, show how these lead to locally consistent patch mosaics that generate novel images beyond memorized training examples. They prove convergence properties and validate the theory by case-by-case predictions against trained CNN diffusion models (ResNet/UNet) on MNIST, FashionMNIST, CIFAR10, and CelebA, achieving high $r^2$ values (e.g., medians around 0.9–0.96) and revealing the role of boundaries and attention in shaping outputs. The results illuminate a patch-mosaic mechanism of creativity, quantify the impact of locality, and provide a principled bridge to understanding attention-enabled diffusion models, with potential practical implications for interpretability and generation quality.
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. 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.
