Paper Feed

Issue 39 · Pick 04 AI / ML ✓ read

Double Descent and Malign Overfitting in Diffusion Models

Raphaël Urfin, Tony Bonnaire, Giulio Biroli, Marc Mézard

TL;DR: Diffusion training is literally regression — a quadratic denoising loss — so the standard deep-learning story says overparameterization should be benign, with a double-descent curve and good generalization past the interpolation peak. This paper (random-features theory with closed-form learning curves, plus U-Nets on CelebA) shows the double descent is there, but it's a trap: the interpolation peak sits at p \sim nm (with m noise draws per sample), while the test loss starts rising much earlier, at p \sim n, and after the peak it plateaus above its earlier minimum. The mechanism is precise and satisfying: the implicit regularization of training works perfectly — it just minimizes the wrong loss, driving the model toward the empirical score, which memorizes the training set. The fix is old-fashioned: ridge or early stopping restores the benefit of large models.

The paradox

The benign-overfitting story is one of the load-bearing beliefs of modern ML: past the interpolation threshold p \sim n (parameters ≈ training points), test error descends again, and the biggest models generalize best even with zero regularization. The mechanism is implicit regularization — among the infinitely many interpolating solutions, gradient descent picks a minimum-norm one, and minimum-norm interpolators of noisy regression targets happen to generalize.

Diffusion models should be a textbook instance. Training a score network means minimizing, at each noise level t, a quadratic loss between the network's output and the noise it must remove — pure regression. Yet the empirical record is the opposite: bigger diffusion models memorize, reproducing training images verbatim, and overfitting degrades generation catastrophically rather than benignly. Farghly et al. even proved model-independently that overfitting and generalization can't coexist in diffusion unless n grows exponentially with dimension d. So which is it — is diffusion regression or not, and where does benign overfitting go to die?

The key move: count the noise draws, and track three losses

The resolution starts with an accounting detail everyone glosses over. In practice, each training image \mathbf{x}^\nu is seen with a fresh noise draw every epoch, so after training each image has effectively been paired with m noise realizations \bm{\xi}^{\nu\mu} — with m \approx 2\times 10^3 for standard DDPM/EDM recipes. The paper idealizes this by freezing m noises per sample, giving nm regression pairs, and studies the exact empirical risk minimizer.

This creates three distinct losses, and distinguishing them is the whole game:

  • \mathcal{L}^{n,m}_{\text{train}}: the training loss on the nm frozen pairs.
  • \mathcal{L}^{\text{emp}}_{\text{test}}: the "empirical test loss" — noise averaged exactly (m\to\infty), but still evaluated on the n training images. Up to a vanishing constant, this measures squared distance to the empirical score: the exact score of the mixture of Gaussians of width \Delta_t = 1-e^{-2t} centered on the (rescaled) training points.
  • \mathcal{L}_{\text{test}}: the true test loss, fresh images and fresh noise. This measures distance to the population score — the thing you actually want.

The crucial fact about the empirical score: it is the global minimizer of \mathcal{L}^{\text{emp}}_{\text{test}}, and a model that learns it exactly reproduces training data when you run the reverse diffusion. It's the perfect answer to the wrong question.

p loss p ~ n p ~ nm L_test (fresh data) L_emp (empirical score) L_train plateau above the minimum rise starts at p ~ n, for any m interpolation peak
The paper's qualitative picture (its Fig. 1). Training loss hits zero at $p\sim nm$ — one $d$-dimensional constraint per noisy point, matched by the $pd$ readout parameters — and the test loss peaks there. But the test loss already turns upward at $p\sim n$, independent of $m$, and its post-peak "second descent" settles above the first minimum. Meanwhile the empirical test loss keeps falling toward zero: the model is converging to the memorizing empirical score.

Why benign overfitting misfires

