NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Lattice Random Walk Discretisations of Stochastic Differential Equations

Samuel Duffield, Maxwell Aifer, Denis Melanson, Zach Belateche, Patrick J. ColesarXiv 2025 · DOI

Abstract

Stochastic Differential Equations (SDEs) are fundamental to modeling complex systems, yet their numerical simulation via the standard Euler-Maruyama (EM) method faces significant challenges in hardware implementation, including high precision requirements, expensive Gaussian sampling, and numerical instability. This paper proposes Lattice Random Walk (LRW) discretisation, a "hardware-native" scheme that replaces continuous increments with discrete ternary steps on a spatial lattice. LRW achieves Weak Order 1 convergence while offering superior stability for non-Lipschitz drifts and seamless integration with stochastic computing architectures.

Introduction

Simulating SDEs on digital hardware typically relies on the Euler-Maruyama (EM) method. However, EM presents three primary bottlenecks: the need for high numerical precision to avoid rounding error accumulation, the computational cost of generating Gaussian random variables, and inherent instability when dealing with steep, non-Lipschitz drift functions. These limitations hinder the deployment of SDE-based models, such as Stable Diffusion, on low-power or specialized hardware.

Methodology: Lattice Random Walk (LRW)

The proposed LRW method discretises the state space into a lattice with a fixed spatial step $\delta_x$. Unlike EM, which calculates precise drift and adds Gaussian noise, LRW moves the state by a ternary increment: up, down, or remaining stationary.

Comparison of path simulations: Exact SDE, Euler-Maruyama, and Lattice Random Walk.

The transition probabilities ($p_+$, $p_-$, and $p_0$) are derived by matching the first and second moments of the continuous SDE. This ensures that the discrete walk statistically converges to the true solution (Weak Order 1 convergence). Key advantages include:

  • Quantization Robustness: The lattice structure naturally resists floating-point errors.
  • Gaussian-Free Sampling: Only simple bit-level randomness is required.
  • Bounded Stability: The fixed step size prevents the "explosive" behavior common in EM when drift terms become steep.

Experimental Results

The authors validated LRW across several benchmarks:

  1. Ornstein-Uhlenbeck Process: Confirmed mathematical convergence and robustness to low-precision (16-bit) arithmetic.
  2. Poisson Random Effects Model: Demonstrated that while EM fails as step sizes increase due to non-Lipschitz drift, LRW remains stable and accurate.
  3. Large-Scale Generative AI: LRW was integrated into Stable Diffusion 3.5 (8B parameters). At 50 steps, the generated images were visually indistinguishable from those produced by EM, proving the method's scalability to state-of-the-art AI workloads.

Hardware Synergy and Stochastic Computing

LRW is uniquely suited for stochastic computing, where values are represented as random bitstreams. By utilizing simple logic gates (e.g., AND gates) for probability-based updates, LRW enables SDE simulation on specialized hardware without the overhead of complex floating-point units.

Stochastic computing pipelines for real output and LRW.

Conclusion

Lattice Random Walk discretisation provides a mathematically sound and hardware-efficient alternative to traditional SDE simulation methods. While currently limited to diagonal diffusion matrices, its stability and low-precision performance make it a promising candidate for the next generation of stochastic hardware accelerators and efficient AI inference.

Summary updated

BibTeX
@misc{duffield2025lattice,
  author = {Samuel Duffield and Maxwell Aifer and Denis Melanson and Zach Belateche and Patrick J. Coles},
  title = {{Lattice Random Walk Discretisations of Stochastic Differential Equations}},
  year = {2025},
  eprint = {2508.20883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.20883},
}
Figure