Solving stationary Fokker-Planck equations via adaptive sampling from solution-induced and residual-guided distributions

Jiangfan Chen, Li ZengarXiv 2026

TL;DR

When using neural networks to find the steady-state probability distributions of noisy dynamical systems, where you evaluate the physics equations matters just as much as the network architecture itself. This paper introduces Solution-Residual Adaptive Sampling (SRAS), a clever strategy that balances sampling where the probability is high with targeted exploration where the math is currently wrong. The result is faster convergence and significantly more accurate probability densities in up to eight dimensions—without ever needing a spatial grid.

What Problem Does This Paper Address?

Imagine dropping a handful of dust into a turbulent room; eventually, the dust settles into a steady-state cloud. The Stationary Fokker-Planck Equation (SFPE) is the partial differential equation (PDE) that describes that final probability cloud for stochastic systems.

Solving SFPEs numerically is notoriously tricky:

  1. Because the output is a probability density, it can never be negative and must integrate to exactly one.
  2. The spatial domain is often unbounded (infinite), and the system can live in many dimensions, causing traditional grid-based methods (like finite elements) to choke on the "curse of dimensionality."

Recently, researchers turned to Normalizing Flows—invertible neural networks that warp a simple bell curve into complex shapes—because they guarantee non-negativity and integrate to one by construction. However, you still have to train the network to obey the SFPE at sampled "collocation points."

Existing sampling methods fall into two flawed camps:

  • Solution-induced sampling (e.g., ADDA): Samples where the model currently thinks the probability mass is. Great for refining peaks, terrible if the model completely misses an isolated peak or underestimates a tail.
  • Residual-based sampling (e.g., RAR): Samples where the PDE error (residual) is largest. Great for fixing local rule-breaking, but a large local PDE error in a probability desert doesn't necessarily matter for the global distribution.

Methods

The authors use a smooth normalizing flow architecture called KRnet to represent the probability density, and introduce SRAS to iteratively curate a fixed-size training set of $N$ points.

Instead of relying on one sampling philosophy, SRAS builds a four-part cocktail for its training batches at each adaptive stage:

  1. Solution-induced points: Drawn directly from the current KRnet model to keep high-probability regions sharp.
  2. Residual-guided points (The secret sauce): First, the model draws auxiliary samples from itself and builds a bounding box around their interquantile range—establishing an adaptive "region of interest" on the unbounded domain. It floods this box with quasi-random Sobol candidate points, finds the $m$ points with the worst PDE residuals, and drops tiny Gaussian distributions on top of them. Sampling from this Gaussian mixture explores neighborhoods of high error rather than just single troublesome points.
  3. Memory points: A random subset retained from the previous iteration's training set to prevent catastrophic forgetting.
  4. Anchor points: Drawn from the initial uniform distribution to maintain baseline background coverage.

Datasets

Because this is a physics-informed PDE solver rather than a data-driven model, there are no external empirical datasets. Instead, the authors evaluate SRAS on five synthetic SFPE benchmark problems with known analytical ground-truth solutions on unbounded domains ($\mathbb{R}^d$):

  • 2D Bimodal Distributions (I & II): Two different Gaussian mixtures testing how well the solver captures separated modes and transition regions (with state-dependent and isotropic diffusion, respectively).
  • 3D Non-Gaussian Distribution: A single-mode distribution with nonlinear coordinate dependencies (involving $\tanh$, $\sin$, and $\cos$ terms) and state-dependent diffusion.
  • 4D & 8D Bimodal Distributions: Higher-dimensional Gaussian mixtures designed to stress-test how the sampling scales as volume explodes.

Key Insights and Ideas

  • Bounding the unbounded: Searching an infinite space for PDE errors is futile. Using the model’s own empirical quantiles to dynamically draw a search box for residual checking is an elegant way to tether exploration to reality.
  • Fuzzing the errors: Placing Gaussian mixtures around high-residual points ($\sigma$-scaled perturbations) prevents the network from simply overfitting to isolated collocation spikes, smoothing out error clusters in tricky transition zones between modes.
  • Constant compute budget: Unlike standard Residual-based Adaptive Refinement (RAR), which continuously appends bad points to the training set (making later epochs sluggish), SRAS resamples to a fixed size $N$, keeping computational cost per iteration flat.

Key Results

Across all five benchmarks, SRAS was pitted against ADDA (purely solution-induced) and RAR (purely residual-appended), measured via relative $L^2$ error and relative Kullback–Leibler (KL) divergence:

  • Faster and deeper error drops: SRAS consistently reached lower error floors in fewer adaptive iterations than both baselines across all dimensions.
  • 2D precision: On the first 2D bimodal test, SRAS ($\sigma=0.1$) achieved a final relative $L^2$ error of 2.61e-02, beating RAR (5.02e-02) and more than tripling the accuracy of ADDA (8.50e-02). On the more dispersed 2D problem, SRAS hit a late-stage mean $L^2$ error of 5.98e-03, an order of magnitude better than RAR (1.08e-01).
  • Scaling to 8D: In the 8D test, RAR stalled almost completely near its initial error. SRAS drove the relative KL divergence below $10^{-2}$, clearly outperforming ADDA, though the relative $L^2$ error remained fairly high (~0.45) due to the difficulty of covering 8D space.

Limitations and Future Work

  • Hyperparameter sensitivity: The ideal standard deviation ($\sigma$) for the residual Gaussian mixture varies by problem (e.g., $\sigma=0.1$ was optimal in 2D Test I, while $\sigma=0.05$ edged it out in Test II), and accuracy doesn't change monotonically with $\sigma$. The authors note that developing an automatic, adaptive scale-selection rule is a clear next step.
  • High-dimensional $L^2$ challenges: Even when KL divergence looks great in 8D, relative $L^2$ error remains substantial (partially because Monte Carlo $L^2$ estimation uses importance weights sensitive to low-density tails). Future work will push into higher dimensions and incorporate practical, application-specific metrics like marginal distributions and statistical moments.

Summary updated

BibTeX
@misc{chen2026solving,
  author = {Jiangfan Chen and Li Zeng},
  title = {{Solving stationary Fokker-Planck equations via adaptive sampling from solution-induced and residual-guided distributions}},
  year = {2026},
  eprint = {2611.37404},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37404},
}
Figure