An exact information theory of generalization phase transitions in Bayesian diffusion models

Henry S. Hunt, Mason Kamb, Surya GanguliNeurIPS 2026

TL;DR

Why don’t diffusion models simply memorize their training sets, given the astronomical dimensionality of image spaces? By modeling pixels as nearsighted detectives playing a Bayesian guessing game, the authors uncover an exact information-theoretic phase transition between memorization and generalization. It turns out that restricting what a model can see is the secret weapon generative AI uses to defeat the curse of dimensionality.

What Problem Does This Paper Address?

If you train two diffusion models on completely separate subsets of faces and feed them the exact same random noise, they will often generate nearly identical, brand-new faces. They generalize consistently.

Mathematically, this shouldn't happen. Because of the curse of dimensionality, learning a smooth probability distribution in a space of thousands of pixels should require an amount of training data exponential in the number of pixels. In fact, if you write down the mathematically "ideal" diffusion denoiser (the empirical score function) for a finite dataset, it fails spectacularly: as noise clears up, it locks onto the single closest training image and reproduces it verbatim.

Real neural networks avoid this trap because of inductive biases—limitations in their architecture or training dynamics that prevent them from learning that "ideal" memorizing function. While prior theories analyzed simplified linear models or small CNNs, a precise, nonlinear theory predicting when and why expressive diffusion models transition from memorizing to generalizing on real datasets remained an open mystery.

Methods

To crack this, the authors introduce Bayesian Information Restricted Diffusion (BIRD) models—an analytically tractable theoretical laboratory that requires no neural network weights or training dynamics.

Imagine every pixel in a noisy image as an independent agent playing a Bayesian guessing game. If a pixel can see the entire noisy image, guessing which training image produced it is trivial, leading to memorization. Instead, BIRD puts blinders on each pixel: at reverse-diffusion time $t$, pixel $x$ only sees a restricted observation $\mathcal{C}_{x,t}$ (for instance, a small local $L \times L$ patch of surrounding pixels, though the math holds for arbitrary feature projections).

Figure 1: A schematic figure showing different transitions from memorizing to generalizing phases in BIRD models. (a) A depiction of the Bayesian guessing game performed by a pixel as it assigns posterior probabilities to training set images. The forward process starts with a training image of a cat, adds noise to it, then the pixel observes a local patch (e.g. the eye). Based on this restricted observation, the pixel must guess whether this noisy patch was generated from the truck or the cat. The pixel memorizes if the posterior concentrates on the cat. (b) The phase diagram of the gener- alization/memorization transition for a BIRD model. Consider the blue point in the memorization phase (top phase diagram). Increased noise (pink arrow) and decreased observation capacity (blue arrow) each increase posterior entropy, making Bayesian guessing harder, and drive a transition from memorization to generalization. Also, increased dataset size (yellow arrow) can shift the phase transition boundary, and increase posterior entropy, so the original location (blue) dot is now in the generalization phase (bottom phase diagram). (c) In each of the 4 plots, red indicates the distribution of a noised training set, the green x indicates a particular observed image, and the blue bars depict the posterior distribution over the training data conditioned on the observed image. The upper left plot corresponds to the blue point in the top phase diagram of panel b. The posterior concentrates on a single training point and so it is in the memorization phase. The 3 colored arrows again correspond to the 3 distinct ways one can increase posterior entropy and transition to the generalizing phase as in panel (b): by increasing noise (pink), by decreasing observation capacity (by projecting out a dimension) (blue), or by increasing the amount of training data (yellow).

Using Bayes' rule over the finite training set $\mathcal{D}$, each pixel computes a posterior probability distribution over which training sample generated its restricted patch, and denoises itself toward the weighted average. Because different pixels see different patches, one pixel might borrow an eye from a cat in the training set while another borrows fur from a dog, stitching together novel, generalized images.

Datasets

The authors test their theoretical predictions and neural network comparisons across both synthetic benchmarks and standard image datasets:

  • Standard Benchmarks: MNIST, FashionMNIST, CIFAR10, CelebA32, and CelebA64 (along with grayscale variants BWCIFAR10 and BWCelebA32).
  • Synthetic Distributions: Translationally invariant Gaussian data with a power-law spectrum (mimicking natural image statistics) and an isotropic hierarchical mixture of Gaussians.

