Manuscript Offprint
arXiv:2610.41599Underdamped Stochastic Optimal Transport with Landauer boundary conditions: machine learning and analytical solution
Julia Sanders
Department of Mathematics and Statistics, University of Helsinki, Helsinki, 00014 Finland*
Dario Lucente
Department of Physics, Sapienza University of Rome, Rome, 00185, Italy†
Marco Baldovin
Institute for Complex Systems (CNR), Rome, 00185 Italy‡
Paolo Muratore-Ginanneschi
Department of Mathematics and Statistics, University of Helsinki, Helsinki, 00014 Finland§
(Dated: November 2, 2026)
Finding optimal transport protocols for underdamped stochastic processes is a difficult yet important problem in control theory. In this paper we develop a direct method, based on machine learning, to find the optimal solution of the problem in the presence of non-linear boundary conditions, including those modelling the Landauer bit-erasure problem. The dynamics is steered from a single-peak to a double-peak distribution in position space, by only acting on a controllable external potential. The problem is highly non-linear, and analytical solutions are not available in general. We benchmark our numerical results with a perturbative expansion, which is expected to hold in a suitable overdamped limit.
I. INTRODUCTION
Stochastic optimal transport addresses the problem of finding the (component of the) drift of a stochastic differential equation under the following two requirements:
-
minimizing an assigned cost functional
-
steering the evolution of an initially assigned probability distribution towards a target distribution
over a fixed time interval. Thus, stochastic optimal transport can be conceptualized as a generalization of the optimal mass transport problem [1–3]. We refer to [4] for an up-to-date concise review of the mathematical theory of optimal mass transport for deterministic flows, and to [5] for an overview of recent developments in computational methods.
Stochastic mass transport was introduced in the physics literature by Erwin Schrödinger in [6] (English translation in [7]). Schrödinger was interested in characterizing the likelihood that a given thermodynamic state could be produced by a fluctuation from equilibrium. Schrödinger's work [6] led to significant developments in the theory of stochastic processes [8, 9], and stochastic variational principles [10–12]. A comprehensive survey of these mathematical developments is provided in [13], and more recently in [14].
Over the last two decades, stochastic mass transport has become the focus of strong cross-disciplinary interest for independent but intertwined reasons. In control engineering, see e.g. [15], identifying the cost of stochastic mass transport with the Kullback-Leibler divergence (e.g. [16, § 2.3]) between the realized and a reference process, typically free diffusion, can assess the performance of an actuator accomplishing an assigned task in the presence of noise. The stochastic optimal transport problem of minimizing the Kullback-Leibler divergence is usually referred to as the dynamic Schrödinger bridge [13]. In the overdamped formulation of the dynamic Schrödinger bridge, the optimal control problem is described by a Hamilton-Jacobi-Bellman equation that can be greatly simplified using the Cole-Hopf (or logarithmic) transform [17, § VI]. This also is true in the underdamped case for controls that are functions of both position and momentum. Numerical solutions for large classes of boundary data can then be found using proximal algorithms [18] that exploit recent breakthroughs [19] in the theory of gradient flows, see [20, 21] for thorough overviews.
In physics, interest in stochastic mass transport is motivated by advances in nano-system manipulation and the emergence of stochastic (or finite-time) thermodynamics [22]. Motion at nano-scale is inherently affected by Brownian forces, whose effect cannot be avoided even in a near vacuum [23]. A fundamental question is how nano-systems can efficiently harness randomness in order to move between assigned states or perform thermodynamic work on larger scales [24]. Considerable experimental efforts, see, e.g., [25, 26], focus on demonstrating optimal “information ratchets”: control at minimum energy cost of the dynamics of a nano-system by
- julia.sanders@helsinki.fi † dario.Lucente@romal.infn.it ‡ marco.baldovin@cnr.it § paolo.muratore-ginanneschi@helsinki.fi
changing the effective kinetic barriers to Brownian motion depending on the position of the system. Optimization of memory bits operations [27–29], including Landauer bit-erasure [30], belongs to this class of problems. In stochastic systems, thermodynamic state indicators such as work, heat and entropy become fluctuating quantities whose statistics is governed by precise fluctuation relations, reviewed e.g. in [31]. In particular, fluctuation relations express physical measures of dissipation in terms of information-theoretic measures of time-asymmetry, such as the Kullback-Leibler divergence between a process evolving forward-in-time and a backward-in-time counter-part [32]. This Kullback-Leibler divergence, identified as the mean entropy production, specifies a natural cost for stochastic optimal transport in finite-time thermodynamics: it vanishes if and only if the system is at thermal equilibrium. Interestingly, if small-system dynamics is modelled by an overdamped (Langevin-Smoluchowski) stochastic differential equation (see e.g. [33]), stochastic optimal transport admits an exact mapping into classical deterministic optimal mass transport [34].
A second reason for interest for stochastic optimal transport, resulting in explosive growth in the number of publications, comes from generative modelling [35–37] in machine learning. A deep neural network can learn to generate data from noise by means of a two-step process. First, a forward stochastic process destroys structure in a data distribution by adding noise over a finite time interval. Next, a neural network is trained to revert the process by learning a backward evolution that interpolates between the initial data distribution and the one realized at the end of the forward evolution. Dynamic Schrödinger bridges provide a concrete implementation of this idea [38, 39], which we may also refer to as “stochastic interpolant theory” [40] and has a wide range of important applications, from sampling to image reconstruction [41].
These developments also have feedback to stochastic thermodynamics: they provide a framework of direct optimization methods [42] to numerically solve stochastic optimal transport problems, describing rectified motion or useful work extraction in a small system. A crucial difference from stochastic interpolant theory is that physically relevant models of nano-system dynamics evolve according to Langevin-Kramers dynamics. The Langevin-Kramers dynamics pose kinematic restrictions, including the coexistence of a conservative and a dissipative component in the drift, and that control is exerted by varying a mechanical potential. How can computational strategies be adapted, and how can their accuracy be assessed in stochastic thermodynamics?
Specifically, we consider a controlled Langevin-Kramers dynamics. Control is exerted via a mechanical potential that, by definition, only depends upon the position coordinate of the physical system and not on its momentum. To avoid theoretical controllability issues, we do not directly consider a Schrödinger bridge problem
but a weaker version, inspired by [43]. We add a terminal cost to the Kullback-Leibler divergence between the controlled process and a reference diffusion. This terminal cost is the static Kullback-Leibler divergence between the realized joint probability measure at the end of the control and a fixed, assigned measure. The terminal cost is weighed by a constant that we can increase to construct, as in augmented Lagrangian methods [44], a family of control problems formally converging to a full dynamic Schrödinger bridge.
There are two reasons motivating our choice of the running cost. First, as shown in [45], this choice of the cost may be adapted to model an isochoric transition in a Brownian Carnot engine [46]. Second, in contrast with the mean entropy production in the underdamped case, the running cost is always a quadratic functional of the control. This is a technical advantage for comparing our numerical machine learning results with analytic predictions obtained by multiscale perturbation theory around the overdamped limit [33].
This comparison, together with the development of algorithmic methods for the kinematic constraint posed by the physically relevant formulation of the control problem, constitute the two main contributions of the present work.
where and can be seen as the position and momentum, in dimensionless variables, of a colloidal particle subject to the external potential and thermal noise, with a damping coefficient proportional to . In the limit, the dynamics tends to an overdamped regime. More details on the physical interpretation of the model can be found in [47].
The system is prepared at time t = 0 according to an assigned probability density function (pdf) . The Schrödinger bridge problem finds the time dependent protocol that, at time t = T, reaches a pre-determined final distribution , while minimizing the Kullback-Leibler divergence from a known reference dynamics
Here denotes the path of the particle state in the time interval , represents the pdf of the path, while is the pdf of the reference dynamics, generated by Eq. (1) with . In this paper, we fix the free diffusion, i.e. as the reference.
From a numerical point of view, imposing the constraint on the final pdf is very challenging. We therefore relax this constraint, instead imposing a terminal cost consisting of the static Kullback-Leibler divergence between the final distribution and the target one :
Therefore, the total cost to minimize is given by
A. Action for the variational problem
The action in Pontryagin's formalism reads
(5)
where M is a positive constant,
is the forward Fokker-Planck operator that evolves consistently with the Langevin dynamics (1), and is the so-called value function, a time-dependent field that plays the role of a Lagrange multiplier, enforcing the dynamical evolution of . Since tunes the relative importance of the terminal cost, we expect the minimizer of to tend to the solution of the Schrödinger bridge problem in the limit.
III. ANALYTICAL METHODS
The analytical solution of problem (5) relies on variational methods. The idea is detailed for instance in [45]. At the optimal solution, the functional derivatives of the action with respect to , and are set to zero. One gets:
Equation (7a) is just the Fokker-Planck dynamics of (evolution of the state); Eq. (7b) is a differential equation that fixes the dynamics of (evolution of the co-state,
control equation); Eq. (7c) is an algebraic constraint (stationarity condition). The backward Fokker-Planck operator appearing in Eq. (7b) is defined as the adjoint of . The solution of the problem must satisfy the three equations (7), plus the boundary conditions given by the initial distribution and the terminal cost:
A. Exact solution in the Gaussian case
If and are Gaussian, the problem can be formulated as a boundary value problem for a system of ordinary differential equations for the distribution moments and coefficients of the control, and solved with standard numerical methods.
Because a transition at minimum cost between two Gaussian states means that the distribution will remain Gaussian throughout the control horizon, we can make an ansatz that the gradient of potential will be linear
where and are functions of time only, to be determined. In this case, the evolution of the probability distribution is fully specified by those of the first
and second order cumulants:
(11)
It is easy to verify that the vector of these quantities evolves according to
where the linear operators
act on the subspace of the first and second cumulants, respectively, and is a vector such that . Equation (12) determines the evolution of the state. Recalling that any bi-variate Gaussian distribution can be written as
(14) with
and introducing the explicit expression
one finds that the evolution of the co-state reads
Finally, the stationary condition imposes
Once inserted into Eqs. (12), (16), this relation leads to a system of 10 scalar, nonlinear ODEs for and . Together with the boundary conditions (8), these result in boundary value problem that can be solved via standard numerical methods, such as collocation or shooting [48].
B. Multiscale perturbation theory
In the case of non-Gaussian initial or target pdf, exact analytical methods to the solution of our problem are unknown. If the dynamics is closed to the overdamped limit (i.e., if ), we can however rely on a perturbative strategy, which has been already applied to the “full-bridge” case in a previous work by some of us [45]. The calculation is long, and very close to the one presented in [45], so, we only report the main steps of the procedure, and highlight any differences with the “full-bridge” case.
1. Hermite polynomial expansion
We start by expanding the unknowns of problem (7) in Hermite polynomials of the momentum. We recall that those are defined as
and satisfy the orthogonality condition
We introduce the notation
where and are functions of the position that need to be determined. By plugging Eqs. (18) into (7) and projecting onto , we get an infinite hierarchy of PDEs in and (instead of two PDEs in , and ), plus the stationarity condition (7c) and the boundary conditions (8).
2. Perturbative -expansion
We are now in a position to address the problem via a perturbative multiscale scheme. The idea is to expand each of the functions and , and the drift , as power series of . At the same time, we allow each coefficient of such expansion to depend on two time scales, namely on the auxiliary time variables
The dependence on these artificial time scales introduces a larger number of tunable parameters with respect to ordinary perturbative schemes. This additional freedom can be used to systematically cancel secular terms that are known to arise, for instance, when dealing with problems characterized by boundary layers [49]. For a generic time-dependent function , one has therefore
The unknowns can be thus expanded as:
After inserting these expressions into the ODE hierarchy and applying the differentiation rule (19), we can isolate the coefficients of the same power of .
3. Boundary conditions
Before starting the iterative solution of the perturbative problem, one also needs to determine the boundary conditions for the new set of variables. With slight abuse of notation, we adopt the convention
We assume that the initial and the target pdf have the Botzmann-Gibbs form
where and are some confining potentials. By defining the marginal pdfs
we notice that the boundary condition (8a) is compatible with
for the pdf. Of course, other choices would have been equally valid, provided that Eq. (8a) is fulfilled. We exploit a similar freedom at the final time t = T to impose the condition
which in turns allows us to write Eq. (8b) as
(22a)
The equations above are consistent with the request that, in the limit, the problem tends to a full bridge and this limit is considered before the limit . Indeed, in order for the value function to stay finite, must tend to the position marginal pdf in the limit, while the higher order correction terms and of the pdf at the final time must be negligible with respect to .
Terms corresponding to higher order Hermite polynomials can be also computed in principle, but we stop at second order. We emphasize that the only difference with respect to the case studied in [45] are the boundary conditions (22).
4. Iterative solution of the multiscale
At this point, we are in the position to perform an order-by-order study of our hierarchy. The strategy is summarized in Fig. 1. We start by solving the zeroth order system, complemented by the boundary conditions (21) and (22a). This gives an analytical expression for the dependence of and , leaving the dependence on the slower time scale still undetermined. These solutions can be substituted into the system, which can in turn be solved together with the boundary conditions (21) and (22b). By doing

