Manuscript Offprint
arXiv:2610.21084Stochastic Latent Twins: Learning Stochastic Solution Operators
ARTICLE INFO
Keywords:
Latent Twins
Stochastic Solution Operators
Wasserstein Approximation
Physics Conformity
Stochastic Differential Equations
ABSTRACT
Scientific prediction under uncertainty requires more than a single future state: it requires the distribution of possible outcomes. We show that this distribution-valued evolution can be learned directly as a stochastic solution operator between arbitrary source and target times. We introduce Stochastic Latent Twins, which represent the physical state through a deterministic encoder–decoder while placing stochasticity entirely in a probability-valued latent evolution map. This separation makes the stochastic transition law independent of the state representation and enables direct probabilistic prediction without recursive time stepping.
We establish an end-to-end Wasserstein approximation theory that separates representation and latent-transition errors, derive stability guarantees, and develop a distributional theory of physics conformity with latent-to-physical transfer bounds and conformity by construction. The resulting framework can be learned directly from observed transitions and supports forward prediction, backward conditional evolution, one-shot generation, and physics-conforming stochastic dynamics within the same formulation. Numerical experiments ranging from linear and non-Gaussian SDEs to stochastic Lorenz dynamics, generative modeling, a stochastic Hamiltonian system, and a two-dimensional stochastic Burgers equation verify the theory, expose the distinct roles of state representation and transition-family expressivity, compare favorably with recent stochastic and one-step generative methods, and demonstrate exact physical conservation by construction. More broadly, Stochastic Latent Twins provide a step toward scientific surrogates that represent not only the evolution of a system, but also its uncertainty and physical structure, opening new opportunities across uncertainty quantification, data assimilation, inverse problems, control, and digital twins.
where denotes the random state and is a Wiener process. A realization of Equation (1) defines a sample path . In contrast to a deterministic dynamical system, prescribing the state
matthias.chung@emory.edu (M. Chung); jack.michael.solomon@emory.edu (J.M. Solomon); dverma@clemson.edu (D. Verma)
https://matthiaschung.github.io/ (M. Chung); https://dpnshvrm.github.io/ (D. Verma)
ORCID(s): 0000-0001-7822-4539 (M. Chung); 0009-0001-0822-9438 (J.M. Solomon); 0000-0002-0904-5470 (D. Verma)
M. Chung et al.: Preprint submitted to Elsevier
Page 1 of 47
at time does not in general determine a unique state at a time . Instead, it determines a conditional distribution, which we write as
where denotes the space of Borel probability measures on . We call the stochastic solution operator.
Numerical simulation of an SDE typically requires a time discretization together with the generation of random increments, and accurate approximation of sample paths or their statistics may require many time steps and realizations (Kloeden and Platen, 1992). This burden motivates learning directly between arbitrary time points s and t, avoiding repeated small-step simulation at inference. Data-driven surrogate models provide one such approach (Hasan, Pereira, Farsiu and Tarokh, 2022; Chen and Xiu, 2024; Kiyohara, Johns and Li, 2025b).
We introduce Stochastic Latent Twins (SLTs), a latent neural-network surrogate framework for , based on an encode–evolve–decode representation in which the encoder and decoder are deterministic and the latent evolution is probability-valued. Building on the Latent Twin framework (Chung, Verma, Collins, Subrahmanya, Katti Sastry and Rao, 2026; Chung, Bu and Verma, 2027; Verma, Chen and Chung, 2026), we replace latent evolution from point-valued latent states to conditional latent distributions between arbitrary time points, while retaining the separation between state representation and temporal evolution.
With encoder and decoder , a state is encoded as and evolved according to
The predicted latent distribution is then mapped back to physical space through d. A precise definition is given in Theorem 3.1 and illustrated in Figure 1.
Contribution. Stochastic Latent Twins can be trained directly from observed state transitions and evaluated at arbitrary, including irregularly spaced, time points without recursive small-step propagation. The main contribution of this work is the formulation and analysis of Stochastic Latent Twins, a latent solution-operator framework in which stochastic evolution is learned directly as a conditional probability distribution. We develop a Wasserstein approximation theory that connects latent stochastic evolution to the resulting physical-space solution law and introduce a distributional theory of physics conformity for stochastic dynamics, including conservation, dissipation, and latent-to-physical transfer of physical structure.
Organization. The remainder of the paper is organized as follows. Section 2 places Stochastic Latent Twins within the broader development of learned stochastic dynamics and distribution-valued solution operators, including neural and latent SDEs, stochastic flow maps, probabilistic operator learning, and stochastic transfer operators. Section 3 introduces the Stochastic Latent Twin formulation. We then develop its Wasserstein approximation theory (Section 4.2), stability properties (Section 4.3), and physics-conforming formulation (Section 4.5).
Section 5 examines the framework across problems ranging from controlled SDEs (Sections 5.1 and 5.2) and fully data-driven stochastic dynamics (Section 5.3) to one-shot generative modeling (Section 5.4), physics conforming stochastic dynamics (Section 5.5), and a two-dimensional stochastic Burgers partial differential equation (SPDE) (Section 5.6), with direct comparisons against Neural Stochastic Flows and recent one-step generative methods. The appendices provide supporting theoretical derivations (Sections A and B) and detailed numerical setups, training and evaluation protocols, and additional diagnostics (Sections C to H) to facilitate reproducibility.

