Controlled diffusion process
CDP
A controlled diffusion process ( X t u ∈ R d ) t ∈ [ 0 , T ] (\bm{X}_{t}^{\bm{u}} \in \mathbb{R}^{d})_{t \in [0,T]} ( X t u ∈ R d ) t ∈ [ 0 , T ] is defined as the solution to the SDE:
d X t u = [ f ( X t u , t ) + σ t u ( X t u , t ) ] d t + σ t d B t , \begin{align}
\mathrm{d}\bm{X}_{t}^{\bm{u}}
&= \left[ \bm{f}(\bm{X}_{t}^{\bm{u}}, t) + \sigma_{t}\bm{u}(\bm{X}_{t}^{\bm{u}}, t) \right] \mathrm{d}t + \sigma_{t}\mathrm{d}\bm{B}_{t},
\end{align} d X t u = [ f ( X t u , t ) + σ t u ( X t u , t ) ] d t + σ t d B t ,
with the reference drift f : R d × [ 0 , T ] → R d \bm{f} : \mathbb{R}^{d} \times [0, T] \rightarrow \mathbb{R}^{d} f : R d × [ 0 , T ] → R d , the diffusion coefficient σ t : [ 0 , T ] → R ≥ 0 \sigma_{t} : [0, T] \rightarrow \mathbb{R}_{\geq 0} σ t : [ 0 , T ] → R ≥ 0 , and the control drift u : R d × [ 0 , T ] → R d \bm{u} : \mathbb{R}^{d} \times [0, T] \rightarrow \mathbb{R}^{d} u : R d × [ 0 , T ] → R d .
The corresponding reverse-time process ( X ˉ t ˉ u = X T − t ˉ u ) t ˉ ∈ [ 0 , T ] ( \bar{\bm{X}}_{\bar{t}}^{\bm{u}} = \bm{X}_{T - \bar{t}}^{\bm{u}} )_{\bar{t} \in [0,T]} ( X ˉ t ˉ u = X T − t ˉ u ) t ˉ ∈ [ 0 , T ] satisfies:
d X ˉ t ˉ u = [ − f ( X ˉ t ˉ u , T − t ˉ ) − σ T − t ˉ u ( X ˉ t ˉ u , T − t ˉ ) + σ T − t ˉ 2 ∇ log p T − t ˉ u ( X ˉ t ˉ u ) ] d t ˉ + σ T − t ˉ d B ˉ t ˉ , \begin{align}\textstyle
\mathrm{d}\bar{\bm{X}}_{\bar{t}}^{\bm{u}}
&= \left[
- \bm{f}(\bar{\bm{X}}_{\bar{t}}^{\bm{u}}, T - \bar{t})
- \sigma_{T - \bar{t}}\bm{u}(\bar{\bm{X}}_{\bar{t}}^{\bm{u}}, T - \bar{t})
+ \sigma_{T - \bar{t}}^{2}\nabla\log{p_{T - \bar{t}}^{\bm{u}}(\bar{\bm{X}}_{\bar{t}}^{\bm{u}})}
\right] \mathrm{d}\bar{t} + \sigma_{T - \bar{t}}\mathrm{d}\bar{\bm{B}}_{\bar{t}},
\end{align} d X ˉ t ˉ u = [ − f ( X ˉ t ˉ u , T − t ˉ ) − σ T − t ˉ u ( X ˉ t ˉ u , T − t ˉ ) + σ T − t ˉ 2 ∇ log p T − t ˉ u ( X ˉ t ˉ u ) ] d t ˉ + σ T − t ˉ d B ˉ t ˉ ,
where p t u p_{t}^{\bm{u}} p t u is the marginal density of X t u \bm{X}_{t}^{\bm{u}} X t u at time t t t , i.e., X t u ∼ p t u \bm{X}_{t}^{\bm{u}} \sim p_{t}^{\bm{u}} X t u ∼ p t u .
FPE provides a forward-time evolution of p t u p_{t}^{\bm{u}} p t u :
∂ t p t u ( x ) = − ∇ ⋅ { [ f ( x , t ) + σ t u ( x , t ) ] p t u ( x ) } + σ t 2 2 Δ p t u ( x ) . \begin{align}\textstyle
\partial_{t} p_{t}^{\bm{u}}(\bm{x})
= -\nabla \cdot \left\{
\left[
\bm{f}(\bm{x}, t) + \sigma_{t} \bm{u}(\bm{x}, t)
\right] p_{t}^{\bm{u}}(\bm{x})
\right\} + \frac{\sigma_{t}^{2}}{2} \Delta p_{t}^{\bm{u}}(\bm{x}).
\end{align} ∂ t p t u ( x ) = − ∇ ⋅ { [ f ( x , t ) + σ t u ( x , t ) ] p t u ( x ) } + 2 σ t 2 Δ p t u ( x ) .
KLD
Let P u \mathbb{P}^{\bm{u}} P u and P u ~ \mathbb{P}^{\tilde{\bm{u}}} P u ~ be path measures on the space of continuous paths C ( [ 0 , T ] ; R d ) C([0,T];\mathbb{R}^{d}) C ([ 0 , T ] ; R d ) , induced by SDEs with the same initial law, the same reference drift f \bm{f} f , and the same diffusion coefficient σ t \sigma_{t} σ t , but governed by different controls u \bm{u} u and u ~ \tilde{\bm{u}} u ~ .
Assuming absolute continuity P u ≪ P u ~ \mathbb{P}^{\bm{u}} \ll \mathbb{P}^{\tilde{\bm{u}}} P u ≪ P u ~ , the KLD of P u \mathbb{P}^{\bm{u}} P u with respect to P u ~ \mathbb{P}^{\tilde{\bm{u}}} P u ~ is given by:
D KL ( P u ∥ P u ~ ) = E X 0 : T u ∼ P u [ 1 2 ∫ 0 T ∥ u ( X t u , t ) − u ~ ( X t u , t ) ∥ 2 d t ] , = ∫ 0 T ∫ R d [ 1 2 ∥ u ( x , t ) − u ~ ( x , t ) ∥ 2 p t u ( x ) ] d x d t . \begin{align}
D_{\text{KL}} \left(
\mathbb{P}^{\bm{u}} \parallel \mathbb{P}^{\tilde{\bm{u}}}
\right)
&\textstyle = \mathbb{E}_{\bm{X}_{0:T}^{\bm{u}} \sim \mathbb{P}^{\bm{u}}} \left[
\frac{1}{2} \int_{0}^{T} \left\lVert
\bm{u}(\bm{X}_{t}^{\bm{u}}, t)
- \tilde{\bm{u}}(\bm{X}_{t}^{\bm{u}}, t)
\right\rVert^{2} \mathrm{d}t
\right], \\
&\textstyle = \int_{0}^{T} \int_{\mathbb{R}^{d}} \left[ \frac{1}{2} \left\lVert
\bm{u}(\bm{x}, t) - \tilde{\bm{u}}(\bm{x}, t)
\right\rVert^{2} p_{t}^{\bm{u}}(\bm{x}) \right] \mathrm{d}\bm{x} \mathrm{d}t.
\end{align} D KL ( P u ∥ P u ~ ) = E X 0 : T u ∼ P u [ 2 1 ∫ 0 T ∥ u ( X t u , t ) − u ~ ( X t u , t ) ∥ 2 d t ] , = ∫ 0 T ∫ R d [ 2 1 ∥ u ( x , t ) − u ~ ( x , t ) ∥ 2 p t u ( x ) ] d x d t .
Stochastic Optimal Control
SOC
The SOC formulation aims to determine the optimal control u ∗ \bm{u}^{\ast} u ∗ that minimally perturbs the reference dynamics starting from π 0 \pi_{0} π 0 while minimizing the cost:
inf u D KL ( P u ∥ P 0 ) + E X 0 : T u ∼ P u [ ∫ 0 T c ( X t u , t ) d t + Φ ( X T u ) ] , s.t. d X t u = [ f ( X t u , t ) + σ t u ( X t u , t ) ] d t + σ t d B t , X 0 u ∼ π 0 , \begin{align}
\inf_{\bm{u}}
& \textstyle \quad D_{\text{KL}}\left(
\mathbb{P}^{\bm{u}} \parallel \mathbb{P}^{\bm{0}}
\right) + \mathbb{E}_{\bm{X}_{0:T}^{\bm{u}} \sim \mathbb{P}^{\bm{u}}} \left[
\int_{0}^{T} c(\bm{X}_{t}^{\bm{u}}, t) \mathrm{d}t + \Phi(\bm{X}_{T}^{\bm{u}})
\right], \\
\text{s.t.}
& \textstyle \quad \mathrm{d}\bm{X}_{t}^{\bm{u}} = \left[
\bm{f}(\bm{X}_{t}^{\bm{u}}, t) + \sigma_{t} \bm{u}(\bm{X}_{t}^{\bm{u}}, t)
\right] \mathrm{d}t + \sigma_{t} \mathrm{d} \bm{B}_{t}, \bm{X}_{0}^{\bm{u}} \sim \pi_{0},
\end{align} u inf s.t. D KL ( P u ∥ P 0 ) + E X 0 : T u ∼ P u [ ∫ 0 T c ( X t u , t ) d t + Φ ( X T u ) ] , d X t u = [ f ( X t u , t ) + σ t u ( X t u , t ) ] d t + σ t d B t , X 0 u ∼ π 0 ,
where c : R d × [ 0 , T ] → R c : \mathbb{R}^{d} \times [0,T] \rightarrow \mathbb{R} c : R d × [ 0 , T ] → R is the running cost, and Φ : R d → R \Phi : \mathbb{R}^{d} \rightarrow \mathbb{R} Φ : R d → R is the terminal cost.
We define the value function V t : R d → R V_{t} : \mathbb{R}^{d} \rightarrow \mathbb{R} V t : R d → R as the optimal cost-to-go from any fixed point ( x , t ) (\bm{x}, t) ( x , t ) :
V t ( x ) = inf u E X t : T u ∼ P u [ ∫ t T ( 1 2 ∥ u ( X s u , s ) ∥ 2 + c ( X s u , s ) ) d s + Φ ( X T u ) ∣ X t u = x ] = inf u E X t : T u ∼ P u [ ∫ t τ ( 1 2 ∥ u ( X s u , s ) ∥ 2 + c ( X s u , s ) ) d s + V τ ( X τ u ) ∣ X t u = x ] , \begin{align}
V_{t}(\bm{x})
& \textstyle = \inf_{\bm{u}} \mathbb{E}_{\bm{X}_{t:T}^{\bm{u}} \sim \mathbb{P}^{\bm{u}}} \left[
\int_{t}^{T} \left(
\frac{1}{2}\left\lVert \bm{u}(\bm{X}_{s}^{\bm{u}}, s) \right\rVert^{2} + c(\bm{X}_{s}^{\bm{u}}, s)
\right) \mathrm{d}s + \Phi(\bm{X}_{T}^{\bm{u}}) \mid \bm{X}_{t}^{\bm{u}} = \bm{x}
\right] \\
& \textstyle = \inf_{\bm{u}} \mathbb{E}_{\bm{X}_{t:T}^{\bm{u}} \sim \mathbb{P}^{\bm{u}}} \left[
\int_{t}^{\tau} \left(
\frac{1}{2}\left\lVert \bm{u}(\bm{X}_{s}^{\bm{u}}, s) \right\rVert^{2} + c(\bm{X}_{s}^{\bm{u}}, s)
\right) \mathrm{d}s + V_{\tau}(\bm{X}_{\tau}^{\bm{u}}) \mid \bm{X}_{t}^{\bm{u}} = \bm{x}
\right],
\end{align} V t ( x ) = inf u E X t : T u ∼ P u [ ∫ t T ( 2 1 ∥ u ( X s u , s ) ∥ 2 + c ( X s u , s ) ) d s + Φ ( X T u ) ∣ X t u = x ] = inf u E X t : T u ∼ P u [ ∫ t τ ( 2 1 ∥ u ( X s u , s ) ∥ 2 + c ( X s u , s ) ) d s + V τ ( X τ u ) ∣ X t u = x ] ,
which solves the HJB equation and satisfies the backward-time evolution in the SDE:
∂ t V t = − [ ⟨ f , ∇ V t ⟩ + σ t 2 2 Δ V t ] + σ t 2 2 ∥ ∇ V t ∥ 2 − c , s.t. V T = Φ , d V t = ( σ t 2 2 ∥ ∇ V t ∥ 2 − c + ⟨ σ t u , ∇ V t ⟩ ) d t + ∇ V t ⊤ σ t d B t . \begin{align}\textstyle
\partial_{t} V_{t}
& \textstyle = - \left[
\langle \bm{f}, \nabla V_{t} \rangle
+ \frac{\sigma_{t}^{2}}{2} \Delta V_{t}
\right] + \frac{\sigma_{t}^{2}}{2} \left\lVert \nabla V_{t} \right\rVert^{2} - c,
\quad\text{s.t.}\quad V_{T} = \Phi, \\
\mathrm{d}V_{t}
& \textstyle = \left(
\frac{\sigma_{t}^{2}}{2} \left\lVert
\nabla V_{t}
\right\rVert^{2} - c + \langle
\sigma_{t} \bm{u}, \nabla V_{t}
\rangle
\right) \mathrm{d}t + \nabla V_{t}^\top \sigma_{t} \mathrm{d}\bm{B}_{t}.
\end{align} ∂ t V t d V t = − [ ⟨ f , ∇ V t ⟩ + 2 σ t 2 Δ V t ] + 2 σ t 2 ∥ ∇ V t ∥ 2 − c , s.t. V T = Φ , = ( 2 σ t 2 ∥ ∇ V t ∥ 2 − c + ⟨ σ t u , ∇ V t ⟩ ) d t + ∇ V t ⊤ σ t d B t .
Here, the optimal control u ∗ \bm{u}^{\ast} u ∗ is written in terms of the value function:
u ∗ ( x , t ) = − σ t ∇ V t ( x ) . \begin{align}
\bm{u}^{\ast}(\bm{x}, t) = - \sigma_{t} \nabla V_{t}(\bm{x}).
\end{align} u ∗ ( x , t ) = − σ t ∇ V t ( x ) .
Introducing the desirability function ϕ t = e − V t \phi_{t} = e^{-V_{t}} ϕ t = e − V t converts the non-linear HJB equation into the linear PDE for ϕ t \phi_{t} ϕ t :
∂ t ϕ t = − [ ⟨ f , ∇ ϕ t ⟩ + σ t 2 2 Δ ϕ t ] + c ϕ t , s.t. ϕ T = exp ( − Φ ) , \begin{align}\textstyle
\partial_{t} \phi_{t}
= - \left[
\langle \bm{f}, \nabla \phi_{t} \rangle + \frac{\sigma_{t}^{2}}{2} \Delta \phi_{t}
\right] + c \phi_{t},
\quad\text{s.t.}\quad \phi_{T} = \exp{\left(-\Phi\right)},
\end{align} ∂ t ϕ t = − [ ⟨ f , ∇ ϕ t ⟩ + 2 σ t 2 Δ ϕ t ] + c ϕ t , s.t. ϕ T = exp ( − Φ ) ,
which, via FKF, yields
ϕ t ( x ) = E X 0 : T ∼ P 0 [ exp ( − ∫ t T c ( X s , s ) d s − Φ ( X T ) ) ∣ X t = x ] . \begin{align}\textstyle
\phi_{t}(\bm{x}) = \mathbb{E}_{\bm{X}_{0:T} \sim \mathbb{P}^{\bm{0}}} \left[
\exp{\left( -\int_{t}^{T} c(\bm{X}_{s}, s) \mathrm{d}s - \Phi(\bm{X}_{T}) \right)} \mid \bm{X}_{t} = \bm{x}
\right].
\end{align} ϕ t ( x ) = E X 0 : T ∼ P 0 [ exp ( − ∫ t T c ( X s , s ) d s − Φ ( X T ) ) ∣ X t = x ] .
Here, the optimal control u ∗ \bm{u}^{\ast} u ∗ is written in terms of the desirability function:
u ∗ ( x , t ) = σ t ∇ log ϕ t ( x ) . \begin{align}
\bm{u}^{\ast}(\bm{x}, t) = \sigma_{t} \nabla \log{\phi_{t}(\bm{x})}.
\end{align} u ∗ ( x , t ) = σ t ∇ log ϕ t ( x ) .
Lagrangian mechanics
The Lagrangian, action, generalized momentum, and generalized force are:
L ( x , x ˙ , t ) = 1 2 ∥ x ˙ − f ( x , t ) σ t ∥ 2 + c ( x , t ) , S [ x ] = ∫ 0 T L ( x , x ˙ , t ) d t + Φ ( x T ) , p = ∂ L ∂ x ˙ = u σ t , p ˙ = ∂ L ∂ x = − ( ∇ f ) ⊤ p + ∇ c . \begin{align}
L(\bm{x}, \dot{\bm{x}}, t)
& \textstyle = \frac{1}{2} \left\lVert \frac{\dot{\bm{x}} - \bm{f}(\bm{x}, t)}{\sigma_{t}} \right\rVert^{2} + c(\bm{x}, t), \\
S[\bm{x}]
& \textstyle = \int_{0}^{T} L(\bm{x}, \dot{\bm{x}}, t) \mathrm{d}t + \Phi(\bm{x}_{T}), \\
\bm{p}
& \textstyle = \frac{\partial L}{\partial\dot{\bm{x}}} = \frac{\bm{u}}{\sigma_{t}}, \\
\dot{\bm{p}}
& \textstyle = \frac{\partial L}{\partial\bm{x}} = -(\nabla \bm{f})^{\top} \bm{p} + \nabla c.
\end{align} L ( x , x ˙ , t ) S [ x ] p p ˙ = 2 1 σ t x ˙ − f ( x , t ) 2 + c ( x , t ) , = ∫ 0 T L ( x , x ˙ , t ) d t + Φ ( x T ) , = ∂ x ˙ ∂ L = σ t u , = ∂ x ∂ L = − ( ∇ f ) ⊤ p + ∇ c .
The Hamiltonian and canonical equation are:
H ( x , p , t ) = ⟨ p , x ˙ ⟩ − L ( x , x ˙ , t ) = ⟨ p , f ( x , t ) ⟩ + σ t 2 2 ∥ p ∥ 2 − c ( x , t ) , x ˙ = ∂ H ∂ p = f ( x , t ) + σ t 2 p , p ˙ = − ∂ H ∂ x = − ( ∇ f ) ⊤ p + ∇ c . \begin{align}
H(\bm{x}, \bm{p}, t)
& \textstyle = \langle \bm{p}, \dot{\bm{x}} \rangle - L(\bm{x}, \dot{\bm{x}}, t) \\
& \textstyle = \langle \bm{p}, \bm{f}(\bm{x}, t) \rangle + \frac{\sigma_{t}^{2}}{2} \left\lVert \bm{p} \right\rVert^{2} - c(\bm{x}, t), \\
\dot{\bm{x}} & \textstyle = \frac{\partial H}{\partial \bm{p}} = \bm{f}(\bm{x}, t) + \sigma_{t}^{2} \bm{p}, \\
\dot{\bm{p}} & \textstyle = -\frac{\partial H}{\partial \bm{x}} = -(\nabla \bm{f})^{\top} \bm{p} + \nabla c.
\end{align} H ( x , p , t ) x ˙ p ˙ = ⟨ p , x ˙ ⟩ − L ( x , x ˙ , t ) = ⟨ p , f ( x , t )⟩ + 2 σ t 2 ∥ p ∥ 2 − c ( x , t ) , = ∂ p ∂ H = f ( x , t ) + σ t 2 p , = − ∂ x ∂ H = − ( ∇ f ) ⊤ p + ∇ c .
The HJB equation can be rewritten in terms of the Hamiltonian:
∂ t V t + σ t 2 2 Δ V t = H ( x , − ∇ V t , t ) . \begin{align}\textstyle
\partial_{t} V_{t} + \frac{\sigma_{t}^{2}}{2} \Delta V_{t} = H(\bm{x}, -\nabla V_{t}, t).
\end{align} ∂ t V t + 2 σ t 2 Δ V t = H ( x , − ∇ V t , t ) .
Option pricing
Substituting x = log S x = \log{S} x = log S , ϕ t ( x ) = C ( e x , t ) \phi_{t}(x) = C(e^{x}, t) ϕ t ( x ) = C ( e x , t ) , σ t = σ \sigma_{t} = \sigma σ t = σ , c ( x , t ) = r c(x, t) = r c ( x , t ) = r , f ( x , t ) = r − 1 2 σ 2 \bm{f}(x, t) = r - \frac{1}{2}\sigma^{2} f ( x , t ) = r − 2 1 σ 2 yields:
∂ t C + r S ∂ S C + 1 2 σ 2 S 2 ∂ S S C − r C = 0 , \begin{align}\textstyle
\partial_{t} C + r S \partial_{S} C + \frac{1}{2} \sigma^{2} S^{2} \partial_{SS} C - rC = 0,
\end{align} ∂ t C + r S ∂ S C + 2 1 σ 2 S 2 ∂ S S C − r C = 0 ,
which is formally equivalent to the Black-Scholes equation for an underlying asset price S ( t ) S(t) S ( t ) , a call option price C ( S , t ) C(S, t) C ( S , t ) , a volatility σ \sigma σ , and a risk-free interest rate r r r .
Dynamic Schrodinger Bridge
DSB
The DSB formulation aims to determine the optimal pair of control and density that minimally perturbs the reference dynamics subject to initial and terminal marginal constraints:
inf u , p t u D KL ( P u ∥ P 0 ) , s.t. d X t u = [ f ( X t u , t ) + σ t u ( X t u , t ) ] d t + σ t d B t , X 0 u ∼ π 0 , X T u ∼ π T . \begin{align}
\inf_{\bm{u}, p_{t}^{\bm{u}}}
& \textstyle \quad D_{\text{KL}}\left(
\mathbb{P}^{\bm{u}} \parallel \mathbb{P}^{\bm{0}}
\right), \\
\text{s.t.}
& \textstyle \quad \mathrm{d}\bm{X}_{t}^{\bm{u}} = \left[
\bm{f}(\bm{X}_{t}^{\bm{u}}, t) + \sigma_{t} \bm{u}(\bm{X}_{t}^{\bm{u}}, t)
\right] \mathrm{d}t + \sigma_{t} \mathrm{d} \bm{B}_{t}, \bm{X}_{0}^{\bm{u}} \sim \pi_{0}, \bm{X}_{T}^{\bm{u}} \sim \pi_{T}.
\end{align} u , p t u inf s.t. D KL ( P u ∥ P 0 ) , d X t u = [ f ( X t u , t ) + σ t u ( X t u , t ) ] d t + σ t d B t , X 0 u ∼ π 0 , X T u ∼ π T .
We reframe this as an unconstrained optimization problem by introducing a Lagrangian with a Lagrange multiplier ψ t : R d → R \psi_{t} : \mathbb{R}^{d} \rightarrow \mathbb{R} ψ t : R d → R :
L ( p t u , u , ψ t ) = ∫ 0 T ∫ R d { 1 2 ∥ u ∥ 2 p t u + ψ t ⋅ [ ∂ t p t u + ∇ ⋅ [ ( f + σ t u ) p t u ] − σ t 2 2 Δ p t u ] } d x d t , \begin{align}\textstyle
\mathcal{L}(p_{t}^{\bm{u}}, \bm{u}, \psi_{t})
= \int_{0}^{T} \int_{\mathbb{R}^{d}} \left\{
\frac{1}{2} \left\lVert \bm{u} \right\rVert^{2} p_{t}^{\bm{u}}
+ \psi_{t} \cdot \left[
\partial_{t}p_{t}^{\bm{u}} + \nabla \cdot \left[ \left( \bm{f} + \sigma_{t}\bm{u} \right) p_{t}^{\bm{u}} \right] - \frac{\sigma_{t}^{2}}{2} \Delta p_{t}^{\bm{u}}
\right]
\right\} \mathrm{d}\bm{x} \mathrm{d}t,
\end{align} L ( p t u , u , ψ t ) = ∫ 0 T ∫ R d { 2 1 ∥ u ∥ 2 p t u + ψ t ⋅ [ ∂ t p t u + ∇ ⋅ [ ( f + σ t u ) p t u ] − 2 σ t 2 Δ p t u ] } d x d t ,
which yields the minimizer ( u ∗ , p t ∗ ) (\bm{u}^{\ast}, p_{t}^{\ast}) ( u ∗ , p t ∗ ) as the solution to the HJB-FP system:
{ ∂ t ψ t = − σ t 2 2 ∥ ∇ ψ t ∥ 2 − ⟨ ∇ ψ t , f ⟩ − σ t 2 2 Δ ψ t , ∂ t p t ∗ = − ∇ ⋅ [ ( f + σ t 2 ∇ ψ t ) p t ∗ ] + σ t 2 2 Δ p t ∗ , s.t. { p 0 ∗ = π 0 , p T ∗ = π T . \begin{align}
\begin{cases}
\partial_{t}\psi_{t} = -\frac{\sigma_{t}^{2}}{2} \left\lVert \nabla \psi_{t} \right\rVert^{2} - \langle \nabla \psi_{t}, \bm{f} \rangle - \frac{\sigma_{t}^{2}}{2} \Delta \psi_{t}, \\
\partial_{t}p_{t}^{\ast} = - \nabla \cdot \left[ \left( \bm{f} + \sigma_{t}^{2}\nabla\psi_{t} \right) p_{t}^{\ast} \right] + \frac{\sigma_{t}^{2}}{2} \Delta p_{t}^{\ast},
\end{cases}
\quad \text{s.t.} \quad
\begin{cases}
p_{0}^{\ast} = \pi_{0}, \\
p_{T}^{\ast} = \pi_{T}.
\end{cases}
\end{align} { ∂ t ψ t = − 2 σ t 2 ∥ ∇ ψ t ∥ 2 − ⟨ ∇ ψ t , f ⟩ − 2 σ t 2 Δ ψ t , ∂ t p t ∗ = − ∇ ⋅ [ ( f + σ t 2 ∇ ψ t ) p t ∗ ] + 2 σ t 2 Δ p t ∗ , s.t. { p 0 ∗ = π 0 , p T ∗ = π T .
Here, the optimal control u ∗ \bm{u}^{\ast} u ∗ is written in terms of the Lagrange multiplier:
u ∗ ( x , t ) = σ t ∇ ψ t ( x ) . \begin{align}
\bm{u}^{\ast}(\bm{x}, t) = \sigma_{t} \nabla \psi_{t}(\bm{x}).
\end{align} u ∗ ( x , t ) = σ t ∇ ψ t ( x ) .
Applying the change of variables ( ψ t , p t ∗ ) ↦ ( ϕ t , ϕ ^ t ) (\psi_{t}, p_{t}^{\ast}) \mapsto (\phi_{t}, \hat{\phi}_{t}) ( ψ t , p t ∗ ) ↦ ( ϕ t , ϕ ^ t ) , defined as ψ t = log ϕ t \psi_{t} = \log{\phi_{t}} ψ t = log ϕ t and p t ∗ = ϕ t ϕ ^ t p_{t}^{\ast} = \phi_{t}\hat{\phi}_{t} p t ∗ = ϕ t ϕ ^ t , transforms the non-linear HJB-FP system into the linear system for a Schrodinger potential ( ϕ t , ϕ ^ t ) (\phi_{t}, \hat{\phi}_{t}) ( ϕ t , ϕ ^ t ) :
{ ∂ t ϕ t = − ⟨ ∇ ϕ t , f ⟩ − σ t 2 2 Δ ϕ t , ∂ t ϕ ^ t = − ∇ ⋅ ( ϕ ^ t f ) + σ t 2 2 Δ ϕ ^ t , s.t. { p 0 ∗ = ϕ 0 ϕ ^ 0 , p T ∗ = ϕ T ϕ ^ T , \begin{align}
\begin{cases}
\partial_{t}\phi_{t} = -\langle \nabla \phi_{t}, \bm{f} \rangle - \frac{\sigma_{t}^{2}}{2} \Delta \phi_{t}, \\
\partial_{t}\hat{\phi}_{t} = - \nabla \cdot (\hat{\phi}_{t} \bm{f}) + \frac{\sigma_{t}^{2}}{2} \Delta \hat{\phi}_{t},
\end{cases}
\quad \text{s.t.} \quad
\begin{cases}
p_{0}^{\ast} = \phi_{0}\hat{\phi}_{0}, \\
p_{T}^{\ast} = \phi_{T} \hat{\phi}_{T},
\end{cases}
\end{align} { ∂ t ϕ t = − ⟨ ∇ ϕ t , f ⟩ − 2 σ t 2 Δ ϕ t , ∂ t ϕ ^ t = − ∇ ⋅ ( ϕ ^ t f ) + 2 σ t 2 Δ ϕ ^ t , s.t. { p 0 ∗ = ϕ 0 ϕ ^ 0 , p T ∗ = ϕ T ϕ ^ T ,
where the solution is given by:
{ ϕ t ( x ) = ∫ R d P T ∣ t 0 ( y ∣ x ) ϕ T ( y ) d y , ϕ ^ t ( x ) = ∫ R d P t ∣ 0 0 ( x ∣ y ) ϕ ^ 0 ( y ) d y , s.t. { π 0 ( x ) = ϕ 0 ( x ) ϕ ^ 0 ( x ) , π T ( x ) = ϕ T ( x ) ϕ ^ T ( x ) . \begin{align}
\begin{cases}
\phi_{t}(\bm{x}) = \int_{\mathbb{R}^{d}} \mathbb{P}_{T \mid t}^{\bm{0}}(\bm{y} \mid \bm{x}) \phi_{T}(\bm{y}) \mathrm{d}\bm{y}, \\
\hat{\phi}_{t}(\bm{x}) = \int_{\mathbb{R}^{d}} \mathbb{P}_{t \mid 0}^{\bm{0}}(\bm{x} \mid \bm{y}) \hat{\phi}_{0}(\bm{y}) \mathrm{d}\bm{y},
\end{cases}
\quad \text{s.t.} \quad
\begin{cases}
\pi_{0}(\bm{x}) = \phi_{0}(\bm{x}) \hat{\phi}_{0}(\bm{x}), \\
\pi_{T}(\bm{x}) = \phi_{T}(\bm{x}) \hat{\phi}_{T}(\bm{x}).
\end{cases}
\end{align} { ϕ t ( x ) = ∫ R d P T ∣ t 0 ( y ∣ x ) ϕ T ( y ) d y , ϕ ^ t ( x ) = ∫ R d P t ∣ 0 0 ( x ∣ y ) ϕ ^ 0 ( y ) d y , s.t. { π 0 ( x ) = ϕ 0 ( x ) ϕ ^ 0 ( x ) , π T ( x ) = ϕ T ( x ) ϕ ^ T ( x ) .
Here, the optimal control u ∗ \bm{u}^{\ast} u ∗ is written in the Schrodinger potential:
u ∗ ( x , t ) = σ t ∇ log ϕ t ( x ) . \begin{align}
\bm{u}^{\ast}(\bm{x}, t) = \sigma_{t} \nabla \log{\phi_{t}(\bm{x})}.
\end{align} u ∗ ( x , t ) = σ t ∇ log ϕ t ( x ) .
The DSB formulation can be interpreted as a SOC formulation with the following costs:
c ( x , t ) = 0 , Φ ( x ) = log ϕ ^ T ( x ) π T ( x ) . \begin{align}\textstyle
c(\bm{x},t)=0, \quad
\Phi(\bm{x}) = \log{\frac{\hat{\phi}_{T}(\bm{x})}{\pi_{T}(\bm{x})}}.
\end{align} c ( x , t ) = 0 , Φ ( x ) = log π T ( x ) ϕ ^ T ( x ) .
Substituting these yields the SOC formulation equivalent to the DSB formulation:
inf u D KL ( P u ∥ P 0 ) + E X 0 : T u ∼ P u [ log ϕ ^ T ( X T u ) π T ( X T u ) ] , s.t. d X t u = [ f ( X t u , t ) + σ t u ( X t u , t ) ] d t + σ t d B t , X 0 u ∼ π 0 . \begin{align}
\inf_{\bm{u}}
& \textstyle \quad D_{\text{KL}}\left(
\mathbb{P}^{\bm{u}} \parallel \mathbb{P}^{\bm{0}}
\right) + \mathbb{E}_{\bm{X}_{0:T}^{\bm{u}} \sim \mathbb{P}^{\bm{u}}} \left[
\log{\frac{\hat{\phi}_{T}(\bm{X}_{T}^{\bm{u}})}{\pi_{T}(\bm{X}_{T}^{\bm{u}})}}
\right], \\
\text{s.t.}
& \textstyle \quad \mathrm{d}\bm{X}_{t}^{\bm{u}} = \left[
\bm{f}(\bm{X}_{t}^{\bm{u}}, t) + \sigma_{t} \bm{u}(\bm{X}_{t}^{\bm{u}}, t)
\right] \mathrm{d}t + \sigma_{t} \mathrm{d} \bm{B}_{t}, \bm{X}_{0}^{\bm{u}} \sim \pi_{0}.
\end{align} u inf s.t. D KL ( P u ∥ P 0 ) + E X 0 : T u ∼ P u [ log π T ( X T u ) ϕ ^ T ( X T u ) ] , d X t u = [ f ( X t u , t ) + σ t u ( X t u , t ) ] d t + σ t d B t , X 0 u ∼ π 0 .
The DSB formulation can be interpreted as a DOT formulation with the following velocity field:
v ( x , t ) = u ( x , t ) + σ t 2 ∇ log p t ( x ) . \begin{align}\textstyle
\bm{v}(\bm{x}, t) = \bm{u}(\bm{x}, t) + \frac{\sigma_{t}}{2} \nabla\log{p_{t}(\bm{x})}.
\end{align} v ( x , t ) = u ( x , t ) + 2 σ t ∇ log p t ( x ) .
Reparameterizing the objective yields the DOT formulation equivalent to the DSB formulation:
inf v ∫ 0 T ∫ R d [ ( 1 2 ∥ v ∥ 2 + σ t 2 8 ∥ ∇ log p t ∥ 2 − 1 2 ⟨ ∇ log p t , f ⟩ ) p t u ] d x d t , s.t. ∂ t p t u = − ∇ ⋅ { [ f + σ t v ] p t u } , p 0 u = π 0 , p T u = π T . \begin{align}
\inf_{\bm{v}}
& \textstyle \quad \int_{0}^{T} \int_{\mathbb{R}^{d}} \left[ \left(
\frac{1}{2} \left\lVert \bm{v} \right\rVert^{2}
+ \frac{\sigma_{t}^{2}}{8} \left\lVert \nabla \log{p_{t}} \right\rVert^{2}
- \frac{1}{2} \langle \nabla \log{p_{t}}, \bm{f} \rangle
\right) \bm{p}_{t}^{\bm{u}} \right] \mathrm{d}\bm{x} \mathrm{d}t, \\
\text{s.t.}
& \textstyle \quad \partial_{t} p_{t}^{\bm{u}}
= -\nabla \cdot \left\{
\left[
\bm{f} + \sigma_{t} \bm{v}
\right] p_{t}^{\bm{u}}
\right\}, p_{0}^{\bm{u}} = \pi_{0}, p_{T}^{\bm{u}} = \pi_{T}.
\end{align} v inf s.t. ∫ 0 T ∫ R d [ ( 2 1 ∥ v ∥ 2 + 8 σ t 2 ∥ ∇ log p t ∥ 2 − 2 1 ⟨ ∇ log p t , f ⟩ ) p t u ] d x d t , ∂ t p t u = − ∇ ⋅ { [ f + σ t v ] p t u } , p 0 u = π 0 , p T u = π T .
DDPM as DSB
The standard continuous diffusion involving a Gaussian forward transition kernel:
q ( x t ∣ x 0 ) = N ( x t ; α t x 0 , ( 1 − α t ) I ) , where α t = exp ( − ∫ 0 t β s d s ) , \begin{align}\textstyle
q(\bm{x}_{t} \mid \bm{x}_{0}) = \mathcal{N}\left( \bm{x}_{t} ; \sqrt{\alpha_{t}}\bm{x}_{0}, (1 - \alpha_{t}) \bm{I} \right),
\quad\text{where } \alpha_{t} = \exp{\left( -\int_{0}^{t} \beta_{s} \mathrm{d}s \right)},
\end{align} q ( x t ∣ x 0 ) = N ( x t ; α t x 0 , ( 1 − α t ) I ) , where α t = exp ( − ∫ 0 t β s d s ) ,
can be described by defining the reference dynamics P 0 \mathbb{P}^{\bm{0}} P 0 as:
d X t = f ( X t , t ) d t + σ t d B t , where f ( x , t ) = − 1 2 β t x , σ t = β t . \begin{align}\textstyle
\mathrm{d}\bm{X}_{t} = \bm{f}(\bm{X}_{t}, t)\mathrm{d}t + \sigma_{t}\mathrm{d}\bm{B}_{t},
\quad\text{ where }
\bm{f}(\bm{x}, t) = -\frac{1}{2}\beta_{t}\bm{x}, \; \sigma_{t} = \sqrt{\beta_{t}}.
\end{align} d X t = f ( X t , t ) d t + σ t d B t , where f ( x , t ) = − 2 1 β t x , σ t = β t .
By designing β t : [ 0 , T ] → R ≥ 0 \beta_{t} : [0,T] \rightarrow \mathbb{R}_{\geq 0} β t : [ 0 , T ] → R ≥ 0 such that P 0 \mathbb{P}^{\bm{0}} P 0 approximately reaches π T = N ( 0 , I ) \pi_{T} = \mathcal{N}(\bm{0},\bm{I}) π T = N ( 0 , I ) starting from π 0 = p data \pi_{0} = p_{\text{data}} π 0 = p data , the system can be interpreted as a DSB problem where the reference process is pre-aligned with the target boundary conditions.
Thus, the optimal controls vanishes:
u ∗ ( x , t ) = σ t ∇ log ϕ t ( x ) = β t ( ∇ log p t ∗ ( x ) − ∇ log ϕ ^ t ( x ) ) = 0 . \begin{align}
\bm{u}^{\ast}(\bm{x}, t)
= \sigma_{t} \nabla \log{\phi_{t}(\bm{x})}
= \sqrt{\beta_{t}} \left( \nabla\log{p_{t}^{\ast}}(\bm{x}) - \nabla\log{\hat{\phi}_{t}}(\bm{x}) \right)
= \bm{0}.
\end{align} u ∗ ( x , t ) = σ t ∇ log ϕ t ( x ) = β t ( ∇ log p t ∗ ( x ) − ∇ log ϕ ^ t ( x ) ) = 0 .
FM as DSB
The standard flow matching involving a Dirac delta transition kernel:
q ( x t ∣ x 0 , x T ) = lim σ → 0 N ( x t ; ( T − t ) x 0 + t x T T , t ( T − t ) σ 2 T I ) , \begin{align}\textstyle
q(\bm{x}_{t} \mid \bm{x}_{0}, \bm{x}_{T}) = \lim_{\sigma \to 0} \mathcal{N}\left(
\bm{x}_{t} ; \frac{(T-t)\bm{x}_{0} + t\bm{x}_{T}}{T}, \frac{t(T-t)\sigma^{2}}{T}\bm{I}
\right),
\end{align} q ( x t ∣ x 0 , x T ) = lim σ → 0 N ( x t ; T ( T − t ) x 0 + t x T , T t ( T − t ) σ 2 I ) ,
can be described by defining the reference dynamics P 0 \mathbb{P}^{\bm{0}} P 0 as:
d X t = f ( X t , t ) d t + σ d B t , where f ( x , t ) = 0 , σ → 0. \begin{align}\textstyle
\mathrm{d}\bm{X}_{t} = \bm{f}(\bm{X}_{t}, t)\mathrm{d}t + \sigma\mathrm{d}\bm{B}_{t},
\quad\text{ where }
\bm{f}(\bm{x}, t) = 0, \; \sigma \to 0.
\end{align} d X t = f ( X t , t ) d t + σ d B t , where f ( x , t ) = 0 , σ → 0.
By taking σ → 0 \sigma \to 0 σ → 0 , the DSB problem converges to a classical DOT problem, where the underlying stochastic particle dynamics collapse into purely deterministic trajectories.
For a specific pair ( x 0 , x T ) ∼ π 0 , T (\bm{x}_{0}, \bm{x}_{T}) \sim \pi_{0,T} ( x 0 , x T ) ∼ π 0 , T , the conditional velocity field is simply the straight-line displacement: u ∗ ( x , t ) = 1 T ( x T − x 0 ) \bm{u}^{\ast}(\bm{x}, t) = \frac{1}{T}(\bm{x}_{T} - \bm{x}_{0}) u ∗ ( x , t ) = T 1 ( x T − x 0 ) .
With an independent coupling, i.e., π 0 , T ( x 0 , x T ) = π 0 ( x 0 ) π T ( x T ) \pi_{0,T}(\bm{x}_{0}, \bm{x}_{T}) = \pi_{0}(\bm{x}_{0}) \pi_{T}(\bm{x}_{T}) π 0 , T ( x 0 , x T ) = π 0 ( x 0 ) π T ( x T ) , the PF-ODE is given by:
d X t ∗ = v ∗ ( X t ∗ , t ) d t , v ∗ ( x , t ) = E π 0 , T [ 1 T ( x T − x 0 ) ∣ X t ∗ = x ] . \begin{align}\textstyle
\mathrm{d}\bm{X}_{t}^{\ast} = \bm{v}^{\ast}(\bm{X}_{t}^{\ast}, t) \mathrm{d}t, \quad
\bm{v}^{\ast}(\bm{x}, t) = \mathbb{E}_{\pi_{0,T}} \left[ \frac{1}{T} (\bm{x}_{T} - \bm{x}_{0}) \mid \bm{X}_{t}^{\ast}=\bm{x} \right].
\end{align} d X t ∗ = v ∗ ( X t ∗ , t ) d t , v ∗ ( x , t ) = E π 0 , T [ T 1 ( x T − x 0 ) ∣ X t ∗ = x ] .
Note that we have the following forward transition when π T = N ( 0 , I ) \pi_{T} = \mathcal{N}(\bm{0}, \bm{I}) π T = N ( 0 , I ) :
q ( x t ∣ x 0 ) = N ( x t ; ( 1 − t T ) x 0 , ( t T ) 2 I ) . \begin{align}\textstyle
q(\bm{x}_{t} \mid \bm{x}_{0}) = \mathcal{N}\left(
\bm{x}_{t} ; (1-\frac{t}{T})\bm{x}_{0}, (\frac{t}{T})^{2}\bm{I}
\right).
\end{align} q ( x t ∣ x 0 ) = N ( x t ; ( 1 − T t ) x 0 , ( T t ) 2 I ) .