FIG. 1. Visual summary of the multiscale perturbative scheme adopted to solve the problem in the limit.
this, we determine expressions for , and in terms of and . Moreover, one shows that there is no dependence on the timescale of any of the above mentioned variables. Finally, as a last step, we repeat the operation at order , taking again into account Eqs. (21) and (22c), thus obtaining also the dependence of all the previous functions, as well as those of and . We report here only the main results of this order-by-order iterative procedure, referring again the interested reader to the supplementary material [50] for detailed calculations.
At order one straightforwardly gets:
We determine the functions by consistency with the terminal cost. When examining the system at , one finds a relation for the leading term of the control:
The perturbative pdf correction is obtained by solving the ODE
(25)
with the boundary conditions
In the previous equation, represents the solution of the ODE (25) in the full-bridge case, i.e. with boundary conditions
Finally, at order the problem is closed by solving the cell problem
where is an auxiliary variable and
The boundary conditions are specified in [50].
Using the above results, one can write explicit expressions for the corrections of the pdf and the control up to order . They are involved and not very insightful: the interested reader can find them in [50].
IV. NUMERICAL METHODS
In this section, we discuss the numerical method for minimizing the generalized underdamped Schrödinger bridge. For this, we take a direct approach and minimize instead on the action (4) over sampled trajectories [51–53]. Unlike the analytic method, we do not pass through the first order optimality conditions.
The idea is as follows. We minimize the loss function given by (4), where the control is parametrized by a neural network. We draw inspiration from [54] to formulate the minimization in a computationally friendly way using Girsanov theorem. With the addition of a weighting constant in front of the terminal cost, we can then push the system towards the target final distribution, which, for sufficiently large M, means that the system reaches the target final boundary condition and we approximate the solution to the full bridge problem.
We denote a neural network with a set of parameters as . We use a feed-forward neural network, meaning a composition of affine (known as layers) and non-linear (known as activation) transforms. The vector denotes all the parameters associated with affine transformations. Details of the parametrisation are described in [50].
The dynamics' control is mapped into the network under the transformation
To find the optimal solution for the bridge, we need to find the set of parameters that minimize the loss function (4). This is done by a gradient descent, which means small, iterative updates to in the direction that minimizes gradient of the loss with respect to .
In practice, to compute the gradient of (4) with respect to , we need to use simulated trajectories of the dynamics (1). Trajectories are simulated with a discretisation scheme over a time-grid, , with steps denoted by . The distribution achieved at final time is estimated numerically from evolved samples, denoted by , where corresponds to the parameters of the neural network defining the control protocol (28) used to obtain the samples. Therefore, the loss (4) of the numerical problem becomes
where we used the shorthand notation . The expectation is taken over the path measure for trajectories where the control is parametrized by , which is denoted by . The computation of the gradient of (29) with respect to is costly, since the simulated positions and momenta have an implicit dependence on the neural network parameters. The gradient calculation would involve the entire simulated trajectory.
A. Girsanov Formula
We leverage Girsanov theorem [55], see e.g. [56] for a modern presentation with applications, to simulate trajectories of the dynamics independently of the parameters to be updated in the neural network. This means that the positions and momenta values in (4) are independent of . To this end, we begin by making a copy of the parameters of the neural network
This copy of the parameters is fixed throughout each iteration.
The underdamped dynamics are degenerate, meaning that only the velocity has random noise and its diffusion matrix is not invertible. This means that we can only change the potential term and must leave the position drift in tact to ensure that we stay in the invertible part of the diffusion matrix. The change in the drift at time is given by
giving the resulting Girsanov weighting factor
with denoting a step of the Weiner process in the numerical discretisation scheme used for integrating the dynamics (1).
By Girsanov theorem, multiplying by the Girsanov weighting factor in the expectation (29), we can instead evaluate the expectation on trajectories where the protocol is parametrized with . This path measure is denoted by , and means that (29) can be written as
The gradient of (32) can now be found by a direct computation, since we no longer need to differentiate each position and momentum value. Finally, by direct calculation following [54], we notice that the alternative loss function
with
has the same gradient as the loss function (32). The loss (33) is easier to evaluate numerically, since the dependence on only presents as sums.
B. Final state estimation
In order to fully evaluate the loss function (33), we need to evaluate the final achieved distribution for any control . Allowing a free form on the control means that there is no closed form of the final distribution. We can however generate samples from this distribution by evaluating the forward dynamics (1). There are many numerical inference methods to estimate a distribution from samples. The challenge is to use minimum number of samples possible, as generating these samples requires forward evaluations of the neural network .
From a mathematical and physical point of view, it makes sense to exploit the physical properties of the problem. For example, when the initial assigned distribution and target distribution are both Gaussians, we know that the optimal solution will ensure that the intermediate distributions are also Gaussian. We can therefore use the knowledge that the final achieved distribution will also be Gaussian, and use a parametric method, namely assume the Gaussian form and use the sample mean and variance as estimates. This reduces the last term of (4) to a closed functional form that can be evaluated.
We also note that the final distribution does not need to be normalized, giving us a further computational saving. This is because of the form of the loss (33), and the logarithm in front of the distributions. The normalisation constants can be extracted as constant functions of
the position and momentum, and then multiplied by the Ito integral over the Weiner process. This expectation evaluates to zero.
In general however, we do not have any information about the functional form of the final distribution, but, we do know that the final distribution is the solution at final time to the Fokker-Planck equation (7a). We can therefore can instead use a numerical method specifically for the Fokker-Planck equation. Since we can evaluate trajectories of the dynamics (1) relatively straightforwardly, we use a Monte-Carlo based method which is valid for any mechanical, confining potential [57]. This is derived with a change of variables in the underlying Fokker-Planck equation and a Girsanov factor applied to averages of integrals of backward trajectories of the dynamics (1). The probabilities are computed only where they are needed, i.e. for those coordinates in the training set, as a numerical average of simulated trajectories that were started at those points. We refer to Section 3 of [57] for details of the method.
C. Summary of Algorithm
In this section, we present a general summary of the machine learning method. For full technical specification of the training loop including optimizer and learning rate, technical details of the architecture of the neural network used and full code for the examples shown can be found in the supplementary material [50].
To find the optimal parameters for the network that minimize (33), we use a gradient descent, known as the training process. Firstly, the dynamics (1) with the parametrisation (28) and where the parameters of the protocol are given by (30) are evolved from time under a suitable discretisation scheme. This means In practice, we may a leapfrog verlet scheme or a BAOAB scheme, see supplementary material [50]. Along trajectories, we evaluate and store the summands and .
At final time , we have a set of final positions and momenta . We initialize a number of trajectories starting at these coordinates that we then use to evaluate according to [57]. We can then put together the loss function (33), and perform a pass of backpropagation to evaluate the gradient. This is done with a machine learning library, Pytorch. The computed gradient is used to update the parameters .
with known as a learning rate. In practice, the behavior of the gradient update step and value of is determined by an optimizer and learning rate scheduler, as it can depend on the size of the gradient. The behavior gradient update step is tailored to the problem, see supplementary material [50]. After this step, the fixed parameters are updated, so that (30) is true.

