Physics-conforming Latent Twins
Summary
Physics-conforming Latent Twins is a framework for learning latent surrogate solution operators that enforce physical principles such as conservation laws and dissipative inequalities by design, using a constraint-transfer approach and structure-preserving latent dynamics.
View Cached Full Text
Cached at: 06/16/26, 11:37 AM
# Physics-Conforming Latent Twins
Source: [https://arxiv.org/html/2606.15053](https://arxiv.org/html/2606.15053)
\[1\]\\fnmMatthias\\surChung
\\equalcont
These authors contributed equally to this work\.
\\equalcont
These authors contributed equally to this work\.
\[1\]\\orgdivDepartment of Mathematics,\\orgnameEmory University,\\orgaddress\\street400 Dowman Drive,\\cityAtlanta,\\postcode30322,\\stateGA,\\countryUSA
2\]\\orgdivSchool of Mathematical and Statistical Sciences,\\orgnameClemson University,\\orgaddress\\street220 Parkway Drive,\\cityClemson,\\postcode29634,\\stateSouth Carolina,\\countryUSA
###### Abstract
Surrogate models are central to scientific machine learning, where they enable fast prediction, simulation, inference, and control for complex physical systems\. For time\-dependent problems, however, accurate interpolation of training trajectories is not sufficient: reliable surrogates should also respect the conservation laws, invariants, admissibility conditions, and dissipative structures that give those trajectories physical meaning\. We introduce Physics\-conforming Latent Twins, a framework for learning latent surrogate solution operators whose dynamics satisfy selected physical principles by design\. The method builds on the Latent Twin formulation by jointly learning an encoder, a decoder, and a latent flow map between arbitrary time\-indexed states, while constraining the latent dynamics to preserve or dissipate prescribed structural quantities\. We develop a constraint\-transfer viewpoint that connects physical structure in the original state space with compatible constraints in latent space, and prove structure\-preservation bounds showing how latent enforcement improves control of physical defects after decoding\. We also derive algebraic conditions for latent flow maps that preserve linear and quadratic invariants or enforce dissipative inequalities\. Numerical experiments on representative ODE and PDE benchmarks demonstrate improved constraint satisfaction, structural fidelity, and qualitative long\-time behavior while maintaining accurate surrogate prediction\.
###### keywords:
Scientific machine learning; physics\-informed learning; latent dynamics; structure\-preserving surrogate modeling; autoencoders; reduced\-order modeling; dynamical systems; operator learning
## 1Introduction
The promise of scientific machine learning is not merely to accelerate simulation, but to learn models that retain the organizing structure of the physical world\. Time\-dependent physical systems are governed by more than input\-output correlations: they obey conservation laws, preserve invariants, remain within admissible states, and often reflect underlying symmetries or geometric structure\. When learned surrogates ignore these principles, they may interpolate data well while losing the properties that make scientific predictions reliable under extrapolation, long\-time simulations, and other downstream use\. This motivates a central question: how can we learn surrogate solution operators whose dynamics are accurate, efficient, and physically meaningful by design?
In this work, we emphasize a structure\-aware viewpoint on scientific machine learning: conservation, symmetry, invariance, admissibility, and dissipation are not merely consequences of a particular system of governing equations; they are underlying structural principles that delimit the space of physically admissible evolutions\. From this perspective, governing equations are expressions of deeper organizing principles, rather than the sole source of physical structure\. We therefore seek surrogate models that do more than imitate simulated trajectories: their learned dynamics are restricted by the principles that give those trajectories physical meaning\.
This viewpoint is aligned with a recurring theme in applied mathematics and physics: an appropriate representation can reveal structure that is hidden in the original variables\. Noether’s theorem is a classical example, identifying conservation laws as consequences of continuous symmetries of the action rather than as isolated properties of particular equations\[noether1918invarianten,noether1983invariante\]\. A surrogate model that encodes this structural viewpoint directly, constraining its latent dynamics to respect the organizing principles of the physical system, may be called physics\-conforming\.*Physics\-conforming Latent Twins*pursue this goal by using the latent space not merely for compression, but as the space in which selected physical structures are encoded and propagated by design\.
The*Latent Twins*framework was introduced in\[chung2026latent\]and jointly learns \(i\) an encoder–decoder mapping high\-dimensional states to a latent representation, and \(ii\) a latent solution operator that propagates states between arbitrary timess,ts,t\. Building upon this foundation, we introduce structured latent flow maps that satisfy selected physical principles, including conservation laws, quadratic invariants, and dissipative inequalities, thereby enabling physics\-conforming surrogate dynamics\. This places our approach within the operator learning viewpoint: rather than learning one\-step updates or vector fields, we learn mappings of the formu\(s\)↦u\(t\)u\(s\)\\mapsto u\(t\)\. The latent space is learned jointly with the dynamics so that the resulting representation admits surrogate evolution satisfying the prescribed physical laws\.
Among the many surrogate modeling approaches developed in scientific machine learning, reduced\-order models, Koopman methods, neural operators, physics\-informed networks, and latent representation learning, reviewed in[Section2\.1](https://arxiv.org/html/2606.15053#S2.SS1), approaches differ in the mathematical object they learn and in how physical structure is imposed\. Within this landscape, Physics\-conforming Latent Twins are positioned as latent solution\-operator models: the central object is a learned latent flow map between time\-indexed states, rather than a projected differential equation, an identified vector field, or a residual\-constrained solution field\. Rather than treating the latent space as a passive compression of snapshots, we use the learned representation as the space in which the surrogate evolution is organized and constrained — physical structure is not an auxiliary diagnostic imposed after prediction, but part of what the learned solution operator is designed to encode and preserve\.
The main contributions of this work are to develop, analyze, and demonstrate a framework for Physics\-conforming Latent Twins\. We formulate Latent Twin as latent surrogate solution operators whose latent flow maps can be constrained directly, rather than relying only on penalties or diagnostics in the physical variables\. To connect physical constraints with latent dynamics, we introduce a constraint\-transfer viewpoint that relates structure in the state space to compatible structure in the latent space\. This yields structural approximation bounds showing that an a posteriori violation of prescribed physical constraints is controlled by the Latent Twins approximation error, with sharper estimates when the same constraint is encoded and enforced directly in latent space\. We then specialize the framework to linear latent flow maps, deriving algebraic conditions for preserving linear invariants, quadratic energy structures, and dissipative inequalities\. Finally, we demonstrate the framework through ODE and PDE experiments that test reconstruction, latent evolution, constraint preservation, and long\-time behavior, including stable linear systems, nonlinear dynamics with conservation or energy structure, and a heat\-equation benchmark illustrating dissipative behavior\.
The remainder of the paper is organized as follows\. In[Section2](https://arxiv.org/html/2606.15053#S2), we position Physics\-conforming Latent Twins relative to related surrogate modeling approaches, formalize the Latent Twin solution\-operator framework, and introduce structural functionals for conservation, admissibility, and dissipation; these topics are developed in[Sections2\.1](https://arxiv.org/html/2606.15053#S2.SS1),[2\.2](https://arxiv.org/html/2606.15053#S2.SS2)and[2\.3](https://arxiv.org/html/2606.15053#S2.SS3), respectively\. In[Section3](https://arxiv.org/html/2606.15053#S3), we derive approximation and structure\-preservation results, including a posteriori control of structural defects in[Section3\.1](https://arxiv.org/html/2606.15053#S3.SS1)and a priori bounds in[Section3\.2](https://arxiv.org/html/2606.15053#S3.SS2)that sharpen when constraints are enforced in latent space\. We also introduce physics\-conforming latent flows and discuss algebraic realizations for linear invariants, quadratic invariants, and dissipative structures in[Section3\.3](https://arxiv.org/html/2606.15053#S3.SS3)\. Numerical experiments in[Section4](https://arxiv.org/html/2606.15053#S4)demonstrate the proposed framework on ODE benchmarks and PDE examples, discussed in[Sections4\.2](https://arxiv.org/html/2606.15053#S4.SS2)and[4\.3](https://arxiv.org/html/2606.15053#S4.SS3)\. We conclude in[Section5](https://arxiv.org/html/2606.15053#S5)by discussing limitations and future directions\.
## 2Background
This section establishes the background needed to formulate Physics\-conforming Latent Twins as structure\-aware surrogate solution operators\. We first situate the framework among related approaches in scientific machine learning, emphasizing the distinction between learning projected equations, residual\-constrained solutions, vector fields, and latent solution maps\. We then recall the Latent Twin formulation and fix notation for the encoder, decoder, and latent flow map\. Finally, we introduce structural functionals to represent conservation, admissibility, and dissipation within a common mathematical framework\. These ingredients set up the central question addressed in the remainder of the paper: how physical structure in the state space can be represented, enforced, and controlled through constraints on the latent dynamics\.
### 2\.1Positioning among surrogate modeling approaches
Scientific machine learning has produced a broad range of surrogate modeling approaches for time\-dependent physical systems, and a comprehensive review is beyond the scope of this work\. Rather than attempting an exhaustive survey, we focus on methodological directions most closely connected to the Latent Twin framework: reduced\-order modeling, Koopman\-based methods, neural operators, physics\-informed neural networks, and latent representation learning for scientific dynamics\. These approaches share the goal of replacing expensive time\-dependent simulations by efficient surrogate models, but they differ in the mathematical object they choose to learn\.
Classical reduced\-order modeling starts from the observation that many scientific systems evolve on or near low\-dimensional solution manifolds\. Projection\-based methods such as proper orthogonal decomposition and reduced\-basis methods therefore construct a low\-dimensional trial space and approximate the governing equations within that space\[benner2015survey,hesthaven2016certified\]\. This perspective has been foundational for scientific computing: it shows that efficient surrogates are possible when the dominant dynamical degrees of freedom can be identified\.
A second line of work is based on the Koopman viewpoint\. Instead of reducing the state directly, Koopman methods lift the dynamics to a space of observables in which nonlinear evolution can be represented linearly, at least formally\[koopman1931hamiltonian,mezic2005spectral\]\. Dynamic mode decomposition and its variants provide practical finite\-dimensional approximations of this idea from data\[schmid2010dynamic,kutz2016dynamic\]\. More recently, Koopman autoencoders use neural networks to learn coordinates in which the latent evolution is approximately linear\[lusch2018deep,takeishi2017learning\]\. These methods have moved the field forward by connecting representation learning with interpretable linear latent dynamics, but they are typically organized around evolution in learned coordinates rather than around physics\-conforming solution operators\.
A third related direction is sparse model discovery and system identification, most prominently the sparse identification of nonlinear dynamics \(SINDy\) framework\[brunton2016discovering\]\. These methods seek explicit governing equations by selecting a small number of active terms from a prescribed library of candidate functions, with extensions to PDEs, weak formulations, implicit dynamics, control inputs, and constrained or physics\-informed variants\[rudy2017data,schaeffer2017learning,kaheman2020sindy,reinbold2020using\]\. Physics\-conforming Latent Twins share the emphasis on interpretable and structured dynamics, but differ in the mathematical object being learned: rather than identifying an explicit vector field or differential equation, we learn a latent solution operator whose admissible evolution is constrained by structural functionals\.
A fourth major direction is physics\-informed learning\. Physics\-informed neural networks incorporate known differential equations directly into the training objective, typically through residual losses evaluated at collocation points\[raissi2019physics,baez2024guaranteeing,patel2022thermodynamically\]\. These approaches have reshaped the way data and governing equations are combined, especially in settings where observations are sparse or boundary and initial conditions are known\. At the same time, the physical structure is usually imposed as a residual penalty in the ambient variables, rather than through a structured latent evolution operator\.
A related line of work embeds physical structure directly into the neural network architecture rather than as a penalty\. Hamiltonian Neural Networks\[greydanus2019hamiltonian\]parametrize the vector field by learning a scalar Hamiltonian and deriving dynamics through Hamilton’s equations, thereby guaranteeing exact energy conservation by construction\. This inductive bias leads to faster training and better generalization on conservative systems such as the two\-body problem and the pendulum, and produces models that are perfectly time\-reversible\. While Hamiltonian Neural Networks operate at the level of the vector field in the original state space, Physics\-conforming Latent Twins pursue a complementary goal: enforcing analogous conservative structure on the latent solution operator rather than on the learned dynamics directly\.
Neural operators take another step by learning mappings between function spaces\. Architectures such as DeepONet and Fourier neural operators learn input\-output maps associated with parametric differential equations or time\-dependent solution maps\[lu2021learning,li2020fourier,kovachki2023neural\]\. This operator\-learning viewpoint has been highly influential because it shifts attention from learning individual solutions to learning solution maps that generalize across families of inputs\. Our work adopts this solution\-map perspective, but asks how such maps can be represented in latent coordinates where physical structure can be imposed directly on the learned evolution\.
Finally, recent representation\-learning approaches combine latent variables with learned dynamics, operator maps, or coordinate\-based functional representations\. These methods ask whether high\-dimensional scientific states can be represented in compact coordinates where prediction becomes easier\. Latent space dynamics identification methods, such as LaSDI and its variants, use autoencoders to compress PDE solution data and then learn reduced dynamics in the latent space\[fries2022lasdi,he2023glasdi,tran2024weak,park2024tlasdi\]\. Related neural\-field approaches use coordinate\-based decoders or implicit neural representations to represent states as continuous functions, enabling prediction across irregular grids, complex geometries, and varying resolutions\[chen2022crom,serrano2023operator,yin2022continuous\]\. These works have substantially advanced latent and functional representations for scientific dynamics\. Latent Twins share this broad goal, but differ in their organizing principle: the central object is a latent solution operator, learned jointly with the encoder and decoder, and designed to support physics\-conforming structure between arbitrary states and times\.
### 2\.2Latent Twins
We now recall the solution\-operator formulation of Latent Twins and introduce the notation used throughout the analysis\.
###### Definition 1\(Latent Twin\)\.
LetΦ\\Phidenote the solution operator of a time\-evolutionary system on a normed vector space𝒰\\mathcal\{U\},
Φ\(t,s,⋅\):𝒰→𝒰,\\Phi\(t,s,\\cdot\):\\mathcal\{U\}\\to\\mathcal\{U\},whereΦ\(t,s,us\)\\Phi\(t,s,u\_\{s\}\)maps a stateus∈𝒰u\_\{s\}\\in\\mathcal\{U\}at timessto the corresponding state at timett\. A*Latent Twin*ofΦ\\Phiis a surrogate solution operator of the form
Ψ\(t,s,us\):=d\(ms→t\(e\(us\)\)\),\\Psi\(t,s,u\_\{s\}\):=d\\bigl\(m\_\{s\\to t\}\(e\(u\_\{s\}\)\)\\bigr\),\(1\)whereZZis a latent space,e:𝒰→Ze:\\mathcal\{U\}\\to Zis an encoder,ms→t:Z→Zm\_\{s\\to t\}:Z\\to Zis a latent flow map, andd:Z→𝒰d:Z\\to\\mathcal\{U\}is a decoder\. The mapsee,ms→tm\_\{s\\to t\}, andddare trained so that
d∘e≈id𝒰d\\circ e\\approx\\mathrm\{id\}\_\{\\mathcal\{U\}\}on the relevant subset of𝒰\\mathcal\{U\}, and
Ψ\(t,s,us\)≈Φ\(t,s,us\)\\Psi\(t,s,u\_\{s\}\)\\approx\\Phi\(t,s,u\_\{s\}\)for the time pairs and states of interest\.
Having fixed the solution\-operator notation, we now describe the structural properties that we aim to transfer from the physical dynamics to the latent flow map\.
### 2\.3Physics\-conforming properties and approximation setting
Time\-evolutionary systems often preserve, restrict, or dissipate quantities of physical relevance\. Examples include conserved mass or energy, dissipative inequalities, admissibility conditions such as positivity or boundedness, and symmetry constraints\[murray2007mathematical,Khalil2002,HairerWanner1996\]\. These properties are not merely side conditions to be checked after prediction; they are organizing principles that shape the class of admissible dynamics\. For instance, in the SIR model, the relationS\+I\+R=const\.S\+I\+R=\\mathrm\{const\.\}identifies an invariant manifold on which the physically meaningful dynamics evolve\[murray2007mathematical\]\. Conversely, the assumption of a closed population is itself a structural modeling principle: it restricts the admissible class of epidemic models to dynamics that preserve the total population, of which the classical SIR equations are one example\.
To make this viewpoint precise without committing to a particular governing equation, we encode such principles abstractly through a structural functional𝒞:𝒰→ℝk\\mathcal\{C\}:\\mathcal\{U\}\\to\\mathbb\{R\}^\{k\}, acting on the state space𝒰\\mathcal\{U\}\. Along an evolutionutu\_\{t\}, the quantities𝒞\(ut\)\\mathcal\{C\}\(u\_\{t\}\)describe the physical structures to be preserved or controlled over time\. For differentiable𝒞\\mathcal\{C\}, examples include conserved quantities and dissipative structures satisfying
ddt𝒞\(ut\)=0,orddt𝒞\(ut\)≤0\.\\frac\{\\mathrm\{d\}\}\{\\mathrm\{d\}t\}\\mathcal\{C\}\(u\_\{t\}\)=0,\\quad\\text\{or\}\\quad\\frac\{\\mathrm\{d\}\}\{\\mathrm\{d\}t\}\\mathcal\{C\}\(u\_\{t\}\)\\leq 0\.\(2\)The equality case represents preserved relations, such as conservation laws or invariant manifolds\. The inequality case represents admissibility or monotonicity properties, such as positivity, boundedness, entropy inequalities, or energy dissipation\. Thus, as discussed above,𝒞\\mathcal\{C\}is not meant to determine the full dynamics; rather, it records selected structural information that any physically meaningful evolution should satisfy\.
For continuous\-time dynamics, an invariant𝒞\(ut\)=0\\mathcal\{C\}\(u\_\{t\}\)=0also has the local form
0=ddt𝒞\(ut\)=D𝒞\(ut\)\(𝒟\(ut\)\),u′=𝒟\(u\)\.0=\\frac\{\\mathrm\{d\}\}\{\\mathrm\{d\}t\}\\mathcal\{C\}\(u\_\{t\}\)=D\\mathcal\{C\}\(u\_\{t\}\)\\big\(\\mathcal\{D\}\(u\_\{t\}\)\\big\),\\qquad u^\{\\prime\}=\\mathcal\{D\}\(u\)\.\(3\)Thus, structural functionals constrain the admissible evolution: the vector field must be tangent to the level sets of𝒞\\mathcal\{C\}\. Since Latent Twins are formulated at the level of solution operators, we do not require access to𝒟\\mathcal\{D\}\. Instead, we ask whether the surrogate solution operator preserves the structural relation encoded by𝒞\\mathcal\{C\}\.
We first treat this question a posteriori\. The approximation theorem of\[chung2026latent\]gives uniform control of the lifted Latent Twin surrogate on a compact invariant set\. Consequently, any Lipschitz structural functional evaluated on the surrogate remains close to its value along the exact flow\. We later show that sharper estimates are possible when the structure is imposed directly in latent space\.
##### Assumption on PDEs and Latent Twin\.
Let\(𝒰,∥⋅∥𝒰\)\(\\mathcal\{U\},\\\|\\cdot\\\|\_\{\\mathcal\{U\}\}\)be a Banach space, and letΦ\(t,s,⋅\)\\Phi\(t,s,\\cdot\)andΦN\(t,s,⋅\)\\Phi\_\{N\}\(t,s,\\cdot\)denote the exact PDE solution operator and corresponding discrete flow on\[T0,Tend\]\[T\_\{0\},T\_\{\\mathrm\{end\}\}\], respectively\. We make the following assumptions:
\(A1\) Well\-posed flow\.Assume there exists a compact invariant set𝒦⊂𝒰\\mathcal\{K\}\\subset\\mathcal\{U\}such that
Φ\(t,s,⋅\):𝒦→𝒦\\Phi\(t,s,\\cdot\):\\mathcal\{K\}\\to\\mathcal\{K\}is well defined for alls,t∈\[T0,Tend\]s,t\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\], and is Lipschitz continuous in the initial condition on\[T0,Tend\]2×𝒦\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}with constantL𝒦\>0L\_\{\\mathcal\{K\}\}\>0\.
\(A2\) Stable and consistent spatial discretization\.LetPN:𝒰→ℝNP\_\{N\}:\\mathcal\{U\}\\to\\mathbb\{R\}^\{N\}andRN:ℝN→𝒰R\_\{N\}:\\mathbb\{R\}^\{N\}\\to\\mathcal\{U\}be uniformly bounded projection and lifting operators satisfying
εdisc:=supu∈𝒦‖RN\(PN\(u\)\)−u‖𝒰→0forN→∞,\\varepsilon\_\{\\mathrm\{disc\}\}:=\\sup\_\{u\\in\\mathcal\{K\}\}\\\|R\_\{N\}\(P\_\{N\}\(u\)\)\-u\\\|\_\{\\mathcal\{U\}\}\\to 0\\qquad\\text\{for \}N\\to\\infty,and assume the discrete flowΦN\\Phi\_\{N\}is consistent with the exact flow in the sense that for some constantCdisc\>0C\_\{\\mathrm\{disc\}\}\>0,
supu∈𝒦t,s∈\[T0,Tend\]‖RN\(ΦN\(t,s,PN\(u\)\)\)−Φ\(t,s,u\)‖𝒰≤Cdiscεdisc\.\\sup\_\{\\begin\{subarray\}\{c\}u\\in\\mathcal\{K\}\\\\ t,s\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]\\end\{subarray\}\}\\\|R\_\{N\}\(\\Phi\_\{N\}\(t,s,P\_\{N\}\(u\)\)\)\-\\Phi\(t,s,u\)\\\|\_\{\\mathcal\{U\}\}\\leq C\_\{\\mathrm\{disc\}\}\\,\\varepsilon\_\{\\mathrm\{disc\}\}\.
\(A3\) Expressiveness of Latent Twin\.On the compact discrete state set
𝒦N:=PN\(𝒦\)⊂ℝN,\\mathcal\{K\}\_\{N\}:=P\_\{N\}\(\\mathcal\{K\}\)\\subset\\mathbb\{R\}^\{N\},assume the encodere:ℝN→Ze:\\mathbb\{R\}^\{N\}\\to Z, decoderd:Z→ℝNd:Z\\to\\mathbb\{R\}^\{N\}, and latent mapm:\[T0,Tend\]2×Z→Zm:\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times Z\\to Zsatisfy:
1. 1\.eeandddare Lipschitz continuous, with decoder Lipschitz constantLdL\_\{d\};
2. 2\.the reconstruction error obeys supx∈𝒦N‖d\(e\(x\)\)−x‖≤εae,\\sup\_\{x\\in\\mathcal\{K\}\_\{N\}\}\\\|d\(e\(x\)\)\-x\\\|\\leq\\varepsilon\_\{\\mathrm\{ae\}\},whereεae≥0\\varepsilon\_\{\\mathrm\{ae\}\}\\geq 0denotes the autoencoder reconstruction error;
3. 3\.mmapproximates the exact discrete latent flow ms→t∗\(z\):=e\(ΦN\(t,s,d\(z\)\)\)m^\{\\ast\}\_\{s\\to t\}\(z\):=e\\bigl\(\\Phi\_\{N\}\(t,s,d\(z\)\)\\bigr\)uniformly, with sup\(t,s,z\)∈\[T0,Tend\]2×Z‖ms→t\(z\)−ms→t∗\(z\)‖≤εmap,\\sup\_\{\(t,s,z\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times Z\}\\\|m\_\{s\\to t\}\(z\)\-m^\{\\ast\}\_\{s\\to t\}\(z\)\\\|\\leq\\varepsilon\_\{\\mathrm\{map\}\},whereεmap≥0\\varepsilon\_\{\\mathrm\{map\}\}\\geq 0is the latent map approximation error\.
###### Theorem 1\(Latent Twin Approximation Bound\[chung2026latent, Theorem 2\]\)\.
Forus∈𝒦u\_\{s\}\\in\\mathcal\{K\}, define the lifted Latent Twin surrogate by
ΨN\(t,s,us\):=RN\(d\(ms→t\(e\(PN\(us\)\)\)\)\)\.\\Psi\_\{N\}\(t,s,u\_\{s\}\):=R\_\{N\}\\Bigl\(d\\bigl\(m\_\{s\\to t\}\(e\(P\_\{N\}\(u\_\{s\}\)\)\)\\bigr\)\\Bigr\)\.Then, under\(A1\)–\(A3\), there exists a constantClt\>0C\_\{\\mathrm\{lt\}\}\>0such that
sup\(s,t,us\)∈\[T0,Tend\]2×𝒦‖ΨN\(t,s,us\)−Φ\(t,s,us\)‖𝒰≤Clt\(εdisc\+\(1\+eL𝒦\(Tend−T0\)\)εae\+Ldεmap\)\.\\sup\_\{\(s,t,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}\}\\left\\\|\\Psi\_\{N\}\(t,s,u\_\{s\}\)\-\\Phi\(t,s,u\_\{s\}\)\\right\\\|\_\{\\mathcal\{U\}\}\\leq C\_\{\\mathrm\{lt\}\}\\left\(\\varepsilon\_\{\\mathrm\{disc\}\}\+\\bigl\(1\+\\mathrm\{e\}^\{L\_\{\\mathcal\{K\}\}\(T\_\{\\mathrm\{end\}\}\-T\_\{0\}\)\}\\bigr\)\\varepsilon\_\{\\mathrm\{ae\}\}\+L\_\{d\}\\varepsilon\_\{\\mathrm\{map\}\}\\right\)\.In particular, if
εdisc→0,εae→0,εmap→0,forN→∞\\varepsilon\_\{\\mathrm\{disc\}\}\\to 0,\\qquad\\varepsilon\_\{\\mathrm\{ae\}\}\\to 0,\\qquad\\varepsilon\_\{\\mathrm\{map\}\}\\to 0,\\qquad\\text\{for \}\\quad N\\to\\inftythen
ΨN→Φuniformly on\[T0,Tend\]2×𝒦\.\\Psi\_\{N\}\\to\\Phi\\qquad\\text\{uniformly on \}\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}\.
The proof is provided in\[chung2026latent\], using the ODE Latent Twin approximation theorem as an intermediate step on the discretized system\. In the finite\-dimensional setting,ΨN\\Psi\_\{N\}reduces to the latent twinΨ\\Psidefined in[Equation1](https://arxiv.org/html/2606.15053#S2.E1)\.
## 3Physics\-conforming Latent Twins
Physics\-conforming Latent Twins build on the solution\-operator formulation by incorporating structural constraints into the latent evolution itself\. We first show that fully data\-driven Latent Twins inherit physical structure a posteriori: structural defects are controlled by the surrogate approximation error; see[Section3\.1](https://arxiv.org/html/2606.15053#S3.SS1)\. We then introduce and prove in[Section3\.2](https://arxiv.org/html/2606.15053#S3.SS2)that enforcing compatible constraints directly in latent space yields sharper estimates\. Finally,[Section3\.3](https://arxiv.org/html/2606.15053#S3.SS3)develops tractable latent\-flow constructions that realize preservation or dissipation properties by design\.
### 3\.1A posteriori physics\-conforming estimate
The approximation theorem above immediately yields a corresponding control of structural defect\. If the surrogate trajectory is uniformly close to the true trajectory, then any Lipschitz structural functional evaluated on the surrogate must also remain close to its exact value\. This gives a direct and very general*a posteriori*estimate\.
###### Theorem 2\(Constraint\-consistent Latent Twin Approximation Bound\)\.
Under the assumptions of[Theorem1](https://arxiv.org/html/2606.15053#Thmtheorem1), let𝒞:𝒰→ℝk\\mathcal\{C\}:\\mathcal\{U\}\\to\\mathbb\{R\}^\{k\}be Lipschitz continuous on a set containing the exact and surrogate trajectories, with Lipschitz constantL𝒞\>0L\_\{\\mathcal\{C\}\}\>0\. Assume that the exact flow satisfies the structural property
𝒞\(Φ\(t,s,us\)\)≤0for all\(t,s,us\)∈\[T0,Tend\]2×𝒦,\\mathcal\{C\}\\bigl\(\\Phi\(t,s,u\_\{s\}\)\\bigr\)\\leq 0\\qquad\\text\{for all \}\(t,s,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\},where the inequality is understood componentwise\. Let\[y\]\+:=max\(y,0\)\[y\]\_\{\+\}:=\\max\(y,0\)denote the componentwise positive part\. Then the lifted Latent Twin surrogate satisfies
sup\(t,s,us\)∈\[T0,Tend\]2×𝒦‖\[𝒞\(ΨN\(t,s,us\)\)\]\+‖≤L𝒞Clt\(εdisc\+\(1\+eL𝒦\(Tend−T0\)\)εae\+Ldεmap\)\.\\sup\_\{\(t,s,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}\}\\left\\\|\\left\[\\mathcal\{C\}\\bigl\(\\Psi\_\{N\}\(t,s,u\_\{s\}\)\\bigr\)\\right\]\_\{\+\}\\right\\\|\\leq L\_\{\\mathcal\{C\}\}C\_\{\\mathrm\{lt\}\}\\left\(\\varepsilon\_\{\\mathrm\{disc\}\}\+\\bigl\(1\+\\mathrm\{e\}^\{L\_\{\\mathcal\{K\}\}\(T\_\{\\mathrm\{end\}\}\-T\_\{0\}\)\}\\bigr\)\\varepsilon\_\{\\mathrm\{ae\}\}\+L\_\{d\}\\varepsilon\_\{\\mathrm\{map\}\}\\right\)\.
###### Proof\.
Fix\(t,s,us\)∈\[T0,Tend\]2×𝒦\(t,s,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}\. Since the exact flow satisfies
𝒞\(Φ\(t,s,us\)\)≤0\\mathcal\{C\}\\bigl\(\\Phi\(t,s,u\_\{s\}\)\\bigr\)\\leq 0componentwise, it follows that
\[𝒞\(ΨN\(t,s,us\)\)\]\+≤\[𝒞\(ΨN\(t,s,us\)\)−𝒞\(Φ\(t,s,us\)\)\]\+\\left\[\\mathcal\{C\}\\bigl\(\\Psi\_\{N\}\(t,s,u\_\{s\}\)\\bigr\)\\right\]\_\{\+\}\\leq\\left\[\\mathcal\{C\}\\bigl\(\\Psi\_\{N\}\(t,s,u\_\{s\}\)\\bigr\)\-\\mathcal\{C\}\\bigl\(\\Phi\(t,s,u\_\{s\}\)\\bigr\)\\right\]\_\{\+\}componentwise\. Since\[a\]\+≤\|a\|\[a\]\_\{\+\}\\leq\|a\|componentwise,
‖\[𝒞\(ΨN\(t,s,us\)\)\]\+‖≤‖𝒞\(ΨN\(t,s,us\)\)−𝒞\(Φ\(t,s,us\)\)‖\.\\left\\\|\\left\[\\mathcal\{C\}\\bigl\(\\Psi\_\{N\}\(t,s,u\_\{s\}\)\\bigr\)\\right\]\_\{\+\}\\right\\\|\\leq\\left\\\|\\mathcal\{C\}\\bigl\(\\Psi\_\{N\}\(t,s,u\_\{s\}\)\\bigr\)\-\\mathcal\{C\}\\bigl\(\\Phi\(t,s,u\_\{s\}\)\\bigr\)\\right\\\|\.By Lipschitz continuity of𝒞\\mathcal\{C\},
‖𝒞\(ΨN\(t,s,us\)\)−𝒞\(Φ\(t,s,us\)\)‖≤L𝒞‖ΨN\(t,s,us\)−Φ\(t,s,us\)‖𝒰\.\\left\\\|\\mathcal\{C\}\\bigl\(\\Psi\_\{N\}\(t,s,u\_\{s\}\)\\bigr\)\-\\mathcal\{C\}\\bigl\(\\Phi\(t,s,u\_\{s\}\)\\bigr\)\\right\\\|\\leq L\_\{\\mathcal\{C\}\}\\left\\\|\\Psi\_\{N\}\(t,s,u\_\{s\}\)\-\\Phi\(t,s,u\_\{s\}\)\\right\\\|\_\{\\mathcal\{U\}\}\.Taking the supremum proves the estimate by using[Theorem1](https://arxiv.org/html/2606.15053#Thmtheorem1)\. ∎
###### Corollary 1\(Equality\-type structural properties\)\.
If instead the exact flow satisfies
𝒞\(Φ\(t,s,us\)\)=0for all\(t,s,us\)∈\[T0,Tend\]2×𝒦,\\mathcal\{C\}\\bigl\(\\Phi\(t,s,u\_\{s\}\)\\bigr\)=0\\qquad\\text\{for all \}\(t,s,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\},then
sup\(t,s,us\)∈\[T0,Tend\]2×𝒦‖𝒞\(ΨN\(t,s,us\)\)‖≤2L𝒞Clt\(εdisc\+\(1\+eL𝒦\(Tend−T0\)\)εae\+Ldεmap\)\.\\sup\_\{\(t,s,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}\}\\left\\\|\\mathcal\{C\}\\bigl\(\{\\Psi\}\_\{N\}\(t,s,u\_\{s\}\)\\bigr\)\\right\\\|\\leq 2L\_\{\\mathcal\{C\}\}C\_\{\\mathrm\{lt\}\}\\left\(\\varepsilon\_\{\\mathrm\{disc\}\}\+\\bigl\(1\+\\mathrm\{e\}^\{L\_\{\\mathcal\{K\}\}\(T\_\{\\mathrm\{end\}\}\-T\_\{0\}\)\}\\bigr\)\\varepsilon\_\{\\mathrm\{ae\}\}\+L\_\{d\}\\varepsilon\_\{\\mathrm\{map\}\}\\right\)\.
###### Proof\.
Apply[Theorem2](https://arxiv.org/html/2606.15053#Thmtheorem2)to both𝒞\\mathcal\{C\}and−𝒞\-\\mathcal\{C\}\. The claim follows from the elementary estimate
‖𝒞\(x\)‖≤‖\[𝒞\(x\)\]\+‖\+‖\[−𝒞\(x\)\]\+‖\.\\\|\\mathcal\{C\}\(x\)\\\|\\leq\\bigl\\\|\[\\mathcal\{C\}\(x\)\]\_\{\+\}\\bigr\\\|\+\\bigl\\\|\[\-\\mathcal\{C\}\(x\)\]\_\{\+\}\\bigr\\\|\.∎
##### Limitations of the a posteriori estimate\.
The estimates above show that structural defect can be controlled directly from the Latent Twin approximation error\. However, this control remains purely*a posteriori*: it is obtained by passing the full trajectory error through the Lipschitz continuity of𝒞\\mathcal\{C\}, so it inherits the entire approximation structure of the surrogate itself, including discretization, autoencoder, and latent\-map errors, as well as the growth factoreL𝒦\(Tend−T0\)\\mathrm\{e\}^\{L\_\{\\mathcal\{K\}\}\(T\_\{\\mathrm\{end\}\}\-T\_\{0\}\)\}\. Consequently, even exact structure preservation by the latent map would not yet appear in the bound\. This motivates a sharper,*a priori*approach in which structural properties are enforced directly in latent space\.
### 3\.2A priori physics\-conforming estimate
##### Latent\-space structural enforcement\.
The preceding estimate treats structure only after the surrogate trajectory has been produced\. A sharper approach is to represent physical constraints directly in latent coordinates and enforce it at the level of the latent propagator itself\. To this end, we introduce a latent constraint functional
𝒞Z:Z→ℝk,\\mathcal\{C\}\_\{Z\}:Z\\to\\mathbb\{R\}^\{k\},intended to encode the same structural property in latent space that𝒞\\mathcal\{C\}encodes in the original state space\. If such a latent constraint is preserved exactly by the latent evolution, then structural defect need no longer be routed through the full trajectory approximation error\. Instead, it can be controlled directly through the mismatch between𝒞\\mathcal\{C\}and𝒞Z\\mathcal\{C\}\_\{Z\}and the error introduced by encoding and decoding\.
Throughout, we denote by
𝒵:=\{ms→t\(e\(PN\(us\)\)\):us∈𝒦,s≤t∈\[T0,Tend\]\}⊂Z\\mathcal\{Z\}:=\\bigl\\\{m\_\{s\\to t\}\(e\(P\_\{N\}\(u\_\{s\}\)\)\):u\_\{s\}\\in\\mathcal\{K\},\\;s\\leq t\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]\\bigr\\\}\\subset Zthe set of latent states reachable by the latent map from encoded conditions at timesssin𝒦\\mathcal\{K\}\.
###### Definition 2\(Compatible latent constraint\)\.
Let𝒞:𝒰→ℝk\\mathcal\{C\}:\\mathcal\{U\}\\to\\mathbb\{R\}^\{k\}be a constraint functional,d:Z→ℝNd:Z\\to\\mathbb\{R\}^\{N\}a discrete decoder, andRN:ℝN→𝒰R\_\{N\}:\\mathbb\{R\}^\{N\}\\to\\mathcal\{U\}the lifting operator\. A latent constraint𝒞Z:Z→ℝk\\mathcal\{C\}\_\{Z\}:Z\\to\\mathbb\{R\}^\{k\}isε𝒞\\varepsilon\_\{\\mathcal\{C\}\}*\-compatible*with𝒞\\mathcal\{C\}viaRN∘dR\_\{N\}\\circ dwith defect
ε𝒞:=supz∈𝒵‖𝒞\(RN\(d\(z\)\)\)−𝒞Z\(z\)‖,\\varepsilon\_\{\\mathcal\{C\}\}:=\\sup\_\{z\\in\\mathcal\{Z\}\}\\\|\\mathcal\{C\}\(R\_\{N\}\(d\(z\)\)\)\-\\mathcal\{C\}\_\{Z\}\(z\)\\\|,providedε𝒞<∞\\varepsilon\_\{\\mathcal\{C\}\}<\\infty\.
The defectε𝒞\\varepsilon\_\{\\mathcal\{C\}\}quantifies how faithfully the latent constraint𝒞Z\\mathcal\{C\}\_\{Z\}represents the physical constraint after decoding and lifting\. In this sense, compatibility is the mathematical bridge between structural properties in state space and their latent counterparts\. When𝒞\\mathcal\{C\}is known explicitly, the choice𝒞Z=𝒞∘RN∘d\\mathcal\{C\}\_\{Z\}=\\mathcal\{C\}\\circ R\_\{N\}\\circ dyieldsε𝒞=0\\varepsilon\_\{\\mathcal\{C\}\}=0by definition\. In practice, however, this pullback is typically unavailable before training, since the decoder is learned, and moreover may be too complicated to preserve directly through explicit constraints on the latent propagator\. One therefore prescribes𝒞Z\\mathcal\{C\}\_\{Z\}from a tractable family and usesε𝒞\\varepsilon\_\{\\mathcal\{C\}\}to measure the resulting mismatch, see following discussions in[Section3\.3](https://arxiv.org/html/2606.15053#S3.SS3)\.
###### Definition 3\(Structure\-preserving latent flow\)\.
Let𝒞Z:Z→ℝk\\mathcal\{C\}\_\{Z\}:Z\\to\\mathbb\{R\}^\{k\}be a latent constraint\. The latent flowmmis*𝒞Z\\mathcal\{C\}\_\{Z\}\-preserving*if for allz∈𝒵z\\in\\mathcal\{Z\}ands≤t∈\[T0,Tend\]s\\leq t\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]:
1. \(i\)*\(inequality constraint\)*if𝒞Z\(z\)≤0\\mathcal\{C\}\_\{Z\}\(z\)\\leq 0, then 𝒞Z\(ms→t\(z\)\)≤𝒞Z\(z\);\\mathcal\{C\}\_\{Z\}\\bigl\(m\_\{s\\to t\}\(z\)\\bigr\)\\leq\\mathcal\{C\}\_\{Z\}\(z\);
2. \(ii\)*\(equality constraint\)*if𝒞Z\(z\)=0\\mathcal\{C\}\_\{Z\}\(z\)=0, then 𝒞Z\(ms→t\(z\)\)=𝒞Z\(z\),\\mathcal\{C\}\_\{Z\}\\bigl\(m\_\{s\\to t\}\(z\)\\bigr\)=\\mathcal\{C\}\_\{Z\}\(z\),expressing exact invariance of𝒞Z\\mathcal\{C\}\_\{Z\}along latent trajectories\.
Condition \(ii\) is the natural invariance requirement for a conservation law: the latent constraint is preserved exactly, mirroring𝒞\(u\(t\)\)=0\\mathcal\{C\}\(u\(t\)\)=0in physical space\. Condition \(i\) is stronger than mere forward\-invariance of the admissible set\{𝒞Z≤0\}\\\{\\mathcal\{C\}\_\{Z\}\\leq 0\\\}: it requires𝒞Z\\mathcal\{C\}\_\{Z\}to be monotonically non\-increasing along latent trajectories, analogous to a Lyapunov or entropy condition\. This monotonicity is needed in the proof of Theorem 3\.5 to control\[𝒞Z\(zs→t\)\]\+\[\\mathcal\{C\}\_\{Z\}\(z\_\{s\\to t\}\)\]\_\{\+\}even when the encoded initial statezsz\_\{s\}is not exactly in the admissible set, which can happen when compatibility or autoencoder errors are nonzero\. For dissipative systems such as the heat equation, this condition is physically natural:𝒞Z\\mathcal\{C\}\_\{Z\}plays the role of a latent energy that the dynamics dissipate\.
###### Theorem 3\(Structure\-preserving Latent Twin Bound\)\.
Let𝒞:𝒰→ℝk\\mathcal\{C\}:\\mathcal\{U\}\\to\\mathbb\{R\}^\{k\}be Lipschitz with constantL𝒞\>0L\_\{\\mathcal\{C\}\}\>0, and suppose the true flow satisfies𝒞\(Φ\(t,s,us\)\)≤0\\mathcal\{C\}\(\\Phi\(t,s,u\_\{s\}\)\)\\leq 0for all\(t,s,us\)∈\[T0,Tend\]2×𝒦\(t,s,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}\. Let𝒞Z\\mathcal\{C\}\_\{Z\}be compatible with𝒞\\mathcal\{C\}viaRN∘dR\_\{N\}\\circ dwith defectε𝒞\\varepsilon\_\{\\mathcal\{C\}\}in the sense of[Definition2](https://arxiv.org/html/2606.15053#Thmdefinition2), and suppose the latent mapmmis𝒞Z\\mathcal\{C\}\_\{Z\}\-preserving in the sense of[Definition3](https://arxiv.org/html/2606.15053#Thmdefinition3)\. Then
sup\(t,s,us\)∈\[T0,Tend\]2×𝒦‖\[𝒞\(ΨN\(t,s,us\)\)\]\+‖≤2ε𝒞\+L𝒞εae\.\\sup\_\{\(t,s,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}\}\\Bigl\\\|\\Bigl\[\\mathcal\{C\}\\Bigl\(\\Psi\_\{N\}\(t,s,u\_\{s\}\)\\Bigr\)\\Bigr\]\_\{\+\}\\Bigr\\\|\\leq 2\\varepsilon\_\{\\mathcal\{C\}\}\+L\_\{\\mathcal\{C\}\}\\,\\varepsilon\_\{\\mathrm\{ae\}\}\.
###### Proof\.
Letzs:=e\(PN\(us\)\)z\_\{s\}:=e\(P\_\{N\}\(u\_\{s\}\)\)denote the encoded state at timessandzs→t:=m\(t,s,zs\)z\_\{s\\to t\}:=m\(t,s,z\_\{s\}\)the surrogate latent state propagated to timett, so thatΨN\(t,s,us\)=RN\(d\(zs→t\)\)\\Psi\_\{N\}\(t,s,u\_\{s\}\)=R\_\{N\}\(d\(z\_\{s\\to t\}\)\)\. Insert𝒞Z\(zs→t\)\\mathcal\{C\}\_\{Z\}\(z\_\{s\\to t\}\)to decompose the physical constraint violation:
\[𝒞\(RN\(d\(zs→t\)\)\)\]\+\\displaystyle\\bigl\[\\mathcal\{C\}\(R\_\{N\}\(d\(z\_\{s\\to t\}\)\)\)\\bigr\]\_\{\+\}≤\[𝒞\(RN\(d\(zs→t\)\)\)−𝒞Z\(zs→t\)\]\+\+\[𝒞Z\(zs→t\)\]\+\.\\displaystyle\\leq\\bigl\[\\mathcal\{C\}\(R\_\{N\}\(d\(z\_\{s\\to t\}\)\)\)\-\\mathcal\{C\}\_\{Z\}\(z\_\{s\\to t\}\)\\bigr\]\_\{\+\}\+\\bigl\[\\mathcal\{C\}\_\{Z\}\(z\_\{s\\to t\}\)\\bigr\]\_\{\+\}\.The first term is bounded byε𝒞\\varepsilon\_\{\\mathcal\{C\}\}by[Definition2](https://arxiv.org/html/2606.15053#Thmdefinition2)\. For the second, sincemmis𝒞Z\\mathcal\{C\}\_\{Z\}\-preserving ands≤ts\\leq t,
𝒞Z\(zs→t\)≤𝒞Z\(zs\)\.\\mathcal\{C\}\_\{Z\}\(z\_\{s\\to t\}\)\\leq\\mathcal\{C\}\_\{Z\}\(z\_\{s\}\)\.It remains to bound the initial latent constraint value\. Writingu^:=RN\(d\(zs\)\)∈𝒰\\hat\{u\}:=R\_\{N\}\(d\(z\_\{s\}\)\)\\in\\mathcal\{U\}, which satisfies‖u^−us‖𝒰≤εae\\\|\\hat\{u\}\-u\_\{s\}\\\|\_\{\\mathcal\{U\}\}\\leq\\varepsilon\_\{\\mathrm\{ae\}\}, and inserting𝒞\(us\)≤0\\mathcal\{C\}\(u\_\{s\}\)\\leq 0,
𝒞Z\(zs\)\\displaystyle\\mathcal\{C\}\_\{Z\}\(z\_\{s\}\)≤‖𝒞Z\(zs\)−𝒞\(RN\(d\(zs\)\)\)‖\+‖𝒞\(u^\)−𝒞\(us\)‖\+𝒞\(us\)\.\\displaystyle\\leq\\bigl\\\|\\mathcal\{C\}\_\{Z\}\(z\_\{s\}\)\-\\mathcal\{C\}\(R\_\{N\}\(d\(z\_\{s\}\)\)\)\\bigr\\\|\+\\bigl\\\|\\mathcal\{C\}\(\\hat\{u\}\)\-\\mathcal\{C\}\(u\_\{s\}\)\\bigr\\\|\+\\mathcal\{C\}\(u\_\{s\}\)\.The first term is bounded byε𝒞\\varepsilon\_\{\\mathcal\{C\}\}by[Definition2](https://arxiv.org/html/2606.15053#Thmdefinition2), the second byL𝒞‖u^−us‖𝒰≤L𝒞εaeL\_\{\\mathcal\{C\}\}\\\|\\hat\{u\}\-u\_\{s\}\\\|\_\{\\mathcal\{U\}\}\\leq L\_\{\\mathcal\{C\}\}\\,\\varepsilon\_\{\\mathrm\{ae\}\}, and𝒞\(us\)≤0\\mathcal\{C\}\(u\_\{s\}\)\\leq 0\. Taking the positive part, combining, and taking the supremum over\(t,s,us\)∈\[T0,Tend\]2×𝒦\(t,s,u\_\{s\}\)\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]^\{2\}\\times\\mathcal\{K\}yields the stated bound\. ∎
### 3\.3Physics\-conforming latent flow
The bound of[Theorem3](https://arxiv.org/html/2606.15053#Thmtheorem3)shows that physics conformity is not a post\-processing property of an accurate trajectory surrogate, but a design principle for the latent twin itself\. The design of𝒞Z\\mathcal\{C\}\_\{Z\}is therefore inseparable from the design ofms→tm\_\{s\\to t\}:𝒞Z\\mathcal\{C\}\_\{Z\}should approximate the decoder\-induced pullback of the physical quantity𝒞\\mathcal\{C\}, whilems→tm\_\{s\\to t\}should belong to a class that preserves or dissipates𝒞Z\\mathcal\{C\}\_\{Z\}by construction or with controlled violation\. Thus the admissible latent constraints are determined simultaneously by the geometry of the reconstruction map and by the algebraic or geometric structure of the latent flow\.
Figure 1:Schematic of a Physics\-conforming Latent Twin\. The encodereemaps a stateu\(s\)∈𝒰u\(s\)\\in\\mathcal\{U\}to a latent statezs∈𝒵z\_\{s\}\\in\\mathcal\{Z\}, the latent flowms→tm\_\{s\\to t\}propagateszsz\_\{s\}toztz\_\{t\}, and the decoderddmaps the latent states back to reconstructed or predicted states\. The structural functional𝒞\\mathcal\{C\}encodes a physical property in the state space, for example a conserved quantity or a dissipative functional\. A compatible latent constraint𝒞Z\\mathcal\{C\}\_\{Z\}realizes this structure in latent space, where it can be preserved or dissipated directly by the latent flow\. In this way, physics conformity is imposed on the latent evolution itself\.##### Latent constraints\.
The ideal latent constraint is the decoder\-induced pullback
𝒞Z⋆:=𝒞∘RN∘d\.\\mathcal\{C\}\_\{Z\}^\{\\star\}:=\\mathcal\{C\}\\circ R\_\{N\}\\circ d\.With this choice, the latent constraint agrees exactly with the physical constraint after decoding, so thatε𝒞=0\\varepsilon\_\{\\mathcal\{C\}\}=0and the compatibility term in the structure\-preserving bound vanishes; see[Remark2](https://arxiv.org/html/2606.15053#Thmremark2)\. In practice, however, this pullback is not known*a priori*, since the decoder is learned together with the latent representation\. One therefore chooses a tractable latent constraint𝒞Z\\mathcal\{C\}\_\{Z\}that approximates𝒞Z⋆\\mathcal\{C\}\_\{Z\}^\{\\star\}on the latent data manifold while belonging to a class that can be preserved or dissipated by the latent flow\.
This approximation requirement must be balanced with the structure of the latent flow\. A conservative latent constraint should satisfy
𝒞Z\(ms→t\(z\)\)=𝒞Z\(z\),\\mathcal\{C\}\_\{Z\}\(m\_\{s\\to t\}\(z\)\)=\\mathcal\{C\}\_\{Z\}\(z\),while a dissipative one should satisfy
𝒞Z\(ms→t\(z\)\)≤𝒞Z\(z\),s≤t\.\\mathcal\{C\}\_\{Z\}\(m\_\{s\\to t\}\(z\)\)\\leq\\mathcal\{C\}\_\{Z\}\(z\),\\qquad s\\leq t\.Thus𝒞Z\\mathcal\{C\}\_\{Z\}should both represent the physical quantity after decoding and belong to a class that the chosen latent flow can preserve or dissipate, see Figure[1](https://arxiv.org/html/2606.15053#S3.F1)\.
A natural starting point is the simplest setting in which the reconstruction map and the latent flow both have explicit linear structure\. The following result identifies this clean exact case: for a linear reconstruction map and a linear latent flow, linear and quadratic physical structures pull back to linear and quadratic latent constraints, and their preservation reduces to finite\-dimensional conditions on the latent flow\.
###### Proposition 4\(Exact realization of linear and quadratic constraints\)\.
LetZZbe a finite\-dimensional latent space and let𝒰\\mathcal\{U\}be the physical state space\. Suppose that the reconstruction map is linear,RN\(d\(z\)\)=𝒟zR\_\{N\}\(d\(z\)\)=\\mathcal\{D\}z, where𝒟:Z→𝒰\\mathcal\{D\}:Z\\to\\mathcal\{U\}is a bounded linear lifting operator, and let the latent flow be linear,ms→t\(z\)=As,tzm\_\{s\\to t\}\(z\)=A\_\{s,t\}z\.
1. 1\.If𝒞:𝒰→ℝ\\mathcal\{C\}:\\mathcal\{U\}\\to\\mathbb\{R\}is a continuous linear functional, then there exists a vectoraasuch that the decoder\-induced pullback is linear,𝒞Z⋆\(z\)=a⊤z\\mathcal\{C\}\_\{Z\}^\{\\star\}\(z\)=a^\{\\top\}z\. It is preserved by the latent flow for allz∈Zz\\in Zif and only ifAs,t⊤a=aA\_\{s,t\}^\{\\top\}a=a\.
2. 2\.If𝒞\(u\)=B𝒰\(u,u\)\\mathcal\{C\}\(u\)=B\_\{\\mathcal\{U\}\}\(u,u\)withB𝒰:𝒰×𝒰→ℝB\_\{\\mathcal\{U\}\}:\\mathcal\{U\}\\times\\mathcal\{U\}\\to\\mathbb\{R\}a continuous symmetric bilinear form, then there exists a symmetric matrixQZQ\_\{Z\}such that the decoder\-induced pullback satisfies𝒞Z⋆\(z\)=z⊤QZz\\mathcal\{C\}\_\{Z\}^\{\\star\}\(z\)=z^\{\\top\}Q\_\{Z\}z\. It is preserved by the latent flow for allz∈Zz\\in Zif and only ifAs,t⊤QZAs,t=QZA\_\{s,t\}^\{\\top\}Q\_\{Z\}A\_\{s,t\}=Q\_\{Z\}, and it is dissipated fors≤ts\\leq tif and only ifAs,t⊤QZAs,t⪯QZA\_\{s,t\}^\{\\top\}Q\_\{Z\}A\_\{s,t\}\\preceq Q\_\{Z\}\.
###### Proof\.
We prove the two cases separately\.
1. 1\.Since𝒞\\mathcal\{C\}is linear and𝒟\\mathcal\{D\}is linear, the decoder\-induced pullback𝒞Z⋆\(z\)=𝒞\(𝒟z\)\\mathcal\{C\}\_\{Z\}^\{\\star\}\(z\)=\\mathcal\{C\}\(\\mathcal\{D\}z\)is a linear functional on the finite\-dimensional spaceZZ\. Hence there exists a vectoraasuch that𝒞Z⋆\(z\)=a⊤z\\mathcal\{C\}\_\{Z\}^\{\\star\}\(z\)=a^\{\\top\}z\. Preservation underms→t\(z\)=As,tzm\_\{s\\to t\}\(z\)=A\_\{s,t\}zis equivalent toa⊤As,tz=a⊤za^\{\\top\}A\_\{s,t\}z=a^\{\\top\}zfor allz∈Zz\\in Z, which holds if and only ifAs,t⊤a=aA\_\{s,t\}^\{\\top\}a=a\.
2. 2\.SinceB𝒰B\_\{\\mathcal\{U\}\}is symmetric bilinear and𝒟\\mathcal\{D\}is linear, the decoder\-induced pullback𝒞Z⋆\(z\)=B𝒰\(𝒟z,𝒟z\)\\mathcal\{C\}\_\{Z\}^\{\\star\}\(z\)=B\_\{\\mathcal\{U\}\}\(\\mathcal\{D\}z,\\mathcal\{D\}z\)is a quadratic form on the finite\-dimensional spaceZZ\. Therefore, after choosing coordinates onZZ, there exists a symmetric matrixQZQ\_\{Z\}such that𝒞Z⋆\(z\)=z⊤QZz\\mathcal\{C\}\_\{Z\}^\{\\star\}\(z\)=z^\{\\top\}Q\_\{Z\}z\. Preservation is equivalent toz⊤As,t⊤QZAs,tz=z⊤QZzz^\{\\top\}A\_\{s,t\}^\{\\top\}Q\_\{Z\}A\_\{s,t\}z=z^\{\\top\}Q\_\{Z\}zfor allz∈Zz\\in Z, which holds if and only ifAs,t⊤QZAs,t=QZA\_\{s,t\}^\{\\top\}Q\_\{Z\}A\_\{s,t\}=Q\_\{Z\}\. The dissipative condition follows similarly fromz⊤\(As,t⊤QZAs,t−QZ\)z≤0z^\{\\top\}\(A\_\{s,t\}^\{\\top\}Q\_\{Z\}A\_\{s,t\}\-Q\_\{Z\}\)z\\leq 0for allz∈Zz\\in Z\.
∎
For nonlinear neural\-network decoders, the exact result should be read as a local design principle\. Near the latent data manifold, nonlinear reconstruction maps may be approximated by affine maps, and piecewise affine networks, such as ReLU networks, have this structure exactly on each activation region\. Thus linear and quadratic physical functionals motivate affine and quadratic latent constraints even when the global decoder is nonlinear\.
##### Latent flow parameterizations\.
The preceding discussion identifies which latent constraints are natural from the reconstruction side\. We now briefly describe how different choices of the latent flow support their enforcement\.
A general neural parameterization of the latent flowms→tm\_\{s\\to t\}is the most expressive choice\. In this case, conservation or dissipation is usually imposed at the trajectory\-level, for example by penalizing deviations of𝒞Z\(ms→t\(zs\)\)\\mathcal\{C\}\_\{Z\}\(m\_\{s\\to t\}\(z\_\{s\}\)\)from𝒞Z\(zs\)\\mathcal\{C\}\_\{Z\}\(z\_\{s\}\), or by using a one\-sided penalty for dissipative constraints\. This allows flexible dynamics, but exact preservation is generally not guaranteed away from the sampled training pairs\.
A useful reference case for operator\-level enforcement is the exponential latent flow
ms→t\(z\)=exp\(\(t−s\)W\)z\.m\_\{s\\to t\}\(z\)=\\exp\(\(t\-s\)W\)z\.This form preserves the semigroup structure,mr→t∘ms→r=ms→tm\_\{r\\to t\}\\circ m\_\{s\\to r\}=m\_\{s\\to t\}fors≤r≤ts\\leq r\\leq t, and turns structure preservation into generator\-level conditions\. For example, conservation of a linear latent quantitya⊤za^\{\\top\}zcorresponds toa⊤W=0a^\{\\top\}W=0, while conservation or dissipation of a quadratic latent quantityz⊤QZzz^\{\\top\}Q\_\{Z\}zcorresponds to conditions onW⊤QZ\+QZWW^\{\\top\}Q\_\{Z\}\+Q\_\{Z\}W\. These operator\-level conditions are summarized in[Table1](https://arxiv.org/html/2606.15053#S3.T1)\.
The same time\-consistency idea can be combined with nonlinear coordinates by conjugation\. LetV:Z→ZV:Z\\to Zbe an invertible neural network and letφs→t\\varphi\_\{s\\to t\}be a simpler latent flow satisfyingφr→t∘φs→r=φs→t\\varphi\_\{r\\to t\}\\circ\\varphi\_\{s\\to r\}=\\varphi\_\{s\\to t\}\. Then
ms→t=V∘φs→t∘V−1m\_\{s\\to t\}=V\\circ\\varphi\_\{s\\to t\}\\circ V^\{\-1\}inherits the same composition property\. Constraints may be imposed in the transformed coordinate and pulled back throughV−1V^\{\-1\}, allowing nonlinear latent dynamics while retaining an analytically controlled inner flow\. In particular, a quadratic invariant in the transformed coordinate generally becomes a nonlinear invariant in the original latent coordinate\.
The constraint may be enforced at different levels\. At the architectural level, the latent flow is parameterized so that the desired property holds identically, for example by choosing a skew\-symmetric or dissipative generator\. At the operator\-regularization level, one penalizes algebraic violations such asa⊤Wa^\{\\top\}WorW⊤QZ\+QZWW^\{\\top\}Q\_\{Z\}\+Q\_\{Z\}W\. At the trajectory level, one penalizes violations evaluated on sampled latent pairs, such as𝒞Z\(ms→t\(zs\)\)−𝒞Z\(zs\)\\mathcal\{C\}\_\{Z\}\(m\_\{s\\to t\}\(z\_\{s\}\)\)\-\\mathcal\{C\}\_\{Z\}\(z\_\{s\}\)\. These choices trade expressiveness against exactness: architectural constraints give the strongest guarantees, while trajectory\-level penalties are more flexible but only enforce the property on sampled data\.
[Table1](https://arxiv.org/html/2606.15053#S3.T1)summarizes the preceding design choices by listing representative physical functionals, compatible latent constraint classes, and corresponding operator\- or trajectory\-level realizations\.
Table 1:Representative physical structures and compatible latent\-space realizations\. Each column displays one constraint type in isolation, although practical models may combine several structures\. The examples are written in PDE notation, where physical quantities are naturally expressed as spatial functionals over a domainΩ\\Omega, but the same linear, quadratic, and monotone structures also arise for ODEs, iterative optimization dynamics, and other evolutionary or sequential systems\. “Lyapunov\-type” refers to a functional whose value is nonincreasing along admissible trajectories\. Operator\-level realizations are shown for the exponential linear latent flowms→t\(z\)=exp\(\(t−s\)W\)zm\_\{s\\to t\}\(z\)=\\exp\(\(t\-s\)W\)z; other latent\-flow classes may admit analogous structure\-preserving parameterizations\. In the enstrophy example,ω=∇×u\\omega=\\nabla\\times udenotes the vorticity of the velocity field\.\\columncolorLTLabel\\rowcolorLTLabel\\columncolorLTLinear\\cellcolorLTLinearLinear\\columncolorLTQuadratic\\cellcolorLTQuadraticQuadratic\\columncolorLTMonotone\\cellcolorLTMonotoneMonotone\\columncolorLTLabelExample physical functional\\columncolorLTLinear𝒞\(u\)=∫Ωu\(ξ\)dξ\\mathcal\{C\}\(u\)=\\int\_\{\\Omega\}u\(\\xi\)\\,\\mathrm\{d\}\\xi\\columncolorLTQuadratic𝒞\(u\)=∫Ω\|u\(ξ\)\|2dξ\\displaystyle\\mathcal\{C\}\(u\)=\\int\_\{\\Omega\}\|u\(\\xi\)\|^\{2\}\\,\\mathrm\{d\}\\xi𝒞\(u\)=∫Ω\|ω\(ξ\)\|2dξ\\displaystyle\\mathcal\{C\}\(u\)=\\int\_\{\\Omega\}\|\\omega\(\\xi\)\|^\{2\}\\,\\mathrm\{d\}\\xi\\columncolorLTMonotone𝒞\(u\)=∫Ωu\(ξ\)logu\(ξ\)dξ\\mathcal\{C\}\(u\)=\\int\_\{\\Omega\}u\(\\xi\)\\log u\(\\xi\)\\,\\mathrm\{d\}\\xi\\columncolorLTLabelDesired property\\columncolorLTLinear𝒞\(u\(t\)\)=𝒞\(u\(s\)\)\\mathcal\{C\}\(u\(t\)\)=\\mathcal\{C\}\(u\(s\)\)\\columncolorLTQuadratic𝒞\(u\(t\)\)=𝒞\(u\(s\)\)\\mathcal\{C\}\(u\(t\)\)=\\mathcal\{C\}\(u\(s\)\)\\columncolorLTMonotone𝒞\(u\(t\)\)≤𝒞\(u\(s\)\)fors≤t\\mathcal\{C\}\(u\(t\)\)\\leq\\mathcal\{C\}\(u\(s\)\)\\text\{ for \}s\\leq t\\columncolorLTLabelCompatible latent constraint\\columncolorLTLinear𝒞Z\(z\)=a⊤z\+b\\mathcal\{C\}\_\{Z\}\(z\)=a^\{\\top\}z\+b\\columncolorLTQuadratic𝒞Z\(z\)=z⊤QZz\+a⊤z\+b\\mathcal\{C\}\_\{Z\}\(z\)=z^\{\\top\}Q\_\{Z\}z\+a^\{\\top\}z\+b\\columncolorLTMonotone𝒞Z:Z→ℝ\\mathcal\{C\}\_\{Z\}:Z\\to\\mathbb\{R\}Lyapunov\-typelatent functional\\columncolorLTLabelOperator\-level realization\\columncolorLTLineara⊤W=0a^\{\\top\}W=0\\columncolorLTQuadraticW⊤QZ\+QZW=0W^\{\\top\}Q\_\{Z\}\+Q\_\{Z\}W=0\\columncolorLTMonotoneW\+W⊤⪯0W\+W^\{\\top\}\\preceq 0\\columncolorLTLabelTrajectory\-level realization\\columncolorLTLinear𝒞Z\(ms→t\(zs\)\)\\displaystyle\\mathcal\{C\}\_\{Z\}\(m\_\{s\\to t\}\(z\_\{s\}\)\)=𝒞Z\(zs\)\\displaystyle\\hskip 19\.37492pt=\\mathcal\{C\}\_\{Z\}\(z\_\{s\}\)\\columncolorLTQuadratic𝒞Z\(ms→t\(zs\)\)\\displaystyle\\mathcal\{C\}\_\{Z\}\(m\_\{s\\to t\}\(z\_\{s\}\)\)=𝒞Z\(zs\)\\displaystyle\\hskip 19\.37492pt=\\mathcal\{C\}\_\{Z\}\(z\_\{s\}\)\\columncolorLTMonotone𝒞Z\(ms→t\(zs\)\)≤𝒞Z\(zs\)\\mathcal\{C\}\_\{Z\}\(m\_\{s\\to t\}\(z\_\{s\}\)\)\\leq\\mathcal\{C\}\_\{Z\}\(z\_\{s\}\)fors≤ts\\leq t
## 4Numerics
The numerical experiments are designed to assess how Physics\-conforming Latent Twins encode and preserve structure across representative ODE and PDE benchmarks\. The goal is not to provide an exhaustive comparison, but to demonstrate how different physical structures can be incorporated into latent solution operators and how such constraints affect prediction accuracy, stability, extrapolation, and qualitative physical consistency\.
We first introduce the shared training setup, notation, and loss formulation in[Section4\.1](https://arxiv.org/html/2606.15053#S4.SS1)\. The ODE experiments in[Section4\.2](https://arxiv.org/html/2606.15053#S4.SS2)proceed from linear to nonlinear and dissipative dynamics\. In the linear setting, we compare Latent Twins with POD and DMD on stable oscillatory systems\. For nonlinear dynamics, we study the multigroup SIR model and the undamped pendulum, which illustrate soft enforcement of a linear conservation law and hard enforcement of a quadratic latent invariant, respectively\. The pendulum example also includes a comparison with a physics\-informed neural network baseline\. We then consider gradient\-flow dynamics from optimization as a dissipative benchmark\. Finally,[Section4\.3](https://arxiv.org/html/2606.15053#S4.SS3)turns to canonical heat and wave equations, which test the framework on high\-dimensional spatially discretized PDEs with dissipative and conservative structure\.
### 4\.1Computational experiment setup
Throughout the experiments, we follow the Latent Twin training setup and learn the latent representation and the time\-evolution surrogate jointly\. Given trajectories of a dynamical system, we form training pairs\{\(xsj,sj\),\(xtj,tj\)\}j=1J\\left\\\{\(x\_\{s\}^\{j\},s^\{j\}\),\(x\_\{t\}^\{j\},t^\{j\}\)\\right\\\}\_\{j=1\}^\{J\}, wherexsjx\_\{s\}^\{j\}andxtjx\_\{t\}^\{j\}are states from the same trajectory evaluated at two time pointssj,tj∈\[T0,Tend\]s^\{j\},t^\{j\}\\in\[T\_\{0\},T\_\{\\mathrm\{end\}\}\]\. In the PDE examples, these states correspond to finite\-dimensional projections of the underlying solution, e\.g\.,xsj=RN\(u\(sj\)\)x\_\{s\}^\{j\}=R\_\{N\}\(u\(s^\{j\}\)\)andxtj=RN\(u\(tj\)\)x\_\{t\}^\{j\}=R\_\{N\}\(u\(t^\{j\}\)\)\. The time pairs are sampled uniformly from the interval of interest, though other sampling strategies may also be used\.
For all ODE examples considered in this section, trajectories are generated usingscipy\.integrate\.odeintwithnt=20000n\_\{t\}=20000uniformly spaced time steps and tolerancesatol=10−12\\mathrm\{atol\}=10^\{\-12\}andrtol=10−10\\mathrm\{rtol\}=10^\{\-10\}\. From the resulting trajectories, we constructJ=215J=2^\{15\}state pairs, of which0\.8J0\.8Jare used for training and0\.2J0\.2Jfor testing\. Unless stated otherwise, all models are trained with batch size256256\. For the PDE examples, trajectories are generated using the spectral solverDedalus\[burns2020dedalus\]on a periodic domain with randomized smooth initial conditions; details are given in[Section4\.3](https://arxiv.org/html/2606.15053#S4.SS3)\.
The training objective combines an autoencoder reconstruction loss, a prediction loss, and, depending on the numerical setup, an additional conformity loss that encodes the desired physical structure\. We write the total empirical loss as
ℒtotal\(θ\)=λautoℒauto\(θ\)\+λpredℒpred\(θ\)\+λconfℒconf\(θ\),\\mathcal\{L\}\_\{\\mathrm\{total\}\}\(\\theta\)=\\lambda\_\{\\mathrm\{auto\}\}\\mathcal\{L\}\_\{\\mathrm\{auto\}\}\(\\theta\)\+\\lambda\_\{\\mathrm\{pred\}\}\\mathcal\{L\}\_\{\\mathrm\{pred\}\}\(\\theta\)\+\\lambda\_\{\\mathrm\{conf\}\}\\mathcal\{L\}\_\{\\mathrm\{conf\}\}\(\\theta\),\(4\)where the first two terms are, in our numerical experiments, chosen as squaredℓ2\\ell^\{2\}losses,
ℒauto\(θ\)=12J∑j=1J‖dθ\(eθ\(xsj\)\)−xsj‖22\+12J∑j=1J‖dθ\(eθ\(xtj\)\)−xtj‖22,\\mathcal\{L\}\_\{\\mathrm\{auto\}\}\(\\theta\)=\\tfrac\{1\}\{2J\}\\sum\_\{j=1\}^\{J\}\\left\\\|d\_\{\\theta\}\(e\_\{\\theta\}\(x\_\{s\}^\{j\}\)\)\-x\_\{s\}^\{j\}\\right\\\|\_\{2\}^\{2\}\+\\tfrac\{1\}\{2J\}\\sum\_\{j=1\}^\{J\}\\left\\\|d\_\{\\theta\}\(e\_\{\\theta\}\(x\_\{t\}^\{j\}\)\)\-x\_\{t\}^\{j\}\\right\\\|\_\{2\}^\{2\},and
ℒpred\(θ\)=1J∑j=1J‖dθ\(mθ,sj→tj\(eθ\(xsj\)\)\)−xtj‖22\.\\mathcal\{L\}\_\{\\mathrm\{pred\}\}\(\\theta\)=\\tfrac\{1\}\{J\}\\sum\_\{j=1\}^\{J\}\\left\\\|d\_\{\\theta\}\\\!\\left\(m\_\{\\theta,s^\{j\}\\to t^\{j\}\}\(e\_\{\\theta\}\(x\_\{s\}^\{j\}\)\)\\right\)\-x\_\{t\}^\{j\}\\right\\\|\_\{2\}^\{2\}\.Recall,θ\\thetadenotes the trainable parameters of the encoder, decoder, and latent flow\. Sinceℒpred\\mathcal\{L\}\_\{\\mathrm\{pred\}\}measures an error along the learned trajectory map, other norms may also be natural\. In particular, anℓ1\\ell^\{1\}loss can provide a more directly interpretable accumulated trajectory discrepancy\. For simplicity and consistency across the experiments, however, we use squaredℓ2\\ell^\{2\}losses in the numerical investigations below\. The conformity termℒconf\\mathcal\{L\}\_\{\\mathrm\{conf\}\}depends on the physical structure of the underlying system, as discussed in[Section3\.3](https://arxiv.org/html/2606.15053#S3.SS3), and on whether the constraint is imposed implicitly\. We set the weightsλauto=λpred=1\\lambda\_\{\\mathrm\{auto\}\}=\\lambda\_\{\\mathrm\{pred\}\}=1, andλconf\\lambda\_\{\\mathrm\{conf\}\}is chosen separately for each experiment\. When the desired structure can be enforced exactly, the conformity term may be replaced by a hard architectural constraint on the latent mapms→tm\_\{s\\to t\}andλconf=0\\lambda\_\{\\textrm\{conf\}\}=0\. This general setup is intentionally kept simple\. Additional terms, such as semigroup\-consistency losses, regularization of the encoder and decoder, or state\-space penalties on decoded physical quantities, can be incorporated naturally\. In the present numerical section, however, we focus on the minimal modifications needed to demonstrate the effect of physics\-conforming latent dynamics\. Remaining experiment\-specific architectures, data generation procedures, constraint choices, and evaluation metrics are described in the corresponding subsections\. To support reproducibility, demonstration code is publicly available on[GitHub](https://github.com/matthiaschung/physics-conforming-latent-twins)\(available upon acceptance\)\.
### 4\.2ODE benchmarks
We consider four ODE benchmarks that progress from linear conservative dynamics to nonlinear, Hamiltonian, and dissipative systems, thereby illustrating different strategies for imposing latent constraints\. In[Section4\.2\.1](https://arxiv.org/html/2606.15053#S4.SS2.SSS1), we study a linear harmonic oscillator and compare the resulting Latent Twin with POD and DMD baselines\. In[Section4\.2\.2](https://arxiv.org/html/2606.15053#S4.SS2.SSS2), we turn to a nonlinear multigroup SIR model, where total\-population conservation is encoded through a softly enforced linear latent constraint\. In[Section4\.2\.3](https://arxiv.org/html/2606.15053#S4.SS2.SSS3), we consider the undamped pendulum, using a hard Hamiltonian architectural constraint to enforce a quadratic latent invariant, together with an additional comparison against a PINN baseline\. Finally,[Section4\.2\.4](https://arxiv.org/html/2606.15053#S4.SS2.SSS4)studies the Rosenbrock gradient flow as a dissipative benchmark, in which monotone energy decay provides the relevant physics\-conforming structure\.
#### 4\.2\.1Harmonic oscillator
We train our Physics\-conforming Latent Twins on stable linear ODE systems of the form
whereMMhas purely imaginary eigenvalues, so the system exhibits energy\-preserving oscillations\. We consider a high\-dimensional system withnx=100n\_\{x\}=100, where the dynamics admit a low\-rank representationM=U⊤AUM=U^\{\\top\}AU, withU∈ℝ10×100U\\in\\mathbb\{R\}^\{10\\times 100\}having orthonormal rows andA∈ℝ10×10A\\in\\mathbb\{R\}^\{10\\times 10\}skew\-symmetric\. The initial condition is drawn randomly asx0∼𝒰\(\[0,1\]nx\)x\_\{0\}\\sim\\mathcal\{U\}\(\[0,1\]^\{n\_\{x\}\}\)and trajectories are integrated overt∈\[0,10\]t\\in\[0,10\]\.
In parallel to the Proper Orthogonal Decomposition \(POD\) convention, we choose a linear projection encoderP∈ℝ10×100P\\in\\mathbb\{R\}^\{10\\times 100\}with orthonormal rows and decoderP⊤P^\{\\top\}, yielding the projected latent twin model
Ψ\(t,s,xs\)=P⊤exp\(\(t−s\)W\)Pxs\.\\Psi\(t,s,x\_\{s\}\)=P^\{\\top\}\\exp\(\(t\-s\)W\)Px\_\{s\}\.\(6\)
To promote the energy\-preserving structure, we enforce skew\-symmetry of the learned latent operatorWWthrough a soft\-constraining regularization term
ℒconf=∥W\+W⊤∥F2,λconf=10−3\.\\mathcal\{L\}\_\{\\textrm\{conf\}\}=\\lVert W\+W^\{\\top\}\\rVert\_\{\\textrm\{F\}\}^\{2\},\\qquad\\lambda\_\{\\textrm\{conf\}\}=10^\{\-3\}\.\(7\)The Physics\-conforming Latent Twins is trained for200200epochs using Adam with fixed learning rate10−310^\{\-3\}\.
We compare the Physics\-conforming Latent Twins against two classical reduced\-order modeling methods\. POD projects the dynamics onto the leadingr=10r=10empirical modes extracted from the training trajectories and integrates the projected system forward in time\. In this particular setting, the POD solution serves as an optimal achievable projection benchmark for models of the form[Equation6](https://arxiv.org/html/2606.15053#S4.E6)\. Dynamic Mode Decomposition \(DMD\) identifies a best\-fit linear operator directly from snapshot pairs in the original state space and uses it for prediction\. Both baselines use the same training data as the Physics\-conforming Latent Twins \(trajectory before training pair selection\)\.
The results are presented in[Figure2](https://arxiv.org/html/2606.15053#S4.F2)\. POD provides a favorable benchmark because it directly projects onto the dominant invariant subspace of the dynamics and therefore achieves near machine\-precision error \(≈10−7\\approx 10^\{\-7\}\)\. While the error of DMD grows to approximately10−210^\{\-2\}over the prediction horizon, the Physics\-conforming Latent Twins maintains stable errors around10−310^\{\-3\}\. This stability indicates that the learned latent flow captures the long\-time oscillatory structure of the system from paired state observations, without requiring explicit access to the governing matrix\.
Figure 2:Comparison of the Physics\-conforming Latent Twin, POD, and DMD on the stable linear ODEx′=Mxx^\{\\prime\}=Mxwith ambient dimensionnx=100n\_\{x\}=100and intrinsic dimensionr=10r=10\. POD provides an optimal projection benchmark in this constructed low\-rank linear setting\.
#### 4\.2\.2SIR
We consider a multigroup SIR \(Susceptible\-Infected\-Recovered\) system withn=20n=20coupled groups, giving a state dimension of6060\[hethcote2000mathematics\]\. Each group evolves according to
Si′=−βiSiλi,Ii′=βiSiλi−γiIi,Ri′=γiIi,S\_\{i\}^\{\\prime\}=\-\\beta\_\{i\}S\_\{i\}\\lambda\_\{i\},\\qquad I\_\{i\}^\{\\prime\}=\\beta\_\{i\}S\_\{i\}\\lambda\_\{i\}\-\\gamma\_\{i\}I\_\{i\},\\qquad R\_\{i\}^\{\\prime\}=\\gamma\_\{i\}I\_\{i\},whereλi=∑jMijIj\\lambda\_\{i\}=\\sum\_\{j\}M\_\{ij\}I\_\{j\}is the force of infection by the mixing matrixM∈ℝn×nM\\in\\mathbb\{R\}^\{n\\times n\}\. The mixing matrix is constructed with rankr=3r=3, introduction low\-rank coupling between groups\. Transmission and recovery rates are drawn independently asβi∼𝒰\(0\.15,0\.45\)\\beta\_\{i\}\\sim\\mathcal\{U\}\(0\.15,0\.45\)andγi∼𝒰\(0\.05,0\.25\)\\gamma\_\{i\}\\sim\\mathcal\{U\}\(0\.05,0\.25\)\. Initial conditions are sampled fromSi\(0\)∼𝒰\(0\.7,0\.99\)S\_\{i\}\(0\)\\sim\\mathcal\{U\}\(0\.7,0\.99\),Ii\(0\)∼𝒰\(0\.005,0\.02\)I\_\{i\}\(0\)\\sim\\mathcal\{U\}\(0\.005,0\.02\), andRi\(0\)=1−Si\(0\)−Ii\(0\)R\_\{i\}\(0\)=1\-S\_\{i\}\(0\)\-I\_\{i\}\(0\)\. Trajectories are integrated overt∈\[0,60\]t\\in\[0,60\]\.
The SIR dynamics evolve on a nonlinear manifold, so a linear autoencoder as utilized in[Section4\.2\.1](https://arxiv.org/html/2606.15053#S4.SS2.SSS1), is insufficient for accurate long\-horizon prediction as shown in[Figure3\(a\)](https://arxiv.org/html/2606.15053#S4.F3.sf1)\. We therefore adopt a nonlinear autoencoder\. The encoder and decoder are fully connected multilayer perceptrons withtanh\\tanhactivations\. The encoder uses the width schedule60→16→8→nz60\\to 16\\rightarrow 8\\rightarrow n\_\{z\}and the decoder mirrors this architecture\. We setnz=3n\_\{z\}=3\. The latent dynamics are modeled by the linear exponential flowzt=exp\(\(t−s\)W\)zsz\_\{t\}=\\exp\(\(t\-s\)W\)z\_\{s\}\. Thus, the nonlinear autoencoder provides the expressive embedding, while the latent evolution remains linear and structure\-constrained\.
The SIR system preserves total population, i\.e\.,∑iSi′\+Ii′\+Ri′=0\\sum\_\{i\}S\_\{i\}^\{\\prime\}\+I\_\{i\}^\{\\prime\}\+R\_\{i\}^\{\\prime\}=0, which in the state space corresponds to a linear constraint\. Following[Table1](https://arxiv.org/html/2606.15053#S3.T1), we encode this linear conservation structure through a soft regularization term that penalizes violations of the corresponding latent invariant:
ℒconf=∥W⊤𝟏∥22,λconf=10−2\.\\mathcal\{L\}\_\{\\mathrm\{conf\}\}=\\lVert W^\{\\top\}\\mathbf\{1\}\\rVert\_\{2\}^\{2\},\\qquad\\lambda\_\{\\text\{conf\}\}=10^\{\-2\}\.As shown in[Figure3\(b\)](https://arxiv.org/html/2606.15053#S4.F3.sf2), the nonlinear autoencoder provides a representation in which the SIR dynamics are well captured by a linear exponential latent flow over the training horizon\. The contrast with the linear autoencoder indicates that the main limitation is not the use of a linear latent flow, but the expressiveness of the embedding used to represent the nonlinear SIR solution manifold\.
\(a\)Linear autoencoder
\(b\)Nonlinear autoencoder
Figure 3:95% prediction\-error bands for the SIR experiments\. \(a\) Linear autoencoder:xt=P⊤exp\(\(t−s\)W\)Pxsx\_\{t\}=P^\{\\top\}\\exp\(\(t\-s\)W\)Px\_\{s\}\. \(b\) Nonlinear autoencoder:xt=\(d∘exp\(\(t−s\)W\)∘e\)\(xs\)x\_\{t\}=\(d\\circ\\exp\(\(t\-s\)W\)\\circ e\)\(x\_\{s\}\)\. Notice that the error magnitudes of nonlinear model is approximately two orders of magnitude smaller than the linear one\.We also compare against POD and DMD using the same reduced dimensionnz=3n\_\{z\}=3\. POD is computed from the leading empirical modes and uses the projected right\-hand side, making it equation\-aware\[rowley2004model\]\. DMD instead identifies a best\-fit linear evolution operator from snapshot data\. In contrast, the Latent Twin learns both the nonlinear representation and the latent evolution directly from paired state observations\.
The comparison results are shown in[Figure4](https://arxiv.org/html/2606.15053#S4.F4)\. POD is equation\-aware, since it uses the projected right\-hand side, while DMD is fit directly from the full snapshot trajectory\. The Latent Twin nevertheless outperforms both baselines\. This improvement reflects the advantage of learning the representation and latent evolution jointly: the nonlinear encoder–decoder captures the curved SIR solution manifold, while the physics\-conforming latent operator exploits the low\-rank coupling structure without requiring explicit knowledge of the governing equations\.
Figure 4:Relative prediction errors for the Physics\-conforming Latent Twin, POD, and DMD on the multigroup SIR system withnx=60n\_\{x\}=60and reduced dimensionnz=3n\_\{z\}=3\. The Latent Twin achieves lower error by combining a nonlinear state representation with a structure\-regularized latent evolution\.
#### 4\.2\.3Undamped pendulum
We next consider the undamped pendulum
θ′=ω,ω′=−glsinθ,\\theta^\{\\prime\}=\\omega,\\qquad\\omega^\{\\prime\}=\-\\frac\{g\}\{l\}\\sin\\theta,withl=1l=1,g=9\.8g=9\.8, initial state\(θ,ω\)=\(π/4,0\)\(\\theta,\\omega\)=\(\\pi/4,0\), and training horizont∈\[0,10\]t\\in\[0,10\]\. The pendulum is a conservative Hamiltonian system with nonlinear physical energy
H\(θ,ω\)=12ω2\+gl\(1−cosθ\)\.H\(\\theta,\\omega\)=\\frac\{1\}\{2\}\\omega^\{2\}\+\\frac\{g\}\{l\}\\bigl\(1\-\\cos\\theta\\bigr\)\.This makes the example qualitatively different from the SIR experiment: the conserved quantity is not a linear functional of the state, so representing it through a simple linear constraint on the latent generator would require the encoder and decoder to absorb the nonlinear geometry of the Hamiltonian\. Instead, we impose a quadratic latent invariant as a tractable compatible surrogate for the decoder\-induced pullback of the physical Hamiltonian\.
Specifically, we use a linear exponential latent flowzt=exp\(\(t−s\)W\)zsz\_\{t\}=\\exp\(\(t\-s\)W\)z\_\{s\}and enforce preservation of the latent quadratic energyEZ\(z\)=12z⊤QZzE\_\{Z\}\(z\)=\\frac\{1\}\{2\}z^\{\\top\}Q\_\{Z\}z, withQZ=QZ⊤≻0Q\_\{Z\}=Q\_\{Z\}^\{\\top\}\\succ 0\. A sufficient condition for exact preservation ofEZE\_\{Z\}isW⊤QZ\+QZW=0W^\{\\top\}Q\_\{Z\}\+Q\_\{Z\}W=0\. We impose this condition as a hard architectural constraint by parameterizing
W=JQZ,J⊤=−J,QZ=B⊤B\+εI,W=JQ\_\{Z\},\\qquad J^\{\\top\}=\-J,\\qquad Q\_\{Z\}=B^\{\\top\}B\+\\varepsilon I,whereBBis trainable andε=10−4\\varepsilon=10^\{\-4\}\. Then, along any latent trajectory,
ddtEZ\(z\(t\)\)=z\(t\)⊤QZWz\(t\)=z\(t\)⊤QZJQZz\(t\)=0,\\frac\{\\mathrm\{d\}\}\{\\mathrm\{d\}t\}E\_\{Z\}\(z\(t\)\)=z\(t\)^\{\\top\}Q\_\{Z\}Wz\(t\)=z\(t\)^\{\\top\}Q\_\{Z\}JQ\_\{Z\}z\(t\)=0,becauseQZJQZQ\_\{Z\}JQ\_\{Z\}is skew\-symmetric\. Thus the latent quadratic energy is conserved exactly by construction and no additional conformity penalty is needed, i\.e\.,λconf=0\\lambda\_\{\\mathrm\{conf\}\}=0\.
We compare three models\. The first is an unconstrained Latent Twins with the same encoder–decoder architecture and exponential latent flow, but with an unconstrained latent generatorWW\. The second is the Physics\-conforming Latent Twins described above\. Both Latent Twins models use a nonlinear encoder\-decoder with latent dimensionnz=6n\_\{z\}=6and are trained on2152^\{15\}randomly sampled state pairs\{\(xs,s\),\(xt,t\)\}\\\{\(x\_\{s\},s\),\(x\_\{t\},t\)\\\}from the interval\[0,10\]\[0,10\]\. The loss combines reconstruction and bidirectional prediction terms, and the models are trained for100100epochs\. Each Latent Twins model has only508508trainable parameters\. Importantly, the Latent Twins models are not given the pendulum differential equation; they only see paired trajectory data\.
As a reference physics\-informed baseline, we also train a physics\-informed neural network \(PINN\) in the sense of\[raissi2019physics\]\. The PINN represents the full trajectory directly as a map
ΨPINN:t↦\(θη\(t\),ωη\(t\)\)\\Psi\_\{\\mathrm\{PINN\}\}:t\\mapsto\\bigl\(\\theta\_\{\\eta\}\(t\),\\omega\_\{\\eta\}\(t\)\\bigr\)using a fully connected network with four hidden layers,6464neurons per layer, andtanh\\tanhactivations\. Its loss penalizes the residuals
r1\(t\)=∂tθη\(t\)−ωη\(t\),r2\(t\)=∂tωη\(t\)\+glsin\(θη\(t\)\),r\_\{1\}\(t\)=\\partial\_\{t\}\\theta\_\{\\eta\}\(t\)\-\\omega\_\{\\eta\}\(t\),\\qquad r\_\{2\}\(t\)=\\partial\_\{t\}\\omega\_\{\\eta\}\(t\)\+\\frac\{g\}\{l\}\\sin\(\\theta\_\{\\eta\}\(t\)\),at500500collocation points in\[0,10\]\[0,10\], together with a supervised data term on2020early\-time samples from\[0,2\]\[0,2\]\. We use Adam with learning rate10−310^\{\-3\}for100,000100,000iterations and weight the data term by100100\. Time is normalized to\[0,1\]\[0,1\]during training\. Since the PINN uses sparse supervised trajectory data but has access to the governing equation, whereas the Latent Twins uses paired state data without equation residuals, the comparison should be understood as a qualitative comparison of extrapolation behavior rather than a strict data\-efficiency benchmark\. The PINN has12,73812\{,\}738trainable parameters, compared with508508parameters for each Latent Twins model\.
[Figure5](https://arxiv.org/html/2606.15053#S4.F5)shows the resulting predictions on the extended interval\[0,15\]\[0,15\]\. The unconstrained Latent Twins fits the training interval reasonably well but accumulates phase and amplitude error aftert=10t=10, reflecting the fact that an unconstrained latent generator has no mechanism to enforce conservative long\-time behavior\. The PINN satisfies the differential equation residual on the training interval, but its trajectory representation is tied to the time domain on which it is trained and deteriorates under extrapolation\. In contrast, the Physics\-conforming Latent Twins remains stable and accurate beyond the training horizon\. The improvement is not due to additional residual information, but to the hard latent Hamiltonian structure: the learned flow is restricted to an energy\-preserving class, which suppresses artificial growth or decay in the latent dynamics and thereby improves long\-time behavior after decoding\.
This experiment highlights a central advantage of the Physics\-conforming Latent Twins formulation\. Rather than enforcing the known differential equation pointwise, as in a PINN, the method learns a solution operator in a latent space whose admissible dynamics already respect the relevant qualitative structure\. For conservative systems, this distinction is especially important: preserving the geometric form of the dynamics can be more effective for extrapolation than merely reducing a residual loss over the observed training window\.
UnconstrainedLatent Twins
PINN
Physics\-conformingLatent Twins
Figure 5:Undamped pendulum predictions on an extended time interval\. All models are trained using information fromt∈\[0,10\]t\\in\[0,10\]and evaluated ont∈\[0,15\]t\\in\[0,15\]\. The left column shows the predicted state trajectory and the right column shows the prediction error\. The unconstrained Latent Twins loses accuracy under extrapolation because the learned latent generator is not structurally restricted\. The PINN uses the governing ODE residual during training, but still deteriorates outside the training interval\. The Physics\-conforming Latent Twins preserves a quadratic latent invariant by construction and maintains stable, accurate extrapolation\.The SIR and pendulum experiments highlight two complementary strategies for incorporating physical structure into Latent Twins\. The SIR model uses soft regularization of the latent operator to promote a linear conservation law, while the pendulum uses a hard parameterization of the latent generator to preserve a quadratic latent invariant\. Together, these examples show how different structural principles can be incorporated within the same latent solution\-operator framework\.
#### 4\.2\.4Gradient flow
As a dissipative benchmark, we consider gradient\-flow dynamics associated with the optimization problemminx∈ℝ2f\(x\)\\min\_\{x\\in\\mathbb\{R\}^\{2\}\}f\(x\), wheref\(x1,x2\)=\(1−x1\)2\+100\(x2−x12\)2f\(x\_\{1\},x\_\{2\}\)=\(1\-x\_\{1\}\)^\{2\}\+100\(x\_\{2\}\-x\_\{1\}^\{2\}\)^\{2\}\. The corresponding dynamics are
x′\(t\)=−∇f\(x\(t\)\),x^\{\\prime\}\(t\)=\-\\nabla f\(x\(t\)\),so that the objective is nonincreasing along exact trajectories:ddtf\(x\(t\)\)=−‖∇f\(x\(t\)\)‖2≤0\\frac\{\\mathrm\{d\}\}\{\\mathrm\{d\}t\}f\(x\(t\)\)=\-\\\|\\nabla f\(x\(t\)\)\\\|^\{2\}\\leq 0\. Thus, the Rosenbrock flow provides a simple nonlinear test case in which the learned surrogate should approximate the solution operator while respecting a Lyapunov\-type dissipative structure\.
Training trajectories are generated from uniformly sampled initial conditionsx\(0\)∈\[−1\.5,1\.5\]2x\(0\)\\in\[\-1\.5,1\.5\]^\{2\}over the time interval\[0,10\]\[0,10\]\. We use40964096simulated trajectories, store300300time points per trajectory, and sample1616ordered pairss≤ts\\leq tfrom each trajectory, giving65,53665,536source–target pairs\(s,x\(s\)\),\(t,x\(t\)\)\(s,x\(s\)\),\(t,x\(t\)\)\. To better resolve the fast initial transient, we use the reparametrized time gridτ=\(t/tmax\)1/4tmax\\tau=\\left\(t/t\_\{\\max\}\\right\)^\{1/4\}t\_\{\\max\}, and sample training pairs with a mild bias toward early times\. The data are split into95%95\\%training and5%5\\%testing samples and normalized componentwise by min–max scaling\.
The Latent Twins use a fully connected autoencoder with encoder widths2→32→32→32→162\\rightarrow 32\\rightarrow 32\\rightarrow 32\\rightarrow 16, SiLU activations, and a mirrored decoder\. We compare an unconstrained Latent Twin with exponential latent flow against a physics\-conforming variant with the same latent flow but an additional dissipation penalty\. For a source latent statezs=e\(x\(s\)\)z\_\{s\}=e\(x\(s\)\), the latent evolution iszt≈ms→t\(zs\)=exp\(\(t−s\)W\)zsz\_\{t\}\\approx m\_\{s\\to t\}\(z\_\{s\}\)=\\exp\\\!\\bigl\(\(t\-s\)W\\bigr\)z\_\{s\}\. The dissipative model is trained with an additional penalty
ℒconf=\[‖ms→t\(zs\)‖2−‖zs‖2\]\+2withλconf=1,\\mathcal\{L\}\_\{\\mathrm\{conf\}\}=\\left\[\\\|m\_\{s\\to t\}\(z\_\{s\}\)\\\|^\{2\}\-\\\|z\_\{s\}\\\|^\{2\}\\right\]\_\{\+\}^\{2\}\\qquad\\text\{with \}\\lambda\_\{\\mathrm\{conf\}\}=1,which penalizes forward\-time expansion in the latent norm\. All models are trained with Adam using batch size10241024, learning rate10−310^\{\-3\}, and20002000epochs, with the learning rate halved every500500epochs\.
[Figure6](https://arxiv.org/html/2606.15053#S4.F6)shows the relative prediction error and a representative phase portrait for the test initial conditionxs=\(−0\.5,−0\.5\)x\_\{s\}=\(\-0\.5,\-0\.5\)\. Both models track the trajectory accurately on the training horizon, while the extrapolation region beyondt=10t=10separates their behavior\. The unconstrained model can drift away from the Rosenbrock valley, whereas the dissipative model remains closer to the true gradient\-flow trajectory\. The large spike in relative error during the training window occurs near portions of the trajectory where the norm of the reference state is small, and should therefore be interpreted together with the phase portrait\.
The dissipative penalty also has the intended effect in latent space: after training, violations of the nonexpansivity condition‖ms→t\(zs\)‖2≤‖zs‖2\\\|m\_\{s\\to t\}\(z\_\{s\}\)\\\|^\{2\}\\leq\\\|z\_\{s\}\\\|^\{2\}are essentially eliminated for the physics\-conforming model, while they persist for the unconstrained Latent Twin\.


Figure 6:Gradient\-flow Rosenbrock example\. Left: relative prediction error for the unconstrained Latent TwinΨ~\(t,s,xs\)\\tilde\{\\Psi\}\(t,s,x\_\{s\}\)and the dissipative Latent TwinΨ\(t,s,xs\)\\Psi\(t,s,x\_\{s\}\), with the shaded region indicating the training horizon\. Right: representative trajectory in the Rosenbrock landscape\. Both models are accurate on the training range, while the dissipative model remains closer to the true trajectory under extrapolation\.
### 4\.3PDEs
We extend the framework to two canonical PDE systems on the periodic domainΩ=\[0,2π\]2\\Omega=\[0,2\\pi\]^\{2\}: the heat equation, which is dissipative, and the wave equation, which is conservative Hamiltonian\. Both are simulated using the spectral solverDedalus\[burns2020dedalus\]with periodic boundary conditions\. Initial conditions are random smooth periodic fields constructed from finite Fourier expansions with randomized amplitudes and phases\. From each trajectory we extract snapshot pairs\(x\(s\),x\(t\)\)\(x\(s\),x\(t\)\)withs≤ts\\leq tdrawn uniformly, forming training pairs as in[Section4\.1](https://arxiv.org/html/2606.15053#S4.SS1)\. The encoder and decoder are convolutional networks and the latent flow takes the exponential formms→t\(z\)=exp\(\(t−s\)W\)zm\_\{s\\to t\}\(z\)=\\exp\(\(t\-s\)W\)zin both experiments\. Models are pretrained for2020epochs on the autoencoder loss and then trained jointly for150150epochs with Adam at learning rate3×10−43\\times 10^\{\-4\}and batch size6464\.
#### 4\.3\.1Heat equation
We next consider the two\-dimensional heat equation∂tu=κΔu\\partial\_\{t\}u=\\kappa\\Delta u, which describes the diffusion of a scalar temperature fieldu\(x,y,t\)u\(x,y,t\)\. On a periodic domain, the heat equation exhibits two complementary structural properties\. First, the spatial meanM\[u\]\(t\)=∫Ωu\(x,y,t\)dxdyM\[u\]\(t\)=\\int\_\{\\Omega\}u\(x,y,t\)\\,\\mathrm\{d\}x\\,\\mathrm\{d\}yis conserved\. Second, theL2L^\{2\}energyE\[u\]\(t\)=12∫Ωu\(x,y,t\)2dxdyE\[u\]\(t\)=\\tfrac\{1\}\{2\}\\int\_\{\\Omega\}u\(x,y,t\)^\{2\}\\,\\mathrm\{d\}x\\,\\mathrm\{d\}yis monotonically dissipated, since
ddtE\[u\]\(t\)=−κ∫Ω\|∇u\(x,y,t\)\|2dxdy≤0\.\\frac\{\\mathrm\{d\}\}\{\\mathrm\{d\}t\}E\[u\]\(t\)=\-\\kappa\\int\_\{\\Omega\}\|\\nabla u\(x,y,t\)\|^\{2\}\\,\\mathrm\{d\}x\\,\\mathrm\{d\}y\\leq 0\.This example therefore falls into the mixed constraint class described in[Table1](https://arxiv.org/html/2606.15053#S3.T1): a linear conserved quantity together with a dissipative quadratic functional\.
For the latent model, we use latent dimensionnz=32n\_\{z\}=32and a linear latent flow generated by an operatorWW\. The physics\-conforming parameterization decomposes
W=K\+S,K=A−A⊤,S=−BB⊤−0\.001I,W=K\+S,\\qquad K=A\-A^\{\\top\},\\qquad S=\-BB^\{\\top\}\-0\.001\\,I,so that the symmetric part is negative definite and therefore induces latent energy decay\. Conservation of the latent mass functional is enforced exactly by projecting the operator onto the constraint subspace satisfyingW⊤c=0W^\{\\top\}c=0\. Thus, the latent dynamics combine a conservative linear constraint with a dissipative quadratic structure, mirroring the physical behavior of the heat equation\.
The results show that this constrained latent flow accurately captures the diffusive evolution\. In[Figure7](https://arxiv.org/html/2606.15053#S4.F7), the predicted temperature fields remain visually indistinguishable from the reference solution over the full rollout horizon\. The model reproduces both the large\-scale smoothing induced by diffusion and the gradual attenuation of high\-frequency spatial features\. The absolute errors remain small throughout the trajectory and are concentrated mainly in localized regions where the initial condition contains sharper spatial variations\.
The reconstruction and prediction plots further indicate that the autoencoder learns a stable low\-dimensional representation of the heat dynamics: reconstruction errors are small, while the rollout errors remain controlled even after repeated propagation in latent space\. This is particularly important for the heat equation, where an unconstrained latent model could easily introduce spurious growth or drift in the mean temperature\.
Finally,[Figure8](https://arxiv.org/html/2606.15053#S4.F8)confirms that the learned dynamics respect the intended physical structure\. The predicted total heat remains nearly constant along the rollout, while the latent energy decays monotonically, consistent with the dissipative character of the heat equation\. Thus, the model does not only approximate the solution fields accurately; it also reproduces the qualitative conservation and dissipation laws that characterize the underlying PDE\.
Figure 7:Heat equation rollout\. Predicted temperature fields \(row 1\), true temperature fields \(row 2\), and absolute errors \(row 3\) at eight time snapshots over the horizont∈\[0,5\]t\\in\[0,5\]\. The Physics\-conforming Latent Twins accurately tracks the diffusive evolution, with small localized errors throughout the rollout\.Figure 8:Conservation diagnostics for the heat Latent Twin\. Top:L2L^\{2\}\-energyE\[u\]\(t\)E\[u\]\(t\)for the true trajectory and the surrogate prediction, showing monotone decay in both\. Bottom: spatial meanM\[u\]\(t\)M\[u\]\(t\), which the physics\-conforming model preserves to near\-machine precision\.
#### 4\.3\.2Wave equation
As a conservative PDE benchmark, we consider the wave equation in first\-order form,
∂tq=p,∂tp=c2Δq,\\partial\_\{t\}q=p,\\qquad\\partial\_\{t\}p=c^\{2\}\\Delta q,whereqqdenotes the displacement field andppits velocity\. In contrast to the heat equation, the wave equation is nondissipative: oscillatory spatial structures propagate through the domain rather than being smoothed out\. On a periodic domain, the continuous dynamics conserve the Hamiltonian
H\[q,p\]=12∫Ω\(p2\+c2\|∇q\|2\)dxdy\.H\[q,p\]=\\tfrac\{1\}\{2\}\\int\_\{\\Omega\}\\left\(p^\{2\}\+c^\{2\}\|\\nabla q\|^\{2\}\\right\)\\,\\mathrm\{d\}x\\,\\mathrm\{d\}y\.Thus, the relevant physical structure is conservation of a quadratic energy functional\.
We encode this conservative structure by using a quadratic latent invariant\. The latent dimension is set tonz=64n\_\{z\}=64to represent the two\-field state\(q,p\)\(q,p\)\. The latent dynamics are generated by a linear operatorWWparameterized asW=A−A⊤W=A\-A^\{\\top\}, so thatW⊤\+W=0W^\{\\top\}\+W=0\. Consequently, the latent flow preserves the quadratic latent energy exactlyddt12‖z\(t\)‖2=z\(t\)⊤Wz\(t\)=0\\frac\{\\mathrm\{d\}\}\{\\mathrm\{d\}t\}\\,\\tfrac\{1\}\{2\}\\\|z\(t\)\\\|^\{2\}=z\(t\)^\{\\top\}Wz\(t\)=0\. This hard architectural constraint prevents artificial latent damping or growth and mirrors the conservative character of the wave equation\.
[Figures9](https://arxiv.org/html/2606.15053#S4.F9)and[10](https://arxiv.org/html/2606.15053#S4.F10)show trajectory predictions for the displacementqqand velocitypp, respectively\. The predicted fields closely match the reference trajectories over the full horizont∈\[0,5\]t\\in\[0,5\], including the persistence and transport of fine\-scale oscillatory structures\. The absolute errors remain small relative to the field amplitudes and are concentrated mainly near sharper spatial features and phase\-sensitive regions\. This is a more demanding setting than the heat equation, since errors are not naturally damped by the underlying dynamics\.
The diagnostics in[Figure11](https://arxiv.org/html/2606.15053#S4.F11)further confirm the effect of the physics\-conforming parameterization\. The predicted Hamiltonian remains close to the true value over the full trajectory, while the latent quadratic invariant is conserved up to numerical precision\. The model therefore captures both the observed wave fields and the nondissipative structure of the underlying PDE\.
Figure 9:Wave equation trajectory prediction for the displacement fieldqq\. Predicted fields \(row 1\), true fields \(row 2\), and absolute errors \(row 3\) are shown at eight time snapshots overt∈\[0,5\]t\\in\[0,5\]\. The physics\-conforming Latent Twins captures the oscillatory wave dynamics with small localized errors\.Figure 10:Wave equation trajectory prediction for the velocity fieldpp\. Predicted fields \(row 1\), true fields \(row 2\), and absolute errors \(row 3\) are shown at eight time snapshots overt∈\[0,5\]t\\in\[0,5\]\.Figure 11:Conservation diagnostics for the wave Latent Twin\. Top: normalized HamiltonianH\(t\)/H\(0\)H\(t\)/H\(0\)for the true trajectory and surrogate prediction, with the predicted value deviating by approximately2%2\\%from the reference over the full horizon\. Bottom: relative latent norm variation‖z\(t\)‖2/‖z\(0\)‖2−1\\\|z\(t\)\\\|^\{2\}/\\\|z\(0\)\\\|^\{2\}\-1, confirming near\-exact conservation of the quadratic latent invariant induced by the skew\-symmetric latent operator\.
## 5Conclusions and outlook
We introduced Physics\-conforming Latent Twins, a latent solution\-operator framework for learning surrogate dynamics that respect selected physical structures by design\. The central idea is to use the latent space not only as a compression space, but as the space in which conservation laws, invariants, admissibility conditions, and dissipative structures are represented and enforced\. In this view, physical constraints are not merely diagnostics applied after prediction; they are organizing principles that shape the class of admissible latent evolutions and, through decoding, the full surrogate dynamics in the physical state space\.
On the theoretical side, we developed a constraint\-transfer perspective that relates structural functionals in the physical state space to compatible functionals in latent space\. We first showed that standard Latent Twins inherit physical structure a posteriori whenever the surrogate trajectory is close to the exact trajectory\. We then proved a sharper structure\-preserving estimate showing that, when a compatible latent constraint is enforced directly by the latent flow, the resulting physical defect after decoding is controlled by the compatibility error and the autoencoder reconstruction error, rather than by the full trajectory approximation error\. This provides a theoretical justification for enforcing structure at the level of the latent dynamics, and motivates the numerical experiments in which conservative, dissipative, and invariant\-preserving structures are imposed directly on the latent flow\.
The experiments demonstrate the proposed framework on representative ODE and PDE benchmarks, but the formulation is not restricted to these settings\. Physics\-conforming Latent Twins apply whenever time\-indexed or sequential states can be encoded, propagated in latent space, and decoded back to a meaningful state representation\. This includes classical dynamical systems, discretized PDEs, iterative optimization processes, data\-assimilation pipelines, and more general operator\-learning or surrogate\-modeling tasks\. The main practical role of physics\-conforming latent dynamics is to organize the learned representation so that prediction accuracy and structural fidelity are pursued jointly\. This addresses a central tension in scientific machine learning: reliable surrogates benefit from physical structure, but the useful form of that structure may only become apparent after choosing a representation in which the dynamics are simple enough to model\. Physics\-conforming Latent Twins approach this problem by learning the representation, the latent evolution, and the structural constraint together\.
Several limitations remain\. First, compatibility between a prescribed latent constraint𝒞Z\\mathcal\{C\}\_\{Z\}and the decoder\-induced pullback of a physical constraint𝒞\\mathcal\{C\}is not automatic\. It depends on the learned encoder–decoder pair and can be difficult to guarantee for highly nonlinear decoders\. Second, hard architectural constraints provide strong preservation guarantees, but may reduce expressiveness if the chosen latent constraint class is not well matched to the physical structure after decoding\. Third, the present theory primarily addresses global structural functionals, such as total mass, energy, or Lyapunov\-type quantities, and does not yet guarantee local conservation laws or pointwise admissibility after reconstruction\. Finally, the numerical experiments are intended as controlled demonstrations of the proposed design principles rather than exhaustive benchmarks across all possible surrogate\-modeling settings\.
These limitations suggest several natural extensions\. A first direction is to learn or adapt the latent constraint itself, rather than prescribing it from a fixed tractable class, so that𝒞Z\\mathcal\{C\}\_\{Z\}better approximates the decoder\-induced pullback of the physical quantity while remaining enforceable by the latent flow\. A second direction is to extend the framework to parameterized operator\-learning settings, where the latent solution operator depends on physical parameters, geometries, forcing terms, boundary conditions, or discretization levels\. A third direction is to move beyond global invariants toward local conservation laws and spatially resolved balance relations, which are central in many continuum systems\.
More broadly, the framework points toward scientific foundation models built around reusable latent physics\. Rather than pretraining only on large collections of trajectories, one could aim to learn latent evolution modules that encode general physical principles, such as conservation, dissipation, stability, or admissibility, and then adapt them to new systems, parameters, geometries, or observation settings\. In this broader view, latent spaces are not merely compression spaces; they become physically organized spaces in which scientific machine learning models can predict, infer, and control dynamics while respecting the principles that define admissible behavior\.
## ReferencesSimilar Articles
Physics-Constrained Digital Twins for Sensor Integrity in Urban Pedestrian Flow: Detecting Stealthy False Data Injection with Conformal Guarantees
This paper introduces physics-constrained digital twins for detecting stealthy false data injection in urban pedestrian flow, using flow conservation and conformal prediction to improve sensor integrity.
Latent PDE mapping for efficient physics-informed learning across geometries with limited data
Introduces latent PDE mapping, a physics-informed learning technique that enables efficient geometric generalization with sparse training data by pulling back PDE residuals to a latent geometry. Demonstrates significant error reduction on cardiac electrophysiology PDE benchmarks using only 15 training samples.
Physics-based Digital Twins for Integrated Thermal Energy Systems Using Active Learning
This paper proposes an active learning framework to couple high-fidelity Modelica simulations with simpler surrogate models (SINDyC, FNN, GRU) for creating efficient digital twins of thermal energy distribution systems. The approach significantly reduces the number of simulation trajectories needed while maintaining predictive accuracy and enabling uncertainty quantification.
Variational Parameter Calibration with Physics-Aware Latent-Space Surrogates
This paper introduces a physics-aware autoencoder-based latent-space framework for reduced-order forward modeling and variational parameter estimation in parametric dynamical systems, demonstrated on computational fluid dynamics benchmarks. The method enables differentiable surrogate-based inverse modeling and shows improved calibration robustness under realistic noisy or partial observations.
Latent Lie-Poisson Neural Networks (LLPNNs): Discovering the motion of Lie-Poisson systems through observable data and latent dynamics
This paper introduces Latent Lie-Poisson Neural Networks (LLPNNs), a structure-preserving framework for learning Lie-Poisson dynamics directly from observable data, using geometric methods and Magnus-based Lie-group updates. It demonstrates strong accuracy and robustness on rigid body, underwater vehicle, and optimal control examples.