Discrete Spatial Diffusion: Intensity-Preserving Diffusion Modeling
Javier E. Santos, Agnese Marcato, Roman Colman, Nicholas Lubbers, Yen Ting Lin
TL;DR
Discrete Spatial Diffusion (DSD) reframes diffusion modeling on a discrete 2D lattice as a continuous-time, discrete-state Markov jump process that exactly conserves total intensity per color channel, addressing the limitation of traditional diffusion models in handling constrained discrete quantities. The forward process redistributes intensity units via a spatial random walk with 4-neighbor hops, while a neural network learns the time-dependent reverse-rate rules $\bar{r}$ to reconstruct samples, using either rate-matching or likelihood losses and adaptive CFL-guided tau-leaping for efficient sampling. DSD demonstrates competitive image synthesis and inpainting on standard benchmarks under exact intensity conditioning and extends to scientifically meaningful domains, generating realistic porous rock microstructures and Li-ion battery electrode morphologies with preserved porosity and phase fractions, validated by domain-specific metrics such as two-point correlations, pore-size distributions, and interface/TPB lengths. The approach enables physics-informed data generation with exact mass/volume constraints and suggests a new class of conservation-aware diffusion models with broad implications for scientific workflows and constrained generative modeling.
Abstract
Generative diffusion models have achieved remarkable success in producing high-quality images. However, these models typically operate in continuous intensity spaces, diffusing independently across pixels and color channels. As a result, they are fundamentally ill-suited for applications involving inherently discrete quantities-such as particle counts or material units-that are constrained by strict conservation laws like mass conservation, limiting their applicability in scientific workflows. To address this limitation, we propose Discrete Spatial Diffusion (DSD), a framework based on a continuous-time, discrete-state jump stochastic process that operates directly in discrete spatial domains while strictly preserving particle counts in both forward and reverse diffusion processes. By using spatial diffusion to achieve particle conservation, we introduce stochasticity naturally through a discrete formulation. We demonstrate the expressive flexibility of DSD by performing image synthesis, class conditioning, and image inpainting across standard image benchmarks, while exactly conditioning total image intensity. We validate DSD on two challenging scientific applications: porous rock microstructures and lithium-ion battery electrodes, demonstrating its ability to generate structurally realistic samples under strict mass conservation constraints, with quantitative evaluation using state-of-the-art metrics for transport and electrochemical performance.
