Abstract
Standard generative diffusion models typically operate in continuous intensity spaces, adding independent Gaussian noise that often violates physical conservation laws. We introduce Discrete Spatial Diffusion (DSD), a novel framework that treats image intensity as a collection of discrete particles on a spatial lattice. By modeling the diffusion process as a continuous-time random walk where particles "hop" between pixels rather than fading, DSD ensures exact preservation of total intensity (mass) throughout the entire generation process. We validate DSD across standard vision benchmarks and specialized scientific datasets, demonstrating its ability to generate physically consistent microstructures for materials science and energy storage applications.
Introduction
The rise of generative diffusion models has revolutionized image synthesis. However, their application to scientific domains—such as porous media modeling or battery design—is limited by their inability to respect fundamental conservation laws. In physics and chemistry, properties like total mass or porosity are not merely statistical averages but strict constraints. Standard models, which treat pixels as independent variables subjected to Gaussian noise, frequently "create" or "destroy" mass during denoising. While post-processing techniques can mitigate these issues, they often fail at the edges of data distributions and introduce non-physical artifacts.
Methodology
The core innovation of DSD is the transition from "intensity fading" to "intensity hopping."
The Forward Process
Instead of adding Gaussian noise, DSD conceptualizes each unit of intensity as a discrete particle. In the forward (noising) process, these particles perform a continuous-time random walk on a spatial lattice. Over time, the initial structure dissolves into a uniform "gas" of particles. Crucially, because particles only move and never disappear, the total number of particles—and thus the total intensity—remains invariant.
The Reverse Process and Sampling
A neural network, based on the NCSN++ architecture, is trained to learn the transition rates required to reverse this random walk. To facilitate practical inference, the authors utilize $\tau$-leaping combined with a Courant-Friedrichs-Lewy (CFL) condition. This adaptive sampling strategy allows the model to select the largest stable time steps, preventing mathematical instabilities such as negative particle counts while maintaining computational efficiency.
Experimental Validation
The model was rigorously tested on a diverse set of benchmarks:
- Vision Benchmarks: MNIST, CIFAR-10, and CelebA were used to demonstrate scalability to complex RGB data.
- Scientific Microstructures: Binary images of various sandstones (Berea, Leopard) and carbonates (Savonnières, Massangis) were used to test structural fidelity.
- Energy Storage: 3-phase microstructures of Lithium-ion battery (NMC) cathodes were modeled to evaluate performance on multi-phase scientific data.
Results and Discussion
DSD achieves "Conservation by Construction," meaning global properties like mass fraction are preserved exactly rather than approximately. This leads to several key advantages over traditional diffusion.
Physical Consistency and Conditioning
In MNIST experiments, DSD demonstrated the ability to be conditioned on specific total intensities. High-intensity conditioning produced "bold" digits, while low-intensity produced "skeletal" versions, all while strictly adhering to the target mass. For scientific samples, DSD-generated microstructures matched critical transport properties, such as permeability and diffusivity, far more accurately than Gaussian baselines.
Performance Metrics
On the CIFAR-10 dataset, DSD achieved an FID score of 20.6. While this does not surpass the absolute state-of-the-art in unconstrained image synthesis, it represents a significant achievement for a model operating under strict physical constraints. Furthermore, in battery electrode modeling, the generated samples successfully matched the Triple-Phase Boundary and Relative Diffusivity of the training data, metrics essential for predicting real-world battery performance.
Conclusion and Future Work
Discrete Spatial Diffusion provides a mathematically grounded approach to generative modeling that respects conservation laws. While the current implementation is approximately 2x slower than standard Gaussian diffusion and scales linearly with total intensity, its benefits for scientific applications are profound. Future research will focus on extending the framework to 3D lattices and incorporating additional physical symmetries, such as rotational and reflection invariance, directly into the particle jump logic.
Summary updated