Score Shocks: The Burgers Equation Structure of Diffusion Generative Models

Krisanu Sarkar
Indian Institute of Technology Bombay

Abstract

We analyze the score field of a diffusion generative model through a Burgers-type evolution law. For Variance Exploding (VE) diffusion, the heat-evolved data density implies that the score obeys the viscous Burgers equation in one dimension and the corresponding irrotational vector Burgers system in \(\mathbb{R}^d\). This provides a PDE-based perspective on speciation transitions—the sharpening of inter-mode interfaces during the reverse diffusion process. We derive a universal tanh interfacial profile for binary mixtures and establish a normal criterion for speciation that aligns with recent spectral threshold theories.

The Score-Burgers Correspondence

The fundamental insight of this work is that the score function \(s(x, \tau) = \nabla \log p_\tau(x)\) of a VE diffusion process satisfies a nonlinear PDE.

Theorem 1: The Score PDE The score field \(s(x, \tau)\) of a VE diffusion process evolves according to:
\[ \frac{\partial s}{\partial \tau} + (s \cdot \nabla)s + \frac{1}{2} \nabla (\nabla \cdot s) = 0 \]
In one dimension, this reduces exactly to the viscous Burgers equation with viscosity \(\nu = 1/2\), but with a reversed time direction relative to standard fluid dynamics.
Score Burgers Evolution
Figure 1: Evolution of the score field. The score field develops "shocks" or sharp interfaces as the diffusion time \(\tau\) decreases, corresponding to the separation of data modes.

Interfacial Structure & Speciation

Near the boundary between two data modes, the score field exhibits a universal structure. We show that for any binary decomposition of the noised density, the score separates into a smooth background and a tanh interfacial term.

Theorem 2: Universal Interfacial Profile For a symmetric binary mixture, the score field near the interface \(x=0\) is given by:
\[ s(x, \tau) \approx s_{bg}(x, \tau) + \frac{a}{\sigma_\tau^2} \tanh\left( \frac{ax}{\sigma_\tau^2} \right) \]
where \(a\) is the separation parameter and \(\sigma_\tau\) is the noise schedule.
Speciation Width
Figure 2: Speciation width analysis. The width of the transition layer between modes scales as \(\sigma_\tau^2/a\), becoming a sharp shock as \(\sigma_\tau \to 0\).

Key Mathematical Results

1. Preservation of Irrotationality

We prove that if the initial score field is a gradient (irrotational), the Burgers-type evolution preserves this property for all \(\tau > 0\). This ensures the score remains the gradient of a log-density.

2. Error Amplification

We quantify the exponential amplification of score estimation errors across the shock layer. This explains why diffusion models often struggle with high-fidelity generation near mode boundaries.
Error Amplification
Figure 3: Trajectory divergence and error amplification. Small perturbations in the score field lead to significant deviations in the generated samples near the "shock" interfaces.

Numerical Verification

The theoretical results are verified using both synthetic Gaussian mixtures and complex potential wells.

PDE Verification
Figure 4: Numerical verification of the Score PDE. Comparison between the analytical score and the PDE-evolved score shows agreement to machine precision.
2D Score Curl
Figure 5: 2D Score Field and Curl. Visualization of the vector field and the preservation of the irrotational property in higher dimensions.

Conclusion

By establishing a formal link between Diffusion Generative Models and Burgers Equation dynamics, this work provides a rigorous framework for understanding how these models represent and separate data modes. The "Score Shock" perspective offers new tools for analyzing model stability, error propagation, and the fundamental limits of score-based sampling.