Here is the aha. In supervised double descent, implicit regularization saves you at the interpolation threshold and beyond: among interpolators, training selects one close to the true function. In diffusion, that same mechanism is fully operative — the theory shows \mathcal{L}^{\text{emp}}_{\text{test}} dropping to very small values in the overparameterized regime, exactly the benign-overfitting signature. But the target of this benign behavior is the empirical score. The training dynamics faithfully converges toward the minimizer of a loss whose minimizer memorizes.

Geometrically: the nm training inputs are not i.i.d. — they form n clusters of m noisy points, each cluster centered on a training image. With enough capacity, the ideal fit to all clusters simultaneously is the score of the n-component Gaussian mixture. At small t (little noise), those Gaussians are narrow, the empirical score differs violently from the population score between them, and the test-loss plateau is correspondingly high — the paper shows the plateau growing as t\to 0 in both the theory and the U-Nets.

true noised density P_t : population score generalizes empirical density: bumps of width Δ_t on training points training points (reverse dynamics collapses onto them)
Both scores fit the training pairs equally well — that's why the training loss can't tell them apart. As capacity grows, implicit regularization steers the interpolator toward the empirical score (narrow bumps), whose reverse diffusion regenerates training images. Smaller $t$ means narrower bumps and a larger gap to the true score, hence the higher test-loss plateau at small $t$.

The bias–variance signature

A bias–variance decomposition of the score estimator, \mathcal{L}_{\text{test}} = C_t + \Delta_t(\mathcal{B}^2 + \mathcal{V}), pins the mechanism down. In classical double descent, both bias and variance fall after the peak. Here, variance behaves classically — it diverges at p\sim nm and decays afterward. The bias does something new: it decreases at small p (ordinary approximation error), starts growing at p \sim n, before the peak, keeps growing through it, and saturates at an O(1) value. The paper's framing is crisp: at small p the bias is a property of the model class; at large p it is a property of the objective — the average learned score converges to the empirical score's neighborhood, not the population score's, and no amount of capacity closes that gap. Both the RFNN theory and U-Nets trained on disjoint datasets (their Fig. 4) show this pattern, and a two-layer MLP on a Gaussian mixture with analytically known score reproduces it too (Appendix B.6).

This also cleanly reconciles a conflicted literature. George et al. found an interpolation peak at m=1 that vanished at m=\infty; Marion & Wu saw no parameter-wise double descent in U-Nets at all (but they redraw noise every step — effectively m=\infty, so there's no peak to see); Farghly et al.'s impossibility result is the m\to\infty endpoint. Finite m is the missing interpolation: at m=1 overfitting is genuinely benign (test loss below its underparameterized minimum after the peak); already at m=2 it turns malign; as m grows the peak recedes toward p\sim nm \to \infty, leaving only the rising branch — which is exactly the regime where real diffusion models, with m\sim 10^3, live. The observed "U-shaped" overfitting of practical diffusion models is the approach to an interpolation peak too far away to ever reach.

The evidence

Theory. Random-features networks \mathbf{s}_{\mathbf{A}}(\mathbf{x}) = \frac{\mathbf{A}}{\sqrt p}\sigma(\mathbf{W}\mathbf{x}/\sqrt d) (frozen \mathbf{W}, trained readout), Gaussian data, proportional limit n/d \to \psi_n, p/d \to \psi_p, arbitrary finite m. Closed-form asymptotics for all three losses via a Gaussian Equivalence Principle plus replica calculation — the technical novelty is handling the correlation \kappa between features of different noise copies of the same sample, which is precisely what encodes the clustered structure of the inputs. Finite-d simulations converge to the predicted curves.

Experiments. DDPM-style U-Nets on grayscale 32\times 32 CelebA, n from 512 to 8192, base width W from 2 to 192 (p \approx 29K to 240M), m frozen noises per image, 2M Adam steps. The RFNN scalings transfer surprisingly well: for p<n curves collapse independently of n and m; between n and nm the test loss depends only on p/n; the peak sits approximately where p = nmd, i.e., parameters ≈ scalar constraints, and shifts with both n and m as predicted. The authors are careful to say they don't expect the nmd location to hold in general for convolutional nets (weight sharing decouples parameter count from effective capacity), and two discrepancies remain: the U-Net's peak height depends on n (the RFNN's doesn't) and its bias shows a peak absent from the theory.

Regularization rescues overparameterization. In the theory, optimally tuned ridge (with \lambda scaling as \psi_p) makes the test loss monotonically decreasing in p — the lower envelope over \lambda has no peak, no plateau, and its global optimum is at \psi_p \to \infty. In the U-Nets, early stopping plays the same role: there's a generalization timescale \tau_{\text{gen}} = O(1) and a memorization timescale \tau_{\text{mem}} = O(n), and stopping between them at \tau^\star = \arg\min_\tau \mathcal{L}_{\text{test}} removes the interpolation peak entirely — early-stopped test loss decreases monotonically with p, and an overparameterized early-stopped model beats any fully trained underparameterized one. Larger m then becomes purely beneficial: for early-stopped U-Nets at n=16384, FID drops sharply as m increases before saturating around m \gtrsim 16. So the practical recipe (many epochs, big model, don't train to convergence) is vindicated — but for a sharper reason than folklore: unregularized, the same recipe is actively malign.

