SimDiff: Modeling and Generation of Stochastic Discrete-Event Simulation Inputs via Denoising Probabilistic Diffusion Process

Fengwei Jia · Hongli Zhu · Fengyuan Jia · Xinyue Ren · Siqi Chen · Hongming Tan · Wai Kin Victor Chan*
Tsinghua Shenzhen International Graduate School & Tsinghua-Berkeley Shenzhen Institute, Tsinghua University · Anhui University of Technology · International S&T and Technology Information Center, Shenzhen · Peng Cheng Lab · *Corresponding Author
Proceedings of the 2024 Winter Simulation Conference (WSC 2024) · DES input modeling · denoising diffusion · Transformer

The Input Barrier of DES

  • DES is pivotal for engineering systems under uncertainty — but defining input distributions from empirical data is the hardest step
  • Assumed Poisson arrivals + exponential service ease calibration, yet real processes transcend these simplifications
  • Non-i.i.d. inputs demand ARIMA / GARCH / SETAR-Tree time-series machinery — laborious and resource-intensive
  • Even with a fitted process, efficiently creating sample paths remains a significant challenge

SimDiff: Diffusion Meets DES Inputs

  • Quantile transform maps any raw distribution to Gaussian while preserving the ranking of the data
  • Forward Markov chain: q(X_t|X_{t-1}) = N(√(1−β_t)·X_{t-1}, β_t·I) — noise added step by step
  • MLP with residual connection + SiLU predicts the noise; sin/cos timestep embedding; MSE loss with Adam
Figure 1 · Training phase: predict the denoising step conditioned on timestep and noise level

Sampling: Denoise, Then Transform Back

  • Start from pure Gaussian noise X_T ~ N(0, I); the trained network denoises across timesteps via p_θ(x_{t-1}|x_t)
  • Reverse quantile transform restores the original scale and shape — new noise-free sample paths stay inside the training range
  • Result: streamline the stochastic modeling process — more inclusive and accessible for users across skill levels
Figure 2 · Sampling phase: denoise across timesteps, then invert the quantile transform

SimDiff-ConvTrans for Non-i.i.d. Inputs

  • Real DES inputs correlate across distant jobs (p > 1) — MLPs process positions sequentially
  • Conv kernels (k > 1): local temporal correlations; self-attention: all positions at once
  • Multi-head attention + positional encoding + FFN predict the noise at each step
Figure 3 · The convolutional transformer structure

Self-Attention on Simulation Data

  • Q = W^Q·X, K = W^K·X, V = W^V·X; attention = softmax(QK^T/√d_k)·V
  • Convolution alongside attention: local + global dependencies at once
Figure 4 · Self-attention mechanism over simulation input data

Implementation

PyTorch 2.11
RTX 4060 Laptop · 16 GB RAM
4×1024
MLP layers × neurons
8×256
Transformer heads × dims
500
diffusion timesteps · lr 1e-4

Simple Distributions: One Shot

Raw vs. generated distributions (Uniform / Normal / Poisson / Gamma)
  • 10,000 rows × 4 columns learned simultaneously; training loss converges within 10 epochs
  • Column Pair Trends average score 0.96 — near-perfect statistical consistency

GI/G/1 Queuing Delays

  • Interarrival Γ(0.25, 4) + service Γ(0.5, 1) — Lindley recursion ground truth; 4,500 sequences, first 48 jobs train, last 24 test
  • KSComplement 0.92 — high congruence between synthetic and real delay distributions
Correlation differences (a) and fitted trend (b) — diagonal shows majority 100% similarity

Multimodal & Real Data

  • Mixture: Gamma(2.875, 0.5) w=0.6 + Uniform[10,20] w=0.4 — KSComplement 0.91, Column Pair 0.96; transition near job 20, assimilated by jobs 25–30
  • Emergency call center: Shapes 0.93, Pairs 0.95 · Queueing simulation: Shapes 0.91, Pairs 0.69
TAKEAWAYS
1. Learn the inputs, don't assume them — diffusion automates DES input modeling and sampling
2. Quantile transform keeps samples statistically consistent and inside the training range
3. ConvTrans handles non-i.i.d. paths — KSComplement 0.91–0.92, Column Pair up to 0.96
Jia, Zhu, Jia, Ren, Chen, Tan & Chan (2024). Proceedings of the 2024 Winter Simulation Conference. Figures reprinted from the original paper for academic presentation.