(c)
(d)
Neural Network, M=1
Neural Network, M=200
Analytical, M=1
Analytical, M=200
Full bridge
FIG. 2. Solution of the optimal problem with Gaussian boundary conditions: , . Panels (a) - (c) show second order cumulants, while the parameter of the linear drift [see Eq. (17)] is plotted in (d). Solid lines represent the neural network solution, see Sec. IV. Dashed lines are the analytical benchmark, see Sec. III A, obtained by collocation methods. Two values of the weight are considered: (blue) and (orange). The solution of the problem with fixed boundary conditions (“full bridge” case, see Ref. [45]) is shown in green. We initialize the neural network as and then select the minimal-cost realization out of 2000 epochs. We set .
We recall that the loss function used (33) is not convex in the control. Therefore we regularly evaluate the true loss function (4) to estimate convergence. We evaluate this using simulated trajectories of the dynamics under and the reference process, a free diffusion. To estimate the static Kullback-Leibler divergence between the achieved and target distribution, we use the final positions and momenta of the sample trajectories and samples from the target, and use the relative differences between their nearest neighbors, as described in [58]. Gradient descent is performed for a fixed number of epochs, until there is no continuous improvement in numerical evaluations of (4).
V. RESULTS
In this Section we show the solution to the optimal problem for different choices of the boundary conditions, of the damping parameter and of the constant M, specifying the relative weight between running and terminal cost in Eq. (4).
We first address the case of Gaussian boundary conditions, corresponding to parabolic shapes of and . The evolution is linear, and we can compare it to the ground-truth results from Sec. III A. These results are shown in Fig. 2 with the solution obtained by the machine learning strategy described in Sec. IV. We verify (i) that the network is able to reproduce with high accuracy the analytic solution and (ii) that in the limit , as expected, the solution converges to that of the full bridge problem.
When the boundary conditions are non-Gaussian, we cannot rely on a ground-truth solution, but instead use our multiscale perturbative expansion to approximate the solution described in IIIB. However, for sufficiently large and small values of , we expect that this offers a good approximation. In Figs. 3 and 4 we show this comparison for . The agreement between the two methods is good, especially for the position marginal density (leftside plots in panels (a)-(d) in Figs 3 and 4), where the singular expansion provides the most accurate predictions. There are discrepancies in the drift, panels (e) in Figs 3 and 4), especially at later times. The source of this discrepancy is two-fold. Firstly, in our perturbative approach, state-of-the-art multiscale perturbation theory does not provide mathematically rigorous ways to estimate the residuals [49]. Secondly, we expect the nonlinear case to be subject to more numerical noise. Because the drift is non-linear, the evolutions of the stochastic differential equation have a larger error from time-discretisation. Evaluation of the final achieved density is less straightforward, requiring more trajectories than in the Gaussian parametric case. As a consequence, we use smaller batch sizes and fewer epochs for training. We intend to examine how this error can be reduced further in future works.
In Fig. 4, the value of M is large enough to expect the solution of the problem to be close to the “full bridge” case, where the target distribution is imposed as a boundary condition at the final time. Indeed, the position marginal distribution in panel 4(d) is superimposed to the target.
Finally, in Figs. 5 and 6 we analyze the solution for different values of and M. In Fig. 5 the position marginal pdf at T is shown. At fixed , increasing M allows to get progressively closer to the target distribution at the final time. At fixed M, increasing makes the problem stiffer, hence worsening the solution. In Fig. 6 the position variance is shown, as a function of time, for the same cases considered in Fig. 5. It is interesting to see that, with respect to epoch 0 (untrained network), the solution must visibly separate from the free diffusion, hence “paying” a larger running cost, in order to match the target distribution and reduce the terminal cost.
VI. CONCLUSION
The results presented in this paper for stochastic optimal transport problems in the underdamped dynamics tackle the problem in two distinct but concurrent methods. We approach the problem indirectly, through the first order optimality conditions derived from Pontryagin's maximum principle, and directly, using machine learning to minimize the cost functional.
Our analytics produce benchmarks for the numerics. When the initial and target distributions are given by Gaussians, the problem is fully characterized by an ordinary differential equation boundary value problem,