One honest wrinkle: the FID of the early-stopped models still shows a double descent in p, even though the test loss doesn't. The authors trace this to test loss and FID optimizing different things — FID is blind to memorization (a model copying its training set gets excellent FID), and for at least one configuration (W=16) the FID keeps improving monotonically with training time while the test loss turns up. They conjecture early-stopping on FID itself would remove the FID double descent, but this is left as a conjecture (Appendix B.8).

p p ~ nm p ~ n bias² variance approximation error shrinks wrong-objective bias: saturates variance decays, as in regression
The diagnostic that separates malign from benign overfitting (paper's Fig. 4). Variance is classical: it diverges at the interpolation threshold and decays past it. The bias breaks the script — it turns upward at $p\sim n$, before the peak, and saturates at $O(1)$. Post-peak, both contribute comparably to the plateau.

What changes if this holds, and what to doubt

If this picture is right, "diffusion models overfit malignly" stops being an empirical mystery and becomes a corollary of a sharp statement: benign overfitting is intact, but its fixed point is the empirical score. That reframing has teeth. It says scaling up diffusion models without regularization has a hard ceiling set by the empirical–population score gap, not by optimization or architecture; it explains why weight decay and early stopping reduce memorization so reliably (they interrupt convergence to the empirical score); and it predicts the specific n-, m-, and t-dependence of when trouble starts (p\sim n, independent of m; worst at small t). It also cleanly kills the tempting inference from Marion & Wu that parameter-wise double descent simply doesn't exist in diffusion — it exists, at finite m, exactly where the theory says.

Reasons for caution, mostly acknowledged by the authors. The empirical side is one dataset (CelebA), grayscale, moderate n, and models far below state of the art; the frozen-noise setup is an idealization of fresh-noise SGD (though it provably converges to the standard objective as m\to\infty, and the practical regime m\sim 10^3 sits in the theory's "large but finite" zone). The random-features model has no feature learning, and the two RFNN/U-Net mismatches (peak-height n-dependence, the U-Net's bias peak) are exactly where feature learning might change the story. The clean p=nmd threshold shouldn't be expected to survive at scale for convolutional or transformer architectures. And the FID-vs-test-loss disagreement is a reminder that "test DSM loss" is an imperfect proxy for generation quality — the paper's central claims are about the score estimator, not directly about sample-level memorization rates (which they measure to be below 10^{-3} in their regularized configurations).

If you read one part of the paper, read Section 2.3 ("Malign overfitting and the growth of the bias") together with Section 3 — that's where the three-loss dissection, the role of m, and the regularization results live. Appendix A is unusually valuable as a second read: it reconciles four adjacent papers (George et al., Latourelle-Vigeant et al., Marion & Wu, Farghly et al.) into one coherent finite-m picture, and is the best short survey of this corner of diffusion theory I've seen.