Figure 1: Schematic of a Stochastic Latent Twin (SLT) for stochastic dynamical systems. The encoder maps the observed states and to their latent representations and , respectively. Given , the latent evolution map returns the transition law , which represents the distribution of the latent state at time conditioned on at time . The encoded state is one realization of this distribution corresponding to the observed state . The decoder maps latent states back to physical space, with denoting the reconstruction of . Applying the same decoder to the predicted latent distribution gives its pushforward in physical space, denoted by , so that the Stochastic Latent Twin . Thus, the encoder–decoder pair defines the state representation, while the stochastic temporal evolution is contained entirely in .
2. Related work
Surrogate models for stochastic dynamics can be formulated in fundamentally different ways, depending on the mathematical object chosen to represent the evolution. These include local stochastic dynamics, conditional transition laws between source and target times, probability-density evolution, and stochastic operators.
One class of approaches learns the local stochastic dynamics. Neural SDEs parameterize the drift and diffusion coefficients (Li, Wong, Chen and Duvenaud, 2020; Kidger, Foster, Li, Oberhauser and Lyons, 2021), while latent SDE approaches place such dynamics in a learned state space, often within variational or state-space formulations (Hasan et al., 2022; Course and Nair, 2023; Bartosh, Vetrov and Naesseth, 2025). Prediction at a later time is then obtained by propagating the learned stochastic dynamics.
Rather than learning an infinitesimal model and propagating it forward, another class of methods represents stochastic evolution directly over finite time intervals. Stochastic flow-map learning constructs stochastic maps between states separated in time (Chen and Xiu, 2024), while transition-density approaches learn conditional transition densities or the associated Fokker–Planck evolution (Su, Tretyakov and Newton, 2024; Zeng, Wan, Wang, Nobile and Zhou, 2026). These methods share the direct finite-interval perspective of Stochastic Latent Twins, but differ in how stochastic evolution is represented and coupled to the state representation. Stochastic Latent Twins combine direct conditional-law learning with a separate latent representation, providing the basis for the approximation and physics-conformity developments of this work.
Neural Stochastic Flows (NSFs) (Kiyohara et al., 2025b) provide the closest comparison to the present formulation. They learn conditional transition laws between arbitrary time points using conditional normalizing flows and encode structural properties of stochastic flows, including identity and Chapman–Kolmogorov consistency. Their latent extension is formulated through a variational state-space model. Stochastic Latent Twins instead retain a deterministic encoder–decoder representation and place stochasticity in the latent evolution itself, without prescribing a particular family for the conditional transition law. The theoretical developments also differ in scope: Neural Stochastic Flows focus primarily on structural consistency of the learned stochastic flow, whereas we develop end-to-end Wasserstein approximation and stability results together with a distributional theory of physics conformity and latent-to-physical transfer. Numerical comparisons are given in Sections 5.3 and 5.6.
Probabilistic and stochastic neural operators approach uncertainty from a function-space perspective, learning distribution-valued or stochastic maps between input and output fields (Bülte, Scholl and Kutyniok, 2025; Bahmani, Kevrekidis and Shields, 2025; Shi, Lin, Han, Thompson, Hernández-Lobato, Wang and Gao, 2026). Stochastic transfer- and Koopman-operator methods take a related operator viewpoint, focusing on the evolution of observables or learned representations adapted to the underlying stochastic dynamics (Kostic, Novelli, Grazzi, Lounici and Pontil, 2024; Ke, Tanaka and Kawahara, 2025). Stochastic Latent Twins take a different route, centering the formulation on state-conditioned transition laws between source and target times while using the latent space to represent the evolving state.
A further connection arises with generative modeling. Diffusion and score-based models and flow matching construct transport between probability distributions (Song, Sohl-Dickstein, Kingma, Kumar, Ermon and Poole, 2021; Lipman, Chen, Ben-Hamu, Nickel and Le, 2023), while recent one-step methods seek to replace iterative generation by increasingly direct transport or solution maps (Frans, Hafner, Levine and Abbeel, 2025; Geng, Deng, Bai, Kolter and He, 2025; Luo, Yuan and Liu, 2026). These approaches are primarily designed to transform one distribution into another, whereas Stochastic Latent Twins learn state-conditioned transition laws. When the source state is itself distributed, however, these conditional laws induce a corresponding distribution-to-distribution evolution. This connection motivates the one-shot generative experiment in Section 5.4.
Stochastic Latent Twins also build directly on the deterministic Latent Twin, Physics-Conforming Latent Twin, and Latent Twin Operators frameworks (Chung et al., 2026, 2027; Verma et al., 2026). The present work extends the latent solution-operator viewpoint from point-valued to probability-valued evolution and generalizes physics conformity to stochastic solution laws, including distributional conservation and dissipation. A more detailed comparison with related stochastic-learning frameworks is provided in Section A.
3. Stochastic Latent Twins (SLTs)
The central objective is to approximate the stochastic solution operator defined in Eq. (2), which maps an initial state to the transition law , the distribution of given . In standard stochastic-process terminology, is the transition kernel of the process (Ethier and Kurtz, 2009). We use solution-operator terminology to emphasize the connection with deterministic solution operators and the Latent Twin framework.
Definition 3.1 (Stochastic Latent Twin). A Stochastic Latent Twin of is a surrogate stochastic solution operator
defined through a latent space Z and
(i) an encoder ,
(ii) a latent evolution map , and
(iii) a decoder , inducing .
For a given , the value is the latent transition law. The formulation does not prescribe a probability family for these laws; in this work, we use Gaussian, Gaussian-mixture, and noncentral- transition families. When referring to trainable realizations, denotes the parameters of the encoder, latent evolution map, and decoder collectively. We suppress it and write , and unless the dependence matters.
Remark 3.2 (Deterministic Latent Twins as a special case). The Stochastic Latent Twin framework naturally contains deterministic Latent Twins as a special case. Indeed, suppose that the latent evolution map returns the Dirac transition law, , for some deterministic latent evolution map . Then almost surely, and the Stochastic Latent Twin reduces to . The stochastic formulation therefore extends point-valued solution operators to probability-valued ones, with direct access to predictive distributions and their statistics.
Approximating the stochastic solution operator requires both faithful state representation and an accurate stochastic evolution,
and the approximation error separates accordingly into a state-representation part and a stochastic-evolution part, as quantified in Section 4.
Remark 3.3 (Temporal consistency). When the latent transition law admits a density, Markovian evolution satisfies the Chapman–Kolmogorov composition property
that is, direct evolution from s to t agrees with evolution through an intermediate time after averaging over all possible intermediate states. This is the stochastic analogue of the composition property of deterministic solution operators, reducing to the familiar semigroup property in the time-homogeneous case (Ethier and Kurtz, 2009). Chapman–Kolmogorov consistency provides a natural temporal consistency condition and may be promoted during training, as is also done in Neural Stochastic Flows (Kiyohara et al., 2025b). Since encoding need not preserve the Markov property when relevant state information is discarded, we regard Eq. (6) as an optional structural property rather than an assumption of the approximation theory.
4. Approximation and Structural Properties
Since both the stochastic solution and its Stochastic Latent Twin approximation are probability distributions, their discrepancy is naturally measured in probability space. We denote by with , the space of probability measures on with finite -th moment. We use the -Wasserstein distance to measure discrepancies between probability distributions; see, e.g., (Villani, 2009).
Assumption 4.1 (Stochastic dynamics). For every and , the conditional stochastic solution operator is well defined and satisfies
Here we use to denote integration against the conditional law which is not required to admit a density. Moreover, no boundedness or compact-support condition is imposed on the stochastic state. The assumption only requires the conditional law to have a finite p-th moment. Transition laws with unbounded support, including Gaussian laws, are therefore admissible. This places the conditional laws in the natural domain of the p-Wasserstein distance used below.
The choice of determines the admissible time orientation. For standard forward evolution, one may take . More generally, may contain any time pairs for which the corresponding conditional solution laws are well defined, including backward conditional operators when such laws exist; see Section 4.4. The approximation theory below is formulated directly in terms of these conditional probability laws and therefore does not require a prescribed time orientation.
We next impose the corresponding approximation properties on the state representation.
Assumption 4.2 (Encoder and decoder). The encoder and decoder are Lipschitz continuous:
for constants .
The encoder–decoder pair is assumed to be Lipschitz continuous, while its representation accuracy is quantified by the following reconstruction error.
Definition 4.3 (Distribution-weighted reconstruction error). For and , define
Since
the reconstruction error can equivalently be written as
Thus, measures reconstruction accuracy under the conditional distribution of the stochastic target state.
4.1. Latent stochastic evolution
The true conditional solution law induces a corresponding probability law in latent space through the encoder. Since Lipschitz maps preserve finite -th moments under pushforward, Theorem 4.1 and Theorem 4.2 imply .
Assumption 4.4 (Latent evolution map). For every and , the learned latent transition law matches .
We quantify how closely the learned latent transition matches the encoded conditional solution law through the following Wasserstein error.
Definition 4.5 (Latent transition error). For and , define
We can now combine the reconstruction and latent transition errors to bound the resulting error of the Stochastic Latent Twin.
4.2. End-to-end approximation
We first recall the stability of the Wasserstein distance under Lipschitz pushforwards.
Lemma 4.6 (Decoder pushforward). Let and let be -Lipschitz. Then
Proof. Let be a pair of random variables whose joint distribution has marginals and , such a joint distribution is called a coupling of and in optimal transport. Applying the decoder to both components gives a joint random variable with marginals and .
By the definition of the p-Wasserstein distance, any joint distribution with the prescribed marginals provides an upper bound on . Hence,
where the latter inequality follows from -Lipschitz continuity of the decoder.
Taking the infimum over all couplings of and yields
and the desired estimate follows after taking the p-th root.
We can now combine the latent approximation and reconstruction estimates to obtain an end-to-end error bound for the Stochastic Latent Twin.
Theorem 4.7 (Stochastic Latent Twin approximation). Suppose Theorems 4.1, 4.2 and 4.4 hold. Then, for every and ,
Proof. Fix and . By the definition of the Stochastic Latent Twin and the triangle inequality,
By Theorem 4.6 and Theorem 4.5,
For the second term, the composition rule for pushforwards gives
Since , the pair defines a coupling of and . Therefore,
W_{p}^{p}\left((d\circ e)_{\#}\Phi_{s,t}(x_{s}),\Phi_{s,t}(x_{s})\right)\leq\mathbb{E}\left[\|d(e(X_{t}))-X_{t}\|_{\mathcal{X}}^{p}\right|X_{s}=x_{s}\right]=\varepsilon_{\mathrm{a e}}(x_{s};s,t)^{p}.Hence,
Combining the two estimates proves the result.
7
☐
Corollary 4.8 (Uniform approximation). For any and , suppose that
Then
Consequently, if and along a sequence of Stochastic Latent Twins, then the corresponding surrogate solution operators converge uniformly to the stochastic solution operator in over those sets.
Remark 4.9 (Relation to deterministic Latent Twins). The deterministic Latent Twin approximation theory is commonly formulated through uniform estimates over prescribed state sets. Here, the basic approximation result is instead formulated directly for conditional probability laws. Uniform approximation follows when the distribution-weighted reconstruction and latent transition errors are uniformly controlled over a chosen set of conditioning states and time pairs.
The approximation theory developed above is formulated directly for probability-valued transition operators and does not require an explicit differential representation of the underlying stochastic dynamics. Thus, while SDEs and SPDEs provide the primary examples considered in this work, the results apply more generally to any family of conditional transition laws
satisfying the stated moment and regularity assumptions. An SDE should therefore be regarded as one mechanism for generating such a transition family rather than as part of the definition of a Stochastic Latent Twin.
4.3. Stability of the learned stochastic solution operator
The sensitivity of the learned stochastic solution operator to perturbations of the conditioning state is governed by the stability of its components. Given two source states at time , their separation bounds the distance between the corresponding predicted distributions at time .
Under the Lipschitz assumptions on the encoder and decoder in Theorem 4.2, suppose additionally that the learned latent evolution map is Wasserstein stable,
Then, for all ,
Perturbations of the conditioning state therefore remain controlled under the learned stochastic evolution.
The same question can be posed when the state at time is itself random. Under the same hypothesis, for source-state distributions ,
Thus, closeness of two source-state distributions in implies controlled closeness of their evolved distributions under the learned Stochastic Latent Twin.
4.4. Forward and backward conditional evolution
A useful consequence of the conditional-law formulation is that the Stochastic Latent Twin framework does not intrinsically require a forward time-stepping formulation. Since the approximation theory above is formulated in terms of conditional laws rather than forward propagation, it applies naturally to both forward prediction and backward inference, connecting the latter to Bayesian inference and uncertainty quantification (Kaipio and Somersalo, 2005; Stuart, 2010).
For , the forward and backward conditional laws are
The backward conditional law is defined for almost every with respect to the law of . The backward conditional law is not obtained by simply inverting the forward solution operator. Rather, it characterizes the distribution of earlier states consistent with a later observation. Which earlier states are consistent depends on where the process was likely to be at time , and not only on the forward transition. When transition and marginal densities exist, with and denoting the marginal densities of and , respectively, Bayes' formula gives , showing that backward inference depends on both the forward transition law and the marginal distributions at the conditioning times.
Backward evolution is therefore a conditional inference problem rather than negative-time integration of the forward SDE. Under suitable regularity assumptions, a time-reversed diffusion may itself admit an SDE representation. However, the reverse-time dynamics are determined by the backward conditional law and generally differ from the original forward-time dynamics (Haussmann and Pardoux, 1986).
4.5. Physics conformity
For a deterministic solution operator, physics conformity can be expressed directly in terms of the predicted state evolution (Chung et al., 2027). In the stochastic setting, the prediction is instead probability-valued, raising the question of how physics conformity should be defined for such stochastic evolution.
The appropriate notion depends on the physical property under consideration. Conservation laws require physical quantities to remain unchanged, whereas dissipative laws impose one-sided constraints on their evolution. In a stochastic system, such properties may hold for every realization or only on average. Other physical properties, such as positivity, or boundedness, constrain the set of admissible states and may be expressed through the support of the predicted distribution; see, e.g., (Øksendal, 2003; Da Prato and Zabczyk, 2014).
Let denote a collection of physical quantities or observables that characterize the physical structure of the dynamics, such as mass, energy, or momentum.
Definition 4.10 (Distributional conformity). Let denote the stochastic solution operator, and let represent physical quantities of interest. The stochastic evolution is distributionally conforming with respect to if
where denotes the Dirac measure concentrated at the value .
The pushforward measure describes the distribution of the physical quantities under the stochastic evolution. Thus, Equation (18) requires this distribution to remain a Dirac measure concentrated at , expressing exact preservation of the physical quantities under the stochastic evolution.
Physical laws may also take the form of inequalities rather than equalities. In particular, dissipative quantities such as energy may decrease along the evolution rather than remain constant. This leads to the corresponding distributional inequality. For clarity, we formulate dissipation for a single scalar physical quantity; multiple inequality constraints can be treated componentwise in the same way.
Definition 4.11 (Distributional dissipation). Let denote a dissipative physical quantity. The stochastic evolution is distributionally dissipative with respect to if, for every and every with ,
The support condition in Equation (19) requires the dissipative quantity not to exceed its value at , i.e., almost surely given . Thus, conservation concentrates the pushed-forward transition law at , whereas dissipation restricts its support to values not exceeding .
If , these conditions reduce to and , respectively, recovering the deterministic physics-conformity conditions.
Remark 4.12 (Alternative notions of stochastic physics conformity). The distributional conditions above impose conservation or dissipation realization-wise. In other settings, weaker notions may be appropriate. For example, a conservation law may hold only in expectation, , with the analogous inequality for dissipative quantities. Other physical constraints can be imposed through support restrictions. For example, positivity requires the predicted distribution to be supported only on nonnegative states. Realization-wise conservation or dissipation implies the corresponding condition in expectation, but the converse need not hold.
Conformity inherited from stochastic solution-operator approximation. For the exact dynamics satisfying the distributional conformity condition, the deviation of a learned stochastic solution operator from this physical property can be quantified by the conformity defect
The following result shows that this defect is controlled by the approximation error of the stochastic solution operator.
Corollary 4.13 (A posteriori physics conformity from solution-law approximation). Assume that is -Lipschitz and that satisfies Eq. (18). Under the assumptions of Theorem 4.7, for every and ,
Proof. Since C is -Lipschitz,
and the result follows from Theorem 4.7.
This result establishes that physical conformity follows naturally as a consequence of accurate stochastic solution-law approximation. However, such a posteriori conformity does not explicitly exploit known physical structure. A stronger approach is to incorporate physical constraints directly into the latent representation and evolution, providing an a priori mechanism in which conformity is enforced by construction (Chung et al., 2027).
Physics-conforming latent evolution. The construction of a physics-conforming stochastic latent evolution requires two ingredients. First, we introduce a latent representation of the physical quantity to be preserved or dissipated by the stochastic evolution. Second, this latent quantity must be compatible with its physical-space counterpart.
The conservation and dissipation conditions introduced above can likewise be imposed directly on the latent stochastic evolution. Let denote the latent physical quantity corresponding to . For conservation, exact latent distributional conformity requires
Thus, although the latent state may evolve stochastically, the physical quantity represented by remains concentrated at . More generally, approximate latent conformity requires
Unlike the a posteriori conformity obtained from solution-law approximation, Equation (23) imposes physical structure directly on the learned latent evolution.
To ensure that the latent physical quantity represents the same physical quantity after decoding, exact compatibility would require . More generally, we allow an approximate pullback relation,
This condition anchors the latent physical quantity to the physical domain. Consequently, preservation of under the latent stochastic evolution translates into preservation of the physical quantity C after decoding.
Theorem 4.14 (Stochastic physics-conformity transfer). Suppose Theorem 4.4 holds and that Equations (23) and (24) hold. If C is -Lipschitz, then
Proof. Let and . By the definition of the Stochastic Latent Twin, , and consequently . It follows that
The final equality follows from the explicit form of the Wasserstein distance to a Dirac measure. To relate this physical-space discrepancy to the latent conformity condition, we insert the latent observable at and , together with its decoded value at . The triangle inequality gives
(26)
The first and third terms are bounded by through Equation (24). Since , the Wasserstein distance to the Dirac measure in Equation (23) can be written equivalently as
For the identity transition, , so that Theorem 4.3 gives
Hence, by the Lipschitz continuity of C,
Since is defined through an norm, we use Minkowski's inequality to combine the four contributions in the preceding decomposition. Thus,
which proves the result.
When latent conformity is enforced exactly by the architecture, the latent conformity error disappears from the transfer bound.
Corollary 4.15 (Physics conformity by construction). Under the assumptions of Theorem 4.14, suppose that the latent stochastic evolution is distributionally conforming by construction, so that . Then
If, in addition, the latent and physical quantities are exactly compatible, so that , then
In particular, exact reconstruction implies exact distributional physics conformity.
The distinction between the a posteriori and physics-conforming estimates is particularly apparent in this case. Without explicit physical structure, conformity is inherited from the accuracy of the learned stochastic solution operator and therefore depends on . When latent conformity is enforced by construction, this dependence disappears: physical conformity is controlled solely by the compatibility of the latent and physical quantities and by the reconstruction error. Thus, the learned stochastic evolution may retain approximation error while satisfying the prescribed physical law exactly in latent space.
Dissipative physical laws. The same latent-to-physical construction extends to the dissipative inequality in Theorem 4.11. For a scalar dissipative quantity, let . With and , define the physical and latent dissipation defects by
The latent evolution is approximately dissipative if , and exactly dissipative when .
Corollary 4.16 (Stochastic dissipation transfer). Suppose that is -Lipschitz, the pullback condition Equation (24) holds, and, with , . Then
Proof. Using the same decomposition as in Theorem 4.14 together with , the physical dissipation violation is bounded by the latent dissipation violation, the two pullback errors, and the reconstruction error. Taking the norm and using the assumed latent dissipation bound, Equation (24), and gives the result.
Analogous latent-to-physical arguments apply to the expectation-level and admissibility constraints discussed in Theorem 4.12.
The preceding conformity defects also provide natural regularization terms for training; these are given in Section 5.
4.6. Linear stochastic systems
The linear SDE provides a setting in which the approximation properties of a Stochastic Latent Twin can be characterized explicitly. Consider
where and . For , the stochastic solution operator is
We consider a linear-Gaussian Stochastic Latent Twin with trainable linear encoder and decoder , , and Gaussian latent transition law . The corresponding conditional transition distribution in physical space is therefore
An immediate consequence of Eq. (33) is that a Gaussian latent transition law followed by a linear decoder produces a Gaussian physical transition distribution, independently of the latent dimension . Increasing can therefore improve the representation of a Gaussian transition law, but it cannot enlarge the predicted distributional family beyond Gaussian distributions. This distinction becomes important in the Cox–Ingersoll–Ross (CIR) experiment in Section 5.2, where the exact transition law is non-Gaussian.
Here, E and D define the trainable encoder–decoder representation used across all considered source and target times, whereas and determine the mean and covariance of the learned latent transition law for each time pair .
At full latent dimension, , the exact stochastic solution operator belongs to this model class. In particular, the choice , , and gives
Thus, a Stochastic Latent Twin can exactly recover the stochastic solution operator at full latent dimension. The preceding choice provides one explicit exact realization; the representation itself need not be unique.
For , the exact full-dimensional realization is no longer available, and the approximation problem becomes genuinely more involved. Nevertheless, the reduced problem admits an important analytical simplification: for any candidate encoder E and decoder D, the Wasserstein-optimal latent Gaussian transition law can be obtained explicitly, so that only the encoder and decoder remain to be optimized, as in a variable-projection reduction (Chung and Renault, 2023; Golub and Pereyra, 1973). The complete derivation is given in Section B.
Because the encoder and decoder must represent all time pairs simultaneously, their optimization is generally not available in closed form. To obtain an analytical reference for the approximation achievable at a given latent dimension, we therefore consider one fixed source time s and target time t and allow the encoder and decoder to be optimized specifically for that time pair. Let denote the second-moment matrix of the source state. For this reference problem, the remaining optimization also admits a closed-form solution. In particular, the optimal decoded -dimensional space is determined by the dominant eigenspace of
If are the eigenvalues of , then the minimum expected squared 2-Wasserstein transition error is
Hence, for each fixed time pair, the eigenvalue expression provides a closed-form lower reference value for the transition error attainable with latent dimension . In contrast, a Stochastic Latent Twin trained across multiple source and target times uses one encoder–decoder representation for all of these transitions.
The analytical results above provide reference solutions for the numerical experiments in Section 5.1, where we investigate how closely trained linear-Gaussian Stochastic Latent Twins approach these predicted approximation limits as the latent dimension and prediction interval are varied.
5. Numerical experiments
We assume that training data are given as transition samples . For an observed transition , the encoder gives and . Since is a realization of the conditional law , the encoded target is a realization of . Thus, observed transitions provide direct samples from the conditional latent law targeted by .
For notational clarity, the training objectives below are written in expectation form; in practice, all expectations are replaced by empirical averages over the available samples.
The Stochastic Latent Twin is trained by
where collects the parameters of the encoder, latent evolution map, and decoder, targets the distribution-weighted reconstruction error introduced in Theorem 4.3, targets the conditional transition law, and denotes optional auxiliary or structural regularization. Depending on the experiment, the latter may represent temporal or physics-conformity conditions or a problem-specific distribution-level objective.
The deterministic encoder–decoder representation is trained using the reconstruction loss
where is a state drawn from the training transitions. This corresponds to the case p = 2 in Theorem 4.3 with squared error. This objective then averages the same squared reconstruction error that defines the distribution-weighted reconstruction error over the state–time samples used during training. For other p, the exponent 2 is replaced by p.
Distributional prediction losses. Our theoretical analysis in Section 4 measures the approximation error between the learned and exact stochastic solution laws in Wasserstein distance. When the exact transition law is available, this motivates the squared 2-Wasserstein objective
We use direct Wasserstein objectives in the controlled linear-SDE experiment Section 5.1 and for several of the CIR models Sections D.3 and 5.2.
For empirical distributions in higher dimensions, direct computation of the Wasserstein distance can become expensive. A computationally attractive alternative is the sliced 2-Wasserstein distance, which averages one-dimensional Wasserstein distances between projections of the two distributions onto directions on the unit sphere (Rowland, Hron, Tang, Choromanski, Sarlos and Weller, 2019): in one dimension, empirical can be computed by matching sorted samples, avoiding a multidimensional optimal-transport problem. For simplicity, we refer to this as the sliced-Wasserstein distance (SWD). We use sliced-Wasserstein distance as an auxiliary distribution-matching objective for the one-shot generative endpoint in the Swiss-roll experiment (Sections 5.4 and F.2). The sliced-Wasserstein distance is also the evaluation metric in the Swiss-roll, pendulum, and Burgers experiments. Throughout, we estimate this metric directly from samples of respective distributions; the number of projection directions for each experiment is given in the corresponding appendix.
Estimation of the sliced-Wasserstein distance can be inaccurate with few samples per conditioning state. Such data are common in fully data-driven settings, where the data consist of observed transitions , often with only a single realization for each conditioning state . Proper scoring rules are well suited to this setting: they evaluate a predictive distribution against a single observed outcome, and their expected score is minimized by the true conditional distribution (Gneiting and Raftery, 2007).
When the latent transition law admits a tractable density , the logarithmic score gives the negative log-likelihood
where and . For a Gaussian latent transition law, this specializes to
up to an additive constant, where and . Likelihood-based training is used for the Gaussian-mixture and learned noncentral- CIR models; see Sections D.3 and 5.2.
When samples can be drawn from the predicted conditional law but its density is unavailable or inconvenient to evaluate, we use the energy score. For an observed transition , let
The corresponding loss is
The first term rewards agreement with the observed target, while the second accounts for the spread of the predictive distribution. We use the physical-space energy score for the stochastic Lorenz, Swiss-roll, stochastic pendulum and Burgers equation experiments Sections 5.3 to 5.6.
Additional structural regularization. Beyond these prediction objectives, may promote additional structure in the learned evolution. For instance, it can enforce the identity condition and promote Chapman–Kolmogorov consistency Equation (6); see also (Kiyohara et al., 2025b).
For experiments involving known physical structure, the conformity defects introduced in Section 4.5 provide corresponding regularization terms. With the latent physical quantity , conservation may be promoted through
For a scalar dissipative observable, the corresponding one-sided regularization is
Compatibility between the latent and physical observables may likewise be encouraged through
For Gaussian transitions, the expectations in Equations (41) and (42) are approximated using Monte Carlo samples from the predicted latent Gaussian law. When conservation or dissipation is exactly enforced by the latent architecture, the corresponding regularization term is omitted. Likewise, the pullback term is unnecessary when latent-to-physical compatibility is built directly into the representation.
The architecture, training data, and choice of structural regularization used in each numerical example are specified below.
Sample-path generation. A Stochastic Latent Twin represents conditional transition laws between arbitrary time points. Discrete sample paths can therefore be generated by sequentially sampling these conditional laws. Given times and an initial state , we use
for . Alternatively, sample paths may be generated entirely in latent space via
followed by decoding only when physical-space states are required. This latent recursion is appropriate when the learned latent evolution remains consistent under recursively generated latent states.
5.1. Linear SDE: verification of the analytical approximation limits
The linear-Gaussian setting isolates the effects of latent dimension and state representation when the probability family is already correctly specified. We therefore use the linear SDE Equation (31) as a controlled test of the approximation results of Sections B and 4.6. We consider a randomly generated dimensional stable, nonnormal system; the nonnormality avoids trivially aligned dominant subspaces across prediction horizons. Further details of the system construction and numerical optimization are given in Section C.
Figure 2 (left) illustrates the stochastic dynamics. Source and target times are selected over , defining the conditional transitions used for training and evaluation. No sampled data are used in this experiment: the objective is evaluated in closed form from the Gaussian transition laws (see Section C).
The principal comparison is with the relaxed problem of Theorem B.2, in which the encoder and decoder may depend jointly on . Optimizing the representation separately for each transition yields an optimal lower bound on the transition error attainable by representations shared across multiple transitions. We compare this optimal lower bound with a representation shared by all transitions and with the time-dependent extension of Section B.4. In both trainable cases, the optimal latent Gaussian transition is eliminated analytically as described in Section B; only the representation itself is optimized numerically. The reported error is the average over all forward time pairs of , where is the expected squared Wasserstein error of Eq. (53).
The numerical results Fig. 2 (right) reproduce the analytical approximation hierarchy. Increasing the latent dimension systematically reduces the transition error, and both trainable representations


Figure 2: Linear stochastic system used for the verification experiment. Left: stochastic dynamics, shown as the projection onto the leading eigenvector of the initial second-moment matrix , with the mean standard deviations (shaded band), sample paths, and representative conditional transitions between source and target times used for training and evaluation. Right: mean 2-Wasserstein transition error versus latent dimension for the optimal lower bound, the fixed representation , and the time-dependent representation . The error is the mean of over all forward pairs (Section C); the full-dimensional case shows the exact-representation limit, where the optimal lower bound is exactly zero.
remain close to the optimal lower bound. Allowing the representation to vary as provides an additional improvement, although a common captures most of the reduction. At , the transition error vanishes to numerical precision, confirming the exact-representation result of Section 4.6.
Representative recursively generated trajectories are reported in Section C; as the latent dimension increases, the predicted mean and uncertainty approach the exact Gaussian evolution, with full recovery at .
Although the results above exploit the analytical linear-Gaussian structure for controlled verification, this analytical elimination is not required by the Stochastic Latent Twin framework. In the subsequent experiments, the latent evolution map is instead learned directly from observed transition data.
5.2. Cox-Ingersoll-Ross (CIR) model
We use the Cox–Ingersoll–Ross (CIR) model to examine what changes when the exact transition law is non-Gaussian. In particular, it allows us to separate three sources of approximation power that coincide in the linear-Gaussian example: latent dimension, nonlinear state representation, and the probability family used for the latent transition law.
We consider the one-dimensional CIR model (Cox, Ingersoll, Ross et al., 1985),
For , its transition law is known explicitly and is a scaled noncentral chi-squared distribution (Cox et al., 1985),
where denotes the noncentral chi-squared distribution with degrees of freedom and noncentrality parameter , is a scaling factor, and is the state-dependent noncentrality parameter. Throughout this experiment we take , , and . Exact sampling from Equation (45) is available and is used to generate both the training data and reference solutions. The resulting CIR dynamics are illustrated in Figure 4 (left); further numerical details are given in Section D.
Best Gaussian approximation. We first quantify how well the exact CIR transition law can be approximated by a Gaussian distribution. For a fixed source state and time pair , consider
We call the minimizing Gaussian the best Gaussian approximation of , and its squared error. Using the one-dimensional quantile representation of the Wasserstein distance (Vallender, 1974) and the corresponding characterization of the -nearest Gaussian (Wang and Wei, 2026), the minimizing mean is the mean of , and the minimizing standard deviation is , where and denote the quantile functions of the CIR transition law and the standard normal distribution, respectively. The minimum squared Wasserstein error is
This value provides a lower reference for any model whose predicted physical transition law is Gaussian; the derivation is given in Section D.2.
We next test whether the Gaussian Stochastic Latent Twin considered in the linear-SDE experiment attains this reference. With a Gaussian latent transition law and a linear decoder, the decoded physical transition remains Gaussian for every latent dimension . Since the physical state is one-dimensional, already suffices to represent an arbitrary scalar Gaussian transition, and increasing only provides a redundant parameterization of the same physical Gaussian family. We nevertheless train models with , and 4 using the Wasserstein objective to verify this limitation numerically: all three models closely approach the error of the best Gaussian approximation, and their mean squared Wasserstein errors, averaged over source states and prediction horizons, differ by only approximately 0.03%. Thus, increasing latent dimension cannot remove the approximation error caused by restricting the physical transition law to the Gaussian family.
There are two distinct ways to enlarge the class of physical transition laws: one may enrich the latent probability family while retaining a linear representation, or retain a simple Gaussian latent law and enrich the encoder–decoder representation. We examine these two mechanisms separately.
Enriching the transition family. First, we enrich the latent probability family while keeping the encoder–decoder representation linear. Specifically, we replace the Gaussian transition by a Gaussian mixture,
with mixture weights, means, and covariances learned from the transition data. The resulting physical transition is therefore a Gaussian mixture as well.
As shown in Figure 3, enriching the latent probability family substantially reduces the Wasserstein error relative to the Gaussian model. Under the common evaluation protocol, the mean squared Wasserstein error decreases from approximately for the single-Gaussian model to for the Gaussian mixture. This comparison shows that non-Gaussian physical transition laws can be obtained by enriching the latent probability family.
Nonlinear representation. We next retain a single Gaussian latent transition law but replace the linear encoder and decoder by small multilayer perceptrons. The predicted physical transition is then

Exact Best Gaussian approximation Gaussian latent, linear Gaussian mixture latent, linear Gaussian latent, nonlinear e,d
Figure 3: Distributional expressivity for the CIR transition. The linear-decoder Gaussian Stochastic Latent Twin approaches the best Gaussian approximation but cannot overcome its distributional restriction by increasing the latent dimension. A Gaussian mixture improves the approximation while retaining a linear representation, whereas a nonlinear decoder produces a highly accurate non-Gaussian physical transition from a single Gaussian latent law.
which is no longer restricted to be Gaussian.
This change produces a much larger reduction in transition error. With , the nonlinear representation reproduces the skewness and one-sided structure of the CIR transition substantially more accurately than the linear-decoder Gaussian models, see Fig. 3. Under the common evaluation protocol, the mean squared Wasserstein error is approximately , more than two orders of magnitude below the best Gaussian approximation. Thus, probability-family expressivity and representation expressivity are distinct: under a nonlinear encoder–decoder representation, a Gaussian latent law can induce a non-Gaussian physical transition.
Matching the CIR transition family. The previous comparisons obtain non-Gaussian physical transition laws either by enriching the latent distribution or by applying a nonlinear decoder. For CIR, however, the exact transition family itself is known. Since the problem is already one-dimensional, no separate state representation is required and we identify . We therefore parameterize the transition directly as a scaled noncentral chi-squared law, .
We learn the parameters of this transition directly from sampled transitions, without supplying the analytical CIR formulas, using negative log-likelihood. The learned model is evaluated in the same 2-Wasserstein metric used for the preceding comparisons and closely approximates the exact conditional transition laws across the tested source states and prediction horizons. Under the common evaluation protocol, the learned model attains a mean squared 2-Wasserstein error of approximately .
This comparison separates approximation from estimation. Restricting the physical transition to a Gaussian family introduces an irreducible approximation error, whereas the noncentral- family contains the exact CIR transition law. For the learned noncentral- model, the remaining error therefore reflects finite-data learning and numerical error rather than misspecification of the transition family.
The dependence on prediction horizon is summarized in Figure 4 (right), which reports the mean 2-Wasserstein distance, without squaring, at each horizon.


Figure 4: CIR experiment. Left: exact CIR transition quantiles and representative sample paths; the shaded regions show central probability intervals of the conditional transition law as the prediction horizon increases. Right: mean 2-Wasserstein transition error as a function of prediction horizon for the CIR models, averaged over a common set of source states.
Taken together, the CIR experiment separates three sources of approximation power that coincide in the linear-Gaussian setting. Approximation quality depends jointly on latent dimension, state representation, and the probability family used for stochastic evolution.
Additional distributional diagnostics with pointwise deviation of the predicted conditional distribution Figure 11 and recursively generated sample paths are reported in Sections D.4 and D.5.
5.3. Stochastic Lorenz: data-driven transition learning and comparison with Neural Stochastic Flows
The linear-SDE and CIR experiments study stochastic solution operators in settings where the relevant transition laws are analytically available. We next remove this analytical information and learn the stochastic transition directly from simulated trajectories of a nonlinear dynamical system. This setting also enables a direct comparison with Neural Stochastic Flows (Kiyohara et al., 2025b).
We follow the stochastic Lorenz-63 setup of (Li et al., 2020), used by Neural Stochastic Flows (Kiyohara et al., 2025b). Although the Lorenz system is a classic example of chaotic dynamics (Lorenz, 1963), the finite-time experiment considered here focuses on the evolution from a Gaussian distribution centered at the unstable equilibrium to a pronounced bimodal distribution associated with the two lobes of the Lorenz attractor; see Fig. 5. This finite-time distributional bifurcation provides a data-driven test of the learned conditional transition laws.
The physical state satisfies
with , , , and . Initial states are sampled from , and

Figure 5: Evolution of the stochastic Lorenz state distribution over . Observed states are colored by time. The initially concentrated population near the unstable equilibrium evolves toward the bimodal structure associated with the two lobes of the Lorenz attractor.



Figure 6: Distribution of the Lorenz state at t = 1 for the 1,024 test trajectories colored by kernel density estimates. Left: reference stochastic Lorenz process. Middle: direct Stochastic Latent Twin prediction from the same initial states. Right: difference between the estimated densities. The learned transition reproduces the bimodal population associated with the two lobes of the Lorenz attractor.
trajectories are observed at 41 equally spaced times on [0, 1]. Training uses transition pairs from all pairs of observation times . Further data generation details are given in Section E.1.
In contrast to the preceding linear-in-state latent transitions, we use
where a neural network maps directly to the conditional mean and covariance factor, allowing both to depend nonlinearly on the source state. The model is trained from observed transition pairs using reconstruction together with the physical-space energy score Equation (40); the latent dimension is , and architecture and training details are given in Section E.2.
On 4,000 test transitions sampled across the complete set of source and target times, the Stochastic Latent Twin attains predictive mean root-mean-squared error 1.69 and energy score 0.238 in physical coordinates (Table 1). In addition to these transition-level measures, we examine the direct prediction, for which the initially concentrated population has developed the strongly bimodal structure of the Lorenz attractor. Figure 6 shows that a single evaluation of the learned stochastic solution operator reproduces the two dominant modes and their spatial distribution without intermediate time stepping.
For a direct comparison, we train Neural Stochastic Flows (Kiyohara et al., 2025b) using the authors' reference implementation on the same data; its flow and bridge networks have approximately the same number of trainable parameters as the Stochastic Latent Twin above. At a common 100-epoch training budget, the Stochastic Latent Twin attains smaller predictive-mean root-mean-squared error and energy score than the Neural Stochastic Flow, and a smaller 1-Wasserstein distance between the marginals at t = 1. Additional implementation details and results at shorter training budgets are reported in Section E.3.
The Lorenz experiment demonstrates data-driven arbitrary-time prediction for a nonlinear stochastic dynamical system. We next use the same conditional solution-operator viewpoint in the backward direction, where the learned transition serves as a one-shot generative map.
5.4. Swiss roll: Stochastic Latent Twin as a one-shot generative model
The preceding experiments consider forward conditional evolution. We next turn to the backward conditional setting discussed in Section 4.4 and test whether a Stochastic Latent Twin can learn a non-Gaussian backward transition entirely from data and use the resulting stochastic solution operator for one-shot generation.
The target is a two-dimensional spiral projection of the Swiss-roll benchmark (Tenenbaum, Silva and Langford, 2000; Pedregosa, Varoquaux, Gramfort, Michel, Thirion, Grisel, Blondel, Prettenhofer,
Table 1
Stochastic Lorenz prediction at a common 100-epoch training budget. Both models have approximately the same number of trainable parameters. All errors are evaluated in physical coordinates; root-mean-squared error of the predictive mean (RMSE) and energy score use the same 4,000 test transitions and are computed from 64 one-shot predictive samples per transition. The final column reports the 1-Wasserstein distance between the predicted and reference marginals at , from direct predictions for the 1,024 test trajectories. Wall-clock times refer to the present CPU implementations and are reported for reference rather than as optimized computational benchmarks.
| Method | Parameters | Training time | RMSE | Energy | at |
|---|---|---|---|---|---|
| Stochastic Latent Twin | 50,743 | 4,522 s | 1.69 | 0.238 | 0.112 |
| Neural Stochastic Flows | 51,540 | 18,719 s | 1.89 | 0.310 | 0.255 |
Weiss, Dubourg et al., 2011). We corrupt the data on with the Ornstein–Uhlenbeck (OU) process
for which the distribution at is numerically on the same scale as under the finite-sample diagnostic used below. Details are given in Section F.1.
The Stochastic Latent Twin is trained backward: later, more strongly corrupted states are used as sources and earlier states as targets. Although the forward OU transition is Gaussian, the backward conditional law depends on the non-Gaussian data distribution and is learned here only from sampled transitions. We use a Gaussian latent transition law with latent dimension and a nonlinear encoder and decoder, as motivated by the CIR experiment. The prediction loss is the physical energy score Equation (40), together with an auxiliary sliced-Wasserstein term that matches one-shot samples from to the data at , described in Section F.2.
In the Stochastic Latent Twin, for one-shot generation, we draw
Thus each generated sample requires one direct source-to-target evaluation; no intermediate denoising or recursively composed transitions are used. Figure 7 shows the resulting distribution. The one-shot Stochastic Latent Twin attains an average sliced-Wasserstein distance of , compared with between independent target samples and for the untransformed standard-normal source. The reference reflects sampling noise at 800 samples rather than a lower bound: discrepancy between the model and the target becomes apparent with larger samples (Fig. 7).
For context, we additionally compare the same one-shot generation task with MeanFlow (Geng et al., 2025) and SoFlow (Luo et al., 2026), trained from scratch on the same data at closely matched parameter counts, each with its own objective and without a sliced-Wasserstein term. The three methods all generate from in one network evaluation; their learned objects are different, however: MeanFlow learns an average velocity, SoFlow learns a deterministic solution-flow map, whereas the Stochastic Latent Twin learns conditional probability-valued transitions over arbitrary source and target times. Table 2 summarizes the one-shot generation results; implementation and training details are given in Section F.3.
The comparison here is primarily intended to assess one-shot generation accuracy at closely matched model sizes.

Figure 7: One-shot generation of the Swiss-roll target from . Top row, from left to right: target density and generated densities for the Stochastic Latent Twin, MeanFlow, and SoFlow. The images show two-dimensional histograms of 100,000 samples on a grid over for each respective setting. Bottom row: differences between each generated density and the target density.
Table 2 One-shot generation of the Swiss-roll target from . Global sliced-Wasserstein distance (128 projections) is reported as mean one standard deviation over 10 repeated batches of 800 samples; lower is better. Wall-clock training times are reported for reference; the implementations were not optimized for computational efficiency.
| Method | Parameters | Steps | Training time | Global SWD |
|---|---|---|---|---|
| Stochastic Latent Twin | 14,017 | 20,000 | 243.7 s | 0.086 ± 0.017 |
| MeanFlow | 14,188 | 20,000 | 60.8 s | 0.156 ± 0.025 |
| SoFlow | 14,188 | 20,000 | 47.0 s | 0.148 ± 0.023 |
5.5. Stochastic pendulum: physics conformity by construction
We consider the stochastic pendulum
The stochastic forcing is tangent to the Hamiltonian energy manifolds, and the additional Itô drift terms cancel the quadratic-variation contribution. Thus, the dynamics preserve
pathwise: for every realization of the exact stochastic dynamics, for all . Hence, the dynamics remain genuinely stochastic: randomness changes the position along the orbit without changing its energy. This provides a direct test of the distributional physics-conformity framework of Section 4.5. Initial conditions are sampled so that , providing trajectories across a range of invariant energy manifolds; further sampling details are given in Section G.1.
Table 3
Stochastic pendulum at horizon . Conditional sliced-Wasserstein distance and physical energy defect are evaluated over eight held-out source states with ; lower is better. The latent conformity defect is reported for the physics-conforming models, with zero corresponding to exact latent conservation by construction.
| Model | Conditional SWD | Physical energy defect | Latent conformity defect |
|---|---|---|---|
| SLT | 0.1192 | - | |
| SLT with soft conformity | 0.1096 | ||
| SLT with conformity by construction | 0.1026 | 0 (exact) |
We compare three Stochastic Latent Twins with the same representation and stochastic-transition architecture. The baseline Stochastic Latent Twin uses no physical constraint. The Stochastic Latent Twin with soft conformity promotes both latent invariance and latent-to-physical compatibility through the penalties of Equations (41) and (43). In the Stochastic Latent Twin with conformity by construction, the first latent coordinate is instead preserved exactly by the stochastic transition, while the remaining latent coordinates evolve stochastically. The pullback relation then aligns this invariant latent observable with the physical Hamiltonian. Thus, latent conformity holds exactly by construction, while its correspondence with the physical conserved quantity is learned from data. This is the setting of Theorem 4.15 with and a learned, nonzero pullback error. All three models are trained using reconstruction and the physical-space energy score Equation (40); implementation details are given in Section G.2.
Both physics-conforming variants reduce the physical energy defect by approximately a factor of seven relative to the unconstrained Stochastic Latent Twin (Table 3) while retaining comparable conditional-law accuracy. Enforcing the latent invariant by construction removes the latent conformity defect exactly and gives the smallest physical energy defect among the three variants. Additional conformity diagnostics are reported in Section G.3.
5.6. Scalar two-dimensional stochastic Burgers equation
The preceding experiments consider low-dimensional stochastic systems. We conclude our numerical investigations by testing whether the Stochastic Latent Twin framework can learn conditional laws for a spatially distributed stochastic PDE while retaining an exact physical conservation law. To this end, we consider the two-dimensional viscous Burgers equation with stochastic forcing,
on with periodic boundary conditions. Here is a standard Brownian motion in , and the stochastic forcing acts through the fixed smooth periodic flux matrix
Thus, defines a stochastic flux with fixed spatial structure and random temporal amplitudes.
A key feature of Equation (52) is that it preserves mass pathwise. Defining the conserved spatial mean by , integration of Equation (52) over the periodic domain gives , since the deterministic and stochastic flux terms have zero spatial integral by periodicity; see Section H.1 for details. Hence, for any , so the stochastic dynamics preserve mass exactly along every realization. This extends the physics-conformity test of Section 5.5 from a low-dimensional invariant Hamiltonian system to a spatially distributed nonlinear stochastic PDE.
Trajectories of Equation (52) are simulated on a periodic grid with , using Euler–Maruyama time integration and a conservative finite-volume discretization with local Lax–Friedrichs flux; further details are given in Section H.1. For simplicity, we denote the grid-discretized state at time by and do not distinguish it from the continuous state unless relevant. Initial conditions are smooth random fields consisting of several large-scale blobs with random amplitudes, so different trajectories carry different conserved masses.
Because every term in the finite-volume update is a difference of face fluxes that cancel in pairs on the periodic grid, the discrete dynamics preserve the cell sum up to floating-point rounding. The discrete counterpart of the conserved quantity is . Thus, the discretization preserves the same mass-conservation property as the continuous dynamics.
We compare a standard Stochastic Latent Twin with a physics-conforming variant that preserves by construction. Define . Given the encoder output , we set
so that . Likewise, a sampled latent state is corrected by
The decoder output is shifted analogously so that for any latent state . Hence, , and every predicted sample conserves mass exactly by construction.
We compare the standard Stochastic Latent Twin, the physics-conforming Stochastic Latent Twin, and the Latent Neural Stochastic Flow (Latent NSF) of Kiyohara et al. (2025b) across 32 held-out initial conditions; see Figure 8. For each initial condition and evaluation horizon, the reference conditional law is represented by 256 independent solver realizations. As a finite-sample baseline, a second independent reference ensemble of the same size is compared with the first. Training, implementation and evaluation details are given in Sections H.2 and H.3.
The left panel of Figure 8 shows the pointwise conditional medians for a representative held-out initial condition. All three models recover the dominant spatial structure over the training window, with the largest discrepancies concentrated near sharp fronts, where uncertainty in front location produces large pointwise errors. These discrepancies are most pronounced for the present Latent Neural Stochastic Flow implementation.
The right column of Figure 8 summarizes four metrics across all 32 held-out initial conditions: pointwise-median error, sliced-Wasserstein distance, spread ratio, and conservation defect of . Both Stochastic Latent Twin variants attain smaller median errors and sliced-Wasserstein discrepancies than the present Latent Neural Stochastic Flow implementation over the tested horizons. Their spread ratios remain close to one at short horizons and fall slightly below one at longer horizons, indicating mild underdispersion. Since this statistic averages the pointwise variance over space, it does not measure where the uncertainty is located. By construction, the physics-conforming Stochastic Latent Twin preserves to floating-point accuracy at every horizon, whereas the unconstrained Stochastic Latent Twin and Latent Neural Stochastic Flow exhibit conservation defects.
Thus, the physics-conforming Stochastic Latent Twin learns the conditional law of this spatially distributed nonlinear stochastic PDE while enforcing exact mass conservation by construction, without degrading predictive accuracy.


Figure 8: Stochastic two-dimensional Burgers equation. Left: Pointwise conditional medians for one held-out initial condition at t = 0.1, 0.25, 0.5, 0.75, 1.0, with the initial condition at t = 0 in the first column. The first row shows the reference ensemble median, the next three rows the medians predicted by the standard Stochastic Latent Twin, physics-conforming Stochastic Latent Twin, and Latent NSF, and the final three rows their errors relative to the reference. Right: Median error, sliced-Wasserstein distance, spread ratio, and conservation defect , averaged over 32 held-out initial conditions. Each comparison uses 256 predicted and 256 reference samples; shading denotes standard error. The baseline compares two independent reference ensembles of the same size. Lower is better for the median, Wasserstein, and conservation errors, while a spread ratio of one is ideal.
6. Conclusion and outlook
In this work, we introduced Stochastic Latent Twins, a latent solution-operator framework for learning conditional probability laws of stochastic dynamical systems between arbitrary source and target times. A deterministic encoder–decoder separates state representation from stochastic temporal evolution, while the latent evolution map is probability-valued and may be realized by different transition families. We established an end-to-end Wasserstein approximation bound that separates reconstruction and latent-transition errors, proved stability with respect to perturbations of both source states and source distributions, and developed a distributional theory of physics conformity for conservation and dissipation. This theory provides latent-to-physical transfer bounds and shows how prescribed physical structure can be enforced by construction rather than recovered only through accurate solution-law approximation.
The numerical experiments were designed to isolate complementary aspects of this formulation. The linear-SDE example verifies the analytical reduced-approximation limits, while the Cox–Ingersoll–Ross experiment separates the roles of latent dimension, nonlinear state representation, and transition-family expressivity. The stochastic Lorenz experiment removes analytical access to the transition law and demonstrates fully data-driven arbitrary-time prediction, including a direct comparison with Neural Stochastic Flows. The Swiss-roll experiment uses the same conditional-law formulation in the backward direction for one-shot generation and compares it with recent one-step generative models. Finally, the stochastic pendulum and two-dimensional stochastic Burgers equation test physics conformity by construction, first for a low-dimensional Hamiltonian invariant and then for a spatially distributed stochastic PDE. In both settings, imposing the known physical structure substantially improves conformity without sacrificing conditional-law accuracy. For the pendulum, the latent invariant is conserved exactly and the physical energy defect falls by about a factor of seven; for Burgers, the construction preserves mass to round-off for every predicted sample.
Several directions remain open. These include connecting empirical distributional training more directly to the approximation theory, understanding long-time behavior and Chapman–Kolmogorov consistency, developing more expressive non-Gaussian transition models, and extending physics conformity beyond conserved quantities to dissipative structure. Scalable architectures for high-dimensional stochastic systems are another important direction.
Stochastic Latent Twins thus provide a path to scientific surrogates that carry uncertainty and physical structure along with the predicted state, which makes them candidates for data assimilation, inverse problems, and control.
Acknowledgments
The authors thank Elizabeth Newman for helpful early discussions that contributed to the development of this work.
Code availability
Code supporting the numerical experiments will be made publicly available on GitHub upon acceptance of the manuscript.
References
Bahmani, B., Kevrekidis, I.G., Shields, M.D., 2025. Neural chaos: A spectral stochastic neural operator. Journal of Computational Physics 539, 114233. doi:10.1016/j.jcp.2025.114233.
Bartosh, G., Vetrov, D., Naesseth, C.A., 2025. SDE matching: Scalable and simulation-free training of latent stochastic differential equations, in: Proceedings of the 42nd International Conference on Machine Learning, PMLR. pp. 3054–3070.
Bhatia, R., 1997. Matrix Analysis. volume 169 of Graduate Texts in Mathematics. Springer. doi:10.1007/978-1-4612-0653-8.
Bhatia, R., Jain, T., Lim, Y., 2019. On the bures–wasserstein distance between positive definite matrices. Expositiones Mathematicae 37, 165–191. doi:10.1016/j.exmath.2018.01.002.
Bülte, C., Scholl, P., Kutyniok, G., 2025. Probabilistic neural operators for functional uncertainty quantification. Transactions on Machine Learning Research.
Chen, Y., Xiu, D., 2024. Learning stochastic dynamical system via flow map operator. Journal of Computational Physics 508, 112984.
Chung, M., Bu, Y., Verma, D., 2027. Physics-conforming latent twins. Computer Methods in Applied Mechanics and Engineering 463, 119351.
Chung, M., Renault, R.A., 2023. A variable projection method for large-scale inverse problems with regularization. Applied Numerical Mathematics 192, 297–318.
Chung, M., Verma, D., Collins, M., Subrahmanya, A.N., Katti Sastry, V., Rao, V., 2026. Latent twins. Machine Learning: Science and Technology 7, 025039.
Course, K., Nair, P.B., 2023. Amortized reparametrization: Efficient and scalable variational inference for latent SDEs, in: Advances in Neural Information Processing Systems.
Cox, J.C., Ingersoll, J.E., Ross, S.A., et al., 1985. A theory of the term structure of interest rates. Econometrica 53, 385–407.
Da Prato, G., Zabczyk, J., 2014. Stochastic Equations in Infinite Dimensions. volume 152 of Encyclopedia of Mathematics and its Applications. 2 ed., Cambridge University Press.
Ethier, S.N., Kurtz, T.G., 2009. Markov processes: characterization and convergence. John Wiley & Sons.
Frans, K., Hafner, D., Levine, S., Abbeel, P., 2025. One step diffusion via shortcut models, in: International Conference on Learning Representations, pp. 34668–34684.
Gelbrich, M., 1990. On a formula for the 12 wasserstein metric between measures on euclidean and hilbert spaces. Mathematische Nachrichten 147, 185–203.
Geng, Z., Deng, M., Bai, X., Kolter, Z., He, K., 2025. Mean flows for one-step generative modeling. Advances in Neural Information Processing Systems 38, 75460–75482.
Gneiting, T., Raftery, A.E., 2007. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association 102, 359–378.
Golub, G.H., Pereyra, V., 1973. The differentiation of pseudo-inverses and nonlinear least squares problems whose variables separate. SIAM Journal on numerical analysis 10, 413–432.
Hasan, A., Pereira, J.M., Farsiu, S., Tarokh, V., 2022. Identifying latent stochastic differential equations. IEEE Transactions on Signal Processing 70, 89–104.
Haussmann, U.G., Pardoux, É., 1986. Time reversal of diffusions. The Annals of Probability 14, 1188–1205. doi:10.1214/aop/1176992362.
Kaipio, J., Somersalo, E., 2005. Statistical and Computational Inverse Problems. volume 160 of Applied Mathematical Sciences. Springer.
Ke, N., Tanaka, R., Kawahara, Y., 2025. Learning stochastic nonlinear dynamics with embedded latent transfer operators. arXiv preprint arXiv:2501.02721.
Kidger, P., Foster, J., Li, X., Oberhauser, H., Lyons, T., 2021. Neural SDEs as infinite-dimensional GANs, in: Proceedings of the 38th International Conference on Machine Learning, PMLR. pp. 5453–5463.
Kiyohara, N., Johns, E., Li, Y., 2025a. Neural stochastic flows: Official jax implementation. https://github.com/nkiyohara/jax-nsf. Accessed 2026.
Kiyohara, N., Johns, E., Li, Y., 2025b. Neural stochastic flows: Solver-free modelling and inference for sde solutions. Advances in Neural Information Processing Systems 38, 16917–16962.
Kloeden, P.E., Platen, E., 1992. Numerical Solution of Stochastic Differential Equations. volume 23 of Applications of Mathematics. Springer, Berlin, Heidelberg. doi:10.1007/978-3-662-12616-5.
Kostic, V.R., Novelli, P., Grazzi, R., Lounici, K., Pontil, M., 2024. Learning invariant representations of time-homogeneous stochastic dynamical systems, in: International Conference on Learning Representations.
Li, X., Wong, T.K.L., Chen, R.T.Q., Duvenaud, D., 2020. Scalable gradients for stochastic differential equations, in: Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, PMLR. pp. 3870–3882.
Lipman, Y., Chen, R.T.Q., Ben-Hamu, H., Nickel, M., Le, M., 2023. Flow matching for generative modeling, in: International Conference on Learning Representations.
Lorenz, E.N., 1963. Deterministic nonperiodic flow. Journal of the Atmospheric Sciences 20, 130–141. doi:10.1175/1520-0469(1963)020<0130:DNF>2.0.CO;2.
Luo, T., Yuan, H., Liu, Z., 2026. Soflow: Solution flow models for one-step generative modeling, in: International Conference on Learning Representations, pp. 101623–101641.
Øksendal, B., 2003. Stochastic Differential Equations: An Introduction with Applications. Universitext. 6 ed., Springer, Berlin, Heidelberg. doi:10.1007/978-3-642-14394-6.
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., et al., 2011. Scikit-learn: Machine learning in python. the Journal of Machine Learning Research 12, 2825–2830.
Peyré, G., Cuturi, M., 2019. Computational optimal transport with applications to data sciences. Foundations and trends® in machine learning 11, 355–607.
Quarteroni, A., Saleri, F., Gervasio, P., 2014. Scientific Computing with MATLAB and Octave. Texts in Computational Science and Engineering. 4 ed., Springer Berlin, Heidelberg. doi:10.1007/978-3-642-45367-0.
Rowland, M., Hron, J., Tang, Y., Choromanski, K., Sarlos, T., Weller, A., 2019. Orthogonal estimation of wasserstein distances, in: The 22nd International conference on artificial intelligence and statistics, PMLR. pp. 186–195.
Shi, D., Lin, L., Han, A., Thompson, L., Hernández-Lobato, J.M., Wang, Z., Gao, J., 2026. Expanding the chaos: Neural operator for stochastic (partial) differential equations. arXiv preprint arXiv:2601.01021.
Song, Y., Sohl-Dickstein, J., Kingma, D.P., Kumar, A., Ermon, S., Poole, B., 2021. Score-based generative modeling through stochastic differential equations, in: International Conference on Learning Representations.
Stuart, A.M., 2010. Inverse problems: A bayesian perspective. Acta Numerica 19, 451–559.
Su, H., Tretyakov, M.V., Newton, D.P., 2024. Deep learning of transition probability densities for stochastic asset models with applications in option pricing. Management Science 71, 2922–2952. doi:10.1287/mnsc.2022.01448.
Tenenbaum, J.B., Silva, V.d., Langford, J.C., 2000. A global geometric framework for nonlinear dimensionality reduction. science 290, 2319–2323.
Vallender, S., 1974. Calculation of the wasserstein distance between probability distributions on the line. Theory of Probability & Its Applications 18, 784–786.
Verma, D., Chen, R., Chung, M., 2026. Latent twin operator. URL: https://arxiv.org/abs/2609.35531, arXiv:2609.35531.
Villani, C., 2009. Optimal Transport: Old and New. volume 338 of Grundlehren der mathematischen Wissenschaften. Springer, Berlin, Heidelberg. doi:10.1007/978-3-540-71050-9.
Wang, B., Wei, P., 2026. Relative wasserstein angle and the problem of the -nearest gaussian distribution. arXiv preprint arXiv:2601.22355.
Zeng, L., Wan, X., Wang, Y., Nobile, F., Zhou, T., 2026. A transition-density-based operator learning method for fokker–planck equations with various initial conditions. arXiv:2606.09434.
A. Relation to existing stochastic learning frameworks
The related-work discussion in Section 2 organizes existing approaches according to the mathematical object used to represent stochastic evolution. Here, we provide a more detailed structural comparison of the methods most closely related to Stochastic Latent Twins. Table 4 summarizes the learned object, temporal representation, state representation, and principal structural or theoretical emphasis of each approach.
Closest comparison: Neural Stochastic Flows. Among the approaches in Table 4, Neural Stochastic Flows (Kiyohara et al., 2025b) provide the closest comparison to Stochastic Latent Twins. Both learn conditional transition laws that can be queried directly between arbitrary source and target times. Neural Stochastic Flows represent these laws using conditional normalizing flows and incorporate structural properties of stochastic flows into the model: identity and, for autonomous systems, stationarity are encoded through the parameterization, while Chapman–Kolmogorov consistency is promoted through a bidirectional KL-based regularizer. Their latent extension is formulated as a variational state-space model.
The comparison with Stochastic Latent Twins, including the difference in theoretical scope, is given in Section 2, and direct numerical comparisons are given in Sections 5.3 and 5.6.
Theoretical scope. Beyond this closest comparison, related frameworks address different theoretical questions. Probabilistic Neural Operators justify distributional training through strict propriety of the energy score (Bülte et al., 2025), while stochastic transfer- and Koopman-operator methods provide statistical and operator-theoretic guarantees, including results for long-time forecasting (Kostic et al., 2024; Ke et al., 2025). Transition-density approaches, in turn, are closely tied to the analytical structure of the Kolmogorov and Fokker–Planck equations (Su et al., 2024; Zeng et al., 2026).
These perspectives are complementary to the approximation and structural analysis developed here. The Stochastic Latent Twin results are conditional on the stated reconstruction and latent-transition approximation assumptions; they do not constitute statistical learning guarantees that finite-data optimization necessarily attains these errors. This distinction is important, since related approaches provide complementary guarantees concerning distributional training objectives, statistical estimation, or long-time forecasting.
B. Optimal reduced approximation for linear stochastic systems
This section provides the derivation of the linear-Gaussian results for summarized in Section 4.6. We first formulate the reduced Wasserstein approximation problem. We then show that, for any candidate encoder and decoder, the latent Gaussian transition can be eliminated analytically. Finally, by allowing the encoder and decoder to be optimized for one fixed source and target time, we derive a closed-form reference solution that provides a lower bound on the transition error attainable by a Stochastic Latent Twin using one encoder–decoder representation across multiple time pairs.
Table 4
Structural comparison of representative approaches for learning stochastic dynamics. The methods differ primarily in the object learned, the representation of temporal evolution, and the accompanying structural or theoretical emphasis.
| Method | Learned object | Temporal access | State representation | Structural / theoretical emphasis |
|---|---|---|---|---|
| Neural / latent SDEs (Li et al., 2020; Kidger et al., 2021; Hasan et al., 2022; Course and Nair, 2023; Bartosh et al., 2025) | Drift and diffusion, possibly in a learned latent space | Local dynamics + numerical propagation | Physical or latent stochastic state | SDE and variational formulations; properties depend on the parameterization and learning setup |
| Stochastic flow-map learning (Chen and Xiu, 2024) | Finite-interval stochastic evolution map | Direct over prescribed intervals | Physical state | Stochastic flow-map structure and numerical distributional validation |
| Neural Stochastic Flows (Kiyohara et al., 2025b) | Conditional transition density via normalizing flows | Direct arbitrary | Physical state; latent variant uses a variational state-space model | Identity and stationarity by construction; Chapman–Kolmogorov consistency through regularization |
| Transition-density / Fokker–Planck learning (Su et al., 2024; Zeng et al., 2026) | Transition density or probability-density evolution operator | Direct transition or density evolution | Physical state or function space | Kolmogorov and Fokker–Planck structure; transition-density analysis and validation |
| Probabilistic / stochastic neural operators (Bülte et al., 2025; Bahmani et al., 2025; Shi et al., 2026) | Distribution-valued or stochastic operator between function spaces | Problem dependent | Function-space representation | Distributional operator learning; proper scoring and stochastic representation |
| Stochastic transfer / Koopman operators (Kostic et al., 2024; Ke et al., 2025) | Evolution of observables or learned representations | Operator propagation | Feature or observable representation | Statistical and operator-theoretic analysis, including long-time forecasting |
| Stochastic Latent Twins | Conditional latent transition law | Direct arbitrary | Deterministic encoder-decoder; stochastic latent evolution | End-to-end Wasserstein approximation and stability; distributional conservation and dissipation; latent-to-physical conformity transfer |
B.1. Reduced Wasserstein approximation problem
For fixed source and target times , recall from Eqs. (32) and (33) that and
Let denote the second-moment matrix of the source state. We consider the reduced approximation problem
Since both conditional transition distributions are Gaussian, the objective in Eq. (53) can be evaluated explicitly as
where
is the squared Bures–Wasserstein distance between positive semidefinite covariance matrices (Gelbrich, 1990; Bhatia, Jain and Lim, 2019; Peyré and Cuturi, 2019).
Thus, Eq. (53) is equivalently the constrained minimization of the sum of the conditional-mean error and the covariance error in Eq. (54).
B.2. Analytical elimination of the latent Gaussian transition
We now consider the inner optimization over and for a candidate encoder E and decoder D. This minimization admits a closed-form solution.
Proposition B.1 (Optimal latent Gaussian transition). Let and be given, with , and suppose that is nonsingular. Then, for this encoder and decoder, the unique minimizers of
over and are
Proof. We first note that the assumption entails no loss of generality. Indeed, any full-column-rank decoder admits a thin QR factorization with and invertible. Under the corresponding change of latent coordinates , , and , we have
Hence the induced physical-space conditional transition distribution is unchanged, so restricting the analysis to does not restrict the model class.
From Eq. (54), the objective can then be written as
(57)
The first term depends on but not on , whereas the remaining terms depend on but not on . Hence the two latent transition parameters may be optimized separately.
- Expanding the conditional-mean contribution gives
The first term is independent of . Differentiating the remaining quadratic expression with respect to and imposing stationarity gives
Since is nonsingular, the quadratic term is strictly convex in , so this stationary point is the unique minimizer. Therefore,
- We next minimize with respect to . Using the definition of the Bures–Wasserstein distance in Eq. (55), the covariance contribution can be written as
(59)
The remaining terms are independent of , so the minimization reduces to the Bures–Wasserstein distance above, which is uniquely minimized at
This proves Eq. (56).
By theorem B.1, the latent transition parameters can therefore be eliminated analytically, and the joint optimization reduces to
Thus, the latent Gaussian transition is determined explicitly for every candidate encoder and decoder, leaving only the optimization over E and D. This is precisely the structure of a variable-projection reduction (Golub and Pereyra, 1973; Chung and Renault, 2023).
B.3. Closed-form benchmark for a fixed source and target time
The preceding reduction applies to a Stochastic Latent Twin that uses the same encoder and decoder across all considered source and target times. Although the optimal latent Gaussian transition can be eliminated separately for each , the remaining optimization over E and D must represent all transitions simultaneously and generally has no closed-form solution.
To obtain a closed-form lower bound at a prescribed latent dimension, we consider a relaxed reference problem in which the encoder and decoder may be optimized separately for each time pair . We denote these pair-dependent maps by and . Since may depend jointly on the source and target times, the latent mean-propagation matrix can be absorbed into the encoder and may, without loss of generality, be taken as . The resulting reference problem is therefore
Proposition B.2 (Optimal pair-dependent linear-Gaussian approximation). Let , and denote its eigenvalues. Further, let contain eigenvectors associated with the largest eigenvalues. Then an optimal solution of Eq. (60) is
and the minimum expected squared 2-Wasserstein transition error is
Proof. For a given , expanding the conditional-mean contribution and using gives
The covariance contribution is independent of , so the optimization over the encoder is determined entirely by the conditional-mean term. The quadratic expression is minimized by
By theorem B.1, for a given the covariance contribution is minimized by
Hence, after eliminating and , the remaining optimization is
where is defined in theorem B.2. Since is independent of , this is equivalent to
For a symmetric positive semidefinite matrix with eigenvalues , the quantity over all with is maximized by choosing the columns of as eigenvectors associated with the largest eigenvalues. This result is known as the Ky Fan maximum principle (Bhatia, 1997). Hence, the optimal decoder, encoder, and latent covariance are
The minimum value follows from the eigenvalues of . Since
the minimum expected squared 2-Wasserstein transition error is
Because the encoder and decoder in this reference problem may depend jointly on , Eq. (35) represents a best-case transition error within the pair-dependent linear-Gaussian factorization, not the error of a Stochastic Latent Twin with a common encoder–decoder representation. It therefore provides a lower reference value for the latter.
B.4. Extensions of the linear parameterization
The preceding analysis considers a time independent encoder and decoder and allows the latent Gaussian transition to depend directly on . We briefly note two related structured parameterizations.
Time-dependent encoder and decoder. One may allow the representation to depend separately on the source and target times,
Then
If and is nonsingular, the preceding elimination carries over directly:
Thus the inner latent transition law remains available in closed form, while the outer representation problem is now posed over the time-dependent matrices and . This differs from the pair-dependent benchmark in Section B.3, where the representation may depend jointly on .
Generator-constrained latent mean transitions. A different restriction is to impose
for a single latent generator . This couples the latent mean transitions across prediction intervals, and the pointwise optimal matrices from Eq. (56) need not be representable by one common matrix exponential. Hence the latent mean transition can generally no longer be eliminated independently for each , and E, D, and must instead be optimized jointly.
Remark B.3 (Nonlinear representations). The closed-form elimination above extends to nonlinear encoders as long as the decoder remains linear. Writing , one obtains
provided is nonsingular. For nonlinear decoders, however, the Gaussian latent law is generally mapped to a non-Gaussian physical-space distribution, and the corresponding closed-form elimination is lost.
C. Additional numerical details for the linear SDE
The linear numerical experiment uses a stable, nonnormal dimensional SDE. The nonnormal dynamics avoid a setting in which the dominant transition subspaces are trivially aligned across all prediction horizons. Let denote the initial second-moment matrix. For the linear SDE, the source-state second moments are propagated analytically as
and these matrices are used in the Wasserstein objectives below.
Both representations are trained by minimizing the pair-averaged objective of Eq. (53), with the latent transition parameters eliminated in closed form at every pair via theorem B.1, so only for the time-dependent representation – remain as free parameters. The decoder is

Figure 9: Wasserstein transition error as a function of prediction horizon at fixed source time for the optimal lower bound, the fixed representation , and the time-dependent representation , for latent dimensions .
parameterized as an unconstrained matrix re-orthonormalized by a QR factorization on every forward evaluation, so holds exactly throughout training rather than only approximately or only at initialization; the encoder is unconstrained. Both are initialized with i.i.d. standard Gaussian entries, the encoder additionally scaled by . Training pairs are the exhaustive set of forward pairs over a common 100-point uniform time grid on (no subsampling). Parameters are optimized with Adam at learning rate 0.03, cosine-annealed to 2% of that value over 800 steps, from 3 independent random restarts; the restart attaining the lowest final training objective is kept. This procedure is repeated independently for each reported latent dimension . The relaxed solution of theorem B.2 requires no numerical optimization and provides the optimal lower bound used for comparison.
For Fig. 2 (right), the reported error at each latent dimension is the arithmetic mean of over all 4,950 forward pairs on the 100-point time grid. For the optimal lower bound, takes the minimum value of theorem B.2; for the trainable representations, the same objective is evaluated at the optimized or . The square root is taken for each time pair before averaging.
Beyond the fixed rank at which the transition law is recovered exactly, it is useful to see how the three references of Fig. 2 (right) compare across the prediction horizon itself rather than only in the single horizon-averaged number reported there. Fig. 9 plots against at a fixed source time , for . The fixed representation tracks the pair-dependent lower bound and the time-dependent representation closely at short horizons for every rank, and the three remain close throughout at low rank; the gap that opens at longer horizons for the higher ranks is consistent with a single having to serve every horizon simultaneously, whereas the pair-dependent bound and are each allowed to specialize to the horizon being evaluated.
We also illustrate trajectory generation using the direct latent recursion described above. Figure 10 shows representative trajectories for several latent dimensions. As increases, the predicted mean and uncertainty approach the exact conditional evolution, and at the full transition law is recovered.

Exact
Exact
SLT
SLT
Generated paths
Figure 10: Recursive trajectory generation with the fixed representation for latent dimensions . Exact and predicted conditional means and uncertainty regions are shown together with generated trajectories.
D. Additional details for the CIR experiment
D.1. Transition law, training design, and evaluation
For the CIR process in Eq. (44), let . The conditional transition law in Eq. (45) can be written as
with
For , , and , we have . The condition also places the process in the strictly positive Feller regime.
Source states are sampled from the stationary CIR distribution and prediction horizons from
The same source-state and prediction-horizon design points are used for all learned models.
The amount of conditional-distribution information supplied during training is matched across the different objectives. For models trained directly with a Wasserstein objective, the exact conditional law is represented by 128 quantile values at each design point. For likelihood-trained models, 128 independent target states are drawn from the exact conditional transition at the same design point. Thus differences between the reported models are not caused simply by providing one model with more realizations of each conditional distribution.
All models are evaluated on a common collection of source states and prediction horizons. When the predicted physical transition admits a convenient quantile representation, the one-dimensional 2-Wasserstein distance is evaluated directly. Otherwise it is evaluated from empirical quantiles of samples from the learned transition. Finite-sample quantiles introduce a small positive evaluation error for highly accurate models. We therefore apply the same sample-based estimator to samples drawn from the exact CIR transition. The resulting nonzero value for the exact transition should be interpreted as the numerical resolution of the evaluation procedure rather than approximation error.
D.2. Optimal Gaussian approximation
For a fixed source state and time pair , the best Gaussian approximation is the minimizer in Eq. (46), and is its squared error. Using the one-dimensional quantile representation of the Wasserstein distance (Vallender, 1974), we have
Since
minimization with respect to gives
while minimization with respect to gives
Substituting these minimizers gives Eq. (47). This characterization is the one-dimensional projection onto the Gaussian family; see also Wang and Wei (2026).
D.3. Model parameterizations and training
The CIR experiment compares several ways of enlarging the class of conditional transition laws.
Gaussian latent transition law with linear representation. For latent dimension we use
and
A small neural network predicts the latent mean and a Cholesky factor of the latent covariance. Because the decoder is linear, the induced physical transition remains Gaussian. Models with , and 4 are trained using the one-dimensional Wasserstein objective described above.
Gaussian-mixture latent transition law. To enlarge the probability family while retaining a linear representation, we use
with K = 4 in the reported experiment. The mixture parameters are learned from sampled transitions by maximum likelihood. A linear pushforward of this latent distribution remains a Gaussian mixture in physical space.
Gaussian latent transition law with nonlinear representation. For the nonlinear-representation experiment, both the encoder and decoder are small multilayer perceptrons,
while the latent transition law remains Gaussian. For , standard-normal quantile nodes are transformed through the predicted latent Gaussian and the decoder and compared directly with the exact CIR quantiles. Because is nonlinear, the physical pushforward is no longer restricted to the Gaussian family.
Learned noncentral- transition. Finally, because the exact CIR transition family is known, we consider the identity representation and parameterize
A neural network maps
with positive parameterizations for all three distribution parameters. The network is trained by negative log-likelihood using sampled target states and is not supplied with , , , or the analytical formulas for the CIR transition parameters.
D.4. Distributional diagnostics
The mean Wasserstein errors reported in the main text summarize the discrepancy between complete conditional transition laws. To localize where these distributions differ, we additionally compare their conditional cumulative distribution functions. For a fixed source state , define
We evaluate the pointwise difference between the predicted and exact conditional CDFs at the representative source state over target values and prediction horizons .
Figure 11 shows that the linear-decoder Gaussian model exhibits the largest systematic discrepancy, reflecting its inability to capture the skewed CIR transition. The Gaussian mixture reduces this error, while the nonlinear representation and learned noncentral- transition provide substantially more accurate conditional distributions.
D.5. Recursive generation of CIR trajectories
Although the Stochastic Latent Twin is trained as a conditional transition model, repeated application of the learned physical transition operator can also be used to generate discrete stochastic trajectories. Starting from at time , we use

Figure 11: Pointwise conditional-CDF error for the CIR transition at . The panels show as a function of target value and prediction horizon for the linear-Gaussian, Gaussian-mixture, nonlinear-representation, and learned noncentral- models.

Figure 12: Recursive CIR trajectory generation. Ensembles obtained by repeated application of the learned physical transition operator are compared with the exact CIR marginals.
For the direct noncentral- model, latent and physical states coincide and the transition is applied directly to .
The resulting ensembles are compared with the exact CIR marginals . The linear-Gaussian model retains the symmetric shape and possible negative support inherited from its one-step transition family, whereas the nonlinear-representation and noncentral- models more closely reproduce the exact CIR marginals.
For diagnostic purposes, we additionally consider the pure latent recursion
without decoding and re-encoding at each step. This imposes the stronger requirement that the learned latent evolution map remain accurate on latent states generated by its own previous predictions. Since this property is not imposed during training, we regard the experiment as a diagnostic of latent closure rather than as part of the principal CIR comparison.
E. Additional details for the stochastic Lorenz experiment
E.1. Data generation and transition pairs
Following the Neural Stochastic Flows reference setup (Kiyohara et al., 2025b), trajectories are generated from the stochastic Lorenz-63 system Eq. (49) using Euler–Maruyama with integration step size and are recorded at 41 equally spaced times on [0, 1]. Initial states are sampled independently from , with no additional observation noise. As in the reference implementation, we use 1,024 training trajectories and 256 validation trajectories; we additionally generate 1,024 independent test trajectories.
States supplied to the Stochastic Latent Twin are standardized using training-set statistics only, whereas Neural Stochastic Flows is trained directly in physical coordinates. All direct comparisons are therefore reported in physical units.
Following the Neural Stochastic Flow training setup, every ordered pair of observation times is used as a transition pair, , giving source–target pairs per trajectory and 839,680 training pairs. The same observed transition pairs are used for both methods.
E.2. Architecture, training, and evaluation
The encoder and decoder are multilayer perceptrons with two hidden layers of width 128 and SiLU activations. For the state-dependent Gaussian transition introduced in Section 5.3, the transition network has two hidden layers of width 96 with SiLU activations and takes as input. Its outputs parameterize the conditional mean and lower-triangular Cholesky factor, with a softplus applied to the diagonal entries. The resulting model has 50,743 trainable parameters.
A latent-dimension screen over showed that the validation energy score changes little from onward, while the reconstruction error continues to decrease. We therefore use .
Training minimizes reconstruction of both states together with the energy score Eq. (40), approximated with 16 decoded predictive samples per conditioning state. We use Adam with batch size 512, initial learning rate with cosine annealing, and 100 epochs.
Prediction accuracy is evaluated on 4,000 held-out transitions drawn across all source and target times from the 1,024 test trajectories. We additionally evaluate the direct transition to assess the final bimodal state distribution and its marginal. For each test transition, we draw 64 independent one-shot predictive samples. The predictive mean of the 64 samples is computed, and the root-mean-squared error between the predictive mean and the observed target state is taken over all 4,000 test transitions. The energy score is the Monte Carlo estimate of Eq. (40) from the same 64 samples, averaged over the same transitions. The endpoint error uses a single one-shot sample from for each test trajectory.
Figure 13 illustrates the learned temporal evolution. Each distribution is evaluated directly at the target time rather than obtained by recursive propagation.
E.3. Comparison with Neural Stochastic Flows
Neural Stochastic Flows (Kiyohara et al., 2025b) is trained on the same stochastic Lorenz data using the authors' reference implementation. In addition to its conditional normalizing flow, Neural Stochastic Flow uses an auxiliary bridge model to construct intermediate-time transitions during training, reflecting the same transition-composition structure underlying the Chapman–Kolmogorov consistency, see Eq. (6). The flow and bridge networks together contain 51,540 trainable parameters.
Although both methods use the same observed source–target pairs, their training procedures differ: the Stochastic Latent Twin learns these conditional transitions directly, whereas Neural Stochastic Flow additionally uses its bridge model and intermediate-time flow objective. The Stochastic Latent
https://github.com/nkiyohara/jax-nsf/tree/main/examples/lorenz



Figure 13: Space-time density of for the 1,024 test trajectories over : reference process (left), Stochastic Latent Twin prediction (middle), and their difference (right). The twin is evaluated directly from the initial states at 101 times, most of which lie between the observation times used for training. Since the test trajectories are observed only every 0.025, the reference at intermediate times is obtained by linear interpolation. Densities are smoothed histograms.
Twin is trained on the energy score, which is one of the reported metrics, while the Neural Stochastic Flow is trained on its own objective. We compare the methods at common epoch budgets rather than by equating optimization steps.
The same ordering observed in the main 100-epoch comparison is already present after 10 epochs: the Stochastic Latent Twin attains predictive-mean root-mean-squared error 1.71, energy score 0.309, and endpoint error 0.338, compared with 2.14, 0.497, and 0.469, respectively, for Neural Stochastic Flows. The Neural Stochastic Flow model is evaluated with the same protocol as the Stochastic Latent Twin, using the final model.
F. Additional details for the Swiss-roll experiment
F.1. Data and backward transition pairs
The target data are generated using sklearn.datasets.make_swiss_roll with noise level 0.30 and random seed 7. We retain coordinates 0 and 2, yielding the two-dimensional spiral projection used in the experiment. The data are standardized using statistics computed from the training set only. We use 4,096 training samples and 512 validation samples.
The observation grid contains 65 equally spaced time points on . Training proceeds backward in time: for grid indices , the later and more strongly corrupted state is used as the conditioning state, and the model learns the conditional distribution of the earlier state . To sample all prediction horizons uniformly, the index difference is drawn uniformly from , after which a compatible earlier index is selected.
For , the forward OU process in Eq. (50) has the exact transition
Thus, a training pair is generated by first sampling the transition from 0 to and then from to , so that the conditioning and target states belong to the same stochastic realization without requiring a full trajectory to be stored.
F.2. Architecture, training, and evaluation
The model uses a Gaussian latent transition law with latent dimension ,
The encoder and decoder are multilayer perceptrons with two hidden layers of width 48, SiLU activations, and LayerNorm after each hidden activation. The transition network has two hidden layers of width 64 with SiLU activations and takes as input. It produces and the lower-triangular entries of , with positive diagonal entries enforced through a softplus parameterization. The model has 14,017 trainable parameters.
Training minimizes
where is the reconstruction loss of Eq. (37) summed over the conditioning and target state of each pair, and is the physical-space energy score of Eq. (40). The energy score is approximated using 16 decoded predictive samples per conditioning state. The auxiliary term is a sliced-Wasserstein discrepancy between a batch of one-shot samples generated from and an independent batch of training samples at , both of the training batch size. The reported model uses .
Training uses Adam with batch size 128, initial learning rate with cosine annealing, and 20,000 optimization steps.
We use the sliced-Wasserstein distance: all reported sliced-Wasserstein distance values use 128 projection directions. For the reported generation results, we average over 10 independent repetitions. Each iteration samples 800 fresh standard-normal source samples and 800 target samples shared by all methods together with the projection directions. We report the mean and standard deviation over the repetitions. The finite-sample reference compares two independent target samples, while the Gaussian-source baseline compares an untransformed sample from with the target sample.
The auxiliary sliced-Wasserstein term emphasizes the particular to distributional query used for one-shot generation. Preliminary experiments without this term produced noticeably poorer one-shot samples (data not shown).
F.3. MeanFlow and SoFlow comparison
For comparison with other one-step generative approaches, we use the authors' official implementations of MeanFlow (Geng et al., 2025) and SoFlow (Luo et al., 2026), whose training objectives and samplers are applied unchanged, and adapt them to the present two-dimensional setting. Both methods are trained from scratch on the same standardized Swiss-roll data used for the Stochastic Latent Twin and operate directly in physical space. To obtain closely matched model sizes, both competitors use multilayer perceptrons in place of the networks used in the original implementations.
MeanFlow (Geng et al., 2025) learns an average velocity associated with a straight-line interpolation between data and Gaussian noise. We follow the training objective of the reference implementation, which imposes the corresponding self-consistency relation through a Jacobian–vector product. For one-shot generation, the learned average velocity is evaluated directly between t = 1 and t = 0. We use the settings of its ImageNet experiments and condition the network on as opposed to used in the reference code as this yielded better performance.
SoFlow (Luo et al., 2026) learns a deterministic solution map between source and target times. We follow the reference implementation, which combines a flow-matching velocity objective with a solution-consistency objective based on a finite-difference approximation. We use the method settings of its ImageNet configuration without classifier-free guidance. One-shot generation is obtained by directly evaluating the learned solution map between t = 1 and t = 0.
For MeanFlow and SoFlow, we use multilayer perceptrons with three hidden layers of width 82 and SiLU activations, giving 14,188 trainable parameters, closely matching the 14,017 parameters of the Stochastic Latent Twin. Both models are trained with Adam, batch size 128, initial learning rate with cosine annealing, and 20,000 optimization steps without weight averaging. The learning rate was selected using short preliminary hyperparameter screens; the remaining settings follow the reference configurations described above. A summary of training configurations is given in Table 5.
Table 5
Implementation details for the one-shot Swiss-roll comparison. All methods are evaluated on the same target distribution and generate from in one model evaluation. Wall-clock times refer to the present research implementations and are reported for reference.
| Stochastic Latent Twin | MeanFlow | SoFlow | |
|---|---|---|---|
| Learned object | Latent evolution map | Average velocity | Deterministic solution map |
| Training objective | Reconstruction + energy score + endpoint SWD | MeanFlow consistency objective | Velocity + solution consistency |
| Network width | Encoder/decoder 48; transition 64 | 82 | 82 |
| Parameters | 14,017 | 14,188 | 14,188 |
| Batch size | 128 | 128 | 128 |
| Training steps | 20,000 | 20,000 | 20,000 |
| Initial learning rate | |||
| Training time | 243.7 s | 60.8 s | 47.0 s |
| Global SWD |
All three methods are evaluated using the same one-shot generation protocol. The resulting parameter counts, wall-clock training times, and one-shot generation errors are reported in Table 2.
G. Additional details for the stochastic pendulum experiment
G.1. Data generation and training pairs
Initial states are rejection-sampled uniformly from and , subject to . This range remains below , the energy at which the pendulum changes from oscillatory to rotational motion. We generate 2,048 training, 512 validation, and 512 test trajectories, recorded at 601 equally spaced times on with spacing .
To generate the stochastic dynamics of Eq. (51), we exploit their random-time representation. At each nominal increment , we draw , with , and propagate the deterministic pendulum over the random elapsed time . Thus, no stochastic time integrator is required for the reference trajectories; the stochasticity enters entirely through the sampled time increment. The deterministic flow is approximated using fourth-order Runge–Kutta with eight substeps. The resulting numerical energy drift has mean and maximum , well below the energy defects reported for the learned models.
Training pairs are sampled from the same stochastic realization. To provide sufficient coverage of both local and longer transitions, half of the pairs use time differences up to 0.5, while the remaining half are sampled over the full training interval (0, 30].
G.2. Architecture and training
The encoder and decoder are multilayer perceptrons with two hidden layers of width 64 and SiLU activations, and the latent dimension is . The transition network has two hidden layers of width 96 and takes as input.
The transition network parameterizes the Gaussian latent transition law. To enforce the identity property at , the predicted mean increment is scaled by and the Cholesky factor of the covariance by . Hence, holds exactly by construction.
For the Stochastic Latent Twin and the Stochastic Latent Twin with soft conformity, all four latent coordinates are evolved by the Gaussian transition. For the Stochastic Latent Twin with conformity by construction, the first latent coordinate is copied unchanged and only the remaining three coordinates evolve stochastically. For the two physics-conforming models, the latent physical quantity is
where is learned through the pullback relation.
All models are trained with reconstruction of both states in each transition pair together with the physical-space energy score Eq. (40), approximated using 16 predictive samples per conditioning state. The Stochastic Latent Twin with soft conformity additionally uses both and , each with unit weight, whereas the Stochastic Latent Twin with conformity by construction uses only , also with unit weight, since its latent invariant is already preserved exactly. Training uses Adam with batch size 256, initial learning rate with cosine annealing, and 40,000 optimizer updates.
G.3. Evaluation and conformity diagnostics
The conditional-law error is assessed using eight source states from the test set, selected across the prescribed energy range. For each source state and time interval , we generate 256 samples from both the reference conditional distribution and the Stochastic Latent Twin approximation. Reference samples are obtained from the random-time representation by propagating the deterministic pendulum over independently sampled times , with . The sliced-Wasserstein distance is approximated using 128 projection directions and averaged over the eight source states. Physical conformity is measured by the root-mean-square energy defect
approximated from the same predicted samples.
Figure 14 gives a representative comparison at for three source states with different energies. The unconstrained Stochastic Latent Twin produces visible deviations from the corresponding energy manifolds, whereas both physics-conforming variants remain much more closely concentrated around them.
To examine the latent-to-physical conformity transfer, Fig. 15 separates the physical energy defect into the contributions associated with target pullback compatibility, latent conformity, and source calibration.
H. Additional details for the 2D stochastic Burgers Equation experiment
H.1. Data generation and training pairs
To simulate Equation (52), the domain was first discretized into a grid of cells. The advective and stochastic terms were computed as fluxes across the edges of the cells: the former was approximated using the local Lax–Friedrichs flux (Quarteroni, Saleri and Gervasio, 2014), and the latter was evaluated using , multiplied by and Brownian increments sampled independently at each time step and for each trajectory. The divergence of these fluxes was then approximated by a finite difference of their values at the cell edges. The diffusion term was approximated with the standard five-point finite-difference Laplacian.
Time integration used the Euler–Maruyama method with step size : training uses 32 equally spaced times on , including both endpoints, so time steps were adjusted to fall on each of these recorded times. In this scheme, is conserved to round-off at every time step, as the finite differences of the fluxes and the five-point Laplacian telescope to zero when summed over the periodic grid. Initial conditions were generated as smooth fields obtained by filtering white noise to its lowest wavenumbers, scaling by a random amplitude in , and adding a random constant in so that the mass varied across trajectories.
With and , we generate 10,000 initial conditions and simulate a trajectory from each over , recording the solution at 32 equally spaced times for training. Each trajectory is a single realization of the noise, and the training pairs consist of samples drawn from these simulated trajectories with two of the 32 times.
Both the training data and the reference ensembles are generated by the same solver of Equation (52). At this resolution, the simulated solutions can deviate noticeably from those of the continuous equation, particularly near sharp fronts. The models are therefore trained and evaluated on the conditional law of this discretized stochastic system, rather than on the conditional law of the continuous equation.
Mass conservation. The pathwise mass conservation used in Section 5.6 follows directly from the conservative form of Equation (52). For sufficiently regular solutions,
and integration over the periodic domain gives
because the spatial integral of each periodic divergence vanishes. Therefore, , for all along every realization.
H.2. Architecture and training
The architectures used for the Stochastic Latent Twin are identical between the standard and physics-conforming variant. A latent space of is used, with CNN-based encoders and decoders. To reflect the periodic setting, all convolutions are with circular padding. The full network is built from residual blocks consisting of two group-normalization (GN) with 8 groups, SiLU, and convolution layers in sequence:
The encoder maps the standardized field to with an initial convolution followed by four of the above residual stages with stride-2 downsampling, a final residual block, and a final linear layer. The decoder mirrors it with nearest-neighbor upsampling.
The latent transition law was implemented as a Gaussian with outputs given by an MLP. Similar to the design of (Kiyohara et al., 2025b), we take
with
where is lower triangular with diagonal entries passed through softplus( ) + to ensure positivity. The input to the MLP is the concatenation of the source code with a two-dimensional time encoding, either the pair or , the latter used in our experiment. This input is passed through a single hidden layer of width 112 with SiLU activation, followed by a linear layer. The first outputs form , and the remaining fill the lower-triangular entries of .
Table 6 Parameter count comparison of Stochastic Latent Twin, Stochastic Latent Twin with conformity and Latent Neural Stochastic Flow model components.
| Model component | SLT | SLT with conformity | Latent NSF |
|---|---|---|---|
| Encoder | 4,064,800 | 4,064,800 | 4,064,800 |
| Decoder | 4,067,649 | 4,067,649 | 4,067,649 |
| Latent transition network | 14,955,600 | 14,955,600 | 15,226,880 |
| Posterior network | - | - | 1,050,624 |
| Bridge network | - | - | 17,853,440 |
| Total | 23,088,049 | 23,088,049 | 42,263,393 |
| Total without bridge | 23,088,049 | 23,088,049 | 24,409,953 |
Both Stochastic Latent Twin variants are trained on the same 10,000 training trajectories. Each training step draws a batch of 64 pairs, , from randomly chosen trajectories. The time gap, is chosen uniformly in 1 to 31 with the start time chosen uniformly among possible start times. The loss, averaged over the batch, consists of the reconstruction loss of both drawn states and the energy score with 8 samples drawn from the models predicted distribution. Here, we use the norm . We train for 10,000 steps with Adam (learning rate , cosine-annealed to ). Both variants see the same batches and the same latent noise. The two variants differ only in the mean shifts applied after encoding, after latent sampling and after decoding.
Our Latent Neural Stochastic Flow implementation uses the authors' reference code (Kiyohara, Johns and Li, 2025a), with their Stochastic Moving MNIST configuration as a template: the model class, stochastic flow, bridge network, loss and training step are unchanged. We made the following adjustments for our setting. The posterior network was changed from the original GRU to the MLP multivariate normal posterior provided in the repository and a latent dimension of was used. The encoder and decoder were replaced by those of the Stochastic Latent Twin so that the two methods share the same architectures and no scene encoder was used. The decoder output is the mean of a Gaussian whose standard deviation is fixed at 1, rather than learned as in the reference configuration. The hidden widths of the flow and bridge networks were increased from 64 to 1024. These changes support comparison between learned latent dynamics as all implemented methods share similar parameter counts at inference–see Table 6.
The training configuration was modified as follows. We kept the reference value and set based on a small hyperparameter sweep. We trained on the same 10,000 training trajectories as the Stochastic Latent Twin: each training batch contained 32 trajectories, and the loss combined reconstruction at every frame, transition losses for all 31 one-step transitions, and 25 skip-ahead pairs per trajectory with larger time gaps. The number of skip-ahead pairs follows the reference configuration, but we sampled the gap of each pair uniformly, matching the Stochastic Latent Twin's sampling of training pairs. The weights , , and were ramped linearly from zero over the first six epochs, per optimization step. The model was trained for 64 epochs on the 10,000 training trajectories, producing approximately twice the number of optimization steps used for the Stochastic Latent Twin. AdamW was used with a constant learning rate of as in the reference configuration.
These adjustments were chosen to provide a controlled and representative comparison between the two methods in our setting. The Latent Neural Stochastic Flow was not subjected to an exhaustive architecture or hyperparameter search, so further tuning may improve its performance. The comparison across evaluation times is shown in Figure 8, while Table 7 reports the corresponding metrics at .
For all methods, data are standardized with training-set statistics, all metrics are computed in physical units and the final models were used in evaluation.
Table 7
Comparison of Stochastic Latent Twin, Stochastic Latent Twin with mass conformity and Latent Neural Stochastic Flow for . Metrics correspond to respective model approximations and are evaluated according to Section H.3. Values are means one standard error over the 32 initial conditions.
| Metric | SLT | SLT with conformity | Latent NSF | Baseline |
|---|---|---|---|---|
| Median error | 0.0894 ± 0.0044 | 0.0801 ± 0.0047 | 0.1873 ± 0.0117 | 0.0294 ± 0.0013 |
| SWD | 0.0983 ± 0.0037 | 0.0872 ± 0.0038 | 0.1887 ± 0.0109 | 0.0414 ± 0.0011 |
| Spread ratio | 0.935 ± 0.013 | 0.945 ± 0.009 | 1.108 ± 0.011 | 1.004 ± 0.007 |
| C(u) defect |
H.3. Evaluation and diagnostics
For evaluation, we take 32 held-out initial conditions and simulate 256 independent trajectories for each time , keeping the resulting states for each time. This provides samples of the conditional law of the simulated system at time given the initial condition. As before, the time steps are no larger than and chosen so that the simulation lands exactly on each . To provide a baseline for the metrics, we repeat this simulation with new noise realizations.
For each of the 32 initial states , all models are evaluated on its one-shot prediction of , drawing 256 samples from its predicted distribution at each specified . In each of the following metrics, the 256 reference samples are compared to the 256 model samples and aggregated into the reported metrics as follows.
-
Median error: For each of the initial conditions and specified time points, we compute the root-mean-squared difference over the grid between the pointwise medians of the 256 reference and 256 model samples and average it over the 32 reference initial conditions. The baseline is computed similarly between the reference samples and the second realization of reference samples.
-
sliced-Wasserstein distance: The sliced-Wasserstein distance is described Section 5. Here it is computed between the reference and model samples using 1,000 random directions, compared with 128 in the Swiss-roll and pendulum experiments. This is then averaged over the 32 initial conditions. The baseline reports the sliced-Wasserstein distance computed between the reference samples and second independent draw of the reference samples again averaged over the 32 initial conditions.
-
defect: For each initial state and time , we compute the root-mean-squared error between of the 256 model samples and , and average over the 32 initial states. The baseline computes the same value for initial states and reference samples drawn from the second realization.
-
Spread ratio: For each initial condition and time, we compute the pointwise variance of each grid cell across the model's 256 samples. This is then averaged over the cells and square rooted to provide the spread. This procedure is repeated for the reference samples. The ratio of the model spread to the reference spread is averaged over the 32 initial conditions and reported. The baseline is reported as the ratio of the spread of the second independent reference ensemble to that of the reference ensemble. This metric provides a measure of the calibration of the variance of the samples. Although the metric does not take into account the location of the variance, a value close to 1 indicates that, on average, the model samples have similar spread to the reference samples. Values below 1 and over 1 indicate overconfidence and underconfidence, respectively.
conditional samples, horizon


Figure 14: Reference and predicted conditional samples at for source states with , 0.90, and 1.50. Dashed curves denote the invariant energy manifolds and crosses the corresponding source states. The physics-conforming variants substantially reduce deviations from the prescribed energy manifold while retaining the stochastic spread of the conditional law.

Figure 15: Sample-based decomposition of the physical energy defect at into target pullback, latent-conformity, and source-calibration contributions, together with their sum. For the Stochastic Latent Twin with conformity by construction, the latent-conformity contribution is zero.