FIG. 3. Solution of the optimal problem with non-Gaussian boundary conditions in the perturbative regime , for . Panels (a)-(d) show the evolution of the joint and marginal pdf at 4 different times. Neural network solution (blue) and perturbative prediction (red) are compared. Panel (e) shows the drift evolution. Here and . The network is initialized at epoch 0 with the perturbative analytical solution. We train the network for 100 epochs.
which we can integrate numerically. In the case of non-harmonic potentials, we use the expansion to find predictions up to second order in , that are computed from the numerical solution of a fully integrable cell problem. We want to approximate the full bridge solution by increasing the value of the weighting factor M that penalizes the distance from the target distribution. We demonstrate that this converges to the full bridge for Gaussian boundary conditions.
Numerically, we can train a neural network to minimise the action functional, using Girsanov's theorem to evaluate this loss without excessive computational overhead, because we do not need to differentiate with respect to simulated trajectories. On comparison with our known solution in for Gaussian boundary conditions, we see good agreement. For non-linear boundary conditions modelling Landauer's bit-erasure problem, we see reasonable agreement with our semi-analytic benchmarks, and are able to reach the target distribution when making M larger.
The numerical method can be applied to different parameters, we can make predictions for more underdamped settings. The training of the neural network is a difficult process. Reducing numerical error in the non-linear training would require a significant increase in computational resources. In addition, we have analytic benchmarks only in the range of parameters where the overdamped expansion are applicable. The analytics and numerics shown in this paper are limited to one dimension, but can be extended to higher dimensions.
In future, this methodology could be adapted to different thermodynamical cost functionals. We are in particular interested in the mean entropy production, which requires efficient evaluation of the gradient of a complex neural network with respect to its input.
We expect that our work will be applicable in multiple fields. Generative diffusion models, in particular, are a very topical issue, and efficiently connecting two data distributions as we do here, may in future also be applicable to lowering energy costs of generative artificial intelligence. Secondly, the methods can be used to inspire efficient protocol design in nanoscale information processing devices.
ACKNOWLEDGMENTS
The authors acknowledge useful discussions with Luca Biferale, Massimo Cencini, Sergio Chibarro, Paolo Andrea Erdman, Marylou Gabrié, Katsiaryna Haitsukevich, Tuomo Kuusi, Mauro Pastore, Luca Peliti, Kai Puolimäki, and Angelo Vulpiani. The authors wish to acknowledge CSC – IT Center for Science, Finland, for computational resources. MB and DL acknowledge the financial support from the MIUR PRIN 2022 (project "SNO-MINK" no. 2022KWTEB7) which is funded by the European Union Next Generation EU, M4 C2 1.1 CUP B53C24006470006. JS acknowledges funding from a University of Helsinki funded doctoral researcher position, Doctoral Programme in Mathematics and Statistic, and partial financial support from the "Finnish Centre of Excellence in Randomness and Structures (First)".
Use of artificial intelligence: We checked our analytic calculations with GPT 6, and used during the develop-
ment of our codes Claude Opus 5.5, QWEN 3.8 and Vibe.
REFERENCES
[1] G. Monge, Mémoire sur la théorie des déblais et des remblais, Histoire de l'Académie Royale des Sciences de Paris, avec les Mémoires de Mathématique et de Physique pour la même année 8, 666 (1781).
[2] L. V. Kantorovich, On the Translocation of Masses – translation of Dokl. Akad. Nauk SSSR, 37, No. 7–8, 227–229 (1942), Journal of Mathematical Sciences 133, 1381–1382 (2006).
[3] L. V. Kantorovich, On a Problem of Monge – translation of Uspekhi Mat. Nauk, 3, No. 2, 225–226 (1948), Journal of Mathematical Sciences 133, 1383–1383 (2006).
[4] A. Figalli, An Introduction to Optimal Transport and Wasserstein Gradient Flows, in Optimal Transport on Quantum Structures (Springer Nature Switzerland, 2024) p. 1–28.
[5] G. Peyré and M. Cuturi, Computational Optimal Transport: With Applications to Data Science, Foundations and Trends in Machine Learning 11, 355 (2019), arXiv:1803.00567.
[6] E. Schrödinger, Über die Umkehrung der Naturgesetze, Sitzungsberichte der preussischen Akademie der Wissenschaften, physikalische mathematische Klasse 8, 144 (1931).
[7] R. Chetrite, P. Muratore-Ginanneschi, and K. Schwieger, E. Schrödinger's 1931 paper "On the Reversal of the Laws of Nature" ["Über die umkehrung der naturgesetze", sitzungsberichte der preussischen akademie der wissenschaften, physikalisch-mathematische klasse, 8 n9 144–153], The European Physical Journal H 46, 28 (2021), arXiv:2105.12617.
[8] B. Jamison, Reciprocal processes, Probability Theory and Related Fields 30, 65 (1974).
[9] E. Nelson, Dynamical Theories of Brownian Motion, 2nd ed. (Princeton University Press, 2001) p. 148.
[10] H. Föllmer, An entropy approach to the time reversal of diffusion processes, in Stochastic Differential Systems Filtering and Control, Lecture Notes in Control and Information Sciences, Vol. 69, edited by M. Metivier and E. Pardoux (Springer Berlin / Heidelberg, 1985) pp. 156–163.
[11] P. Dai Pra, A stochastic control approach to reciprocal diffusion processes, Applied Mathematics and Optimization 23, 313 (1991).
[12] A. B. Cruzeiro and J.-C. Zambrini, Malliavin calculus and Euclidean quantum mechanics. I. Functional calculus, Journal of Functional Analysis 96, 62 (1991).
[13] C. Léonard, A survey of the Schrödinger problem and some of its connections with optimal transport, Discrete and Continuous Dynamical Systems - Series A 34, 1533 (2014), arXiv:1308.0215 [math.PR].
[14] Y. Chen, T. T. Georgiou, and M. Pavon, Stochastic Control Liaisons: Richard Sinkhorn Meets Gaspard Monge on a Schrödinger Bridge, SIAM Review 63, 249 (2021).
[15] E. Todorov, Efficient computation of optimal actions,
Proceedings of the National Academy of Sciences 106, 11478 (2009).
[16] T. M. Cover and J. A. Thomas, Elements of Information Theory, 2nd ed., Telecommunications and Signal Processing (Wiley-Blackwell, Hoboken, New Jersey, 2006) p. 776.
[17] W. H. Fleming and M. H. Soner, Controlled Markov processes and viscosity solutions, 2nd ed., Stochastic modelling and applied probability, Vol. 25 (Springer, 2006) p. 428.
[18] K. F. Caluya and A. Halder, Wasserstein Proximal Algorithms for the Schrödinger Bridge Problem: Density Control with Nonlinear Drift, IEEE Transactions on Automatic Control 67, 10.1109/TAC.2021.3060704 (2022), arXiv:1912.01244 [math.OC].
[19] R. Jordan, D. Kinderlehrer, and F. Otto, The Variational Formulation of the Fokker–Planck Equation, SIAM Journal on Mathematical Analysis 29, 1 (1998).
[20] F. Santambrogio, Euclidean, Metric, and Wasserstein Gradient Flows: an overview, Bulletin of Mathematical Sciences 7, 87 (2017), arXiv:1609.03890.
[21] L. Ambrosio, E. Brué, and D. Semola, Lectures on Optimal Transport, UNITEXT (Springer Nature Switzerland, 2024).
[22] L. Peliti and S. Pigolotti, Stochastic Thermodynamics (Princeton University Press, Princeton and Oxford, 2020) p. 272.
[23] E. R. Kay, D. A. Leigh, and F. Zerbetto, Synthetic Molecular Motors and Mechanical Machines, Angewandte Chemie International Edition 46, 72–191 (2007).
[24] A. I. Brown and D. A. Sivak, Theory of Nonequilibrium Free Energy Transduction by Molecular Machines, Chemical Reviews 10.1021/acs.chemrev.9b00254 (2019).
[25] A. Bérut, A. Arakelyan, A. Petrosyan, S. Ciliberto, R. Dillenschneider, and E. Lutz, Experimental verification of Landauer's principle linking information and thermodynamics, Nature 483, 187–189 (2012).
[26] J. V. Koski, V. F. Maisi, J. P. Pekola, and D. V. Averin, Experimental realization of a Szilard engine with a single electron, Proceedings of the National Academy of Sciences of the United States of America 111, 13786 (2014), arXiv:1402.5907 [cond-mat.mes-hall].
[27] M. López-Suárez, I. Neri, and L. Gammaitoni, Sub-k bt micro-electromechanical irreversible logic gate, Nature communications 7, 12068 (2016).
[28] S. Dago and L. Bellon, Dynamics of information erasure and extension of landauer's bound to fast processes, Phys. Rev. Lett. 128, 070604 (2022).
[29] N. Barros, S. Whitelam, S. Ciliberto, and L. Bellon, Learning efficient erasure protocols for an underdamped memory, Phys. Rev. E 111, 044114 (2025).
[30] C. S. Lent, A. O. Orlov, W. Porod, and G. L. Snider, eds., Energy Limits in Computation (Springer International Publishing, Cham, 2019).
[31] C. Jarzynski, Equalities and Inequalities: Irreversibility and the Second Law of Thermodynamics at the Nanoscale, Annual Review of Condensed Matter Physics 2, 329 (2011).
[32] R. Chétré and K. Gawędzki, Fluctuation relations for diffusion processes, Communications in Mathematical Physics 282, 469 (2008), arXiv:0707.2725 [math-ph].
[33] G. A. Pavliotis, Stochastic Processes and Applications: Diffusion Processes, the Fokker-Planck and Langevin Equations (Springer New York, New York, 2014) p. 339.
[34] E. Aurell, K. Gawędzki, C. Mejía-Monasterio, R. Mohayaee, and P. Muratore-Ginanneschi, Refined Second Law of Thermodynamics for fast random processes, Journal of Statistical Physics 147, 487 (2012), arXiv:1201.3207 [cond-mat.stat-mech].
[35] J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli, Deep Unsupervised Learning using Nonequilibrium Thermodynamics, in Proceedings of the 32nd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 37, edited by F. Bach and D. Blei (PMLR, Lille, France, 2015) pp. 2256–2265.
[36] J. Ho, A. Jain, and P. Abbeel, Denoising Diffusion Probabilistic Models, in Advances in Neural Information Processing Systems, Vol. 33, edited by H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, and H. Lin (Curran Associates, Inc., 2020) pp. 6840–6851, arXiv:2006.11239.
[37] Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole, Score-Based Generative Modeling through Stochastic Differential Equations, conference paper at ICLR 2021 10.48550/ARXIV.2011.13456 (2021), 2011.13456.
[38] V. De Bortoli, J. Thornton, J. Heng, and A. Doucet, Diffusion Schrödinger Bridge with Applications to Score-Based Generative Modeling, in Advances in Neural Information Processing Systems, edited by A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan (2021) 2106.01357.
[39] D. Blessing, J. Berner, L. Richter, and G. Neumann, Underdamped diffusion bridges with applications to sampling, in 13th International Conference on Learning Representations (ICLR 2025) (2025) arXiv:2503.01006 [cs.LG].
[40] M. S. Albergo, N. M. Boffi, and E. Vanden-Eijnden, Stochastic Interpolants: A Unifying Framework for Flows and Diffusions, Computing Research Repository (CoRR) 10.48550/arXiv.2303.08797 (2023).
[41] L. Yang, Z. Zhang, Y. Song, S. Hong, R. Xu, Y. Zhao, W. Zhang, B. Cui, and M.-H. Yang, Diffusion Models: A Comprehensive Survey of Methods and Applications, ACM Computing Surveys 56, 1–39 (2023), arXiv:2209.00796.
[42] C. Domingo-Enrich, A taxonomy of loss functions for stochastic optimal control, Eprint arXiv:2410.00345 10.48550/arxiv.2410.00345 (2024), 2410.00345.
[43] M. Pavon, E. G. Tabak, and G. Trigila, The data-driven Schroedinger bridge, Communications on Pure and Applied Mathematics 10.1002/cpa.21975 (2021), arXiv:1806.01364 [math.OC].
[44] M. Fortin and R. Glowinski, Augmented Lagrangian Methods: Applications to the Numerical Solution of Boundary-Value Problems, Studies in Mathematics and Its Applications, Vol. 15 (Elsevier Science Publishers B.V., Amsterdam, Netherlands, 1983).
[45] J. Sanders, M. Baldovin, and P. Muratore-Ginanneschi, Optimal control of underdamped systems: an analytic approach, Journal of Statistical Physics 191, 117 (2024), arXiv:2403.00679.
[46] I. A. Martínez, E. Roldán, L. Dinis, D. Petrov, J. M. R. Parrondo, and R. A. Rica, Brownian Carnot engine, Nature Physics 12, 67 (2016), arXiv:1412.1282 [cond-mat.stat-mech].
[47] J. Sanders, M. Baldovin, and P. Muratore-Ginanneschi, Minimal work protocols for inertial particles in nonharmonic traps, Physical Review E 111, 034127 (2025).
[48] A. Rao, A survey of numerical methods for optimal control, Advances in the Astronautical Sciences 135 (2010).
[49] G. A. Pavliotis and A. M. Stuart, Multiscale methods: averaging and homogenization, Texts in applied mathematics, Vol. 53 (Springer, New York, 2008) pp. XVIII, 307.
[50] J. Sanders, D. Lucente, M. Baldovin, and P. Muratore-Ginanneschi, https://github.com/julia-sand/kldescent, Supplemental material for the paper “Underdamped Stochastic Optimal Transport with Landauer boundary conditions: machine learning and analytical solution”.
[51] J. Quer and E. R. Borrell, Connecting stochastic optimal control and reinforcement learning (2024), arXiv:2211.02474 [math.OC].
[52] E. Ribera Borrell, J. Quer, L. Richter, and C. Schütte, Improving control based importance sampling strategies for metastable diffusions via adapted metadynamics, SIAM Journal on Scientific Computing 46, S298 (2024), https://doi.org/10.1137/22M1503464.
[53] I. Exarchos and E. A. Theodorou, Stochastic optimal control via forward and backward stochastic differential equations and importance sampling, Automatica 87, 159 (2018).
[54] M. Hua, M. Laurière, and E. Vanden-Eijnden, An efficient on-policy deep learning framework for stochastic optimal control (2025), arXiv:2410.05163 [cs.LG].
[55] I. V. Girsanov, On transforming a certain class of stochastic processes by absolutely continuous substitution of measures, Theory of Probability & Its Applications 5, 285 (1960), https://doi.org/10.1137/1105027.
[56] F. C. Klebaner, Introduction to Stochastic Calculus with Applications, 2nd ed. (Imperial College Press, London UK, 2005) p. 432.
[57] J. Sanders and P. Muratore-Ginanneschi, On the numerical integration of the Fokker–Planck equation driven by a mechanical force and the Bismut–Elworthy–Li formula, Entropy 27, 218 (2025).
[58] Q. Wang, S. R. Kulkarni, and S. Verdu, Divergence estimation for multidimensional densities via k-nearest-neighbor distances, IEEE Transactions on Information Theory 55, 2392 (2009).


