Feynman–Kac PDE Residuals
- Feynman–Kac PDE residual is the operator that encapsulates the drift mismatch when stochastic terms are shifted, spanning classical, non-Markovian, and fully nonlinear settings.
- It unifies diverse formulations from linear parabolic, semilinear, path-dependent, and sublinear PDEs, serving as a consistency check for probabilistic representations in BSDEs and diffusion models.
- Recent numerical methods leverage these residuals to enforce drift cancellation in deep learning and Monte Carlo schemes, enhancing convergence for high-dimensional PDE approximations.
The Feynman–Kac PDE residual is the differential, functional, weak, or viscosity operator obtained by moving all terms of a Feynman–Kac-type equation to one side after a stochastic representation has been specified. In the classical Markovian setting it is the left-hand side of a linear or semilinear parabolic PDE; in BSDE formulations it is the drift discrepancy produced by applying Itô’s formula to a candidate solution; in non-Markovian and path-dependent settings it becomes a functional residual on path space; and in rough, stochastic, or fully nonlinear regimes it is interpreted through weak formulations, viscosity inequalities, or semimartingale drift identities rather than pointwise equalities (Peng et al., 2011, Pozza, 2019, Hu et al., 2010).
1. Basic definition through drift cancellation
In the semilinear parabolic framework, the central PDE has the form
with
The corresponding residual is therefore
together with the terminal residual (Zheng et al., 20 Mar 2025).
The Feynman–Kac principle identifies this residual with a drift term. If solves the forward SDE and solve the associated BSDE, then the representation
implies that Itô’s formula applied to produces the same martingale part as the BSDE. The PDE residual is exactly the remaining drift term. Vanishing of the residual is thus equivalent to stochastic drift cancellation, and this remains the organizing principle even when the state variable, the generator, or the solution concept is generalized (Zheng et al., 20 Mar 2025).
2. Classical linear and forward semilinear residuals
For linear Feynman–Kac formulas, the residual is the familiar parabolic operator. In the perturbed harmonic oscillator problem,
the natural residual is
The same equation may be written in generator form with 0,
1
or with the harmonic oscillator operator 2,
3
The Wiener-space representation proved for this problem yields 4 classically under stronger smoothness assumptions and weakly under the weaker assumptions of the main theorem (Jager, 2010).
A forward, nonconservative semilinear analogue appears in the representation of density evolution: 5 Here the residual is
6
In weak form, residual vanishing is expressed by testing against 7; in mild form, it is the Duhamel identity built from the transition kernel of the forward diffusion. The exponential weight in the forward Feynman–Kac formula supplies the nonconservative source term 8, so the residual measures failure of self-consistency between the weighted law of the diffusion and the semilinear source evaluated at the resulting density and gradient (Lecavil et al., 2016).
3. Path-dependent and non-Markovian residuals
In the path-dependent setting of Peng and Wang, the state variable 9 is replaced by a stopped path 0, and the unknown becomes a functional 1. The associated BSDE is driven by the concatenated path
2
and the deterministic value functional is
3
The path-dependent PDE is
4
so the residual is
5
Its meaning is exact: functional Itô calculus shows that 6 is the drift left over when the candidate functional is inserted into the BSDE, while the martingale matching yields
7
In this framework the residual is a pointwise path-space object in the classical 8 regime (Peng et al., 2011).
Cosso develops the viscosity counterpart on an enlarged path space 9, allowing possibly degenerate forward diffusions. The PPDE is
0
with terminal condition
1
The residual is therefore
2
For nonsmooth solutions it is not evaluated on 3 itself, but on smooth test functionals selected by the path-dependent viscosity tangency condition. The residual remains the drift mismatch of 4, but now encoded in viscosity inequalities rather than classical equalities (Cosso, 2012).
4. Source terms, higher-order operators, and nonconservative formulations
The residual need not be a homogeneous second-order expression. For Brownian-time Brownian motion with multiplicative potential, the Feynman–Kac functional satisfies
5
with 6. The distinguishing term is the time-singular source
7
which makes the initial function 8 enter the PDE itself rather than only the initial condition. In residual form, the full left-hand side is not merely a second-order backward operator but a fourth-order, source-perturbed expression (Allouba, 2010).
A different departure from conservative diffusion occurs in McKean–Feynman–Kac equations. There the weighted law of a McKean-type diffusion is represented by a nonconservative semilinear PDE
9
and the residual is
0
The Feynman–Kac perturbation is the exponential weight
1
and it is precisely this factor that produces the zeroth-order nonconservative term in the residual. In the low-regularity framework of the paper, the rigorous meaning is the weak vanishing of this residual against test functions (Lieber et al., 2018).
5. Viscosity, sublinear, and generalized residuals
When the diffusion generator itself is uncertain or optimized over a family of models, the residual becomes nonlinear in the Hessian and gradient. In the sublinear parabolic problem
2
the residual is
3
Because
4
the residual may also be written as a supremum of linear generator contributions. The associated stochastic representation is a supremum of expectations over controlled forward-backward systems, so the nonlinear residual is the PDE counterpart of model uncertainty or control in the probabilistic formulation (Pozza, 2019).
Under volatility uncertainty in the 5-expectation framework, the discounted payoff
6
solves the fully nonlinear PDE
7
The corresponding residual is
8
or, equivalently,
9
The paper proves pointwise residual vanishing only for regularized equations; the limit solution is characterized in the viscosity sense (Akhtari et al., 2020).
With rough or stochastic coefficients, residuals are often meaningful only after regularization or testing. For the stochastic heat equation with fractional-in-time Gaussian noise,
0
the formal residual
1
is not handled pointwise. Instead, the Feynman–Kac field is shown to satisfy the weak Stratonovich identity
2
obtained as the limit of classical residuals for symmetric time-regularized equations. Under a finite-entropy condition for rough 3 and 4, a different generalized notion arises: the Feynman–Kac function 5 belongs to the 6-localized extended-generator domain of the reference diffusion and satisfies
7
so the residual is a trajectorial semimartingale drift identity rather than a pointwise PDE equation (Hu et al., 2010, Léonard, 2021).
6. Numerical and algorithmic interpretations
In modern computational language, the Feynman–Kac PDE residual may be used either directly as a differential operator or indirectly through probabilistic consistency conditions. The path-dependent theory of Peng and Wang already isolates the natural residual for an approximate functional 8,
9
with terminal mismatch 0. Along simulated concatenated paths 1, the drift discrepancy in the induced BSDE dynamics is precisely 2, which gives a direct pathwise meaning to residual evaluation even though the paper itself does not propose a residual-minimization algorithm (Peng et al., 2011).
By contrast, deep Feynman–Kac methods for high-dimensional semilinear PDEs may avoid explicit differential residuals altogether. In the DFK-GT method, the PDE
3
is enforced through a time-discrete Feynman–Kac recursion, and the minimized object is a Monte Carlo regression mismatch rather than a pointwise PINN residual. In the one-step form the natural sample residual is
4
while the DFK-GT variant replaces the one-step target by a recursively accumulated pathwise target 5. The resulting loss is therefore a discrete probabilistic consistency residual, not
6
evaluated at collocation points. In the linear case, the backward target reduces to a direct Monte Carlo estimator of the Feynman–Kac payoff functional (Zheng et al., 20 Mar 2025).
Across these formulations, the phrase “Feynman–Kac PDE residual” does not denote a single universal operator. It denotes a family of structurally related objects: a pointwise differential operator in smooth Markovian problems, a functional drift term on path space in non-Markovian BSDEs, a source-perturbed or higher-order operator in Brownian-time models, a weak or mild defect in stochastic or singular equations, a viscosity inequality under nonlinear generators, or a probabilistic consistency error in deep algorithms. What remains invariant is the underlying principle: the residual measures the failure of the stochastic representation and the PDE dynamics to produce the same drift.