Key Insights and Ideas

  • An Exact Phase Transition: A BIRD model memorizes when the mutual information $I(\varphi; \mathcal{C}_{x,t})$ between the true clean data $\varphi$ and the restricted noisy observation exceeds $\ln |\mathcal{D}|$ (the log size of the training set). When $I(\varphi; \mathcal{C}_{x,t}) < \ln |\mathcal{D}|$, the pixel can't pinpoint a single training image; its posterior stays spread out, forcing it to generalize.
  • Generation Happens at the "Edge of Memorization": If a pixel's patch size $L$ is too big ($L > L_c$), it memorizes. If it's too small ($L \ll L_c$), it generalizes robustly, but denoises poorly because it misses helpful spatial context. Optimal image generation surfs right along the critical phase boundary $L_c$, shrinking its field of view as the noise clears so the guessing game never gets too easy.
  • Natural Images Break the Curse of Dimensionality: Natural images are nearly scale-invariant, with power spectra falling off as $k^{-2+\epsilon}$ (where $\epsilon \approx 0.1\text{–}0.3$, and $\epsilon=0$ is pure scale invariance). To see enough context to denoise effectively without crossing the memorization boundary, dataset size only needs to scale with linear image size $L_I$ as $\exp(L_I^\epsilon)$—not $\exp(L_I^2)$. For perfectly scale-invariant images ($\epsilon = 0$), no extra data is needed as resolution grows.

Key Results

  • Predicting Modern Architectures: Spatially local BIRD models accurately predict the exact, case-by-case image outputs of complex neural architectures—including UNets with self-attention and Diffusion Transformers (DiTs)—early in training (peaking around 10–30 epochs), achieving a median $r^2 \approx 0.85\text{–}0.93$.
  • Visualizing Consistent Generalization: When UNets, DiTs, and BIRD models are derived from two disjoint datasets ($\mathcal{D}_1$ and $\mathcal{D}_2$) and fed identical noise, all six outputs look remarkably alike, confirming that early-stage neural networks behave like local BIRD models operating in the generalization phase.
Figure 2: The consistent and robust generalization of diffusion models early in training, across various datasets and architectures, is well-predicted by spatially local BIRD models with a patch size near the critical scale, as described below. Here UNets and DiTs are trained on disjoint dataset subsets D1 and D2, but produce nearly identical images when fed the same noise input. These images are both similar to the corresponding BIRD model outputs. Many more such samples are shown in App. H.2 in figs. 9-14, along with details of the experiment and training procedure in App. H.
  • Theory Matches Empirics: Across synthetic Gaussians, CIFAR10, and CelebA32, numerical measurements of posterior entropy collapse match the theoretically predicted phase transition curves at $\ln |\mathcal{D}| = I(\varphi; \mathcal{C}_{x,t})$.

Limitations and Future Work

While BIRD captures inductive biases driven by information restriction, it cannot express other biases stemming from specific neural architectures or gradient descent dynamics—such as a bias toward linear functions, or what neural networks transition to late in training after $r^2$ agreement with local BIRD models slowly declines. Furthermore, while the paper proves BIRD models generalize consistently (converging to the same model across disjoint datasets), proving accurate recovery of the true underlying data distribution is currently limited to scale-invariant Gaussian data, leaving generic data distributions as an exciting frontier for future work.

Summary updated

Abstract

How diffusion models circumvent the curse of dimensionality to learn complex distributions over high dimensional spaces from a finite training set, instead of memorizing it, remains a fundamental mystery. To address this, we introduce analytically tractable Bayesian information restricted diffusion (BIRD) models, in which each pixel observes restricted information about noisy data. A BIRD model time-reverses diffusion by inferring which past training sample produced its current restricted observation using the Bayesian posterior. This model class generalizes existing analytical diffusion models that use spatially local information restriction. We show that spatially local BIRD models closely approximate trained diffusion models early in training, across different architectures such as UNets and DiTs. Under minimal assumptions on the data distribution, we identify an information-theoretic phase boundary between memorization and generalization in the joint space of amount of training data, time in the reverse generative process, and amount of information restriction: a BIRD model memorizes when the mutual information between its restricted noisy observations and the training data exceeds the log number of training points, and it generalizes otherwise. Experiments across a range of datasets confirm our theoretically predicted location for the transition. We find that generation proceeds near the edge of memorization: both spatially local BIRD models and early-training diffusion models track the memorization-generalization phase boundary by increasingly restricting information over time. Overall, our results reveal a fundamental role for information restriction in generative AI to circumvent the curse of dimensionality.
BibTeX
@inproceedings{hunt2026exact,
  author = {Henry S. Hunt and Mason Kamb and Surya Ganguli},
  title = {{An exact information theory of generalization phase transitions in Bayesian diffusion models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=SmybBxKaYv},
}
Figure