Initial Condition NN solution Benchmark Predicted Target Distribution
FIG. 4. Solution of the optimal problem with non-Gaussian boundary conditions in the perturbative regime, for large . Same as Fig. 3, with . The network is initialized with the same drift used in Fig. 3 (i.e., the analytical solution with and ).

FIG. 5. Probability density function at the final time T, for different values of and M, computed with the machine learning strategy in the presence of non-Gaussian boundary conditions. Blue lines represent the solution at epoch 100, orange lines the solution at epoch 0 (no training). The green shaded area represents the target distribution. Details as in Figs. 3 and 4.

FIG. 6. Time-dependent variance, for different values of and M, computed with the machine learning strategy in the presence of non-Gaussian boundary conditions. Blue lines represent the solution at epoch 100, orange lines the solution at epoch 0 (no training). The green dashed line represents free diffusion. Details as in Figs. 3 and 4.
Supplementary Material to
Underdamped Stochastic Optimal Transport with Landauer boundary conditions: machine learning and analytical solution
Abstract
A weak coupling between position and momentum separates underdamped transport into rapid momentum relaxation and slow evolution of the position density. We use this separation to construct an analytical approximation to the control problem with a Kullback–Leibler terminal cost discussed in [1]. The calculation reduces to a cell problem for two functions. We then obtain the control and phase-space density from time integrals. We derive the control through order and the density and first- and second-order cumulants through order .
1 The control problem and its two time scales
In contrast to the full-bridge problem of [2], here only the initial distribution is prescribed. At the final time, departures from a target distribution are penalized by a terminal cost, so the final distribution may differ from the target. In the dimensionless variables of the accompanying article [1], the dynamics is
where the gradient of the potential is the control variable. With , the initial and target densities are and , where , is a standard Wiener process, , and , are normalized densities. Let be a given potential defining the reference dynamics, and let be the probability density function (pdf) generated by Eq. (1) from . The optimal control is defined through minimization of the functional
over admissible potentials for which the dynamics, Eq. (1), and the cost are well defined. As terminal cost we consider the Kullback–Leibler divergence
Throughout, spatial integrals without limits are over . We assume sufficient smoothness and rapid decay of the densities to justify the calculations. We normalize the value function so that its terminal value is
which fixes an arbitrary additive constant.
We introduce the fast time and the slow time : for , momentum relaxes on , whereas position changes on . Following the full-bridge analysis [2], we expand in the probabilists' Hermite polynomials:
The first index labels the Hermite polynomial and the second the perturbative order in . We use the normalization , , and [3]. We also define and for a generic spatial function . In the expansion, and are treated as independent variables and . The physical solution is obtained by setting , . Coefficients independent of the fast time carry their endpoint indices, as in and . We omit the dependence where unambiguous.
Before expanding in , projection onto the Hermite polynomials gives the optimality equations
Negative Hermite indices are zero. The last equation determines the control.
2 Boundary conditions near the full bridge
When the initial distribution is factorized in and and the momentum distribution is Maxwellian, solving the forward hierarchy order by order gives for . Moreover, we use the freedom in the multiscale expansion to set .
To second order in , the terminal logarithm reads
(9)
Matching the zeroth- and first-order terms yields
The first relation imposes the terminal cost on the position marginal. The second determines the first-order pdf correction at the final time. At second order, we choose the boundary condition using the full-bridge limit. In a regular fixed-M expansion, Eq. (9) would give . Here, instead, we keep this coefficient and require the complete second Hermite coefficient
to have a well-behaved large-M limit. At fixed , a bounded requires the logarithmic projection in Eq. (11) to be . By considering Eq. (9), this means that at the term that survives as
must vanish as . Since vanishes in this limit, the condition reduces to cancelling the first term of Eq. (12) through the choice of . This is the full-bridge condition on the second-order density correction. Section 4.1 derives the corresponding equation for and checks that the finite-M correction leaves the terminal Hermite projection bounded.
The scalar second-order terminal contribution must also be accounted for. The part supplied by Eq. (9) is
We determine the leading-order functions first, then use this terminal contribution to fix the integration function in the reconstruction of . Section 4.3 shows how this agrees with the slow evolution equation and evaluates its large-M limit.
The result is a singular approximation intended for . We derive no error bound uniform in M, and the finite-M terms are not a complete expansion of the exact optimum in .
3 Fast relaxation and the leading control
3.1 Zeroth order
At zeroth order, we solve the equations for the pdf and value function:
The Maxwellian initial data and the chosen value-function coefficients give
Stationarity sets . We set the other zeroth-order value-function coefficients to zero in the approximation. At this stage, , and are unknown functions of position and slow time. We determine them in Section 4.
3.2 First-order equations and endpoint conditions
We obtain the first-order equations and their boundary conditions from Eqs. (6)–(8):
(16)
Substituting the last equation into the first isolates the value-function coefficient:
We differentiate Eq. (17) with respect to , substitute into the value-function equation in Eq. (16), and use . The terms quadratic in cancel, leaving
The initial first-order pdf correction is zero. Inserting the terminal condition for from Eq. (10) into Eq. (17) gives the second boundary condition:
The first-Hermite KL condition determines the terminal pdf correction through this Robin boundary condition.
3.3 Green-function solution and control
We obtain the pdf correction and control from the Green function. The Dirichlet inverse of has kernel
For the two forcing profiles in Eq. (18), define
The particular solution with zero endpoint values has the fast-time boundary conditions of the full bridge:
Add the homogeneous solution that vanishes at 0 and equals at T:
Since , Eq. (19) determines
Substituting Eq. (22) gives the numerator:
(25)
For bounded fields, the denominator grows as and . The solution satisfies the full-bridge boundary conditions in fast time. The correction vanishes as . At finite , the functions entering this solution still satisfy the terminal condition in Eq. (10) and may depend on . We separate the factors of while leaving the functions in the cell problem unexpanded in . At second order, we include the terms that survive the large- limit in the slow evolution and keep the vanishing terms in the fast corrections.
We split the first-order value-function correction in the same way. Writing for Eq. (17) evaluated with , we obtain
The corresponding endpoint correction also vanishes for large M.
Finally, the forward equation in Eq. (16) gives the control directly:
Substituting Eqs. (22)–(23) gives
(28)
4 Derivation of the slow cell problem
At second order, the two density equations determine the corrections once the slow fields are known. Their endpoint conditions also select and the slow density equation. The scalar value-function equation then closes the cell problem.
The and projections of Eq. (6) are
\begin{align*}\partial_{t_{0}}f_{t_{0},t_{2}}^{(0:2)}&=-\partial_{t_{2}}f_{0,t_{2}}^{(0:0)}-\partial_{q}f_{t_{0},t_{2}}^{(1:1)},\ $ \partial_{t_{0}}+2)f_{t_{0},t_{2}}^{(2:2)}&=-(\partial_{q}+\partial_{q}U_{\star}+\partial_{q}U_{t_{0},t_{2}}^{(0)})f_{t_{0},t_{2}}^{(1:1)}.\end{align*}(29)
We extend the Maxwellian initial data to each auxiliary slow-time slice by setting . The scalar equation integrates directly. For the second equation, substitution of Eq. (27) gives
The two corrections are therefore
4.1 Determining the second Hermite coefficient
We determine the second Hermite coefficient from the full-bridge limit, in which the endpoint correction in Eq. (23) vanishes. The part of the terminal condition from Eq. (12) that survives this limit requires the contribution to from the solution with full-bridge boundary conditions to vanish at T. We impose the same cancellation at finite M to determine . Since , Eq. (32) reduces the rule to a weighted time integral. The required integrals, together with the unweighted ones used for the scalar density correction, are
(33)
The part of Eq. (32) that survives at as gives
The bracket is independent of q. Spatial decay determines that integration constant and yields
The second equation follows by spatial integration and decay of ; then Eq. (35) can be integrated from to . This determines in terms of the two slow fields. The spatial integration constant enforces compatibility of the spatial boundary conditions.
The relaxation integral for the endpoint correction is
Keeping the finite-M correction in Eq. (32) gives
For and its spatial derivative of order , the contribution to Eq. (11) supplied at density order , namely , stays bounded as at fixed . This checks the boundedness required in Section 2 at these orders. The contribution belongs to the complete Hermite coefficient, whose expansion includes .
4.2 Slow evolution of the density
We determine the slow density evolution by requiring the part of that survives as to vanish at both fast-time endpoints. Using the separation described after Eq. (24), we apply this requirement to ; the contribution vanishes in that limit and stays in the fast correction. Evaluation of Eq. (31) at T gives
Substituting Eq. (35) into Eq. (22) gives
(40)
Symmetry of gives . Thus the two coefficients produced by the average are
(41)
Substitution into Eq. (39) gives
For T > 0, 0 < A < 1 and A - B = 1 - 2tanh(T/2)/T > 0.
4.3 Slow evolution of the scalar value function
We obtain the slow equation for the value function from the projection of Eq. (7) at second order, using the stationarity condition:
As for the density, only the part that survives the full-bridge limit is absorbed into the slow equation. We denote the corresponding value-function corrections by a tilde and impose equal fast-endpoint values, . We allow a nonzero common endpoint function. Integrating Eq. (43) therefore gives
The value-function correction is defined in Eq. (26). To perform the average, we substitute Eq. (17) with the pdf correction that vanishes at both endpoints and integrate by parts in fast time:
(45)
Both identities have zero boundary terms because ; the second also uses . We replace by Eq. (18) in the first identity. The square of cancels, and the remaining quadratic terms reduce the average to two linear integrals:
The remaining integrals are
(47)
Together with Eq. (35), these reduce the scalar average to
(48)
Equations (42) and (48) are the cell problem. The terms that vanish in the full-bridge limit remain in the fast corrections. We allow their endpoint values to differ.
Scalar terminal reconstruction. We impose the scalar terminal datum in Eq. (13) after determining the slow equation. This is possible because the initial value of the value function is unspecified. We keep the terms excluded from the slow averages because the KL relation multiplies them by M. Integrating Eq. (43) gives
From Eqs. (31) and (39), and . Thus Eq. (13) gives
For functions in the cell problem with a regular large-M limit, assume that the ratios in Eq. (24) and their spatial derivatives remain bounded. Expanding Eq. (50) gives
This terminal value is finite but generally nonzero. Keeping the scalar correction accounts for a discrepancy that can persist as . Its value fixes a spatially dependent integration function in Eq. (49), separately from the boundary conditions for the leading-order functions and the additive constant in . Its spatial derivative first enters the first-Hermite equation for the value function at order , so restoring this terminal datum leaves the control and density unchanged at these orders. Under the same boundedness assumptions, the right-hand side of Eq. (43) changes by when we replace the first-order coefficients by their tilde parts. Consequently,
which recovers the equal-endpoint condition in the full-bridge limit while keeping the scalar terminal contribution at finite M.
4.4 Solving the cell problem
We rewrite the cell problem by absorbing the density-gradient terms in Eq. (48) into an auxiliary variable. Set
Substitution into Eqs. (42) and (48), using and , yields
Differentiating the first relation in Eq. (56) and integrating by parts in Eqs. (54) and (55) gives
The initial datum is . The scalar KL boundary condition at the final slow time becomes
We fix in Eq. (53); its evolution in Eq. (56) then determines the scalar term above. The term linear in q accounts for motion of the mean position.
The Cole–Hopf variables , obey
(59)
For , Eq. (57) makes constant and these are backward/forward heat equations coupled through their boundary data. For general , can vary with time and depends on the density through Eq. (57). This dependence couples the two equations.
5 Phase-space density and position marginal
The solution of the cell problem gives and . Equation (35) then determines , and Eqs. (22)–(24) determine the first-order pdf correction. The density follows from Eqs. (31) and (32). The time integrals of the endpoint-correction profile are
(60)
Using the slow density equation in Eq. (31) gives
(61)
For , all the time integrations in Eq. (32) can likewise be performed. Extend the weighted Green integrals in Eq. (33) to :
(62)
Substitution of Eq. (40) into Eq. (32) yields
(63)
Thus the reconstructed phase-space density and its position marginal are
Here denotes the approximation through these orders. The approximation preserves total mass because Eq. (61) is a spatial derivative, so . The Hermite truncation allows negative values in arbitrarily remote momentum tails.
At the final fast time, the two corrections simplify to
They vanish as and its derivatives tend to zero. If the scalar value-function coefficient remains bounded as , Eq. (10) also gives . The reconstructed endpoint then approaches the full bridge through these orders in the density.
6 Cumulants
Integrating the Hermite expansion over momentum gives
(67)
In this section every right-hand side is evaluated at , , after performing the fast-time integrals at fixed . Define the slow position moments and half the rate of change of their variance:
Spatial integration of the cell equation gives
(69)
For the remaining spatial integrals, Eqs. (40) and (53) imply
(70)
For example, the centered spatial integral of is ; the corresponding integral of is . These two integrations by parts determine the signs in the covariance and position variance below.
When the expansion of Eq. (24) can be integrated term by term, the two moments of the endpoint correction are, to leading order in ,
(71)
These expansions hold at fixed functions in the cell problem. In the cumulants, we keep with its full denominator from Eq. (24).
Using Eqs. (23) and (70) in the momentum integral gives
Integrating from Eq. (61) once by parts gives the mean position:
For the position variance, integrate ; for the covariance, integrate . The results are
(74)
Finally, the second momentum moment and the zero mass of give
To evaluate the square and subtract the mean, we first center the first-order pdf correction. From Eqs. (40) and (53),
(77)
The spatial average of the second bracket with density is zero by Eq. (56). Substitution into Eqs. (63) and (76) now gives the final expression
The first two correction terms give the result with zero endpoint correction. The next two are, respectively, the centered cross term and the response of the relaxation integral; both are for bounded fields. The last term is . The mixed terms can remain when the mean momentum is zero.
The fast derivatives of the unweighted Green integrals are the profiles and . Together with Eq. (69), this verifies the kinematic relations
through these orders, using at physical time.
At , both the unweighted and weighted Green combinations in Eq. (78) vanish. In particular,
The momentum-variance correction also vanishes as and its spatial derivatives tend to zero in the full-bridge limit.
Use of AI
We checked our analytic calculations with GPT 6, and used LLMs to edit this draft. The authors take full responsibility for the final text.
References
[1] J. Sanders, D. Lucente, M. Baldovin and P. Muratore-Ginanneschi, Underdamped Stochastic Optimal Transport with Landauer Boundary Conditions: Machine Learning and Analytical Solution, accompanying manuscript.
[2] J. Sanders, M. Baldovin and P. Muratore-Ginanneschi, Optimal Control of Underdamped Systems: An Analytic Approach, J. Stat. Phys. 191, 117 (2024), doi:10.1007/s10955-024-03320-w; arXiv:2403.00679v2.
[3] NIST Digital Library of Mathematical Functions, Section 18.3, probabilists' Hermite orthogonality and normalization.