Many questions about noisy physical systems come down to a quantity accumulated along random paths. Examples include how long a particle takes to escape a potential well, what cost a controller pays before a pendulum falls, and which boundary a diffusing walker hits first. The Feynman-Kac formula, the classical link between such path averages and partial differential equations (PDEs), lets neural solvers learn the average of these quantities without a grid. They do this by simulating short random walks and enforcing a consistency condition between neighbouring points, much as reinforcement learning (RL) learns value functions. The average is often the wrong summary. In metastable systems, escape times are bimodal. For controllers, a 1% chance of catastrophic failure is invisible in the mean. We propose to learn the full distribution of the path quantity at every starting state. The network outputs its quantiles, and it is trained with the quantile-regression updates used in distributional RL, applied to short simulated random walks. A self-paced curriculum starts training from states whose outcome is nearly determined and moves outward toward states whose paths are long and noisy.
The practical payoff is a state-by-state map of tail risk, for example the conditional value-at-risk (CVaR), meaning the average outcome over the worst α fraction of paths. We use this map for an honest version of simulation-based evaluation. We train the map under an idealized Gaussian-noise simulator, then measure how well its tail estimates survive when the noise model is swapped for structured, held-out disruptions. We cannot validate on physical hardware. We can measure, rather than assume, how much of a simulator's tail picture transfers across noise models.
Core Claim
A derivative-free, bootstrapped quantile Bellman update on Brownian walkers can recover the full distribution of Feynman-Kac path functionals more cheaply than direct Monte Carlo rollouts, measured in simulation steps. Ordering training states by predicted remaining horizon is what makes the bootstrap stable. The resulting quantile field ranks states by true tail risk under noise-model mismatch better than mean-only or mean-plus-variance summaries do.
Concretely, consider a diffusion $dX_t = b(X_t)\,dt + \sigma(X_t)\,dW_t$ in a domain $D$ with exit time $T_D$. The path functional is $G(x) = \int_0^{T_D} c(X_s)\,ds + g(X_{T_D})$ started from $X_0 = x$, where $c$ is a running cost and $g$ a boundary payoff. The strong Markov property gives a distributional identity over one Euler–Maruyama step of size $\Delta t$:
$$G(x) \overset{d}{=} c(x)\,\Delta t + \mathbf{1}[\text{no exit}]\,G(X_{\Delta t}) + \mathbf{1}[\text{exit}]\,g(X_{\text{exit}}),$$
where $\overset{d}{=}$ means equality in distribution. Taking expectations recovers exactly the scalar Bellman equation that A derivative-free method for solving elliptic partial differential equations with deep neural networks (DFLM) enforces with walkers. We keep the whole distribution instead. A network $q_\theta(x,\tau)$ outputs the $\tau$-quantile of $G(x)$. It is trained with the quantile Huber loss against targets formed from one simulated step plus a sampled quantile of a slowly updated target network at $X_{\Delta t}$, the construction used by implicit quantile networks (Obando-Ceron et al.) and quantile critics (Mavrin et al.). No spatial derivatives of the network are ever taken. This is what lets DFLM handle corner singularities where automatic differentiation breaks, and we inherit that property.
Position Relative to Prior Work
Four papers supply the ingredients.
DFLM supplies the method: walkers plus a derivative-free Bellman loss. It is strictly scalar, however, and needs 1,500 to 2,000 walkers per batch to tame gradient noise. Taming the Loss Landscape of PINNs with Noisy Feynman–Kac Supervision motivates the work. It shows that sparse Monte Carlo Feynman-Kac anchors precondition physics-informed networks and names adaptive placement of those anchors as open. It also constrains us, because it identifies a Monte Carlo noise floor that any walker method must respect. Our curriculum is a specific answer to its adaptive-sampling question, and our budget accounting is designed to show whether we beat or merely move that floor.
Parabolic Continual Learning also uses Feynman-Kac with Brownian bridges and a staged, sequential structure. It applies these to smoothing classification losses across tasks, not to learning outcome distributions of a physical system, so it shares vocabulary but not the problem.
On the distributional side, Closing the Sim-to-Real Gap in Non-Markovian Spreading Processes via GPU-Accelerated Distributional RL motivates the evaluation question most directly. It shows that policies trained on mean-field ODE approximations earned −238,731 profit on realistic dynamics, because deterministic models hide bimodal cascade risk. It fixes this with truncated quantile critics trained by brute-force event simulation. It never exploits the operator structure of the underlying process and uses no curriculum. Boosting CVaR Policy Optimization with Quantile Gradients derives a quantile Bellman operator for state-only quantile functions in discrete-time MDPs. It supplies both the motivation for using all trajectories rather than only the tail and one of our evaluation environments.
The novelty is the combination. We bring a continuous-state, derivative-free quantile Bellman update for Feynman-Kac functionals together with a horizon-ordered curriculum, and use the result as an evaluation instrument rather than a policy optimizer.
Research Program
We will build the walker solver in three pieces.
The first piece is the quantile network. It is an implicit-quantile architecture taking $(x,\tau)$ and trained with the one-step distributional target above. Boundary quantiles are known exactly: they are the point mass at $g$. They are imposed by construction, not learned.
The second piece is the curriculum. In the spirit of Self-Paced Learning for Latent Variable Models, a state's difficulty is its currently predicted median remaining horizon. Walkers start only from states whose predicted horizon is below a threshold $h_k$. The threshold $h_k$ grows once the quantile TD error on the admitted frontier falls below a tolerance. Early training therefore covers near-boundary states, where outcome distributions are nearly deterministic and bootstrap targets are trustworthy. Information then propagates inward, the way terminal conditions propagate backward in Machine learning approximation algorithms for high-dimensional fully nonlinear partial differential equations and second-order backward stochastic differential equations.
The third piece is a mixed-horizon target. We interpolate between one-step bootstrapping and walking $n$ steps before bootstrapping. The ablation shows whether the curriculum does work that a well-chosen $n$ cannot.
The analysis will state conditions under which the distributional update converges for fixed $\Delta t$. The contraction argument for distributional policy evaluation in the Wasserstein metric carries over to absorbed diffusions with a positive exit probability per step. We will also characterize, empirically, how quantile error scales with $\Delta t$ and walker count.
Finally, we apply the solver to closed-loop systems. A fixed controller plus process noise defines a diffusion, and its cost-to-go distribution is exactly $G$. This produces per-state CVaR maps for controllers trained by different robust-RL methods.
Baselines
The naive reference point is direct Monte Carlo. From each evaluation state we roll full paths to exit and read off empirical quantiles. With enough paths this is the ground truth, so we use it at $10^5$ paths per test point as the reference. At matched simulation-step budget it is also a baseline. As an amortized variant we fit $q_\theta(x,\tau)$ by quantile regression on full-rollout returns with no bootstrapping. That variant is the strongest simple competitor, because it is unbiased and trivially implemented. Beating it means lower Wasserstein-1 error and lower CVaR error at equal total Euler–Maruyama steps, especially on long-horizon states.
The strongest existing mean-field method is DFLM itself, run with the same walkers, network width, and step budget. It reports a relative $L_2$ error of $5.74\times10^{-4}$ on the corner-singularity Laplace problem. The FK-PINN approach is the other strong mean-field method; it reports an $L^2$ absolute error of 1.755 against 16.56 for standard PINNs on the hexagonal mean escape time problem. Our mean, read off the quantile field, must match these methods on their own benchmarks, which we will reimplement under identical settings rather than compare to published numbers across setups. For distributional quantities, such as escape-time quantiles or CVaR fields, there is no reported result found on Lacuna, so the reference is our Monte Carlo ground truth.
The second-moment baseline solves for the mean and the second moment. Each satisfies its own Feynman-Kac equation, so each can be learned with DFLM. The tails are then read from a fitted Gaussian or log-normal.
The discrete distributional RL baseline runs truncated quantile critics, as in the spreading-process paper, on the time-discretized chain with uniform start-state sampling.
The ablation that isolates the key ingredient keeps the distributional loss, walker budget, and $n$ fixed and replaces the horizon-ordered curriculum with uniform start states. A second ablation replaces the curriculum with a random ordering of equal pacing. All methods get the same tuning budget, a fixed grid of learning rate and target-update rate, and each is scored at its best configuration over five seeds.
Why not just…?
Why not just roll every path to the end and do quantile regression on the outcomes? This is a real threat. On short-horizon problems it will likely win, since it has no bootstrap bias. The case for bootstrapping is long horizons. In the double-well escape problem, paths from the well bottoms run far longer than paths from near the boundary, so full rollouts spend most of their budget on a few states. The matched-budget comparison, stratified by true median horizon, settles it. If full rollouts win across all horizon strata, the bootstrap is unjustified, and the contribution reduces to the curriculum-free evaluation study.
Why not just learn the mean and variance, since both have Feynman-Kac equations? Two moments cannot represent bimodality, and bimodality is exactly the failure mode the spreading-process paper found behind catastrophic sim-to-real transfer. Committor-adjacent states in a double well have mixtures of fast and slow escapes. On unimodal problems, such as the corner Laplace problem, the moment baseline may be competitive. We report that honestly and restrict the claim to metastable and failure-prone systems.
Why not just run an off-the-shelf quantile critic on the discretized system? Discrete distributional critics train on sampled transitions from wherever the chain happens to go. They inherit uniform-sampling noise, and the reward is nearly zero per step as $\Delta t$ shrinks. Our method differs in two ways: boundary distributions are imposed exactly, and start states are chosen by the curriculum. The uniform-sampling ablation is essentially this baseline with our architecture, so any gap measures the curriculum and boundary handling directly.
Why not just test the controller under disruptions and count failures? For a few start states this is what one should do, and it provides our ground truth. The quantile field adds an amortized, state-wise risk map from a single training run. If sparse pointwise rollouts predict held-out failure rates as well as the field does, the audit use case collapses. The rank-correlation check below measures exactly this.
Proposed Experiments
The first set of experiments tests distributional accuracy on PDE benchmarks. On the hexagonal double-well mean escape time and committor problems from the FK-PINN paper, and the corner-singularity and interface problems from DFLM, we measure several quantities against $10^5$-path references at held-out states: Wasserstein-1 error of the predicted distribution, quantile error at $\tau \in \{0.05, 0.5, 0.95\}$, and CVaR error at α of 0.05 and 0.2. We also check that the implied mean matches DFLM and FK-PINN accuracy. All errors are plotted against total simulation steps.
The second set is closed-loop auditing. We use robust-invertedpendulum-v0 and robust-hopper-v0 from RRLS (code at SuReLI/RRLS), and the noisy-region InvertedPendulum from the CVaR paper. We take fixed policies trained by TD3, domain randomization, and M2TD3, add Gaussian process noise, and learn each policy's cost-to-go quantile field. Hopper, with its higher-dimensional state, tests whether the walker approach scales beyond toy dimensions.
The third set, the reality-gap test, is the decisive check. We freeze the fields trained under Gaussian noise. We then evaluate each policy under held-out disruptions modelled on Robust Gymnasium: frequent low-magnitude action noise, which that benchmark found more damaging than rare shocks, observation lag, and friction shifts. Empirical failure rates and CVaR come from massive rollouts under each disruption. We then ask three questions. First, does the frozen field's state-wise CVaR rank-correlate, by Spearman correlation, with held-out failure rates better than the mean, the variance, or sparse pointwise rollouts do? Second, does it correctly order the three policies by held-out CVaR? Third, how large is the drift in absolute tail values? We also report the result where the field is right about ranking but wrong about magnitude, since that is exactly the kind of finding simulation-only evaluation usually hides.
The proposal fails if bootstrapped quantiles do not beat full-rollout quantile regression at matched budget on long-horizon strata, or if the curriculum ablation shows no gain. It also fails if the frozen tail map predicts held-out failures no better than mean-and-variance summaries. Any of these outcomes is informative. All conclusions remain sim-to-sim, and we say so throughout.
References
- A Derivative-Free Method for Solving Elliptic Partial Differential Equations with Deep Neural Networks
- Revisiting Rainbow: Promoting more insightful and inclusive deep reinforcement learning research
- Distributional Reinforcement Learning for Efficient Exploration
- Taming the Loss Landscape of PINNs with Noisy Feynman–Kac Supervision: Operator Preconditioning and Non-Asymptotic Error Bounds
- Parabolic Continual Learning
- Closing the Sim-to-Real Gap in Network Spreading Processes via GPU-Accelerated Distributional RL
- Boosting CVaR Policy Optimization with Quantile Gradients
- Self-Paced Learning for Latent Variable Models
- Machine Learning Approximation Algorithms for High-Dimensional Fully Nonlinear Partial Differential Equations and Second-order Backward Stochastic Differential Equations
- Rrls: Robust reinforcement learning suite
- Robust Gymnasium: A Unified Modular Benchmark for Robust Reinforcement Learning