Papers
Topics
Authors
Recent
Search
2000 character limit reached

Feynman–Kac PDE Residuals

Updated 5 July 2026
  • 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

tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x))=0,u(T,x)=g(x),\partial_t u(t,x)+\mathcal L u(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr)=0,\qquad u(T,x)=g(x),

with

Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).

The corresponding residual is therefore

R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),

together with the terminal residual u(T,x)g(x)u(T,x)-g(x) (Zheng et al., 20 Mar 2025).

The Feynman–Kac principle identifies this residual with a drift term. If XX solves the forward SDE and Y,ZY,Z solve the associated BSDE, then the representation

Yt=u(t,Xt),Zt=σ(t,Xt)u(t,Xt)Y_t=u(t,X_t),\qquad Z_t=\sigma^\top(t,X_t)\nabla u(t,X_t)

implies that Itô’s formula applied to u(t,Xt)u(t,X_t) 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,

tv(t,x)x2v(t,x)+(x2+c(t,x))v(t,x)=0,\partial_t v(t,x)-\partial_x^2 v(t,x)+\bigl(x^2+c(t,x)\bigr)v(t,x)=0,

the natural residual is

R[v](t,x)=tv(t,x)x2v(t,x)+(x2+c(t,x))v(t,x).\mathcal R[v](t,x)=\partial_t v(t,x)-\partial_x^2 v(t,x)+\bigl(x^2+c(t,x)\bigr)v(t,x).

The same equation may be written in generator form with Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).0,

Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).1

or with the harmonic oscillator operator Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).2,

Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).3

The Wiener-space representation proved for this problem yields Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).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: Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).5 Here the residual is

Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).6

In weak form, residual vanishing is expressed by testing against Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).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 Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).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 Lu(t,x)=u(t,x)μ(t,x)+12Tr ⁣(σ(t,x)σ(t,x)Hessxu(t,x)).\mathcal L u(t,x)=\nabla u(t,x)\cdot \mu(t,x)+\frac12 \operatorname{Tr}\!\Big(\sigma(t,x)\sigma(t,x)^\top \,\mathrm{Hess}_x\,u(t,x)\Big).9 is replaced by a stopped path R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),0, and the unknown becomes a functional R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),1. The associated BSDE is driven by the concatenated path

R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),2

and the deterministic value functional is

R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),3

The path-dependent PDE is

R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),4

so the residual is

R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),5

Its meaning is exact: functional Itô calculus shows that R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),6 is the drift left over when the candidate functional is inserted into the BSDE, while the martingale matching yields

R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),7

In this framework the residual is a pointwise path-space object in the classical R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),8 regime (Peng et al., 2011).

Cosso develops the viscosity counterpart on an enlarged path space R[u](t,x):=tu(t,x)+Lu(t,x)+f(t,x,u(t,x),σ(t,x)u(t,x)),\mathcal R[u](t,x):=\partial_tu(t,x)+\mathcal Lu(t,x)+f\bigl(t,x,u(t,x),\sigma^\top(t,x)\nabla u(t,x)\bigr),9, allowing possibly degenerate forward diffusions. The PPDE is

u(T,x)g(x)u(T,x)-g(x)0

with terminal condition

u(T,x)g(x)u(T,x)-g(x)1

The residual is therefore

u(T,x)g(x)u(T,x)-g(x)2

For nonsmooth solutions it is not evaluated on u(T,x)g(x)u(T,x)-g(x)3 itself, but on smooth test functionals selected by the path-dependent viscosity tangency condition. The residual remains the drift mismatch of u(T,x)g(x)u(T,x)-g(x)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

u(T,x)g(x)u(T,x)-g(x)5

with u(T,x)g(x)u(T,x)-g(x)6. The distinguishing term is the time-singular source

u(T,x)g(x)u(T,x)-g(x)7

which makes the initial function u(T,x)g(x)u(T,x)-g(x)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

u(T,x)g(x)u(T,x)-g(x)9

and the residual is

XX0

The Feynman–Kac perturbation is the exponential weight

XX1

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

XX2

the residual is

XX3

Because

XX4

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 XX5-expectation framework, the discounted payoff

XX6

solves the fully nonlinear PDE

XX7

The corresponding residual is

XX8

or, equivalently,

XX9

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,

Y,ZY,Z0

the formal residual

Y,ZY,Z1

is not handled pointwise. Instead, the Feynman–Kac field is shown to satisfy the weak Stratonovich identity

Y,ZY,Z2

obtained as the limit of classical residuals for symmetric time-regularized equations. Under a finite-entropy condition for rough Y,ZY,Z3 and Y,ZY,Z4, a different generalized notion arises: the Feynman–Kac function Y,ZY,Z5 belongs to the Y,ZY,Z6-localized extended-generator domain of the reference diffusion and satisfies

Y,ZY,Z7

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 Y,ZY,Z8,

Y,ZY,Z9

with terminal mismatch Yt=u(t,Xt),Zt=σ(t,Xt)u(t,Xt)Y_t=u(t,X_t),\qquad Z_t=\sigma^\top(t,X_t)\nabla u(t,X_t)0. Along simulated concatenated paths Yt=u(t,Xt),Zt=σ(t,Xt)u(t,Xt)Y_t=u(t,X_t),\qquad Z_t=\sigma^\top(t,X_t)\nabla u(t,X_t)1, the drift discrepancy in the induced BSDE dynamics is precisely Yt=u(t,Xt),Zt=σ(t,Xt)u(t,Xt)Y_t=u(t,X_t),\qquad Z_t=\sigma^\top(t,X_t)\nabla u(t,X_t)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

Yt=u(t,Xt),Zt=σ(t,Xt)u(t,Xt)Y_t=u(t,X_t),\qquad Z_t=\sigma^\top(t,X_t)\nabla u(t,X_t)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

Yt=u(t,Xt),Zt=σ(t,Xt)u(t,Xt)Y_t=u(t,X_t),\qquad Z_t=\sigma^\top(t,X_t)\nabla u(t,X_t)4

while the DFK-GT variant replaces the one-step target by a recursively accumulated pathwise target Yt=u(t,Xt),Zt=σ(t,Xt)u(t,Xt)Y_t=u(t,X_t),\qquad Z_t=\sigma^\top(t,X_t)\nabla u(t,X_t)5. The resulting loss is therefore a discrete probabilistic consistency residual, not

Yt=u(t,Xt),Zt=σ(t,Xt)u(t,Xt)Y_t=u(t,X_t),\qquad Z_t=\sigma^\top(t,X_t)\nabla u(t,X_t)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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Feynman-Kac PDE Residual.