betaFeedback

WorksComputer Science

LeHami: Symplectic Latent Dynamics Toward Long-Horizon Rollouts in World Models

Abstract

Joint-embedding predictive architectures (JEPAs) learn world models in latent space, but unconstrained autoregressive predictors may contract the latent distribution over long rollouts. We introduce Symplectic Hamiltonian JEPA (LeHami), which replaces the standard predictor with an action-conditioned Hamiltonian flow over a structured latent state (q, p) integrated using an exactly symplectic leapfrog step. This construction preserves phase-space volume at every rollout step and rules out uniform contraction, asymptotically stable fixed points, and merging of distinct latent states, independently of the learned parameters or action sequence. We obtain the momentum-like component from temporal derivatives of the learned position-like representation, providing an explicit second-order state for prediction and control. We measure rollout collapse on the data, with four ratios of the rollout to the truth, on five environments learned from pixels: conservative and actuated pendulums, a mass-spring, a two-body system and a cart pole. With the encoder and latent state held fixed, an MLP and a transformer predictor contract the rollout on every environment, while LeHami's rollouts do not merge. LeHami is the most accurate of the three at long horizons, in position on four of the five environments and in velocity on three, while at short horizons the free predictors are more accurate on two of the five. The learned flow also integrates at unseen sub-frame step sizes and, run backward with the recorded actions, recovers earlier frames as well as it predicts later ones. LeWM, with a richer three-frame encoder of its own, is more accurate on four of the five, which suggests incorporating a richer encoder within LeHami in future work. These results show how geometric structure can provide inference-time guarantees that are complementary to representation regularization in latent world models.

Introduction

Joint Embedding Predictive Architecture (JEPA) [25] has emerged as a promising framework for action-conditioned latent world modeling. While existing JEPA formulations successfully prevent encoder collapse: mapping distinct inputs to constant representations, via training-time regularization [6] (Balestriero & LeCun 2025) or frozen backbones [3] (Zhou et al. 2024), maintaining consistent dynamics over extended evaluation rollouts remains a persistent challenge [27] (Zhang et al. 2026). Long-horizon stability is further hindered by predictor contraction: in an autoregressive rollout each prediction is fed back as the next input, so even a slight per-step contraction of the transition map compounds over the horizon and progressively shrinks the latent distribution.

Physics avoids this contraction through geometric structure. Hamiltonian mechanics governs dynamics via a single scalar HH, constraining conservative trajectories to energy level sets and preserving phase-space volume at every discrete step [2]. Crucially, volume preservation persists under actuation, provided the action enters the Hamiltonian. Port-Hamiltonian extensions further cover dissipative systems [29, 13] (Zhong et al. 2020), making it a physically grounded prior for latent spaces rather than an idealization. While HH is traditionally derived analytically [14], recent methods parameterize a learnable HϕH_\phi directly from trajectories or pixel inputs [16, 9, 37]. LeHami brings this line of work into JEPA world models learned from video under actions, to address one of their failures: the collapse of long rollouts. § 2 sets out how it differs from prior Hamiltonian models.

We propose LeHami (Symplectic Hamiltonian JEPA), a framework that embeds the latent representation space onto a symplectic manifold where evolution is driven by a learnable action-conditioned Hamiltonian flow Hϕ(q,p,u)H_\phi(\mathbf{q}, \mathbf{p}, \mathbf{u}) over a canonical latent pair (q,p)(\mathbf{q}, \mathbf{p}), where u\mathbf{u} denotes the control action vector, integrated by an exact symplectic leapfrog step [19] and trained end-to-end without decoders or supervised coordinates. LeHami inherits three structural properties from the Hamiltonian flow, illustrated in Figure 1 (right):

Figure 1. LeHami: Learning symplectic world models end-to-end. Bottom left: Actuated pendulum frames and applied torque sequence utu_t (green). Upper left: Latent phase space (qt,pt)(q_t, p_t), where transitions are generated by a learned scalar Hϕ(qt,pt;ut)=Tϕ(pt)+Vϕ(qt,ut)H_\phi(q_t, p_t; u_t) = T_\phi(p_t) + V_\phi(q_t, u_t) via a symplectic step. Grey lines indicate level sets; the blue curve shows the rollout. Right: Three properties of the Hamiltonian flow: (i) Volume preservation: Latent volume is exactly preserved under any action sequence. (ii) Continuous step size: HϕH_\phi integrates at arbitrary time intervals, including between observed frames. (iii) Invertibility: Integrates backward by flipping the step (Δt→−Δt)(\Delta t \to-\Delta t) and replaying the actions in reverse order.

  1. Exact volume preservation: Symplectic integration preserves phase-space volume by construction, probably eliminating some representation collapse modes during evaluation rollouts for arbitrary action sequences (Proposition 1).

  1. Continuous-time step size: Because HϕH_\phi parameterizes a continuous vector field, a single trained model can be integrated at arbitrary step sizes Δt\Delta t without retraining, facilitating training on multi-frequency data [12] and non-uniform planning grids [34].

  1. Invertibility given the action history: Flipping the step (Δt→−Δt)(\Delta t \to-\Delta t) and replaying the actions in reverse order allows backward-in-time rollouts, serving as an essential primitive for

computing backward reachable tubes and online safety guarantees in optimal control [30, 21].

Moreover, a central objective in physical world modeling is learning representations that capture the complete physical state of an environment, especially for control tasks like object interception [24] and precision throwing (Zeng et al., 2020). In physics, uniquely determining future evolution requires canonical momentum alongside position within a structured phase space. Without this geometric prior, standard JEPA architectures with unstructured predictors resort to architectural design, such as expanding the encoder’s temporal window or context-conditioned predictors to capture velocity, lacking guarantees. In contrast, LeHami leverages this prior to model the latent space as a canonical phase space, enabling complete physical representations.

Contributions. We summarize our key contributions as follows:

  • Symplectic latent world model (LeHami): We introduce an end-to-end trainable JEPA framework equipped with a learned separable Hamiltonian predictor over a canonical latent split (q,p\mathbf{q}, \mathbf{p}). We prove that its volume-preserving step eliminates three specific collapse modes during evaluation rollouts across arbitrary horizons and actions (Proposition 1).

  • Rollout collapse, measured on the data: To our knowledge, this is one of the first works to show rollout collapse in JEPA world models with measures taken on the data. With the encoder and latent state fixed, an MLP and a transformer predictor contract the rollout on all five environments and four measures, while LeHami’s rollouts do not merge (§ 4.2).

  • Continuous-time & invertibility: We show that a single trained predictor HϕH_{\phi} acts as a continuous vector field, enabling sub-frame time integration without performance degradation, and that run backward with the recorded actions it recovers earlier frames as well as it predicts later ones.

  • Complete physics representation & principled planning: By construction rather than by architectural tuning, LeHami represents the full state through exact geometric structure. Across five environments, LeHami is the most accurate of the same-state predictors at long horizons in position on four of five and in velocity on three of five (the pendulums and the mass-spring), and beats chance in both on all five. It can also be used for planning, with the limits we report.

Related work

Hamiltonian learning. Hamiltonian neural networks learn HH from positions and momenta, measured or encoded from pixels [16]. Symplectic recurrent networks integrate a learned HH with leapfrog over many steps [9]. Hamiltonian generative networks infer a latent phase space from pixels and decode every step back to a frame [37]. Lagrangian networks learn the Lagrangian instead [10], and SympNets form the general class of symplectic networks that includes the leapfrog step [23]. On the DeepMind Hamiltonian Dynamics Suite, physics priors do not reliably beat generic models, while a continuous, time-reversible step helps [8]; SyMetric measures whether a model learned from pixels recovers the true dynamics [22]. The properties of the leapfrog step are classical [2, 19], and we do not claim them as new.

Hamiltonian world models. Cui & Ma [11] propose Hamiltonian World Models, a perspective that decodes predicted latent trajectories into future observations and plans over the resulting rollouts; as a position paper, it reports no experiments. Tang et al. [35] decompose the latent into a canonical and a context subspace and train it with a JEPA-style objective, and add the action as an external control term, which makes the update non-symplectic. Luan & Shi [26] use port-Hamiltonian dynamics as a structural regularizer alongside the recurrent transition of a decoder-based Dreamer-style agent [17, 18]. LeHami differs in that the action enters the Hamiltonian rather than an external control term, and every rollout step is exactly symplectic, so phase-space volume is preserved by construction, learned end to end from pixels without a decoder.

Structured predictors in JEPAs. HamJEPA [1] maps one augmented view to another with a leapfrog step of a Hamiltonian, to learn image representations evaluated by classification accuracy, with no time and no actions. LIFS-JEPA [7] refines one prediction by iterating a contractive map, where converging is the goal. In a world model each iteration is a step in time, and a contracting predictor makes distinct states merge.

Overall, LeHami brings Hamiltonian learning into JEPA world models learned from video with actions for a problem that, to our knowledge, none of these works targets: the collapse of long rollouts (Appendix § 11.§ 1).

LeHami: Symplectic Hamiltonian JEPA

LeHami makes the latent dynamics of a JEPA world model Hamiltonian. Its latent state is a canonical pair (qt,pt)(q_t, p_t): the encoder outputs the position-like qtq_t, and the momentum-like ptp_t is its time derivative, obtained by zero-parameter numerical differentiation of the encoder trajectory. The predictor advances this pair by one leapfrog step of a learned, action-conditioned Hamiltonian, so every step of the rollout is a symplectic map. We first state what this structure guarantees (Proposition 1), then give the flow, the multi-step objective and the design choices.

A symplectic map preserves the canonical two-form Ω=∑idqi∧dpi\Omega= \sum_i dq_i \wedge dp_i, the oriented area spanned in each position–momentum plane (Appendix § 11), and with it phase-space volume: a cloud of latent states can be stretched, rotated and sheared by the rollout, and squeezed in some directions only if it is stretched in others: its total volume never shrinks. Constraining the predictor to be such a map therefore rules out, at every step, the contraction available to an unconstrained rollout (Proposition 1).

Proposition 1 (Symplectic volume preservation and the rollout failure modes it removes). Let Ψh\Psi_h be the leapfrog step of Eq. (4) for step size hh generated by a separable Hϕ=Tϕ1(p)+Vϕ2(q,u)H_\phi= T_{\phi_1}(\mathbf{p}) + V_{\phi_2}(\mathbf{q}, \mathbf{u}) with uu held fixed within the step. Then Ψh\Psi_h is an exactly symplectic diffeomorphism of R2d\mathbb{R}^{2d} for every step size hh and every parameter ϕ\phi; it then preserves phase-space volume exactly at every horizon. Here hh is the integrator’s step, which equals the observation interval Δt\Delta t during training but need not at inference (§ 4.4). Consequently, three collapse modes are ruled out: uniform contraction, convergence to an asymptotically stable fixed point, and the merging of distinct states. They are stated and proved in Appendix § 12.§ 1.

Crucially, symplecticity in the latent representation space is a structural guarantee as it holds at every inference step by construction, not only in expectation over training batches. By endowing the rollout with symplectic geometry, it may also improve long-horizon consistency and planning performance. Moreover, it has certain properties, as discussed in § 1, that are of interest for many applications and that no unstructured predictor can have. We chose the Hamiltonian framework rather than the Lagrangian one; the reasons are given in Appendix § 12.§ 3.

Why a free predictor can contract. A world model is trained on short clips (K=8K = 8 steps here) and then rolled out far beyond them, each prediction fed back as the next input. Let JiJ_i be the Jacobian of the one-step predictor at step ii. Each step multiplies the volume of a small cloud of latent states by ∣det⁡Ji∣|\det J_i|, and two rollouts from nearby starts differ, to first order, by JK−1⋯J0(z0a−z0b)J_{K-1} \cdots J_0(\mathbf{z}_0^a - \mathbf{z}_0^b). An MLP or a transformer puts no constraint on det⁡Ji\det J_i, and beyond the training horizon nothing in the loss does either: a contraction of 0.99 per step is barely visible in training (0.998≈0.920.99^8 \approx0.92) and collapses a long rollout (0.9950≈0.60.99^{50} \approx0.6). Encoder regularizers such as SIGReg (Balestro & LeCun, 2025) and VICReg [6] act on the encoder output, not on the predictor. A symplectic step has det⁡Ji=1\det J_i = 1 by construction.

Scope and limitations of the guarantee. Three immediate remarks follow Proposition 1. We state them here in short form; Appendix § 12.§ 2 gives the arguments in full. (i) Shape, not size. Volume preservation forbids the degenerate failures but it does not bound the growth of rollout error. It holds over the whole latent space, for any HϕH_\phi, trained or random, and says nothing about the thin surface the data occupy, so we measure collapse on the data (§ 4.2). Nor does it exclude a latent that does not move: a constant encoder with ∇V=0\nabla V = 0 is a neutrally stable fixed point. (ii) Regularization is not made redundant. Symplecticity preserves volume, not distributional shape. The two act at different places: The regularizer acts on the encoder distribution in expectation over batches, while symplecticity on every inference step. (iii) No tie to the physical Hamiltonian. Nothing in training ties the latent or HϕH_\phi to the physical ones: the encoder may choose any representation in which the flow predicts well, and physical quantities are read by frozen probes. The guarantee holds for any learned HϕH_\phi.

The architecture

We train on unannotated trajectories of observations [x0,…,xT−1][x_0,\ldots,x_{T-1}] and actions [u0,…,uT−1][u_0,\ldots,u_{T-1}]. LeHami has two learned components, an encoder Enc⁡θ\operatorname{Enc}_\theta and a Hamiltonian flow (Ham flowϕ_\phi) that replaces the predictor, joined by the zero-parameter Savitzky–Golay (SG) stencil ([15]) that reads the momentum off the encoder trajectory (Figure 2):

Figure 2. LeHami multi-step training. Left: at the anchor, the encoder block (Enc + SG, a Savitzky–Golay stencil) maps a window of W+1W+1 frames, drawn here as the causal window xt−W,…,xtx_{t-W},\ldots,x_t, to the latent state (qt,pt)(q_t,p_t). The Hamiltonian flow (Ham flow) advances it by one leapfrog step of the separable Hamiltonian Hϕ=Tϕ1(p)+Vϕ2(q,u)H_\phi=T_{\phi_1}(p)+V_{\phi_2}(q,u), with the action entering the potential, and is applied KK times to its own outputs. Middle: each prediction (q~t+k,p~t+k)(\widetilde{q}_{t+k},\widetilde{p}_{t+k}) is scored by the prediction loss (C) against the encoding of the corresponding frames, shown here for the last step k=Kk=K. The regularizer (R) acts on the encoder’s embeddings of qq (blue) and pp (orange). Right: the encoder block as instantiated in this work: a pixel encoder (Enc) outputs qtq_t, and a fixed Savitzky–Golay stencil (SG) derives ptp_t from qt−3,…,qtq_{t-3},\ldots,q_t.

Encoder + SG:qt=Enc⁡θ(W(t)),pt=SG⁡(qt−3,…,qt),Hamiltonian flow:(q~t+1,p~t+1)=Ham flow⁡ϕ(qt,pt,ut).(1)\begin{aligned} \text{Encoder + SG:}\quad q_t &= \operatorname{Enc}_\theta(\mathcal{W}(t)), & p_t &= \operatorname{SG}(q_{t-3},\ldots,q_t),\\ \text{Hamiltonian flow:}\quad(\widetilde{q}_{t+1},\widetilde{p}_{t+1}) &= \operatorname{Ham\,flow}_\phi(q_t,p_t,u_t). \tag*{(1)} \end{aligned}

where W(t)\mathcal{W}(t) is a window of W+1W+1 that includes xtx_t (W=0W=0 reads xtx_t alone; Appendix § 13.§ 2). The flow advances the state by one step of Hamilton’s equations for a learned scalar Hϕ(q,p,u)H_\phi(q,p,u),

q˙=∂Hϕ∂p,p˙=−∂Hϕ∂q.(2)\dot{q}=\frac{\partial H_\phi}{\partial p},\qquad\dot{p}=-\frac{\partial H_\phi}{\partial q}. \tag*{(2)}

and θ\theta and ϕ\phi are trained end-to-end by backpropagating through the rollout, so the encoder is shaped to produce latent states that admit this structured evolution.

The integration. In principle, different integration techniques can be used. We leverage the leapfrog (Störmer–Verlet) integrator ([19]), which is second-order accurate and, crucially, exactly symplectic. For a separable Hamiltonian

Hϕ(q,p,u)=Tϕ(S−1p)+Vϕ(q,u),S=diag⁡(eσ).(3)H_\phi(q,p,u)=T_\phi(S^{-1}p)+V_\phi(q,u),\qquad S=\operatorname{diag}(e^\sigma). \tag*{(3)}

the update over a time step Δt\Delta t is

p~t+12=pt−Δt2∇qVϕ(qt,ut),q~t+1=qt+Δt S−1∇Tϕ(S−1p~t+12),p~t+1=p~t+12−Δt2∇qVϕ(q~t+1,ut).(4)\begin{aligned} \widetilde{p}_{t+\frac{1}{2}}&=p_t-\frac{\Delta t}{2}\nabla_qV_\phi(q_t,u_t),\\ \widetilde{q}_{t+1}&=q_t+\Delta t\,S^{-1}\nabla T_\phi\left(S^{-1}\widetilde{p}_{t+\frac{1}{2}}\right),\\ \widetilde{p}_{t+1}&=\widetilde{p}_{t+\frac{1}{2}}-\frac{\Delta t}{2}\nabla_qV_\phi(\widetilde{q}_{t+1},u_t). \tag*{(4)} \end{aligned}

where σ∈Rd\boldsymbol{\sigma} \in\mathbb{R}^{d} is learned and absorbs the relative scale of q\mathbf{q} and p\mathbf{p}, which the self-supervised objective leaves undetermined. Because S\mathbf{S} is a constant linear rescaling, the flow remains exactly symplectic.

Action-conditioned Hamiltonian. Under actuation the controller does work and HφH_{\varphi} is no longer constant, but symplecticity is a property of the map. We condition the potential on the action so Vφ2=Vφ2(q,u)V_{\varphi_2}=V_{\varphi_2}(\mathbf{q},\mathbf{u}) and the generalized force F(q,u)=−∂Vφ2/∂q\mathbf{F}(\mathbf{q},\mathbf{u})=-\partial V_{\varphi_2}/\partial\mathbf{q} is a q\mathbf{q}-gradient for every action by construction. Separability is untouched and the leapfrog of Eq. (4) stays exactly symplectic for every action sequence, provided only that ut\mathbf{u}_t is constant within a step.

Multi-step learning. We consider multi-step prediction over a KK-step horizon by iteratively applying the Hamiltonian flow. The loss is the average MSE across the trajectory. Given an anchor of AA time steps used to form the embedding of the first time step of the episode, and KK self-fed leapfrog steps, the loss is

L=1K∑j=1K∥q~A+j−qA+j∥2+λp1K∑j=1K∥p~A+j−pA+j∥2+λSS,(5)\mathcal{L}=\frac{1}{K}\sum_{j=1}^{K}\left\|\widetilde{\mathbf{q}}_{A+j}-\mathbf{q}_{A+j}\right\|^{2}+\lambda_p\frac{1}{K}\sum_{j=1}^{K}\left\|\widetilde{\mathbf{p}}_{A+j}-\mathbf{p}_{A+j}\right\|^{2}+\lambda_S S, \tag*{(5)}

where the first term is the prediction loss in the position-like embedding, the second is the prediction loss in the momentum-like embedding weighted by λp\lambda_p and the last term SS is the regularizer, which, in principle, can be any (e.g., SIGReg (Balestriero & LeCun, 2025}) and it can be applied to the embeddings q\mathbf{q} and p\mathbf{p} independently, to only q\mathbf{q}, or to both embeddings concatenated. It acts on ground-truth embeddings, never on the rollout. We compare the performance across the three placements in Table 12 in Appendix § 14.§ 3.

windowSIGRegwithin-episode %std(qq)std(pp)std(pp)/std(qq)
W=1W = 1joint0.01±0.000.01 \pm0.001.3560.0060.0043
W=1W = 1q15.32±0.2915.32 \pm0.290.9800.1010.1031
W=1W = 1split48.89±16.3948.89 \pm16.391.1740.2360.2014
W=3W = 3joint4.90±0.304.90 \pm0.301.4050.0510.0362
W=3W = 3q8.87±0.548.87 \pm0.540.9790.0510.0519
W=3W = 3split47.06±2.5647.06 \pm2.561.1240.2010.1784

Table 12. Within- versus between-episode variance of the encoder’s latent coordinates, by SIGReg placement. For each latent dimension, VwithinV_{\mathrm{within}} is the mean squared deviation of an episode’s trajectory about its own mean and VbetweenV_{\mathrm{between}} is the variance of those per-episode means; the column reports Vwithin/(Vwithin+Vbetween)V_{\mathrm{within}}/(V_{\mathrm{within}} + V_{\mathrm{between}}), averaged over dimensions. A value near zero means the latent is an episode identifier rather than a state. Measured on the encoder’s own latents (gt_q, gt_p) over the test episodes at a common horizon K=0…74K = 0 \ldots74; mean ±\pm standard deviation over three training seeds. Bold marks the largest within-episode share per window. The unstructured baseline attains 42.8% on this measure but cannot be tabulated here, as its evaluation path stores latents only at K=0K = 0.

Design choices. The shape of HϕH_{\phi}. While the core LeHami framework is general and agnostic to the choice of Hamiltonian, in this work we adopt a separable structure. This design choice enables fast, explicit leapfrog integration without requiring iterative numerical solvers. The guarantee is not specific to separable HH: for a non-separable Hamiltonian, e.g., exact symplecticity is retained by replacing leapfrog with a non-separable symplectic integrator (Tao, [36]). How p\mathbf{p} is obtained. We enforce the canonical relation p=q˙\mathbf{p}=\dot{\mathbf{q}} by computing p\mathbf{p} as the temporal derivative of generalized coordinates q\mathbf{q} via a fixed Savitzky–Golay (SG) stencil (Gorry, [15]) on the encoder trajectory. This is a least-squares quadratic fit over q\mathbf{q} that is then differentiated at time step tt. The stencil is linear with constant coefficients, so it adds no learned parameters and cannot itself collapse. Computing p\mathbf{p} as q˙\dot{\mathbf{q}} assumes unit mass. A mass that is constant within an episode, possibly different between episodes, is absorbed by the encoder through a stretched coordinate q′=cq\mathbf{q}'=c\mathbf{q}; a mass that depends on the configuration, M(q)\mathrm{M}(\mathbf{q}), is not, and the cart pole of § 4 tests that case. More details in Appendix § 12.§ 4.

Empirical validation of LeHami

We evaluate our approach on five environments rendered as 64×6464 \times64 RGB images. In the conservative pendulum there is no actuation, and episodes vary across three rod lengths. In the actuated pendulum, a recorded sequence of scalar torques (ut)t(u_t)_t, drawn uniformly, does work on the system, so energy is no longer conserved; episodes vary across the same three rod lengths and three masses, since under actuation the mass sets the response to the torque. In both environments the true dynamics preserve phase-space volume, which is the property LeHami builds in; the actuated pendulum tests it once energy conservation no longer holds. Appendix § 13.§ 3 describes each in full (Figure 3). To test beyond the pendulum, we add the mass-spring and the two-body system of the DeepMind Hamiltonian Dynamics Suite (Botev et al., [8]), and a cart pole with Gymnasium’s physics and no force (Towers et al., [38]). The cart pole has two degrees of freedom and a mass that depends on the pole angle, so it breaks the unit-mass assumption of § 3. Appendix § 13.3.3 describes them.

The two pendulum environments

Figure 3. The two pendulum environments. Top: the conservative pendulum, with no actuation. Bottom: the actuated pendulum. Beneath each row is its respective torque utu_t, drawn as the piecewise-constant signal, held constant for three frames.

Experimental setup

Methodology. LeHami is designed as a drop-in replacement for the predictor of a JEPA world model, so we compare against LeWorldModel (LeWM) (Maes et al., [27]), the state-of-the-art among JEPA world models trained end-to-end from pixels, which reported gains over PLDM [33] and DINO-WM (Zhou et al., 2024). LeWM’s predictor is unstructured: a causal transformer that takes three context embeddings to predict the next one. LeHami is encoder-agnostic and it replaces only this predictor, plus the fixed Savitzky–Golay (SG) stencil that computes pp (§ 3). The main text uses a temporal ConvNet [39] (Appendix Fig. 6) and Appendix § 14.§ 2 repeats the comparison with a tiny ViT [40]. Moreover, LeHami is plugged on top of a frozen pre-trained encoder with DINOv2 features [32], yielding DINO-LeHami. We do not compare against reward-driven agents such as Dreamer [17] or TD-MPC [20] variants, since they require task rewards whereas our setting, like LeWM’s, is reward-free, goal-conditioned planning. More details on methodology in Appendix § 13.§ 1.

Same-state controls. To separate the Hamiltonian step from the augmented state, we keep LeHami’s encoder (the per-frame ConvNet), state [q,SG⁡(q)][q,\operatorname{SG}(q)], losses, regularizer and 8-step training rollout, and replace only the predictor: an MLP with the same number of parameters as LeHami’s flow, and by LeWM’s transformer, both with the same augmented state as LeHami. LeWM with its own state, from one frame (the baseline above) or three, is compared in Appendix § 14.§ 5. Results are over three training seeds, next to two baselines that use no model: repeat the start, and predict the mean.

Probing. The pendulum’s state is fully described by the angle θ\theta and the angular velocity ω\omega, and we score their prediction along the rollout by MAE against ground truth; for θ\theta we use MAE rather than R2R^2, whose normalising variance is undefined on the circle. Three probe tiers of increasing capacity read the latent: a ridge, a kk-NN (k=25k = 25) and a two-layer MLP. Each is fitted once, either on the encoder’s own features (the anchor, K=0K=0) or on the model’s one-step output (K=1K=1), and applied frozen. We report the results in the test split of episodes. The kk-NN fitted at K=1K=1 puts the models on equal footing because LeWM’s encoder is per-frame, and only its predictor sees more than one time step. We use it throughout the main text. On the other three environments it reads the position and the velocity: qq and pp for the mass-spring, the position and velocity of a body for two-body, and the pole angle ϕ\phi and its rate ϕ˙\dot{\phi} for the cart pole.

Rollout collapse, measured on the data

Proposition 1 holds over the whole latent space, for any learned HϕH_\phi, trained or random. The data, however, lie on a thin surface inside it, with as many dimensions as the physical state, and a map that keeps the total volume could still squeeze that surface while stretching other directions. We therefore measure collapse on the data, with four ratios of the rollout to the truth (the encoder’s latents of the true frames at the same step). Each is 1 when the rollout keeps the true geometry and below 1 when it contracts: the distance between rollouts started from different frames; the tangent area, how much the rollout stretches a small patch of the data surface compared with the true motion; the spread of the cloud of all rollout states; and its effective rank (Appendix § 13.§ 4.2).

Table 1 shows that both free predictors contract the rollout on every environment and on all four measures. Figure 4 (right) shows how this builds up on the conservative pendulum: the distance between rollouts falls steadily with the rollout step for the two free predictors, while LeHami’s stays at 1. LeHami’s rollouts never merge, but they are not exact: past the 8 trained steps they drift (values above 1), and on two-body and the cart pole they squeeze some directions while stretching others, keeping the total volume; their distance and spread stay above 1 there, so the rollouts move apart, not together. On the cart pole (tangent area 0.58) the mass depends on the pole angle, so p=q˙p = \dot{q} is not the true momentum and the true motion does not keep volume in LeHami’s coordinates, which a volume-preserving step cannot follow. On two-body (tangent area 0.94, rank 0.83) the learned energy does not match the physical one at 0.2 s per frame, and the rollouts drift along the orbit. LeWM on its own state, and all four measures against the step, are in Appendix Fig. 8. A probe’s squared error can be written as offset, amplitude and loss of correlation (Appendix E.4). On the mass-spring, collapse (the amplitude term) is 79% and 83% of the free predictors’ position error (5% for LeHami; Table 22). On the other environments their error is mostly loss of correlation, which LeWM on its own state also shows without contracting. With the same T+VT + V and an explicit Euler step, the rollouts expand (distance 1.71) and the angle error reaches chance by K=30K = 30 (1.29 against 0.46; Table 23): the gain needs the symplectic step.

Prediction performance during conservative pendulum rollouts

Figure 4. Prediction performance during conservative pendulum rollouts. Wrapped MAE of θ\theta (left) and ω\omega (middle) across the test rollout steps (KK). 25-NN probe fitted at K=1K = 1 and frozen; shaded: s.d. over three seeds. All three models share the encoder and the state [q, SG(q)]; only the predictor differs. Dotted: chance (the better of repeating the start and predicting the mean). (Right) Median distance between rollouts started from different test frames, over the true distance between the same frames (1, dotted, means no contraction). The two free predictors contract steadily; LeHami does not. LeWM with its own embedding zz and the other environments are in Appendix Figs. 8 and 18.

Evaluating Complete Phase-Space Physics Capture

The state of a mechanical system is position and momentum, so a world model scored on position alone is tested on half of it. We probe both, position and velocity, at the anchor and along the rollout; LeHami’s latent carries velocity by construction, which a per-frame baseline cannot.

On the conservative pendulum, at the anchor, the KNN probe reads the angular velocity significantly better (see the anchor row in Table 10). One image does not show motion, so a per-frame encoder, as in baseline, cannot supply it. While LeHami also encodes per frame, it reads velocity from the Savitzky–Golay channel, which does not require any training. During rollout, Figure 4 compares LeHami with the two predictors given the same state, so only the step differs. From K≈20K \approx20 on they are no better than chance, while LeHami stays below it in angle up to K=70K = 70; the right panel shows their rollouts contract. LeWM on its own state does not contract, yet its error also grows: its predictions keep the true spread but lose track of the true state (Appendix § 14.§ 4). The learned HϕH_{\phi} makes that each rollout stays on its own level set of HϕH_{\phi}, as the true energy confines the physical system, while LeWM’s rollouts cross them (Appendix Figs. 11–12).

bandLeHamiLeWMratioLeHamiLeWMratio
\multicolumn{3}{c}{MAE θ\theta [rad, wrapped]}\multicolumn{3}{c}{MAE ω\omega [rad/s]}
K=1K = 1–10100.1070.1000.930.3641.0202.80
K=11K = 11–20200.2250.2871.270.6691.1691.75
K=21K = 21–70700.5960.9811.651.5342.3311.52
anchor (K=0K = 0), R2(ω)R^2(\omega) from the frozen encoder features:LeHami +0.975LeWM −0.667-0.667
same anchor, LeHami read by the linear tier:ridge +0.448, against the 25-NN’s +0.975 above

Table 10. Performance in physics prediction of the conservative pendulum. Wrapped MAE of angle θ\theta and ω\omega predicted by the kk-NN probe (with k=25k = 25) fitted on each model’s own K=1K = 1 output and applied frozen along the rollout, averaged over the rollout band. Ratio is LeWM ÷ LeHami, so ≥1\ge1 favours the LeHami.

This advantage does not come from a larger model or a larger training budget: LeHami has lower θ\theta and ω\omega error than LeWM at every matched training budget, over three seeds; its checkpoint at 0.75 PFLOP is on par with LeWM’s at 6 PFLOP (0.30 against 0.33 rad) (Appendix Table 7). The advantage also holds with a frozen pre-trained encoder: DINO-LeHami outperforms DINO-WM (Zhou et al., 2024) (Appendix Fig. 13).

Five environments. Table 2 extends this to all five environments. Given the same state, LeHami is the most accurate of the three predictors in position on four of five, and beats both baselines in position everywhere. In velocity, LeHami is the most accurate on the pendulums and the mass-spring; on two-body and the cart pole the free predictors are as accurate or better, and on the cart pole the probe reads ϕ˙\dot{\phi} poorly even before any rollout. LeWM with a three-frame state, fully learned, is more accurate on four of five (Appendix § 14.§ 5); combining it with a predictor that does not collapse is natural follow-up work. The gain depends on the horizon: at K=10K = 10 the free predictors are more accurate on the actuated pendulum (angle 0.20 and 0.26 against 0.32 rad, only on episodes that go over the top; Table 24) and the cart pole. On two-body at the suite’s 0.05 s per frame LeHami fails (K=70K = 70 position 0.47 against 0.05 to 0.09); its 8 training steps cover 1 to 6% of an orbit, too little to learn the force (Appendix Table 21).

When incorporating actions. The actuated pendulum shows the same pattern at the anchor. Across three probe tiers (Appendix Table 11), LeHami’s velocity is decoded well by the non-linear probes while LeWM’s stays below the predict-the-mean floor; LeWM decodes θ\theta more accurately, a gap that narrows with probe capacity. As on the conservative pendulum, a per-frame encoder carries no velocity, while LeHami reads it from the SG channel (Appendix Fig. 9). Along the rollout these advantages decay (Appendix Fig. 16): LeHami’s in velocity by K≈10K \approx10, once LeWM’s predictor has seen enough frames to infer motion, and LeWM’s in θ\theta by K≈40K \approx40; at K=70K = 70, LeHami’s angle error is 0.91 rad against 0.98 for LeWM (Appendix § 14.§ 5).

LeHami is a world model with time re-stepping and invertibility

LeHami runs at any rate, and in either direction, because HϕH_{\phi} is a continuous-time vector field. We showcase this capability by holding the learned HϕH_{\phi} fixed and integrating it at sΔts\Delta t, taking 1/s1/s sub-steps per observed frame, and compare against a Runge–Kutta integration of the true ODE from the same initial condition. Refining below the observation rate leaves the predicted trajectory invariant (Figure 5 left); coarsening breaks it, as an explicit symplectic integrator leaves its stability band. The same structure makes the step invertible given the action history: running it with Δt→−Δt\Delta t \to-\Delta t and the recorded actions in reverse order undoes the rollout for any learned HϕH_\phi, which we check in floating point as an implementation test (round-trip error below 10−4%10^{-4}\% after 30 steps). What depends on the learned HϕH_\phi is whether the backward rollout lands on the true past. From a mid-episode frame of a held-out episode, we run the step backward with the actions that drove the earlier frames, and score it against the true earlier frames (Figure 5, right). On both pendulums the backward rollout recovers the earlier angles as well as the forward one predicts the later ones, and both stay well below chance up to 20 steps, under actuation too. A free predictor has no backward step.

MAE of $\theta$ under different integration step sizes and rollout directions

Figure 5. The learned flow behaves like a continuous-time vector field, and runs backward to the true past. Left: MAE of θ\theta integrated with step sizes never seen in training (to the ground-truth from the integration of the ODE), conservative pendulum. The model is trained only at Δt=0.1\Delta t = 0.1 s; halving and quartering the step (2 and 4 sub-steps per frame, respectively) traces the same trajectory, while doubling it breaks. Right: MAE of θ\theta after KK steps forward (solid) and backward with the recorded actions (dashed), from mid-episode frames of held-out episodes, conservative (teal) and actuated (purple) pendulums; MLP probe, three seeds. Dotted: chance (Appendix § 14.6).

LeHami can be used for planning

We also plan with LeHami on the actuated pendulum, with CEM under a budget of 15 TFLOP per episode (Appendix § 13.§ 4.3). Its predictor is cheaper per step (2.23M against 3.31M parameters), so within the budget it can replan more often, and it represents the sign of the velocity by construction, which a LeWM encoder with a tied temporal kernel cannot. It does not yet reach goals better: LeWM has the highest success on every clause, from one frame on the angle and from three frames with an untied kernel on the velocity and on both (Appendix Table 6). Planning backward from the goal could help close this gap.

Conclusion

We introduced LeHami, a predictor for latent world models whose exact symplectic step preserves volume, which provably eliminates some rollout collapse modes, and integrates in continuous time, invertibly given the action history. On five environments and four measures taken on the data, with the same encoder and state, an MLP and a transformer predictor contract long rollouts while LeHami’s do not merge, and LeHami is the most accurate of the three in position at long horizons on four of five, but not at short horizons on two of five. Run backward with the recorded actions, it recovers the true past.

Limitations and future work. First, strongly dissipative systems (e.g., heavy friction) contract phase-space volume, which a volume-preserving step cannot follow; port-Hamiltonian extensions (Appendix C.4) are a natural direction for future work. Our experiments use simulated video of physical systems; extending them to contact, real video, observation noise, encoder error and complex actuation (e.g., LeWM’s Push-T) is the next step. Second, our HϕH_{\phi} is separable with a mass that is constant within an episode; on the cart pole, whose mass depends on the configuration, LeHami is less exact, and on two-body at the suite’s 0.05 s per frame it fails (Appendix § 14.§ 4). Third, the volume guarantee does not bound the error, and planning does not beat LeWM yet. Finally, a learned momentum could combine a richer encoder’s accuracy with rollouts that do not collapse.

AI USE STATEMENT

AI was used for the writing of some parts of the manuscript and for some parts of the code development used to run the experiments. Moreover, AI was used to check the proof of Proposition 2. The authors take full responsibility for the scientific contributions and all written content.

ETHICS STATEMENT

This work aims to advance fundamental machine learning research, specifically in the domain of world models. As foundational research, we do not foresee any immediate societal impacts associated with this work.

ACKNOWLEDGEMENTS

R.Y. thanks Alfredo Canziani for his guidance and feedback throughout this work, and Helmut Katzgraber for his insights during the planning of the project.

REPRODUCIBILITY STATEMENT

The claims of this paper are supported by the appendices and by the code release at https://github.com/rominay/LeHami. Theory. Proposition 1 is stated with its assumptions in § 3 and proved in full in Appendix § 12.§ 1; Appendix § 12.§ 2 sets out what the guarantee does and does not imply. Models and training. What is held fixed between LeHami and the baselines, and how checkpoints are selected, is in Appendix § 13.§ 1. The architecture as implemented and the parameter counts measured from the checkpoints are in Appendix § 13.§ 2 and Table 8, and the remaining design choices (the SG stencil, the scale gauge and the SIGReg placements) are in Appendix § 12.§ 4. Every trained model corresponds to one configuration file in the release, which fixes all its hyperparameters, and the resolved configuration is saved with each checkpoint. The third-party code we build on is pinned to the exact commits we used. Data. All five environments are specified by their equations of motion, rendering and generation parameters in Appendix § 13.§ 3 and Appendix § 13.3.3. The episode-level train/validation/test protocol, including the generator seed and the check that no episode is shared across splits, is in Table 4. The release contains the seeded generators and the split manifests that training and evaluation both read, and each manifest records the hash of the dataset file it was cut from, so a regenerated dataset can be verified. Evaluation. The probes are described in Appendix § 13.§ 4.1, and the planning protocol, with its goal construction, CEM optimiser, leakage checks and success criterion, is in Appendix § 13.§ 4.3. Results are reported as the mean and standard deviation over three training seeds unless stated otherwise. Code. One runner script per experimental block trains and evaluates every model and seed reported in the paper, and the planning and compute analyses reuse its checkpoints. The notebooks regenerate the figures and tables from the frozen numbers shipped with them, without a GPU, the datasets or retraining.

conservative pendulumactuated pendulum
episodes used300900
frames per episode8080
Δt\Delta t0.10 s0.10 s
split, in episodes (train / val / test):
episodes210/45/45630/135/135
design cells3 rod lengths9 (3L ×\times 3m)
episodes per cell100100
train episodes per cell7070

Table 4. The two pendulum environments and their episode-level splits. Both use the same protocol, described in Appendix § 13.§ 3.

ModelTotalEncoderPredictorProjectorPred. proj.
LeHami W=1W=13.030.3152.2340.465—
LeWM W=1W=14.440.3153.3100.5300.268
LeWM W=3W=34.450.3183.3100.5300.268

Table 8. Parameter counts of the models trained on the conservative pendulum environment. The values are shown in millions, measured from the checkpoints. The predictor is where the two families differ: LeHami’s separable Hamiltonian flow (T(p)+V(q)T(p) + V(q) MLPs, hidden_dim = 1024) against LeWM’s 6-layer autoregressive transformer. pred. proj. is LeWM’s predictor projection head, which LeHami has no counterpart for; the encoder and the latent projector are matched across families, and the W=3W=3 encoder adds only ∼\sim3k parameters over W=1W=1.

Appendix organization

Appendix B collects the background on the Hamiltonian mechanics we use, including phase-space density and the symplectic form, and compares LeHami with prior Hamiltonian models (§B.1). Appendix C contains the theory: the formal statement and proof that the leapfrog step is exactly symplectic (§C.1); the scope of that guarantee, in three remarks on what volume preservation does and does not imply (§C.2); why we build on the Hamiltonian rather than the Lagrangian formulation (§C.3); and the design choices in the flow and the encoder (§C.4): the shape of the Hamiltonian, the SG stencil and its causal and centred windows, why no mass is learned, the learned scale gauge, and the SIGReg placements. Appendix D gives the experimental set-up in full: what is held fixed across models and how checkpoints are selected (§D.1); the implementation of LeHami (§D.2), covering the Hamiltonian flow, the per-frame and temporal encoders, the stencil at training and inference, and an extension to training across recording rates that the architecture supports but that we do not exercise here; the five environments and their split protocol (§D.3); and the evaluation, namely the probes (§D.4.1), the four measures of collapse (§D.4.2) and the planning protocol (§D.4.3), with its goal construction, the frames each latent state is read from, the optimiser, the leakage checks and the success criterion. Appendix E reports supplementary results. It first shows that the Hamiltonian structure replaces manual design choices at lower training compute and without extra parameters (§E.1). It then gives the full results on the conservative pendulum (§E.2): the geometry of the latent space against the learned and physical energies, rollout prediction across probe tiers, independence from the encoder with a frozen DINOV2, and the phase-space volume of the one-step map. Finally, it gives the full results on the actuated pendulum (§E.3): the learned energy under actuation, where to apply the regularizer, rollout prediction, how a temporal window in the encoder captures velocity, the goal distribution, the planning compute, a decomposition of the velocity clause of the planning criterion into speed and direction, and the prediction of the rod’s length and mass. It ends with the physical errors on all five environments (§E.4), LeHami against LeWM with its own state (§E.5), the backward rollout (§E.6), the mass carried by the rollout (§E.7) and further controls (§E.8).

Background in Hamiltonian mechanics

A physical Hamiltonian system with nn degrees of freedom evolves on a phase space M=R2n\mathcal{M} = \mathbb{R}^{2n}, coordinated by generalized positions q∈Rn\mathbf{q} \in\mathbb{R}^{n} and conjugate momenta p∈Rn\mathbf{p} \in\mathbb{R}^{n} [2]. Its evolution is generated by the Hamiltonian, which is a scalar function H:R2n→RH : \mathbb{R}^{2n} \to\mathbb{R} that represents the system’s total energy, through Hamilton’s equations

q˙=∂H∂p,p˙=−∂H∂q.(6)\dot{\mathbf{q}} = \frac{\partial H}{\partial\mathbf{p}}, \qquad\dot{\mathbf{p}} = -\frac{\partial H}{\partial\mathbf{q}}. \tag*{(6)}

The two main consequences of this that we use in this work are the following. The flow ϕt\phi_t of Eq. (6) is symplectic: it preserves Ω=∑idqi∧dpi\Omega= \sum_i dq_i \wedge dp_i, and hence the phase-space volume due to Liouville’s theorem [2]. Thus, a phase-space density ρ\rho is transported without distortion, ∂tρ=−{ρ,H}\partial_t \rho= -\{\rho, H\} with {⋅,⋅}\{\cdot,\cdot\} the Poisson bracket.

Phase-space density. Rather than a single initial condition one works with a density ρ(q,p,t)\rho(\mathbf{q}, \mathbf{p}, t) normalised to unit mass. Its evolution obeys the Liouville equation ∂tρ=−{ρ,H}\partial_t \rho= -\{\rho, H\}, where {ρ,H}=∂qρ⋅∂pH−∂pρ⋅∂qH\{\rho, H\} = \partial_{\mathbf{q}}\rho\cdot\partial_{\mathbf{p}}H - \partial_{\mathbf{p}}\rho\cdot\partial_{\mathbf{q}}H. Equivalently dρ/dt=0d\rho/dt = 0: the density seen by an observer moving with the flow is constant, so the flow is an incompressible deformation of phase space.

Symplectic form. The two-form Ω=∑i=1ndqi∧dpi\Omega= \sum_{i=1}^{n} dq_i \wedge dp_i is closed and non-degenerate, and the Hamiltonian flow ϕt\phi_t preserves it exactly. The wedge product records oriented area in the (qi,pi)(q_i,p_i) plane and changes sign under exchange of its arguments, which is the canonical asymmetry between position and momentum. Preservation of Ω\Omega implies preservation of the volume form Ωn/n!\Omega^n/n! (Liouville’s theorem): a cloud of initial conditions may stretch, rotate and shear, but its volume is invariant. For NN particles the form extends additively, Ω=∑j=1N∑i=1ndqi(j)∧dpi(j)\Omega= \sum_{j=1}^{N}\sum_{i=1}^{n} dq_i^{(j)} \wedge dp_i^{(j)}, and the statement holds on the full 2nN2nN-dimensional space.

Comparison with prior Hamiltonian models

Table 3 sets LeHami beside the models of § 2. LeHami brings Hamiltonian learning into JEPA world models: it learns from video without a decoder, puts the action in the potential, obtains p\mathbf{p} as the time derivative of q\mathbf{q}, and is rolled out far past its training horizon. The properties of the leapfrog step itself are classical and shared with SRNN, HGN and HamJEPA.

HNNSRNNHGNHamJEPALeHami
learns fromstates, or pixelsstatespixelsstatic imagesvideo
decoder for pixelsnoyesnono
actionsnonononoyes, in V(q,u)V(\mathbf{q}, \mathbf{u})
rolled out in timeyes (RK45)yes (leapfrog)yes (leapfrog)no (two augmented views)yes (leapfrog)
momentum p\mathbf{p}given, or encodedgiveninferred by the encoderhalf of the latentSG(q)\mathrm{SG}(\mathbf{q}), time derivative of q\mathbf{q}
volume kept at every stepnoyesyeswithin one predictionyes, any horizon and actions
evaluated bystate error, energystate errorpixel error, energyclassificationphysical state from probes, collapse on the data

Table 3. LeHami beside prior Hamiltonian models: HNN (Greydanus et al., [16]), SRNN (Chen et al., [9]), HGN (Toth et al., [37]) and HamJEPA (Alvarez, [1]). Rolled out in time: the step is applied to its own output, one step per observed frame. Volume kept at every step: the discrete step used at inference is exactly symplectic.

Theory

Symplecticity of the leapfrog step: formal statement and proof

Proposition 1 is stated in the main text in geometric terms. Here we give the regularity hypotheses, render the three consequences in explicit form. Throughout, z=(q,p)∈R2d\mathbf{z} = (\mathbf{q}, \mathbf{p}) \in\mathbb{R}^{2d} and

J=(0Id−Id0)∈R2d×2d,JT=−J=J−1.\mathbf{J} = \begin{pmatrix} 0 & \mathbf{I}_d \\ -\mathbf{I}_d & 0 \end{pmatrix} \in\mathbb{R}^{2d \times2d}, \qquad \mathbf{J}^{\mathsf{T}} = -\mathbf{J} = \mathbf{J}^{-1}.

A C1C^1 map Ψ:R2d→R2d\Psi: \mathbb{R}^{2d} \to\mathbb{R}^{2d} is symplectic if DΨ(z)TJDΨ(z)=JD\Psi(\mathbf{z})^{\mathsf{T}}\mathbf{J}D\Psi(\mathbf{z}) = \mathbf{J} for every z\mathbf{z}, where DΨ(z)∈R2d×2dD\Psi(\mathbf{z}) \in\mathbb{R}^{2d \times2d} denotes the Jacobian of Ψ\Psi at z\mathbf{z}, i.e., [DΨ(z)]ij=∂Ψi/∂zj[D\Psi(\mathbf{z})]_{ij} = \partial\Psi_i/\partial z_j.

Proposition 2 (Formal form of Proposition 1). Let Tϕ1∈C2(Rd)T_{\phi_1} \in C^2(\mathbb{R}^d) and Vϕ2∈C2(Rd×U)V_{\phi_2} \in C^2(\mathbb{R}^d \times\mathcal{U}), and let Ψh\Psi_h be the leapfrog step of Eq. (4) generated by Hϕ=Tϕ1(p)+Vϕ2(q,u)H_{\phi}=T_{\phi_1}(p)+V_{\phi_2}(q,u) with the control uu held fixed within the step. This means that the leapfrog step can be written as Ψh=Ah/2∘Bh∘Ah/2\Psi_h=A_{h/2}\circ B_h\circ A_{h/2} with

Ah/2(q,p)=(q,p−h2∇qVϕ2(q,u)),Bh(q,p)=(q+h∇pTϕ1(p),p).(7)A_{h/2}(q,p)=\left(q,p-\frac{h}{2}\nabla_q V_{\phi_2}(q,u)\right),\qquad B_h(q,p)=\left(q+h\nabla_p T_{\phi_1}(p),p\right). \tag*{(7)}

Then Ψh\Psi_h is a C1C^1 diffeomorphism of R2d\mathbb{R}^{2d} that is exactly symplectic, which means that

DΨh(z)⊤JDΨh(z)=Jfor every z∈R2d,(8)D\Psi_h(z)^{\top} J D\Psi_h(z)=J \qquad\text{for every } z\in\mathbb{R}^{2d}, \tag*{(8)}

for every step size h>0h>0, every control u∈Uu\in\mathcal{U} and every parameter ϕ=(ϕ1,ϕ2)\phi=(\phi_1,\phi_2). Consequently det⁡DΨh≡1\det D\Psi_h\equiv1, Lebesgue measure volume on R2d\mathbb{R}^{2d} is Ψh\Psi_h-invariant, and for every horizon K∈NK\in\mathbb{N} the three below conditions are met:

(i) (no uniform contraction) the singular values of D(ΨhK)(z)D(\Psi_h^K)(z) with ΨhK:=Ψh∘⋯∘Ψh\Psi_h^K:=\Psi_h\circ\cdots\circ\Psi_h satisfy ∏i=12dσi=1\prod_{i=1}^{2d}\sigma_i=1, hence σmax⁡≥1≥σmin⁡\sigma_{\max}\geq1\geq\sigma_{\min} at every z∈R2dz\in\mathbb{R}^{2d},

(ii) (no asymptotically stable fixed point) Ψh\Psi_h admits no asymptotically stable fixed point, where “asymptotically stable” means: a fixed point z∗z^* that is Lyapunov stable and attracts every point of some open neighbourhood of itself;

(iii) (no merging) ΨhK\Psi_h^K is a composition of diffeomorphisms, hence itself a diffeomorphism of R2d\mathbb{R}^{2d}, in particular injective. Consequently, if z1≠z2z_1\ne z_2 then ΨhK(z1)≠ΨhK(z2)\Psi_h^K(z_1)\ne\Psi_h^K(z_2) for every K∈NK\in\mathbb{N}: two latents that differ at the anchor remain distinct at every horizon.

Proof. We start by showing that each of the half-steps are symplectic shears. For this, we fix u∈Uu\in\mathcal{U} and from Eq. (7) we compute their Jacobians as

DAh/2(q,p)=(Id0−h2∇qq2Vϕ2(q,u)Id),DBh(q,p)=(Idh∇pp2Tϕ1(p)0Id).DA_{h/2}(q,p)=\begin{pmatrix} I_d & 0 \\ -\frac{h}{2}\nabla^2_{qq}V_{\phi_2}(q,u) & I_d \end{pmatrix},\qquad DB_h(q,p)=\begin{pmatrix} I_d & h\nabla^2_{pp}T_{\phi_1}(p) \\ 0 & I_d \end{pmatrix}.

which are well defined and continuous since Tϕ1,Vϕ2∈C2T_{\phi_1},V_{\phi_2}\in C^2. Both are unipotent block-triangular, so det⁡DAh/2=det⁡DBh=1\det DA_{h/2}=\det DB_h=1. By Clairaut’s theorem, the C2C^2 regularity implies that the Hessians ∇qq2Vϕ2\nabla^2_{qq}V_{\phi_2} and ∇pp2Tϕ1\nabla^2_{pp}T_{\phi_1} are symmetric. This symmetry gives DAh/2⊤JDAh/2=JDA_{h/2}^{\top}JDA_{h/2}=J and DBh⊤JDBh=JDB_h^{\top}JDB_h=J. Thus, both maps are symplectic. Separately, each map has an explicit global C1C^1 inverse: Ah/2−1=A−h/2A_{h/2}^{-1}=A_{-h/2} and Bh−1=B−hB_h^{-1}=B_{-h}. Hence Ah/2A_{h/2} and BhB_h are C1C^1 diffeomorphisms of R2d\mathbb{R}^{2d}. Together, these facts show that both maps are exactly symplectic C1C^1 diffeomorphisms with unit Jacobian determinant, for every h>0h>0, u∈Uu\in\mathcal{U} and ϕ\phi.

Now we show that these properties survive composition: given Ψ,Φ\Psi,\Phi C1C^1 diffeomorphisms of R2d\mathbb{R}^{2d}, exactly symplectic, thus Ψ∘Φ\Psi\circ\Phi is. The chain rule shows that D(Ψ∘Φ)⊤JD(Ψ∘Φ)=DΦ⊤(DΨ⊤JDΨ)DΦ=DΦ⊤JDΦ=JD(\Psi\circ\Phi)^{\top}JD(\Psi\circ\Phi)=D\Phi^{\top}(D\Psi^{\top}JD\Psi)D\Phi=D\Phi^{\top}JD\Phi=J, and det⁡D(Ψ∘Φ)=det⁡DΨ⋅det⁡DΦ=1\det D(\Psi\circ\Phi)=\det D\Psi\cdot\det D\Phi=1. Thus, a composition of diffeomorphisms is a diffeomorphism.

With these two properties we can affirm that Ψh=Ah/2∘Bh∘Ah/2\Psi_h=A_{h/2}\circ B_h\circ A_{h/2} is thus C1C^1 diffeomorphism of R2d\mathbb{R}^{2d} and exactly symplectic. Likewise, every iterate ΨhK:=Ψh∘⋯∘Ψh\Psi_h^K:=\Psi_h\circ\cdots\circ\Psi_h (KK times) is a composition of C1C^1 diffeomorphisms of R2d\mathbb{R}^{2d}, exactly symplectic. Thus, ΨhK\Psi_h^K also is, with det⁡D(ΨhK)≡1\det D(\Psi_h^K)\equiv1, for every h>0h>0, K∈NK\in\mathbb{N}, u∈Uu\in\mathcal{U}, ϕ\phi. With this, the proof for the three conditions are straightforward.

Proof of (i). ∏i=12dσi(M)=∣det⁡M∣\prod_{i=1}^{2d}\sigma_i(M)=|\det M| for any square matrix MM. By taking M=D(ΨhK)(z)M=D(\Psi_h^K)(z) and using det⁡D(ΨhK)≡1\det D(\Psi_h^K)\equiv1, it follows that ∏i=12dσi=1\prod_{i=1}^{2d}\sigma_i=1, which means that σmax⁡≥1≥σmin⁡\sigma_{\max}\geq1\geq\sigma_{\min} at every z∈R2dz\in\mathbb{R}^{2d}.

Proof of (ii). Suppose z∗z^* is an asymptotically stable fixed point of Ψh\Psi_h, attracting an open neighbourhood UU. Choose a closed ball C=Br(z∗)‾⊂UC=\overline{B_r(z^*)}\subset U with r>0r>0. Lyapunov stability and attraction imply uniform convergence on CC: for any ϵ>0\epsilon>0, stability gives an open neighbourhood WW of z∗z^* whose forward iterates stay in Bϵ(z∗)B_\epsilon(z^*). Each point of CC enters WW after finitely many steps; by continuity, a neighbourhood of that point enters WW at the same step. Compactness gives a finite cover of CC by such neighbourhoods, so taking the largest of their entry times gives KϵK_\epsilon such that

ΨhK(C)⊆Bϵ(z∗)for all K≥Kϵ.\Psi_h^K(C)\subseteq B_\epsilon(z^*)\qquad\text{for all }K\geq K_\epsilon.

::: Volume preservation then gives

0<vol⁡(C)=vol⁡(ΨhK(C))≤vol⁡(Bε(z∗))=c2dε2d,0 < \operatorname{vol}(C) = \operatorname{vol}(\Psi_h^K(C)) \le\operatorname{vol}(B_\varepsilon(z^*)) = c_{2d}\varepsilon^{2d},

where c2dc_{2d} is the volume of the unit ball in R2d\mathbb{R}^{2d}. Letting ε→0\varepsilon\to0 yields a contradiction. Hence no such fixed point exists.

Proof of (iii). As shown, Ψhk\Psi_h^k is a diffeomorphism of R2d\mathbb{R}^{2d}, which means bijective, and hence injective. As a consequence, z1≠z2⟹Ψhk(z1)≠Ψhk(z2)z_1 \ne z_2 \Longrightarrow\Psi_h^k(z_1) \ne\Psi_h^k(z_2) for every k∈Nk \in\mathbb{N}.

Scope and limitations of the guarantee

Remark 3 (Shape, not size). A cloud that cannot be squeezed can still be sheared and stretched arbitrarily, so symplecticity places no bound on the growth of rollout error and does not make the rollout accurate. What it removes is the degenerate failure in its three forms: the rollout that shrinks in every direction at once, the one that settles onto an attractor and stops moving, and the one that merges states which started apart.

An unconstrained predictor FθF_\theta is under no such constraint, and the one-step objective pushes it the other way. Under any observation or latent noise, the minimiser of E∥Fθ(zt)−zt+1∥2\mathbb{E}\lVert F_\theta(z_t)-z_{t+1}\rVert^2 is the conditional mean E[zt+1∣zt]\mathbb{E}[z_{t+1}\mid z_t], which averages away whatever the anchor leaves undetermined: it contracts volume, and it sends latents that differ only in the averaged-out directions to a common image. Volume loss and merging are therefore the trained optimum for such a map and iterating it drives the rollout onto exactly the attracting set the proposition forbids for Ψh\Psi_h. The proposition says the Hamiltonian rollout cannot enter that regime at any step size hh, any parameter ϕ\phi or any horizon.

Remark 4 (Regularization is not made redundant). Proposition 1 states that the flow carries phase-space volume exactly and its does not state nothing about the shape of the distribution that volume belongs to. Due to this, regularization techniques are not made redundant. In this work, we leverage the SIGReg ((Balestriero & LeCun, 2025)) as regularizer, as it is the one used in LeWM and has shown state-of-the-art performance ([27]). For the isotropic Gaussian N(0,I)\mathcal{N}(0, I) installed by SIGReg at the encoder to be invariant under the flow, the radius ∥(q,p)∥2\lVert(q,p)\rVert^2 would itself have to be a conserved quantity of the generator, that is {∥(q,p)∥2,Hϕ}=0\{\lVert(q,p)\rVert^2, H_\phi\}=0. This is a genuine restriction: it is a functional constraint on HϕH_\phi, not a consequence of symplecticity, and a general learned Hamiltonian, which is action-conditioned, and parameterised by free-form networks as we do here, has no reason to satisfy it.

The two mechanisms are therefore complementary rather than substitutes. SIGReg shapes the encoder distribution, during training and in expectation over batches, which is where a collapse of the representation would originate. Symplecticity carries the volume of whatever distribution it is handed, at every inference step and for every input, which is where an iterated map would otherwise contract or explode.

Remark 5 (Geometric prior, no physical modeling). We are not modeling the physics of the observed system. HϕH_\phi is never fit to a known Hamiltonian and is not claimed to recover one: the true equations of motion enter only as evaluation targets for frozen read-out probes, never as a training signal. This is the point of departure from Hamiltonian neural networks ([16]) and SRNN ([9]), where the learned HϕH_\phi is a surrogate for the physical Hamiltonian and recovering it is the goal.

The prior models the latent representation space. Writing F\mathcal{F} for the maps a JEPA predictor may realize, we restrict it to the symplectomorphisms reachable as one leapfrog step of a learned separable generator Hϕ(qt,pt,ut)H_\phi(q_t,p_t,u_t); the content of that restriction is geometric (Proposition 1), and it governs the dynamics, or evolution, latent space. The canonical split is structural in the same sense: the encoder emits st=(qt,pt)s_t=(q_t,p_t) with qt,pt∈Rdq_t,p_t \in\mathbb{R}^d and the flow operates on that split by construction, but qtq_t is not assumed to encode position, nor ptp_t momentum, in any observation-space sense.

Why Hamiltonian and not Lagrangian

The two formalisms describe the same mechanics in different coordinates, so the choice is made on what each buys a predictor, and two things separate them here. First, the guarantee we rely on is a statement about phase space: symplecticity, and the volume preservation it implies (Proposition 1), are properties of a flow on (q,p)(q,p) and have no equally cheap counterpart on the tangent bundle (q,q˙)(q,\dot{q}) where a Lagrangian lives. Second, the Euler–Lagrange equations are second order in qq while Hamilton’s equations are first order on phase space and a separable HϕH_\phi makes the leapfrog step explicit, which is what keeps the map exactly symplectic at any hh rather than approximately so. Lagrangian neural networks [10] learn the Lagrangian directly; they keep energy but have no counterpart of the volume guarantee for the rollout map.

Design choices in the flow and the encoder

The shape of the Hamiltonian. In principle, there are multiple ways to structure the Hamiltonian. The simplest Hamiltonian is a separable one, where the kinetic term TϕT_\phi depends only on the momentum-like coordinates and the potential term VϕV_\phi depends only on the position-like coordinates and the action. This is a common choice in classical mechanics, and it allows for efficient integration using the leapfrog method, as discussed before. In this work, we focus on separable Hamiltonians, but more general forms can be considered as well.

We consider an action-conditioned Hamiltonian parametrized as HϕH_\phi, where the action utu_t represents an external control input that influences the evolution of the latent state. This can be interpreted as inducing an action-dependent vector field, where the action modulates the dynamics through the Hamiltonian. We condition the potential on the action:

Hϕ(q,p,u)=Tϕ1(p)+Vϕ2(q,u),(9)H_\phi(\mathbf{q},\mathbf{p},\mathbf{u}) = T_{\phi_1}(\mathbf{p}) + V_{\phi_2}(\mathbf{q},\mathbf{u}), \tag*{(9)}

so that the generalized force is F(q,u)=−∂Vϕ2/∂q\mathbf{F}(\mathbf{q},\mathbf{u}) = -\partial V_{\phi_2}/\partial\mathbf{q} and the dynamics remain in strict Hamiltonian form for every fixed action.

Let the action be piecewise constant, taking value ut\mathbf{u}_t on step tt, and write zt=(qt,pt)\mathbf{z}_t = (\mathbf{q}_t,\mathbf{p}_t). Decompose the change in the Hamiltonian across a step into the part due to the action changing and the part due to the flow,

Hϕ(zt+1,ut+1)−Hϕ(zt,ut)=Hϕ(zt+1,ut+1)−Hϕ(zt+1,ut)⏟(Wt+Hϕ(zt+1,ut)−Hϕ(zt,ut)⏟(rt,(10)\begin{aligned} H_\phi(\mathbf{z}_{t+1},\mathbf{u}_{t+1}) - H_\phi(\mathbf{z}_t,\mathbf{u}_t) ={}& \underbrace{H_\phi(\mathbf{z}_{t+1},\mathbf{u}_{t+1}) - H_\phi(\mathbf{z}_{t+1},\mathbf{u}_t)}_{\mathstrut W_t} \\ &+ \underbrace{H_\phi(\mathbf{z}_{t+1},\mathbf{u}_t) - H_\phi(\mathbf{z}_t,\mathbf{u}_t)}_{\mathstrut r_t}, \tag*{(10)} \end{aligned}

where WtW_t is the work performed by the change of action, which is a physical transfer of energy that any actuated model must reproduce, and rtr_t is the integrator residual. Summing, Hϕ(zK,uK)−Hϕ(z0,u0)=∑tWt+∑trtH_\phi(\mathbf{z}_K,\mathbf{u}_K) - H_\phi(\mathbf{z}_0,\mathbf{u}_0) = \sum_t W_t + \sum_t r_t, so the model’s energy tracks the accumulated work up to ∑trt\sum_t r_t.

Placing the prior on the latent map rather than on the observational world (see Remark 5) does not make it vacuous. If the observed dynamics contract phase-space volume, no dimensionally-matched re-coordinatization admits a symplectic latent map that reproduces them. While an overparameterized symplectic space could theoretically embed volume-contracting data by expanding orthogonal auxiliary dimensions to satisfy Liouville’s theorem, doing so forces the model to learn unphysical, exponentially diverging latent variables. Without such artificial dimensional expansion, dissipation is the primary property of the observed system that a purely symplectic representation cannot absorb.

Because both systems studied in this work preserve volume, we leave dissipative modeling to future work. This extension takes the same structured form as the rest of the model: introducing a learned matrix Dϕ3=Lϕ3Lϕ3T⪰0D_{\phi_3} = L_{\phi_3}L_{\phi_3}^{\mathsf{T}} \succeq0 into the momentum equation, which is positive semi-definite by construction so that it can only dissipate, smoothly recovering the symplectic model at Lϕ3=0L_{\phi_3} = 0.

The encoder and the SG stencil. Our proposal to model the dynamics in the latent representation space with a Hamiltonian flow is independent of the encoder architecture. However, in the self-supervised setting, the embeddings are being learned, together with its Hamiltonian evolution. For this reason, the encoder has to be sufficiently expressive to encode canonical coordinates. Encoding (q,p)(\mathbf{q},\mathbf{p}) is not just separating the embeddings as (z1,z2)=z(\mathbf{z}_1,\mathbf{z}_2) = \mathbf{z}, in which we just split the embedding into two.

We enforce q\mathbf{q} and p\mathbf{p} to be canonical by enforcing that the momentum-like coordinates are the time derivative of the position-like coordinates (p≡q˙\mathbf{p} \equiv\dot{\mathbf{q}} with unit mass). This is a common assumption in classical mechanics, where the momentum is defined as the derivative of the Lagrangian with respect to the velocity. We can enforce this by making the encoder produce the momentum-like coordinates as the differentiation of the position-like coordinates. Specifically, we can do this with numerical methods. In this work, we use a Savitzky–Golay filter [15] to first approximate the position-like coordinates with a polynomial and then compute the momentum-like coordinates as the derivative.

Concretely, pt\mathbf{p}_t is a fixed linear functional of the encoder trajectory around frame tt. We fit a quadratic in time to the encoded positions in a window by least squares whose coefficients are fixed in closed form by the window offsets and polynomial order alone. The least-squares fit sees the encoder values only as its right-hand side, never in its design matrix. Then, its derivative is evaluated at tt, which for a fixed window is a constant stencil. Three properties of this choice matter. The estimate is at frame tt rather than half a step behind it, unlike a backward difference, so qt\mathbf{q}_t and pt\mathbf{p}_t refer to the same instant and the pair is canonical in the only sense we can enforce. The stencil is linear in the encoder output with constant coefficients (i.e., no training involved), so it adds no parameters and cannot itself collapse: whatever the momentum block carries, it carries because the encoder trajectory moves. And a least-squares fit over several frames attenuates the high-frequency amplification that differentiation applies to a noisy signal, which a two-point difference does not, at the price of a truncation bias.

At the rollout anchor, in training and at inference alike, we use a four-frame causal window, since a centred window would read the frames the model is about to predict; the flow then evolves with no further stencil. The momentum targets used in training are computed with a five-frame centred window, t−2,…,t+2t-2,\ldots,t+2, on the encoded q\mathbf{q}’s. The causality constraint does not apply to the targets: they are read off the encoder trajectory only to be compared with the rollout, never fed into it, so frames on both sides of tt are available and using them leaks nothing. Given that choice, the centred window is the better estimator on both counts of the bias–variance trade-off above. Its weights, (−2,−1,0,1,2)/10(-2,-1,0,1,2)/10, are antisymmetric in time, which cancels every even-order error term, so the truncation bias starts at 3.46 q¨ Δt2\frac{3.4}{6}\,\ddot{\mathbf{q}}\,\Delta t^2 with no Δt3\Delta t^3 term, against 4.76 q¨ Δt2\frac{4.7}{6}\,\ddot{\mathbf{q}}\,\Delta t^2 plus a Δt3\Delta t^3 term for the four-frame causal window. It also amplifies independent per-frame encoder noise 24.5× less (a variance gain of ∑mwm2=0.10\sum_m w_m^2 = 0.10 against 2.45). Since the targets enter the loss at every rollout step, a noisier target would inject that variance into every gradient. The antisymmetry has one further consequence: reversing time maps pt↦−pt\mathbf{p}_t \mapsto-\mathbf{p}_t exactly, the transformation law of a momentum under time reversal, which a one-sided window does not satisfy.

Why there is no mass. In classical mechanics the momentum is p=Mq˙\mathbf{p}=\mathbf{M}\dot{\mathbf{q}} and the kinetic energy is 12pTM−1p\frac{1}{2}\mathbf{p}^{\mathsf{T}}\mathbf{M}^{-1}\mathbf{p}, so a physical model must know the mass matrix M\mathbf{M}. LeHami learns no mass, and the reason is the stencil: defining p≡q˙\mathbf{p}\equiv\dot{\mathbf{q}} already fixes M=I\mathbf{M}=\mathbf{I} in the learned coordinates. To see it, combine the definition with Hamilton’s first equation, q˙=∇pHϕ\dot{\mathbf{q}}=\nabla_{\mathbf{p}}H_\phi. On the data, a flow that reproduces the encoder trajectory must satisfy

∇pHϕ(q,p,u)=S−1∇Tϕ(S−1p)=p,(11)\nabla_{\mathbf{p}}H_\phi(\mathbf{q},\mathbf{p},\mathbf{u})=\mathbf{S}^{-1}\nabla_{\mathbf{T_\phi}}(\mathbf{S}^{-1}\mathbf{p})=\mathbf{p}, \tag*{(11)}

and integrating in p\mathbf{p} gives

Tϕ(S−1p)=12∥p∥2+Cϕ,(12)T_\phi(\mathbf{S}^{-1}\mathbf{p})=\frac{1}{2}\lVert\mathbf{p}\rVert^2+C_\phi, \tag*{(12)}

the kinetic energy of unit mass, whatever S\mathbf{S} is. A learned M\mathbf{M} would therefore be redundant rather than missing. For a system of constant mass the encoder can absorb M\mathbf{M} through the linear re-coordination q↦M1/2q\mathbf{q}\mapsto\mathbf{M}^{1/2}\mathbf{q}, under which 12q˙TMq˙\frac{1}{2}\dot{\mathbf{q}}^{\mathsf{T}}\mathbf{M}\dot{\mathbf{q}} becomes 12∥q˙∥2\frac{1}{2}\lVert\dot{\mathbf{q}}\rVert^2; this is a case of the latent-map freedom of Remark 5. For one degree of freedom with the stretch q′=m qq'=\sqrt{m}\,q (for the pendulum, q′=mL θq'=\sqrt{mL}\,\theta), whose momentum p′=q˙′p'=\dot{q}' carries the same kinetic energy with unit mass. The stretch may differ between episodes: on the actuated pendulum the encoder sees the mass in the frame (the bob is drawn larger), so one model learns from episodes with different masses, and the mass stays readable from the rollout (Table 20). What it needs is a mass that is constant within an episode. A configuration-dependent M(q)\mathbf{M}(\mathbf{q}) cannot be absorbed this way; the cart pole (Appendix § 13.3.3) is such a system. This is also why the scale S\mathbf{S} below stays close to the identity. Two caveats. First, the argument constrains TϕT_\phi only on the support of the data and only to the accuracy of the stencil and of the leapfrog position step (which uses ∇Tϕ\nabla T_\phi at the half-step momentum), so we keep TϕT_\phi as a 3-layer MLP, following Hamiltonian neural networks [16]. The quadratic is what that MLP must approximate at convergence, not a constraint we impose. Second, the re-coordination exists only when M\mathbf{M} is constant. When the mass matrix depends on configuration, M(q)\mathbf{M}(\mathbf{q}) as in a double pendulum, no global linear change of coordinates removes it, p=q˙\mathbf{p}=\dot{\mathbf{q}} is a velocity rather than a canonical momentum, and a separable Tϕ(p)T_\phi(\mathbf{p}) is mis-specified. Lifting this requires learning p\mathbf{p} jointly instead of reading it off with a fixed stencil.

modelK=0K = 0K=10K = 10K=30K = 30K=70K = 70
LeHami0.999 ± 0.0000.999 ± 0.0000.999 ± 0.0010.984 ± 0.011
LeWM W=10.999 ± 0.0000.993 ± 0.0090.988 ± 0.0190.979 ± 0.023
LeWM W=30.998 ± 0.0000.995 ± 0.0030.991 ± 0.0060.982 ± 0.016
MLP, matched0.999 ± 0.0000.994 ± 0.0030.993 ± 0.0030.993 ± 0.004
Transformer (LeWM’s)0.999 ± 0.0000.996 ± 0.0020.995 ± 0.0020.995 ± 0.003

Table 20. R2R^2 of the bob mass read from the rollout, actuated pendulum, linear probe, mean ± s.d. over three seeds.

Adaptation to the self-supervised setting. In the supervised setting, (q,p)(\mathbf{q},\mathbf{p}) are the canonical coordinates of the physical system. Here, in the self-supervised setting, these coordinate-like embeddings are learned jointly with their evolution, so nothing fixes the relative scale of q\mathbf{q} and p\mathbf{p}. Rescaling the momentum, p↦Sp\mathbf{p} \mapsto S\mathbf{p}, together with Tϕ(⋅)↦Tϕ(S−1⋅)T_{\phi}(\cdot) \mapsto T_{\phi}(S^{-1}\cdot), leaves the trajectory of q\mathbf{q} unchanged, so this scale is a gauge freedom that the objective cannot determine. This scaling is learned: S=diag⁡(eσ)S = \operatorname{diag}(e^{\boldsymbol{\sigma}}) with σ\boldsymbol{\sigma} learned (Eq. (3)) and the leapfrog of HϕH_{\phi} in Eq. (4) remains exactly symplectic; SS enters only the position step, through ∇pHϕ=S−1∇Tϕ(S−1p)\nabla_{\mathbf{p}}H_{\phi} = S^{-1}\nabla T_{\phi}(S^{-1}\mathbf{p}).

σ\boldsymbol{\sigma} is initialised at 00, so S=IS = I, and is learned jointly with all other parameters (encoder, projector, TϕT_{\phi} and VϕV_{\phi}) by back-propagating the multi-step rollout loss through the leapfrog updates of Eq. (4). Since SS enters only through TϕT_{\phi}, its gradient arrives through the position steps, via ∇pHϕ=S−1∇Tϕ(S−1p)\nabla_{\mathbf{p}}H_{\phi} = S^{-1}\nabla T_{\phi}(S^{-1}\mathbf{p}), and hence through every later prediction of the rollout. In practice SS remains close to the identity (diagonal entries between 0.95 and 1.09 across our trained models), since a per-dimension rescaling of p\mathbf{p} can equally be absorbed by the input weights of the MLP TϕT_{\phi}. Because SS enters through HϕH_{\phi} rather than being inserted into the standard leapfrog of HϕH_{\phi} (Eq. (4)), SS appears only in the position step because ∇pHϕ=S−1∇Tϕ(S−1p)\nabla_{\mathbf{p}}H_{\phi} = S^{-1}\nabla T_{\phi}(S^{-1}\mathbf{p}) while ∇qHϕ=∇qVϕ\nabla_{\mathbf{q}}H_{\phi} = \nabla_{\mathbf{q}}V_{\phi}. This makes the map to remain exactly symplectic.

Regularization. As discussed in the main text, in principle, the regularization can be applied in different ways over the embeddings produced by LeHami: (q,p)(\mathbf{q}, \mathbf{p}). Which is best is an empirical question our experimental results discuss. We apply step-wise SIGReg implemented by LeWM ([27]); they differ only in which embedding block contains. We show each of them below and they are the SS in the training loss (Eq. (5)).

We index the frames of a training clip by 0,…,T−10,\ldots,T-1, as in Eq. (5). The anchor sits at frame AA, so its causal window is frames 0,…,A0,\ldots,A (A=3A=3, four frames). The rollout then predicts frames A+1,…,A+KA+1,\ldots,A+K (K=8K=8). Each target pA+j\mathbf{p}_{A+j} is built from the centred window of half-width h=2h=2, so the last target reads frames up to A+K+hA+K+h, and a clip has T=A+K+h+1=14T=A+K+h+1=14 encoded frames. SIGReg is applied at every frame where the centred momentum is defined,

T={h,…,T−1−h}={h,…,A+K},∣T∣=10,\mathcal{T} = \{h,\ldots,T-1-h\} = \{h,\ldots,A+K\}, \qquad|\mathcal{T}| = 10,

which covers the anchor and all KK targets, plus the frames h,…,A−1h,\ldots,A-1 inside the anchor’s causal window. For the temporal encoders of window W>1W>1 these indices are in latent time. The encoder consumes W−1W-1 lead-in pixel frames, so a clip holds T+W−1T+W-1 pixel frames. One way is to apply SIGReg over the joint embedding. Given each q\mathbf{q} and p\mathbf{p} slice and a batch of BB embeddings, ZtZ_t stacks the concatenated phase-space embedding, step-wise over the full interior:

Zt=[(qt(i),pt(i))]i=1B∈RB×2d,S=1∣T∣∑t∈TSIGReg⁡(Zt).Z_t = \left[(q_t^{(i)},p_t^{(i)})\right]_{i=1}^{B} \in\mathbb{R}^{B\times2d}, \qquad\mathcal{S} = \frac{1}{|\mathcal{T}|}\sum_{t\in\mathcal{T}}\operatorname{SIGReg}(Z_t).

Another way is to split the application. Same T\mathcal{T}, but q\mathbf{q} and p\mathbf{p} are never concatenated and step-wise Gaussianity is tested on each block separately and summed:

Qt=[qt(i)]i=1B,Pt=[pt(i)]i=1B∈RB×d,S=1∣T∣∑t∈T[SIGReg⁡(Qt)+SIGReg⁡(Pt)].Q_t = \left[q_t^{(i)}\right]_{i=1}^{B},\quad P_t = \left[p_t^{(i)}\right]_{i=1}^{B} \in\mathbb{R}^{B\times d}, \qquad\mathcal{S} = \frac{1}{|\mathcal{T}|}\sum_{t\in\mathcal{T}}\left[\operatorname{SIGReg}(Q_t)+\operatorname{SIGReg}(P_t)\right].

We apply SIGReg across all the time steps in the batch because, as discussed in § 3 in the main text and in Remark 4, the preservation of volume, which we obtain through the symplectic structure, is not redundant to what SIGReg enforces.

Description of the experimental set up

Methodology

What is held fixed across the models. LeHami is implemented on top of the stable-worldmodel framework ([28]) and its stable-pretraining training harness (Balestiero et al., 2025), the same stack LeWorldModel [27] is built on. Encoder, projector, action encoder, optimiser and data pipeline are therefore shared with the baseline, and the only component that differs between the two models is the predictor and SG stencil that LeHami implements. Both models of every comparison see identical data, identical clip construction and an identical multi-step objective, the same number of epochs and the same optimizer and learning-rate schedule, so a difference in rollout behavior is not attributable to the training scheme.

The data split and checkpoint selection. We split the datasets into training, validation and test. Checkpoints are selected on the validation split. Both models use the same total latent dimension (64), split by the LeHami into q and p of half that width each (32) and used whole by the baseline, which has no momentum-like block. We assess performance as the predictor is unrolled K=8K = 8 self-fed steps from an anchor. For LeHami we construct the anchor from the causal Savitzky–Golay stencil (Appendix § 12.§ 4), so it sits at latent index A=3A = 3, with full backpropagation through time, the momentum term in the loss (Eq. (5)) carries λp=1.0\lambda_p = 1.0 and the distributional term λS=0.25\lambda_S = 0.25 is common among the models, and ∥⋅∥22\lVert\cdot\rVert_2^2 denotes the per-dimension mean rather than the sum, which differs from the sum by a constant 1/d1/d absorbed into those weights. LeWM’s predictor is a causal, action-conditioned transformer over the three most recent latents while in LeHami it is the Hamiltonian flow that evolves one state at the time. Regarding the SIGReg regularizer, while it is applied on z for the baseline, in LeHami we tried out different places. If not said otherwise, SIGReg is applied on q only. Refer to the discussion on this for the actuated pendulum in Appendix § 14.§ 3.

Implementation of LeHami

The Hamiltonian flow. It a separable Hamiltonian Hϕ(q,p,u)=Tϕ1(p)+Vϕ2(q,u)H_\phi(\mathbf{q}, \mathbf{p}, \mathbf{u}) = T_{\phi_1}(\mathbf{p}) + V_{\phi_2}(\mathbf{q}, \mathbf{u}) with two independent three-layer tanh MLPs of width 1024, integrated by one exactly symplectic kick–drift–kick leapfrog step per frame. For LEWM the projector output is a single zt∈R64\mathbf{z}_t \in\mathbb{R}^{64} and the predictor is the baseline’s causal autoregressive transformer with a sliding context of three latents. For LeHami, the Hamiltonian autograd path is pinned to fp32.

The encoder. We implemented both a tiny ViT (Wu et al. [40]) and a temporal ConvNet (Tran et al. [39]). For this temporal encoder, when there is no time window (W=1W=1) it means that the encoder takes one pixel frame xt\mathbf{x}_t and produces its respective embedding qt\mathbf{q}_t. Then, with these embeddings {qt−3,qt−2,qt−1,qt}\{\mathbf{q}_{t-3}, \mathbf{q}_{t-2}, \mathbf{q}_{t-1}, \mathbf{q}_t\} corresponding to multiple time steps, the pt\mathbf{p}_t is estimated. We also consider the temporal ConvNet with a temporal window in which pixel frames corresponding to multiple time steps are encoded to produce the embedding corresponding to a single time step. The general form of this architecture embedded into the LeHami framework is shown in Figure 6. The encoder is a (2+1)D(2+1)D network, meaning that the spatiotemporal convolution is factored into two spatial dimensions and one temporal one instead of a joint 3D kernel: a per-frame convolutional stem, one temporal mix, then the unchanged spatial trunk.

Temporal ConvNet encoder inside the LeHami framework

Figure 6. The temporal ConvNet encoder inside the LeHami framework, drawn at W=3W = 3. A window of frames goes through a stem applied once per frame, then a single Conv1d over time with a symmetric tied kernel (a,b,a)(a, b, a), then the baseline’s spatial trunk and projector, unchanged, to give qtq_t. The same encoder is used by the W=3W=3 LeWM baselines; the main LeHami model uses W=1W=1, i.e. no temporal mix. The rollout is initialised with the causal Savitzky–Golay momentum ptp_t, computed from the current and three previous positions only, and advanced one frame at a time by the leapfrog step (orange) of Hϕ=Tϕ(p/s)+Vϕ(q,u)H_\phi= T_\phi(\mathbf{p}/s) + V_\phi(\mathbf{q}, u), where the learnable per-dimension scale ss (blue) rescales the momentum and therefore appears only in the position update.

This encoder implementation allows to train across recording rates. The step size is an argument to the Hamiltonian flow rather than a property of its weights, so one learned HϕH_\phi can in principle be trained on episodes recorded at different rates. We describe the mechanism here for completeness, but no experiment in this paper uses it: every model is trained and evaluated at a single rate, and the conservative dataset is restricted to its Δt=0.1\Delta t = 0.1 s slice for exactly this reason (Table 4). We leave the mixed-rate comparison to future work.

A dataset that mixes recording rates stores each episode’s frame spacing in a dt_frame column; write Δtep\Delta t_{\mathrm{ep}} for an episode’s value and Δtref\Delta t_{\mathrm{ref}} for a single rate fixed once at config time (model.dt_ref). The leapfrog step carries a Δt2\Delta t^2 factor, so a Vϕ(q)V_\phi(q) fitted at one rate is wrong by (Δt/Δt′)2(\Delta t/\Delta t')^2 at another: training directly on mixed-rate episodes would hand Tϕ,VϕT_\phi, V_\phi a target that shifts with which episode a clip happens to come from. Dividing by Δtref\Delta t_{\mathrm{ref}} removes this factor, so one learned HϕH_\phi stays valid across every rate. We therefore integrate not in Δtep\Delta t_{\mathrm{ep}} but in the dimensionless ratio h=Δtep/Δtrefh = \Delta t_{\mathrm{ep}}/\Delta t_{\mathrm{ref}}.

Within an episode there is a single frame spacing and advancing one frame is one step. As LeHami parametrizes the time step inside the Hamiltonian flow, allowing to input, in principle, any arbitrary time step, episodes recorded at different rates could be trained on together. To do so, a recording rate is set as the reference, Δtref\Delta t_{\mathrm{ref}}, and let the integrator step be that episode’s spacing measured in units of it. An episode recorded at the reference rate is integrated with h=1h = 1, one recorded at twice the spacing with h=2h = 2, and so on. The learned HϕH_\phi is then the same object for every episode, expressed in reference time, and all the rate information the model needs travels with the clip as a single scalar. This is available to a Hamiltonian predictor precisely because its step size is an argument; an unconstrained predictor has no slot to put hh in, so the asymmetry is structural. We

do not report a mixed-rate head-to-head, because we did not run one. Note that the momentum must ride the same clock as the position update, so it is likewise divided by hh: pt=SG⁡(qt−2…t+2)/hp_t = \operatorname{SG}(q_{t-2\ldots t+2})/h, so that pp and the hh-scaled position update share one clock.

The SG stencil to compute the momentum-like embedding. The momentum-like embedding is never learned. It is always read off the encoder trajectory by one of two fixed Savitzky–Golay stencils, least-squares quadratic fits differentiated at tt (Appendix § 12.§ 4):

  • the causal stencil, over qt−3,…,qtq_{t-3},\ldots,q_t, gives the momentum that initialises a rollout (the anchor);

  • the centred stencil, over qt−2,…,qt+2q_{t-2},\ldots,q_{t+2}, gives the momentum targets of the loss (Eq. (5)), the pp seen by SIGReg, and the reference pp in evaluation.

The anchor needs the causal stencil because the frames after tt are the ones the model is about to predict, and reading them would leak the targets. The anchor therefore sits at latent index A=3A = 3, the first index with a full causal window.

There is no train–test shift in the momentum estimate. The state the flow is fed is built by the same causal stencil everywhere: in training, in the rollout evaluation, and in planning, both at the start state and at the goal (Appendix § 13.§ 4.3). The centred stencil is used only to build targets, never an input. After the anchor, pp is a state variable of the flow, and no stencil is applied to predicted latents.

The two stencils estimate the same derivative to the same order but differ in time parity. The centred weights are antisymmetric in the offset, so reversing the frame order sends ptp_t to −pt-p_t exactly. The causal stencil has no such symmetry: under reversal it becomes a forward stencil rather than minus itself. The reversal diagnostic starts from an anchor whose pp comes from the causal stencil, which is one reason it is reported as approximate rather than exact, even for a model whose TϕT_\phi were perfectly even.

Datasets and their architectures

Conservative pendulum.

The dynamics of a conservative pendulum of length LL and angle θ\theta is described by

θ¨=−gLsin⁡θ(13)\ddot{\theta} = -\frac{g}{L}\sin\theta \tag*{(13)}

with g=9.81 m s−2g = 9.81\ \mathrm{m\,s}^{-2}.

Our environment integrates this differential equation with a fourth-order Runge–Kutta scheme. We consider three different rod lengths: L∈{0.7,1.0,1.4} mL \in\{0.7, 1.0, 1.4\}\ \mathrm{m} rendered to scale, as shown in Figure 7, 300 episodes of 80 frames with a time step of Δt=0.1 s\Delta t = 0.1\ \mathrm{s} which are split into 210/45/45 train/val/test at the episode level. Initial conditions are drawn independently per episode: θ0∼U(−π,π)\theta_0 \sim U(-\pi,\pi), and the initial velocity is drawn in dimensionless units so that the phase-space coverage is matched across rod lengths such that θ˙0=ω~g/L\dot{\theta}_0 = \tilde{\omega}\sqrt{g/L} with ω~∼U(−a,a)\tilde{\omega} \sim U(-a,a) and a=2 rad s−1/g/L0≈0.639a = 2\ \mathrm{rad\,s}^{-1}/\sqrt{g/L_0} \approx0.639 at the reference length L0=1 mL_0 = 1\ \mathrm{m}, so that the bound reads ∣θ˙0∣≤2 rad s−1|\dot{\theta}_0| \le2\ \mathrm{rad\,s}^{-1} at L0L_0 and scales as g/L\sqrt{g/L} across rods.

Frames from the three rod lengths

Figure 7. Frames from the three rod lengths of (L∈{0.7,1.0,1.4}L \in\{0.7, 1.0, 1.4\} m), rendered to scale at 64 × 64. The rod length is therefore readable from a single frame, which is what makes it a positive control for the probes rather than a prediction target.

The range ∣θ˙0∣≤2 rad s−1|\dot{\theta}_0| \le2\ \mathrm{rad\,s}^{-1} is well below the separatrix velocity θ˙sep=2g/L≈6.26 rad s−1\dot{\theta}_{\mathrm{sep}} = 2\sqrt{g/L} \approx6.26\ \mathrm{rad\,s}^{-1}, so trajectories starting near the bottom (θ0≈0\theta_0 \approx0) always oscillate. However, because θ0\theta_0 is drawn from the full [−π,π][-\pi,\pi], trajectories starting near the unstable equilibrium (θ0≈±π\theta_0 \approx\pm\pi) carry large potential energy and rotate with any nonzero θ˙0\dot{\theta}_0. The dataset therefore spans both the oscillating and rotating regimes.

Each episode corresponds to a given rod’s length. The natural frequency of the pendulum is ω0=g/L\omega_0 = \sqrt{g/L}. Thus, it spans a 1.41×1.41\times range and a single learned VϕV_\phi must cover all three, which makes the rod length a system-identification target as well as a control.

Action as a force: actuated pendulum.

Here we consider an actuated pendulum whose rod’s length is LL and mass mm, whose dynamics are as the conservative pendulum in Eq. (13) but with an additional torque term, giving

θ¨=−gLsin⁡θ+umL2,(14)\ddot{\theta} = -\frac{g}{L}\sin\theta+ \frac{u}{mL^2}, \tag*{(14)}

where uu is the applied torque.

Episodes are 64 × 64 RGB, the manifest splits 630/135/135 episodes at the episode level, and every rollout reported here is driven by the recorded torque. Energy is not conserved and the potential energy Vϕ2(q,u)V_{\phi_2}(q,u) carries a time-varying input, so HϕH_{\phi} is explicitly time-dependent and drift along the rollout measures how much the torque moves the learned energy. Rod length again varies across episodes (0.7, 1.0, 1.4 m), as well as the rod mass (0.5, 1.0, 2.0 kg). In this dynamics, in contrast to the conservative pendulum, the mass impacts the torque term. Thus, a model whose latent does not carry signal of the mass, cannot know what a given torque will do.

The torque. The torque is held constant over h=3h = 3 frames (0.3 s), a zero-order hold at 3.3 Hz: this is 13–18% of the small-oscillation period T=2πL/gT = 2\pi\sqrt{L/g} (1.68–2.37 s over our lengths), so the drive is band-limited to roughly 3×3\times the natural frequency and injects or removes energy coherently over a fraction of a swing. A per-frame torque would instead be white noise on the dynamical timescale as averaging out over a period would leave trajectories close to the unforced pendulum. This choice also makes the torque observable from pixels. The physical time step is dt=0.1\mathrm{d}t = 0.1 s, so the torque is held constant through a block of 0.3 s against periods of 1.68 s (L=0.7), 2.01 s (L=1.0), 2.37 s (L=1.4), which correspond to 18%, 15%, 13% of a period, with 3.4-4.8 swings per episode, which last 8 s.

Mass-spring, two-body and cart pole

All three are rendered at 64 × 64 RGB, with 300 episodes of 160 frames split by episode into 210/45/45 for training, validation and test, as the conservative pendulum. Every model is trained with the recipe of the conservative pendulum: the same encoder, a latent of 32 + 32 dimensions for LeHami, an 8-step training rollout and SIGReg.

Mass-spring. The MASS-SPRING system of the DeepMind Hamiltonian Dynamics Suite (Botev et al. [8]): H=kq2/2+p2/(2m)H = kq^2/2 + p^2/(2m) with K=2K = 2 and m=0.5m = 0.5, so one period lasts π\pi s. Initial states lie on circles of radius r∈[0.1,1]r \in[0.1,1] in phase space, the bob is drawn at height qq, and frames are 0.05 s apart, as in the suite. The solution is exact.

Two-body. The suite’s TWO-BODY system: two unit masses under gravity (g=1g = 1), H=∑i∥pi∥2/2−1/∥q1−q2∥H = \sum_i \lVert p_i\rVert^2/2 - 1/\lVert q_1-q_2\rVert, starting on circular orbits, drawn as a red and a cyan disk. We use frames 0.2 s apart. A fit that the suite’s 0.05 s an episode of 160 frames covers between 0.2 and 1.1 of an orbit, and LeHami fails there; at 0.2 s an episode covers four times more of the orbit. We report both; the 0.05 s results are in Table 21. At 0.05 s the 8 training steps cover 1 to 6% of an orbit, a nearly straight path that shows little of the force; at 0.2 s they cover 4 to 22%. The probe reads the position and velocity of one body.

LeHamiMLP, matchedTransformer (LeWM’s)LeWM W=3W=3
position, K=10K = 100.016 ± 0.0010.017 ± 0.0010.019 ± 0.0020.015 ± 0.001
position, K=70K = 700.474 ± 0.0750.052 ± 0.0060.091 ± 0.0140.066 ± 0.005
distance between rollouts, K=70K = 702.920.900.830.94

Table 21. Two-body at the suite’s 0.05 s per frame. MAE of the position of one body (canvas units), 25-NN probe, mean ± s.d. over three seeds, and distance between rollouts over the true distance at K=70K = 70 (1 is right). Velocity and the baselines were not computed at this spacing. LeHami’s rollouts do not merge but spread apart, and its position error is several times the others’. The state is read well at the anchor (R2=1.00R^2 = 1.00 for position and velocity); the 8 training steps cover only 0.4 s, 1 to 6% of an orbit, too little curvature to learn the force.

Cart pole. Gymnasium’s cart pole ([38]), a cart of mass 1 carrying a uniform pole of mass 0.1 and half-length 0.5, with no force: the system is conservative, and it is integrated with RK4 (20 substeps per frame, frames 0.02 s apart) rather than Gymnasium’s explicit Euler, which adds energy. RK4 only generates the frames, as for the pendulum (App. D.3); it is not part of the model, and LeHami’s latent step is the leapfrog in every environment. The true cart pole cannot be stepped with an explicit leapfrog: that step needs a separable energy H=T(p)+V(q)H = T(p) + V(q), and here the kinetic energy depends on the pole angle. Our generator integrates the equations of motion in positions and velocities; there the leapfrog (velocity Verlet) needs accelerations that depend only on positions, and the cart pole’s depend on velocities too. A symplectic step for it would have to be implicit, so we use a standard accurate solver to generate the data. The pole swings below the upright position and the cart drifts at a speed of at most 0.2. Its kinetic energy couples the cart and the pole through cos⁡ϕ\cos\phi, so the mass matrix depends on the pole angle ϕ\phi. Since p=q˙p = \dot{q} assumes a mass that does not depend on the configuration (§ 3), this environment tests LeHami outside its assumption.

The data split protocol

The two pendulums are split into training, validation and test with the same protocol, summarised in Table 4. The split is 70/15/15 and is made at the episode level: a whole episode belongs to exactly one split, so no frame is shared between splits, and we verified that the episode indices of the three splits do not overlap in either dataset. The split is also stratified by design cell (rod length for the conservative pendulum; rod length and mass for the actuated one), so every cell contributes the same number of episodes to each split. Training clips are cut with stride 1 from the first 80 frames of each training episode, and the split is drawn with seed 42.

For the conservative pendulum we use 300 of the 1200 generated episodes. The generator sweeps four frame spacings, 300 episodes each, and we keep only the Δt=0.1\Delta t = 0.1 s slice, because every model in this paper is trained and evaluated at a single step size (see the paragraph on training across recording rates in Appendix D.2).

Evaluation

In this subsection we describe the evaluation we perform to benchmark the models.

The probes

Targets are θ\theta and ω\omega. For the first one, we probe (sin⁡θ,cos⁡θ)(\sin\theta, \cos\theta), which are recombined by atan2⁡\operatorname{atan2} so the reported angular error is wrapped. As described in main text, we study the performance across multiple probes and lead with the KNN probe trained at the first predictor’s output (K=1K = 1). This corresponds to equal-footing as both LeWM and LeHami capture relative differences among pixel frames. While LeHami does this structurally with the embedding pp, which is the approximated derivative of qq through the SG stencil, LeWM processes the history (three time steps) through the predictor.

Four measures of collapse on the data

Each measure compares the rollout from many test anchors with the truth: the encoder’s latents of the true frames KK steps later. Each is a ratio, rollout over truth, so 1 is right, below 1 the rollout contracts and above 1 it drifts.

  • Distance between rollouts. For pairs of anchors a,ba, b, the median of ∥z~ka−z~kb∥/∥zka−zkb∥\lVert\tilde{z}^{a}_{k} - \tilde{z}^{b}_{k} \rVert/\lVert z^{a}_{k} - z^{b}_{k} \rVert. Two rollouts that merge give 0.

  • Tangent area. The latents of real frames lie on a thin surface with as many dimensions rr as the physical state (2 for the pendulums, the mass-spring and two-body, 4 for the cart pole). Around an anchor, its nearby true states form a small patch of that surface. For the rollout and for the truth we fit the linear map from the offsets at the anchor to the offsets after KK steps, and compare the areas it gives to the patch: the ratio of their determinants on the rr leading directions, to the power 1/r1/r. Below 1, the rollout squeezes the data surface.

  • Spread. The root-mean-square distance between all rollout states at step KK, over the same quantity for the true latents.

  • Effective rank. (∑iσi)2/∑iσi2(\sum_i \sigma_i)^2/\sum_i \sigma_i^2, with σi\sigma_i the singular values of the centred cloud of rollout states, over that of the true latents.

Figure 8 shows the four measures against the rollout step, on all five environments, with LeWM on its own state.

Collapse against the rollout step across five environments

Figure 8. Collapse against the rollout step, five environments. Rows: the four measures, rollout over truth (1, dotted, means the rollout keeps the true geometry; below 1 it contracts). LeHami and the two predictors given the same state, next to LeWM on its own state from three frames (all environments) and from one frame (pendulums). Mean ±\pm s.d. over three seeds. The free predictors on the same state contract on every environment and measure; LeHami’s rollouts do not merge but drift above 1 past the trained horizon, and contract some directions on two-body and the cart pole. Two-body: LeHami’s effective rank falls below 1 after step 30 while its distance and spread grow, so its rollouts stretch along a few directions rather than shrink, consistent with a slow drift along the orbit (its learned energy does not match the physical one at 0.2 s per frame). Cart pole: its tangent area falls below 1 because the mass depends on the pole angle, so p=q˙p = \dot{q} is not the true momentum and the true motion does not keep volume in LeHami’s coordinates; LeHami’s step, which does, squeezes some data directions and stretches others (distance and spread above 1).

Trained or random. Proposition 1 holds for any HϕH_{\phi}, so a LeHami with random weights keeps the volume of the whole latent space exactly. Table 5 shows that this alone says nothing about the data: with random weights the tangent area ranges from 0.32 to 5.09.

environmentLeHami, trainedLeHami, random weightsMLP matched, trainedTransformer, trained
cons. pendulum (K=30K = 30)1.347±0.1341.347 \pm0.1340.3420.492±0.0680.492 \pm0.0680.618±0.0930.618 \pm0.093
act. pendulum (K=30K = 30)1.037±0.0341.037 \pm0.0345.0890.677±0.0560.677 \pm0.0560.814±0.0580.814 \pm0.058
mass-spring (K=50K = 50)1.225±0.0291.225 \pm0.0291.3400.165±0.0250.165 \pm0.0250.365±0.0460.365 \pm0.046
two-body (K=70K = 70)0.942±0.0340.942 \pm0.0340.3220.752±0.0440.752 \pm0.0440.762±0.0620.762 \pm0.062
cart pole (K=70K = 70)0.581±0.0170.581 \pm0.0170.7440.221±0.0440.221 \pm0.0440.201±0.0850.201 \pm0.085

Table 5. Tangent area at the longest step, trained against random weights. Mean ±\pm s.d. over three seeds; the random-weights column is one draw. Steps as in Table 1.

Planning

Results. Table 6 gives the planning results. We evaluate goal-reaching performance on goals with position and velocity clauses, separately and together, under a strict computational budget of 15 TFLOPs per episode. Under this constraint, models must balance their per-solve computational cost against their replanning interval (R). Both LeWM and LeHami accurately decode the rod’s mass and length along the whole rollout (Appendix Table 15). Since the torque’s effect depends on mass and length (Appendix Eq.14), both models have the information needed to predict the response to an action. Differences in planning therefore do not stem from failed system identification.

Capturing velocity dynamics within standard JEPA frameworks requires explicit architectural asymmetry. As shown in Table 6, the baseline LeWM with ConvNet without time window (W=1) fails in the velocity clause because its per-frame goal embedding carries no velocity, even though its predictor infers it from context. Expanding the window with a symmetric (tied) kernel only captures speed while remaining direction-blind since it maps ±ω\pm\omega to the same latent (Appendix Table 13). As 92% of the goals require the correct sign (Appendix Fig. 17), it performs below floor on the sign-resolved criterion of Appendix Table 14. In contrast, expanding with untied weights breaks temporal parity, allowing the model to capture signed velocity and achieve the highest success rate. However, this unrestricted temporal formulation incurs a high computational cost per solve. To remain under the 15 TFLOP budget, LeWM W=3 (untied) is forced into larger replanning intervals.

In contrast, LeHami structurally guarantees the representation of signed velocity by embedding the system’s physics. Momentum-like embedding is read off the encoder trajectory by a zero-parameter SG stencil, and the Hamiltonian flow itself has 2.23M parameters, against LeWM’s transformer and its predictor projection with 3.31M parameters (Appendix Table 8). This computational efficiency allows LeHami to evaluate more trajectories and replan more frequently (R=6R=6 steps with 5 solves) on the velocity and joint clauses, consuming less TFLOPs. While LeWM W=3 (untied) achieves a higher success rate, LeHami provides a structurally rigorous alternative. Replacing the fixed SG stencil with a jointly learned pp embedding offers a clear path to closing this performance gap while maintaining the volume-preserving guarantees.

Protocol. Planning is evaluated on the actuated pendulum only, since the conservative pendulum has no action to plan. Everything in this subsection therefore refers to the actuated pendulum, and it completes the description in § 4.5. Goals are read off held-out episodes, each model is scored in its own latent coordinates, and the action sequence is optimised by CEM under MPC. Nothing in the loop observes the future.

Goal construction. Goals are drawn from test episodes, never from training data. For each of the episodes we sample a goal frame gg and set the start frame to s=g−Ks = g - K, so the target is the state the trajectory actually occupied KK steps after the start. For the actuated pendulum this is a recorded (θg,ωg)(\theta_g,\omega_g) that is in general neither upright nor at rest. Building the goal this way guarantees reachability, which the model-free pre-flight below confirms, so a failure is attributable to the world model rather than to an impossible target.

ClauseModelSuccessTFLOPReplanning interval
PositionLeWM W=1W=10.800 ± 0.01912.87R=9R=9, 4 solves
LeWM W=3W=3 (tied)0.633 ± 0.02013.65R=9R=9, 4 solves
LeWM W=3W=3 (untied)0.696 ± 0.01613.65R=9R=9, 4 solves
LeHami0.480 ± 0.0848.05R=9R=9, 4 solves
VelocityLeWM W=1W=10.184 ± 0.0278.78R=15R=15, 2 solves
LeWM W=3W=3 (tied)0.473 ± 0.01413.65R=9R=9, 4 solves
LeWM W=3W=3 (untied)0.800 ± 0.05813.65R=9R=9, 4 solves
LeHami0.527 ± 0.01910.98R=6R=6, 5 solves
Position and VelocityLeWM W=1W=10.142 ± 0.03312.87R=9R=9, 4 solves
LeWM W=3W=3 (tied)0.400 ± 0.0379.31R=15R=15, 2 solves
LeWM W=3W=3 (untied)0.636 ± 0.02513.65R=9R=9, 4 solves
LeHami0.304 ± 0.08810.98R=6R=6, 5 solves

Table 6. Goal-reaching success on the actuated pendulum, by clause. Best success probability per model at a matched budget of at most 15 TFLOP/episode. Mean ± s.d. over three model seeds. The floor probabilities (corresponding to u=0u=0) are 0.060, 0.240 and 0.040 on each of the three clauses respectively. Bold marks the better model within a clause. The planner re-solves every RR steps towards the same goal at horizon 30, so it makes ⌈30/R⌉\lceil30/R\rceil solves, the last of which covers only the remaining steps.

Latent states, and the frames they are read from. Each model is given the state its own architecture defines, encoded from real frames at two instants only. At the start, the 5 recorded frames ending at ss are encoded; LeHami forms qq from the WW frames and p=SG⁡(q)p=\operatorname{SG}(q) with the same Savitzky–Golay stencil used during training, while the baseline encodes only zz in the same way as qq (with WW frames) and it forms its context of h=3h=3 latents and pass through the (unstructured) predictor. At the goal, LeHami encodes the (qg,pg)(q_g,p_g) in the same way using the causal stencil with embeddings corresponding to four time steps while LeWM zz is coming from WW frames to produce the goal state.

Optimisation. The cost is evaluated in each model’s own coordinates, so no ground-truth state enters the objective. A state-space cost would measure the probe rather than the world model. Actions are held over blocks of three frames, matching the hold of the dataset, and are constrained to to ∥a∥≤umax⁡\lVert a\rVert\le u_{\max}. CEM uses 300 samples, 30 iterations and 30 elites. Under MPC the first RR actions of a a∗\mathbf{a}^{*} context is re-encoded from the frames the controller has by then observed, and the problem is re-solved. The horizon shrinks to the frames remaining before the goal instant, so the target does not recede as the episode advances; a fixed horizon would leave the goal perpetually HH steps away and success rate meaningless.

No leakage. The rollout z~1,…,z~H\tilde{z}_1,\ldots,\tilde{z}_H is produced by self-feeding the model: one predictor call per step, with its output fed back as the next input. After the anchor, pp evolves under the learned flow as a state variable of the predictor; the Savitzky–Golay stencil is applied only to encoded real frames, at the start context and at the goal, never to predicted latents. Pixels therefore enter at two disjoint instants, the start context and the goal window, and no frame between them is ever encoded. No ground-truth state enters the rollout, the cost or the ranking of candidates. Under replanning, every re-encoded context is built from frames the controller has actually observed, all at or before the current step. The recorded actions of the episode are used only to fill the torques already applied at the start context, never as a candidate or as an initialisation of the search. Success is evaluated by the simulator on the executed trajectory, outside the planner.

Scoring success. Success is scored at the goal’s own timestep s+Ks+K, on the angle and the velocity with separate tolerances, ∣wrap⁡(θ−θg)∣<τθ\lvert\operatorname{wrap}(\theta-\theta_g)\rvert< \tau_\theta and ∣ω−ωg∣<τω\lvert\omega-\omega_g\rvert< \tau_\omega. Raw errors are written for every episode, so success as a function of tolerance is recoverable without re-running. Scoring at the goal’s timestamp rather than at any step within the budget is necessary rather than cosmetic: under an “ever passes near the goal” criterion, the best of 300 random action sequences under exact dynamics reaches every goal, and the measurement saturates for every model at every tolerance.

Both models use the same temporal ConvNet encoder, with W=1W=1 for LeHami and W∈{1,3}W \in\{1,3\} for LeWM, and the same latent dimension d=64d=64, with LeHami using qq and pp, each of dimension 32, and LeWM using only zz of dimension 64. SIGReg in LeHami is applied to qq only, while in LeWM it is applied to zz only. The weight of the SIGReg loss is 0.25 in both cases, and the same number of training epochs (35) was used for both models. Both models were trained with the same optimizer and learning rate schedule. For planning, both utilized the same CEM planner. When training, the temporal ConvNet encoder was centered in the window, to guarantee the embeddings of LeHami are canonical. For planning, in which we deploy online, we have to adapt. At wall-clock frame tt, having observed frames up to tt, the encoder can produce latents for instants up to t−lag⁡t-\operatorname{lag} so at planning time the context and goal latents are shifted by the encoder lag, and the rollout runs that many extra steps to reach the goal instant.

We integrate θ\theta without wrapping, so a policy that completes nn revolutions ends near θ0+2πn\theta_0 + 2\pi n. Because the goal specifies a pose, and poses a full turn apart are indistinguishable, we score the angle on the circle:

Δθ=wrap⁡(θT−θg),wrap⁡(a)=((a+π) mod 2π)−π,(15)\Delta\theta= \operatorname{wrap}(\theta_T-\theta_g), \qquad\operatorname{wrap}(a) = ((a+\pi)\bmod2\pi)-\pi, \tag*{(15)}

evaluated at the goal’s own timestamp TT. Wrapping the difference is essential: wrapping each angle first and subtracting introduces a spurious 2π2\pi jump at the branch cut, reporting a near-perfect match as a maximal error. An episode succeeds when ∣Δθ∣<0.1|\Delta\theta| < 0.1 rad and ∣ωT−ωg∣<0.5|\omega_T-\omega_g| < 0.5 rad s−1^{-1}. As Δθ\Delta\theta is circular, we summarise it by the mean resultant length Rˉ=∣N−1∑ieiΔθi∣\bar{R} = \left|N^{-1}\sum_i e^{i\Delta\theta_i}\right| (0 = uniform, 1 = concentrated) rather than by a linear mean and standard deviation.

Settings. Goals are placed K=30K=30 frames after the start, and the first solve plans over the full horizon H=30H=30. The replanning interval is swept over R∈{30,15,9,6,3}R \in\{30,15,9,6,3\}: R=HR=H is a single open-loop solve, and the smaller values are MPC at increasing feedback rates from the same first-solve horizon. Actions are bounded by umax⁡=4.0u_{\max}=4.0 and held for blocks of 3 frames, as in the dataset. CEM uses 300 samples, 30 elites, and 30 elites. Each configuration is run on N=50N=50 test episodes, for 3 model seeds ×\times 3 planner seeds, with tolerances (τθ,τω)=(0.1 rad,0.5 rad s−1)(\tau_\theta,\tau_\omega)=(0.1\text{ rad}, 0.5\text{ rad s}^{-1}).

Supplementary experimental results

In this section we showcase supplementary experimental results. First, we comment on some general properties of the proposed LeHami. To exemplify we use results corresponding to one of the two environments but the claim is in general. Then, in the following subsections we share results for each of the two environments studied.

LeHami replaces manual design choices with structural priors and lower compute

Given a sequence of pixel frames, our goal is to train a world model that captures the system’s physics, specifically its higher-order dynamic states from position to its time derivatives, the velocity and the momentum it determines. In JEPA architectures, capturing these spatiotemporal differences efficiently is a central design consideration. The default implementation of LeWM (Maes et al., [27]) employs a single-frame encoder (W=1W=1) and delegates the task of learning representations for higher-order moments entirely to a predictor that receives a three-step frame history. A direct limitation of encoding frames individually is the inability to represent goals containing velocity clauses at the single-latent level.

We assess these different design choices empirically. Figure 9 shows the R2R^2 of the angle θ\theta and angular velocity ω\omega decoded from anchor latents (K=0K=0) using a kk-NN probe. As expected, LeWM with a single-frame encoder (W=1W=1) fails to capture velocity, yielding an R2R^2 below zero. However, simply expanding the encoder to operate over a time window (W=3W=3) does not inherently improve the representation of velocity and can actually deteriorate it even without architectural care.

Bar charts showing $R^2$ of pendulum angle and angular velocity decoded from position-like and momentum-like latent halves

Figure 9. The LeHami embeddings on the actuated pendulum are canonical. R2R^2 of the pendulum angle θ\theta (left) and angular velocity ω\omega (right) decoded from the position half qq (solid) and momentum half pp (hatched) of the frozen encoder output. Probes are 25-NN under five episode-grouped folds fitted on embedded anchor frames (K=0K = 0) pooled across test episodes. R2R^2 of θ\theta is evaluated over (sin⁡θ,cos⁡θ)(\sin\theta, \cos\theta). Bars indicate the mean over three training seeds; error bars denote standard deviation. LeWM has no partitioned momentum block and is reported as a single joint latent zz.

Specifically, a temporal ConvNet with W=3W=3 employs a symmetric kernel by construction when weights are tied (e.g., [a,b,a][a,b,a] where outer taps share parameters). Consequently, the tied encoder is invariant to reversing the temporal order of the three frames in its window. Reversing time leaves the central angle unchanged while flipping ω→−ω\omega\to-\omega; the states (θ,+ω)(\theta,+\omega) and (θ,−ω)(\theta,-\omega) are therefore mapped to the exact same latent representation, rendering the sign of the velocity unrecoverable by any probe (see Appendix § 14.§ 3 for a detailed breakdown). Only even functions of velocity survive: absolute velocity ∣ω∣\lvert\omega\rvert remains highly decodable (R2=0.92R^2 = 0.92), while signed velocity ω\omega sits at the predict-the-mean floor.

While the parity of the kernel can be manually broken—either by untying parameters or feeding explicit frame increments (xt,xt−xt−1)(x_t,x_t-x_{t-1})—nothing in the standard JEPA objective forces the model to retain directional information downstream. The encoder is trained merely to make future embeddings predictable, and a representation blind to the direction of motion predicts its own sign-blind future embeddings perfectly well. The architectural choice is therefore made implicitly, with its failure modes appearing only when evaluating single-latent state readouts.

LeHami provides a structural solution rather than an empirical workaround. Instead of requiring the temporal encoder to learn velocity implicitly, LeHami partitions the representation into canonical pairs (q,p)(\mathbf{q},\mathbf{p}) and extracts momentum via p=SG⁡(q)\mathbf{p} = \operatorname{SG}(\mathbf{q}), an explicitly odd stencil across latents whose parity is fixed by construction. There is no kernel to tune; the Hamiltonian latent structure dictates where ω\omega resides, and encoder parity follows naturally.

As shown in Figure 9, the signal for predicting angular velocity ω\omega originates almost entirely from the momentum block p\mathbf{p}. Conversely, the angle θ\theta is predominantly captured by the position block q\mathbf{q}, with minor signal leakage into p\mathbf{p} arising because p\mathbf{p} is constructed as a temporal finite difference of q\mathbf{q}.

Furthermore, LeHami is cheaper to train. At every matched training budget on the conservative pendulum (Table 7), LeHami’s error is 1.61.6–3.3×3.3\times lower on θ\theta and 1.41.4–1.8×1.8\times lower on ω\omega, over three seeds. Its 0.75 PFLOP checkpoint is on par with LeWM’s at 6 PFLOP on the angle (0.30 against 0.33 rad, within one s.d.) and better on the velocity (1.05 against 1.18 rad/s), so LeHami matches the baseline with one-eighth of the training compute. Both models cost about the same per 100-epoch run (6.0–6.5 PFLOP, 0.7–1.1 GPU-h), so the gap reflects how efficiently each converts compute into prediction accuracy, not a difference in budget. LeHami also has fewer parameters (Table 8), so the advantage is not explained by capacity. The first version of this paper reported one seed; the non-monotone LeWM value it had at 1.5 PFLOP (0.871) came from that seed.

MetricModel0.75 PFLOP1.5 PFLOP3 PFLOP6 PFLOP
MAE θ\theta [rad]LeHami W=1W=10.304 ± 0.0310.213 ± 0.0080.247 ± 0.0130.207 ± 0.041
LeWM W=1W=10.642 ± 0.0480.710 ± 0.1400.462 ± 0.0250.332 ± 0.020
MAE ω\omega [rad/s]LeHami W=1W=11.045 ± 0.0930.939 ± 0.0620.916 ± 0.1280.854 ± 0.075
LeWM W=1W=11.604 ± 0.0231.694 ± 0.4081.345 ± 0.3151.178 ± 0.132

Table 7. MAE at a fixed training budget for the conservative pendulum. Test error at rollout step K=20K = 20, read by the frozen 25-NN probe, at the checkpoint with the lowest validation prediction loss within each compute budget (checkpoints saved every 10 epochs). Mean ± s.d. over three seeds.

Model parameters. The compute advantage above is not bought with capacity. Table 8 counts each model’s parameters from its checkpoint. The encoder is identical across the two families, and the latent projector differs only in its output width (32 for qq against 64 for zz), and the SG stencil is not trainable. Thus, the difference sits in the predictor. LeHami’s Hamiltonian flow, the two MLPs TϕT_{\phi} and VϕV_{\phi}, has 2.23M parameters, against 3.31M for LeWM’s autoregressive transformer, which also needs a 0.27M predictor projection head. In total LeHami has about 32% fewer parameters (3.03M against 4.44M), and widening LeWM’s encoder to W=3W=3 adds only ∼\sim3k. The same predictor gap drives planning cost, since over 99% of a planning episode’s arithmetic is spent rolling the predictor out (Appendix § 14.§ 3, Planning compute).

Conservative pendulum

Visualization of the latent representation space LeHami constructs. We take the encoded ground-truth embeddings across the frames in the episodes and across episodes and perform PCA, shown in Figure 10. It can be seen that the trajectory is constrained to the learned HϕH_{\phi}. This is possible because this Hamiltonian describes a conservative system, without any action. This Fig. shows empirically how the proposed LeHami imposes structure in the latent representation space that sets clear trajectories for the evolution.

Conservative pendulum rollout latents projected onto pairs of principal components

Figure 10. Conservative pendulum: rollout latents projected onto pairs of principal components. Each panel is one pair of the leading PCs of the encoder’s (q, p) over the test episodes, colour is the episode. The learned HϕH_{\phi} is conserved along each rollout, so an episode traces a closed curve in every projection rather than drifting across them.

Similarly, Figure 11 illustrates how the LeHami’s rollout stays on a single low-dimensional closed set per episode, stratified by its learned HϕH_{\phi}. The projection is obtained by mean-centring the latents per dimension and taking the SVD; the leading right-singular vectors are the components, with no

Latent representation space projected into the first two principal components

Figure 11. Latent representation space projected into the first two principal components (PCs). The embeddings correspond to LeHami (left) and unstructured LeWM (right), shown as a function (z-axis) of the Hamiltonian learned (left) and the physical energy corresponding to the episodes. The embeddings of four episodes are shown in colors. The planes with the same color correspond to the learned Hamiltonian and energy, respectively. While the rollout episode’s embeddings in LeHami are restrictive in each of the planes corresponding to the (constant) respective learned Hamiltonian, in LeWM, the rollout episode’s representations move across planes of energy, mixing up.

whitening and no rescaling. Centring matters here because otherwise the first component points at where the cloud sits rather than at how it spreads. Otherwise PC1 just points at where the data is, not at how it spreads. Refer to Figure 15 to see how the manifold in the latent representation space is modified by the action while still a surface of conserved energy minus work determines the trajectories. Each of the 60 test trajectories have been rolled out using the LeHami model, starting the anchor. In Figure 12 shows that the learned energy is conserved and that determines a horizontal plane in which the trajectory takes place without crossing different places. We compare with the ground-truth physical system on the left in which each energy level determines a clear shape for different values of energy, restricting the trajectories to those.

The learned energy landscape against the physical one

Figure 12. The learned energy landscape against the physical one. (left) level sets of the true energy of the conservative pendulum; (right) level sets of the learned HϕH_\phi over the same 60 test rollouts, each started from its own anchor. Distinct energies give disjoint closed curves in both, so the learned generator stratifies the latent space the way the physical energy stratifies phase space.

The learned energy landscape under actuation

Figure 15. The learned energy landscape under actuation. The same projection as Figure 12, for the actuated pendulum. The torque does work, so HϕH_\phi is not constant along a rollout and the trajectories cross the level sets instead of nesting into disjoint shells. Symplecticity is unaffected: it constrains the map, not the value of HϕH_\phi.

Rollout prediction across probes. Linear tier underperforms non-linear: ridge recovers ω\omega from the Hamiltonian phase space at only R2=0.45R^2 = 0.45 against 25-NN’s 0.975 (Table 10), so velocity is encoded non-linearly in (q,p)(\mathbf{q}, \mathbf{p}) and every linear number here is a lower bound. Moreover, the LeHami’s own momentum block degrades faster than its position block: Rp2R_p^2 against the reference momentum falls to 0.613 by K=10K = 10 and below zero by K=25K = 25, while Rq2R_q^2 is still 0.950 at K=10K = 10 (Table 9). Both Rq2R_q^2 and Rp2R_p^2 are computed in the latent space against the encoder’s own reference embeddings, so no angle is wrapped and the caveat that applies to R2(θ)R^2(\theta) does not apply here. The velocity advantage is therefore inherited from the representation.

rollout step KK01510202550
Rq2R_q^2 (position block)1.0000.9970.9850.9500.9290.6460.373
Rp2R_p^2 (momentum block)1.0000.9350.8670.6130.586−0.324-0.324−1.165-1.165

Table 9. Where the LeHami’s two blocks lose the reference, conservative pendulum. R2R^2 of the predicted qkq_k and pkp_k against the encoded ground-truth qq and pp at the same frame, test split. These are latent-space quantities in the model’s own coordinates, not physical ones: they measure how far the flow drifts from the encoder trajectory it was trained to reproduce, and being self-referential they cannot by themselves establish that a physical quantity survives. What survives decoding is in Table 10.

Encoder independence. The encoder in the head-to-head above is a ConvNet. To check that the effect is a property of the predictor rather than of that choice, we compare the tiny ViT (Wu et al. [40]) and ConvNet encoder pairs on a single-rod dataset (L=1.0L = 1.0 m, Δt=0.05\Delta t = 0.05 s, 500 episodes of 100 steps), holding everything else fixed. At the anchor, the LeHami decodes ω\omega at R2=0.929R^2 = 0.929 with a ViT encoder and 0.939 with a ConvNet; the unconstrained baseline scores −0.031-0.031 (ViT) and −0.018-0.018 (ConvNet). The ordering, its sign and its magnitude are unchanged by the encoder family, so the velocity content is attributable to the phase-space split and the flow, not to the vision backbone. Note that this check uses the single-rod dataset, for this reason its anchor values differ from those in Table 10.

We showcase that the proposed LeHami can leverage a pre-trained encoder to be a world model on pre-trained visual features as DINO-WM (Zhou et al. (2024)) does. For this, the pre-trained encoder, DINO-v2 (Oquab et al. [32]) is followed by a projector to output q∈R32q \in\mathbb{R}^{32}, and all the other components of LeHami remain the same. Similarly DINO-WM has a projector to project to 64-dimension space. This is DINO-LeHami. The loss for this model, as well as DINO-WM, is the same as the one used for both LeHami and LeWM for the training of the models we discussed in their performance in Figure 4. The evaluation is also exactly the same. Figure 13 shows that MAE in both θ\theta and ω\omega is reduced in comparison to their respective implementations without the pre-trained encoder. The advantage of LeHami in the angle MAE to LeWM seems to be reduced while for the velocity ω\omega it continues to outperform, while for KK larger than 60 both models start to deviate significantly.

DINO-LeHami and DINO-WM wrapped MAE on the conservative pendulum

Figure 13. DINO-LeHami vs. DINO-WM on the conservative pendulum. Both models use a frozen DINOv2 encoder followed by a learned projector; Wrapped MAE of θ\theta (left) and ω\omega (right) along the test rollout (KK steps, Δt=0.05\Delta t = 0.05 s), read by a kk-NN probe (k=25k = 25) fitted at K=1K = 1 and kept frozen. One training seed per model, both at epoch 60.

Phase-space volume of the one-step map. For a one-step predictor FF, zi+1=F(zi,ui)z_{i+1} = F(z_i, u_i), the Jacobian J(zi)=∂F/∂z∣ziJ(z_i) = \left.\partial F/\partial z\right|_{z_i} linearises FF around ziz_i, and ∣det⁡J(zi)∣\lvert\det J(z_i)\rvert is the factor by which an infinitesimal volume of states around zi\mathbf{z}_i is scaled. By multiplicativity of the determinant, ∑i<Klog⁡∣det⁡J(zi)∣\sum_{i<K} \log\lvert\det J(\mathbf{z}_i)\rvert is the log volume factor of the KK-step map. We divide by the state dimension nn so that maps of different sizes are comparable. A value of 0 means volume is preserved and a negative value means contraction. The true pendulum flow is symplectic, so 0 is also the ground truth. For LeHami, zi=(qi,pi)\mathbf{z}_i = (\mathbf{q}_i, \mathbf{p}_i) and FF is one leapfrog step, so det⁡J=1\det J = 1 exactly.

LeWM’s predictor takes three context embeddings and returns one, so it has no square map from a state to the next state. We therefore report two quantities. The full map acts on the context, (zt−2,zt−1,zt)↦(zt−1,zt,zt+1)(\mathbf{z}_{t-2}, \mathbf{z}_{t-1}, \mathbf{z}_t) \mapsto(\mathbf{z}_{t-1}, \mathbf{z}_t, \mathbf{z}_{t+1}) so its Jacobian is block-companion, and its determinant equals ±det⁡(∂zt+1/∂zt−2)\pm\det(\partial\mathbf{z}_{t+1}/\partial\mathbf{z}_{t-2}). The newest block, ∂zt+1/∂zt\partial\mathbf{z}_{t+1}/\partial\mathbf{z}_t, has the dimension of a single embedding and measures how the most recent state is rescaled and it is not a volume. Figure 14 shows both measures at the anchor of every test episode: LeWM contracts under the full map and under the newest block alike, with no overlap with LeHami, which stays at 0 for every state. The contraction is therefore not an artefact of which Jacobian is chosen for LeWM’s three-embedding context.

Log-volume factor of the one-step latent map on the conservative pendulum

Figure 14. Log-volume factor of the one-step latent map on the conservative pendulum. One Jacobian per test episode at the anchor (45 states; bars mark the mean). Left: the full map, n=64n = 64 for LeHami on (q,p)(\mathbf{q}, \mathbf{p}) and n=192n = 192 for LeWM on its three-embedding context. Right: the newest block ∂zt+1/∂zt\partial\mathbf{z}_{t+1}/\partial\mathbf{z}_t, n=64n = 64 for both. The dashed line is the true flow. One training seed per model.

Actuated pendulum

Physical state at the anchor. Table 11 scores the encoded state at the anchor, with no rollout, so it tests the encoder and the stencil rather than the predictor; § 4.3 discusses it.

modelprobeMAE θ\theta [10−210^{-2} rad]MAE ω\omega [rad/s]R2(ω)R^2(\omega)
LeHamiridge23.0 ± 2.01.168 ± 0.001+0.491 ± 0.005
25-NN6.8 ± 1.80.419 ± 0.045+0.889 ± 0.024
MLP2.9 ± 0.40.184 ± 0.019+0.987 ± 0.004
LeWMridge1.4 ± 0.12.422 ± 0.001−0.014 ± 0.001
25-NN1.1 ± 0.02.508 ± 0.002−0.103 ± 0.001
MLP1.9 ± 0.12.419 ± 0.001−0.011 ± 0.001

Table 11. Performance in physics prediction of the actuated pendulum at the anchor K=0. Mean ± s.d.over three training seeds, test split. Bold marks the better model within a probe tier. A negative R2R^2 is below the predict-the-mean floor.

Visualization of the latent representation space LeHami constructs. In this dataset, work is performed by the action. While in the conservative pendulum the energy determines the orbit as we observe a closed rings in Figure 12, in the actuated case, the trajectory is free to wander over a large region in the phase-space, so the surface of E−WE - W is a horizontal plane spanning the whole space, not a ring bounding anything. Different episode’s planes overlap in the phase-space because they transverse similar regions, making the latent representation space to look as in Figure 15, projected over the main PC of q\mathbf{q} and p\mathbf{p}, respectively. The planes are now curves, and each one correspond to a single value of torque (action), and the trajectories can move between these planes. However, given a torque, position in the space is determined.

Where to apply regularizer in LeHami. Given the ground-truth embeddings (produced by the encoder) (q,p)(\mathbf{q}, \mathbf{p}), with p\mathbf{p} the Savitzky–Golay derivative of q\mathbf{q} on the centred-valid window, the three placements to apply SIGReg are: λS\lambda_S SIGReg(q∥p](\mathbf{q}\Vert\mathbf{p}]) (joint), λS\lambda_S SIGReg(q)(\mathbf{q}) (q), and

λS\lambda_S SIGReg(q)+λS\lambda_S SIGReg(p) (split). We study the variance of the embeddings within-episode and between-episode in Table 12. A random unit direction in the 64-wide concatenation puts on average half its squared length in the qq block, so with p≈0p \approx0 the projected variance is ≈12Var⁡(q)\approx\frac{1}{2}\operatorname{Var}(q) and satisfying a standard-normal test (as with SIGReg) requires Var⁡per-dim(q)≈2\operatorname{Var}_{\mathrm{per\text{-}dim}}(q) \approx2 as we measure std⁡(q)=1.36\operatorname{std}(q) = 1.36 against a predicted 2=1.41\sqrt{2} = 1.41. Under q-mode, where the statistic sees only the 32 real dimensions, the variance lands at 0.941±0.0100.941 \pm0.010, the target. The joint statistic can be blind to the momentum block and indeed it is satisfied by killing it and inflating the position block to compensate as we see with the largest ratios of std⁡(p)/std⁡(q)\operatorname{std}(p)/\operatorname{std}(q). When splitting, the within-episode variance increases significantly. However, the standard deviation of pp though we apply the regularizer over, it remains far from unit. This is because pp is not free, it is conditioned on qq as it is estimated as its differentiation.

What the q row of Table 12 means on the actuated pendulum. Each episode has one of nine (mass, length) settings. Write the variance of qq, summed over dimensions, as Vw(q)+Vb(q)V_w(q) + V_b(q): VwV_w is the motion about each episode’s average, VbV_b the spread of the episode averages. The within share wq=Vw(q)/(Vw(q)+Vb(q))w_q = V_w(q)/(V_w(q) + V_b(q)) is 0.154 over three seeds, so 85% of the variance of qq is the episode average, which encodes the setting, and only 15% is the motion within the episode. pp is a time derivative, so it has no episode average (ρw=0.995\rho_w = 0.995), and the pooled ratio factorises as std⁡(p)/std⁡(q)=ρwwq=0.261×0.154=0.102\operatorname{std}(p)/\operatorname{std}(q) = \rho_w\sqrt{w_q} = 0.261 \times\sqrt{0.154} = 0.102, the 0.103 of the table, with ρw=Vw(p)/Vw(q)\rho_w = \sqrt{V_w(p)/V_w(q)} the ratio of the spreads of pp and qq within episodes. So std⁡(p)\operatorname{std}(p) looks small next to the episode averages that qq carries, not because pp is missing. The cost is elsewhere: the motion within an episode lies close to one direction of the latent (that direction holds 99.2% of Vw(q)V_w(q)), while 45 of the 135 test episodes (33%) go over the top at least once, 40 of them through a full turn: their angle wraps around, which one direction cannot represent. Split by episode type, the two cases separate (Table 24). On the 90 episodes that only oscillate, ρw=0.235\rho_w = 0.235 matches the data’s own ratio of the spreads of θ˙\dot{\theta} and θ\theta (0.249), and LeHami matches or beats both free predictors at every step. On the 45 that go over the top, ρw=0.289\rho_w = 0.289 against the data’s 0.077, and LeHami is the least accurate of the three at short steps; its short-horizon gap on this set (§ 4.3) comes from these episodes.

modeloscillating, K=10K = 10rotating, K=10K = 10oscillating, K=70K = 70rotating, K=70K = 70
LeHami0.156 ± 0.0400.646 ± 0.0300.603 ± 0.1061.512 ± 0.124
MLP, same state0.229 ± 0.0060.318 ± 0.0300.826 ± 0.0201.564 ± 0.044
Transformer, same state0.170 ± 0.0180.259 ± 0.0180.781 ± 0.0291.678 ± 0.026
LeWM W=3W = 3, own state0.047 ± 0.0110.120 ± 0.0200.343 ± 0.0301.200 ± 0.090

Table 24. Actuated pendulum, by episode type. The test episodes that go over the top at least once (45, rotating) and those that never do (90, oscillating). MAE of θ\theta [rad] by the 25-NN probe fitted at K=1K = 1, mean ± s.d. over three seeds; existing checkpoints, evaluated again.

Weighting the loss within episodes does not fix it. We trained LeHami with each clip’s qq and pp prediction errors weighted by the inverse of that clip’s own spread, which gives pp the same weight as qq (three seeds, conservative pendulum; Table 23). The encoder then stores the episode and loses the motion: wqw_q falls from 0.42 to 0.12 and the angle error at the anchor rises from 0.02 to 0.59 rad. Weighting the momentum term up rewards a latent that barely moves, which SIGReg allows because the episode constants keep the overall spread.

modelcollapse, K=30K = 30θ\theta, K=10K = 10θ\theta, K=30K = 30θ\theta, K=70K = 70θ\theta at the anchorwqw_q
LeHami (leapfrog)1.03/1.35/1.04/1.250.177 ± 0.0020.460 ± 0.0280.779 ± 0.0340.020 ± 0.0000.42
Euler, same HH1.71/4.67/1.71/1.660.508 ± 0.0121.291 ± 0.1031.524 ± 0.2620.018 ± 0.0010.49
LeHami, within-episode loss1.00/0.83/1.00/1.101.684 ± 0.0631.515 ± 0.1051.364 ± 0.0850.588 ± 0.1560.12
MLP, same state0.81/0.49/0.78/0.560.416 ± 0.0211.154 ± 0.0021.310 ± 0.0150.036 ± 0.0000.64
Transformer, same state0.86/0.62/0.83/0.700.279 ± 0.0521.073 ± 0.0091.313 ± 0.0460.034 ± 0.0010.62
chance–1.2991.1951.259––

Table 23. Two controls on the conservative pendulum. Euler, same HH: LeHami’s T(p)+V(q,u)T(p)+V(q,\mathbf{u}), networks and parameter count, with an explicit Euler step instead of the leapfrog, which does not keep volume. Within-episode loss: LeHami with each clip’s q and p errors weighted by the inverse of that clip’s own spread. Collapse as in Table 1 at K=30K = 30 (distance / tangent area / spread / rank; above 1 the rollout expands). MAE of θ\theta [rad] by the 25-NN probe; at the anchor, with the probe fitted on the encoder’s latents. wqw_q: share of the variance of q that is motion within episodes. Mean ± s.d. over three seeds.

Physics prediction in rollout. We studied the performance of LeHami applying SIGReg on three placements: λS\lambda_S SIGReg(q∥\Vertp) (joint), λS\lambda_S SIGReg(q) (q), and λS\lambda_S SIGReg(q)+λS\lambda_S SIGReg(p) (split). We study the variance of the embeddings within-episode and between-episode in Table 12. Based on this analysis, and on the performance in predicting the physical quantities of interest, applying SIGReg on the joint [q∥p][q\parallel p] has very bad performance. For this reason, we compare the performance in physics prediction of the other two variants. Table 11 reports the q placement, the model used for planning; the split placement is analysed in Table 12. LeHami significantly improves the reconstruction of the velocity, over a LeWM that performs worse than predicting the average. Regarding angle, the MAE achieved by LeWM is smaller than LeHami’s at every probe tier, though the gap narrows as the probe gains capacity. This is attributed to the fact that LeHami splits the capacity of the latent representation space into q and p, each (32) having the half the dimension of LeWM (64). Thus, an improvement in expressivity in one seems to deteriorate the other one.

The results corresponding to the rollouts are shown in Figure 16. The probes are trained at the anchor on training data, and the evaluated frozen. While LeWM has significantly lower MAE in angle for the smaller rollout steps, after K∼40K\sim40, the MAE overlaps with the one of LeHami. Regarding the velocity, for small KK LeHami show significantly lower MAE. As rollout progresses, after K∼10K\sim10, the performance is on par. This has to do, as commented before, that the predictor takes three context frames, and after rollouts, the embeddings start to have a better representation of velocity though it suffers the expected decay due to error accumulation through rollout.

Performance in physics predictions in rollout of the actuated pendulum

Figure 16. Performance in physics predictions in rollout of the actuated pendulum. Wrapped MAE of θ\theta (left) and ω\omega (right) along the test rollout, 25-NN probe fitted at K=1K = 1 and applied frozen. Same encoder, same schedule, same regularizer weight. Shaded area corresponds to the standard deviation across the three architecture seeds.

Capturing velocity through the encoder and unstructured predictor. While expanding the time window improves the prediction of the angle θ\theta of LeWM, it deteriorates the performance in predicting ω\omega unless the temporal weights are explicitly decoupled. The reason is that with no time window (W=1W=1), the velocity is captured only by the predictor, which takes three context frames to perform the next prediction. In the “tied” W=3W=3 variant, the kernel of the temporal ConvNet is symmetric by construction, with weights [a,b,a][a,b,a]. Thus, the tied encoder is invariant to reversing the order of the three frames in its window. Reversing time leaves the centre angle unchanged but flips ω→−ω\omega\to-\omega; the states (θ,+ω)(\theta,+\omega) and (θ,−ω)(\theta,-\omega) are therefore mapped to the same latent, and no readout of that latent can recover the sign. For a pendulum at θ\theta with rate ω\omega, the window holds θ−ωdt\theta-\omega dt, θ\theta, θ+ωdt\theta+\omega dt, and the symmetric average is

b+2acos⁡(ω dt)b+2a (sin⁡θ,cos⁡θ),(16)\frac{b+2a\cos(\omega\,dt)}{b+2a}\,(\sin\theta,\cos\theta), \tag*{(16)}

which corresponds to the middle frame (at time step tt), shrunk by that scalar factor between 0 and 1. Note that this contraction is even because the cosine function is even (i.e., cos⁡(ωdt)=cos⁡(−ωdt)\cos(\omega dt)=\cos(-\omega dt)), so ω\omega and −ω-\omega give the identical output. Conversely, the “untied” W=3W=3 variant removes this parameter sharing, learning independent weights [w1,w2,w3][w_1,w_2,w_3]. This unconstrained asymmetry allows the untied encoder to natively distinguish forward from backward motion.

This is measured empirically in Table 13 where it is shown that while the R2(∣ω∣)R^2(\lvert\omega\rvert) is significantly improved with expanding the time window in the tied encoder, the variance explained by the vector is lower with a lower R2(ω)R^2(\omega), and the gap between the two R2R^2 is amplified, in comparison to W=1W=1.

ModelnnR2(ω)R^2(\omega)R2(∣ω∣)R^2(\lvert\omega\rvert)gap
LeWM W=1W=13−0.048-0.048+0.032+0.032+0.080+0.080
LeWM W=3W=33−0.115-0.115+0.921+0.921+1.036+1.036

Table 13. The comparison of the R2R^2 due to the time window in the encoder. They correspond to the kk-NN (k=25k=25) probe applied on encoded anchor latents over held-out episodes, across 3 seeds. The nn refers to the history size of the predictor, which is the same in both. Note that W=3W=3 refers here to the tied variant, which exacerbates the sign-blindness gap.

Both LeWM models use three frames for history so the predictor sees three consecutive latents to predict the next one. Ordering is preserved at the predictor even though the tied encoder discarded it, and the sign of ω\omega is recoverable there. For W=1W=1, LeWM encodes no ω\omega at all at K=0K=0 yet it reads it at R2≈0.90R^2\approx0.90 after a single predictor step, so that information can only have come from the ordering of its context. At tied W=3W=3 that route survives but is degraded. With stride 1, latents jj and j+1j+1 are built from frames {j,j+1,j+2}\{j,j+1,j+2\} and {j+1,j+2,j+3}\{j+1,j+2,j+3\}, respectively. Because these adjacent latents share two out of three frames, consecutive-frame motion is attenuated by 34% compared to W=1W=1. Since it is exactly this frame-to-frame change that carries the directional sign at the predictor level, the tied time window hurts twice over. It hands the model an easy, sign-blind estimate of speed from the encoder, and it attenuates the one signal coming from the change between consecutive latents, from which the direction could still have been read.

On the contrary, LeHami is on the other side of this symmetry. The Hamiltonian flow does not have any history; it is capturing velocity solely via pp computed with a Savitzky–Golay finite difference of qq. This finite difference is an odd operator, hence sign-aware by construction. Any consistent first-derivative estimator satisfies ∑mwm=0\sum_m w_m = 0 and ∑mwmm=1\sum_m w_m m = 1, where mm indexes frames within the stencil window; reversing time sends m→−mm \to-m and hence the estimate to −1-1 times itself. The Hamiltonian model gets velocity not by seeing more frames or learning unrestricted asymmetric weights, but by applying an antisymmetric structural operator to them.

The distribution of the angles and velocities across the goals. As we perform a discussion about the models being able to capture the sign of the velocity, we show the distribution of the angles and the velocities across the goals for which we assess planning performance in Figure 17. Although the distribution of velocities is not centered around zero, and thus they are not balanced in sign, the difference is not sufficient to back up a claim that the goals favored the planning performance in terms of absolute value.

The 50 planning goals

Figure 17. The 50 planning goals. Left: the goal velocity ω∗\omega^*; dashed lines mark ±τω/2\pm\tau_\omega/2, beyond which a sign error alone fails the velocity clause. 92% of the goals lie outside them. Right: the goal angle θ∗\theta^*, wrapped; the green lines mark upright, which no goal is within τθ\tau_\theta of. Goals are recorded states of held-out test episodes at K=30K = 30 frames after the start, shared identically by every model, rung and seed.

Planning compute. At any fixed rung a planning episode costs LeHami 0.63×\times the baseline’s FLOPs. The saving is in the predictor rather than the encoder: over 99% of an episode’s arithmetic is the CEM rollout, where LeHami’s MLP flow costs 13.6 MFLOP per step per candidate against 21.7 for LeWM. LeWM’s predictor is a causal, action-conditioned transformer over the three most recent latents, in which self-attention is the only operation that mixes them; LeHami instead recovers the momentum-like coordinate from a causal Savitzky–Golay stencil, so its predictor never has to form that mixture.

Decomposing the velocity clause in planning: speed vs. direction. To understand the representational failure modes during planning, the task’s velocity clause ∣ω−ω∗∣<τω\lvert\omega-\omega^{*}\rvert< \tau_{\omega} can be decomposed into two distinct sub-components: a magnitude (speed) clause ∣∣ω∣−∣ω∗∣∣<τω\lvert\lvert\omega\rvert-\lvert\omega^{*}\rvert\rvert< \tau_{\omega} and a directional sign clause sign⁡(ω)=sign⁡(ω∗)\operatorname{sign}(\omega)=\operatorname{sign}(\omega^{*}).

On this domain, directional sign is the decisive factor: 92% of goals satisfy 2∣ω∗∣≥τω2\lvert\omega^{*}\rvert\ge\tau_{\omega}, meaning an agent arriving at the goal state spinning in the wrong direction cannot satisfy the velocity clause regardless of speed precision. Table 14 reports performance on both components.

ClauseModelSuccessTFLOPReplanning Interval (RR)
Velocity, magnitudeLeWM W=1W=10.251 ±\pm 0.0518.78R=15R=15, 2 solves
Velocity, magnitudeLeWM W=3W=3 (tied)0.638 ±\pm 0.00813.65R=9R=9, 4 solves
Velocity, magnitudeLeWM W=3W=3 (untied)0.813 ±\pm 0.05213.65R=9R=9, 4 solves
Velocity, magnitudeLeHami0.547 ±\pm 0.02210.98R=6R=6, 5 solves
Velocity, magnitudeu=0u=0 coast0.300——
Velocity, signLeWM W=1W=10.656 ±\pm 0.0175.85R=30R=30, 1 solve
Velocity, signLeWM W=3W=3 (tied)0.649 ±\pm 0.02213.65R=9R=9, 4 solves
Velocity, signLeWM W=3W=3 (untied)0.962 ±\pm 0.01713.65R=9R=9, 4 solves
Velocity, signLeHami0.800 ±\pm 0.0348.05R=9R=9, 4 solves
Velocity, signu=0u=0 coast0.680——

Table 14. Velocity clause decomposition into magnitude and directional sign components. Evaluated under the same computational budget (≤15\le15 TFLOP/episode) and protocol as Table 6.

The magnitude clause is where temporal windowing assists the baseline: LeWM W=3W=3 reaches 0.638 tied and 0.813 untied, compared to LeHami’s 0.547. On the sign clause, LeWM W=1W=1 (0.656) and tied LeWM W=3W=3 (0.649) both sit slightly below the passive u=0u=0 coasting floor (0.680), so neither planner gets the sign right more often than passive dynamics do. For tied LeWM W=3W=3 this is expected: its symmetric encoder maps opposite velocity directions to the same latent. Untying the kernel breaks this temporal parity, and untied LeWM W=3W=3 gets the sign right most often (0.962). LeHami and the untied LeWM W=3W=3 are the only models that improve over coasting on the sign clause; LeHami (0.800) does so without a learned temporal kernel and at 0.59×\times the compute (8.05 against 13.65 TFLOP).

Conditioning on the goal angle, P(θ∣ω)=P(θ)P(ω∣θ)P(\theta\mid\omega)=P(\theta)P(\omega\mid\theta), separates the two bottlenecks. LeHami’s advantage is on the sign, and it holds at every replanning interval: among plans that reach the goal angle, LeHami’s final velocity has the goal’s sign in 0.91–0.95 of cases, against 0.65–0.69 for tied LeWM W=3W=3 and 0.55–0.67 for LeWM W=1W=1. Only untied LeWM W=3W=3 does better (0.95–0.99). The full velocity clause given the angle does not consistently favor LeHami.

What limits LeHami’s joint success is reaching the goal angle. At R=9R=9 it reaches it on P(θ)=0.48P(\theta)=0.48 of plans, against 0.63 for tied and 0.70 for untied LeWM W=3W=3, so 0.48×0.55=0.26<0.63×0.61=0.390.48\times0.55=0.26<0.63\times0.61=0.39 for tied LeWM W=3W=3. On this task the bottleneck is positional goal-reaching, not the direction of the velocity.

Prediction of the rod’s length and mass. A symplectic flow conserves the Hamiltonian it has learned and phase-space volume, and nothing else by construction. The actuated pendulum has two further quantities that are exactly constant within an episode and visible in every frame: the rod length L∈{0.7,1.0,1.4} mL\in\{0.7,1.0,1.4\}\,\mathrm{m}, drawn at its true length, and the bob mass m∈{0.5,1.0,2.0} kgm\in\{0.5,1.0,2.0\}\,\mathrm{kg}, drawn as a constant-density sphere of radius ∝m1/3\propto m^{1/3}. Neither the architecture nor the loss asks the latent to keep them. They matter for control because the torque enters the dynamics only through u/(mL2)u/(mL^2) (Eq. (14)), so a model that loses mm cannot know what a given torque will do. We regress rather than classify: mm and LL are continuous parameters that happen to be sampled at three values, and R2R^2 registers the gradual drift of a frozen readout that a three-way accuracy would saturate over. Ridge and 25-NN probes are fitted on the anchor (K=0K = 0) latents of the 630 training episodes to predict (mm, LL) jointly, then applied frozen to each model’s own rollout and scored on the 135 test episodes.

Table 15: Performance in prediction of rod’s length and mass in the actuated pendulum. Both episode-constant parameters are recovered from the latent by probes fitted at anchor (K=0K = 0) on training episodes and applied unchanged along each model’s own rollout over 135 held-out episodes produced by LeHami and LeWM. R2R^2 is reported at the anchor and at the end of the horizon (K=76K = 76). Three seeds for LeHami (min–max in brackets) for both ridge and 25-NN probes. Both models carry both parameters. While the kk-NN (kk=25) probe is exact at every KK rollout, it is observed some drift for the ridge, affecting more LeHami. Note that the R2R^2 columns therefore measure how far the frozen readout drifts, not whether the parameter is still identifiable.

probemodel\multicolumn{2}{c}{rod length LL}\multicolumn{2}{c}{bob mass mm}
K=0K = 0K=76K = 76K=0K = 0K=76K = 76
ridgeLeHami0.9990.900 [0.871, 0.951]0.9990.977 [0.958, 0.993]
LeWM0.9990.983 [0.976, 0.990]0.9990.993
25-NNLeHami1.0000.997 [0.992, 1.000]1.0001.000
LeWM1.0001.0001.0001.000

Table 15.

Table 15 shows that both models carry both parameters. At the anchor every cell reads R2≥0.999R^2 \ge0.999. After 76 rollout steps the 25-NN probe is still essentially exact (R2≥0.997R^2 \ge0.997) for both models, while the frozen ridge probe drifts, more for LeHami (0.900 on LL and 0.977 on mm) than for LeWM (0.983 and 0.993). The drift is an affine deformation rather than a loss of information: by K=76K = 76 the linear readout of LL has over-dispersed by 3–6% and picked up a small offset, which a nearest-neighbour readout, depending only on which training points are closest, does not see. A local readout that keeps working while a fixed affine one loses calibration is the signature of a parameter that has been transported within the latent rather than destroyed. For control the drift is inconsequential: assigning the ridge prediction of mm to the nearest of {0.5, 1.0, 2.0} kg is correct on 99.3% of episodes at K=76K = 76 for both models, against a majority-class floor of 34.8%. The planning results of § 4.5 therefore cannot be attributed to either model being blind to the mass.

Physical errors at a short and a long step

All results in the rest of this appendix are over three training seeds, on the test split. Figure 18 shows the errors at every rollout step, against chance, and Tables 16 and 17 extend Table 2 with a short step.

environmentLeHamiMLP, matchedTransformer (LeWM’s)repeat the startpredict the mean
cons. pendulumposition, K=30K = 300.460 ± 0.0281.154 ± 0.0021.073 ± 0.0091.2131.195
velocity, K=30K = 301.318 ± 0.0702.905 ± 0.1062.658 ± 0.1102.8132.723
position, K=70K = 700.779 ± 0.0341.310 ± 0.0151.313 ± 0.0461.2591.324
velocity, K=70K = 702.185 ± 0.2272.672 ± 0.0852.566 ± 0.1442.7412.499
act. pendulumposition, K=30K = 300.596 ± 0.0270.811 ± 0.0200.707 ± 0.0041.1081.019
velocity, K=30K = 301.458 ± 0.0592.089 ± 0.0521.858 ± 0.0322.7332.607
position, K=70K = 700.908 ± 0.0671.073 ± 0.0271.076 ± 0.0151.1861.168
velocity, K=70K = 702.280 ± 0.2062.721 ± 0.0332.801 ± 0.0863.2222.541
mass-springposition0.074 ± 0.0160.223 ± 0.0050.164 ± 0.0180.4220.336
velocity0.086 ± 0.0090.254 ± 0.0040.201 ± 0.0190.4360.347
two-bodyposition0.421 ± 0.0470.148 ± 0.0730.183 ± 0.0372.5021.456
velocity0.112 ± 0.0130.056 ± 0.0340.062 ± 0.0190.6880.423
cart poleposition1.041 ± 0.0981.190 ± 0.0931.104 ± 0.0812.2761.285
velocity2.314 ± 0.1922.140 ± 0.1012.248 ± 0.2993.7782.409

Table 2. Physical prediction at the longest step, five environments. MAE of the position and the velocity read from the rollout by the 25-NN probe, mean ± s.d. over three seeds. Pendulums: θ\theta [rad], ω\omega [rad/s], K=70K = 70 and K=30K = 30, the step of Table 1. Mass-spring: qq, pp, K=50K = 50. Two-body: position and velocity of a body, K=70K = 70. Cart pole: ϕ\phi [rad], ϕ˙\dot{\phi} [rad/s], K=70K = 70. Bold: lowest of the three predictors given the same state. The two baselines use no model.

Physical errors against the rollout step in five environments

Figure 18. Physical errors against the rollout step, five environments. MAE of the position (top) and the velocity (bottom) read by the 25-NN probe, mean ±\pm s.d. over three seeds; models as in Figure 8. Dotted: the better of the two baselines without a model. The dotted curve is the lower of the two baselines at each step, which explains its shape on the mass-spring: repeating the start is exact at step 0, and its error grows as the bob moves away; from about step 10 predicting the mean is lower, so the curve stays flat; near one period (π\pi s, 63 steps) the bob returns to where it started, so repeating the start becomes exact again and the curve drops.

Collapse is not the only way to fail. LeWM on its own one-frame state keeps the distance between its rollouts (Figure 8), yet its error grows with the step. At a fixed step, we split the squared error of the decoded velocity over the test episodes into three parts: a constant offset, a wrong spread (predictions too spread out or too bunched together), and a loss of correlation with the truth. On the conservative pendulum at K=30K = 30, loss of correlation is 98% of LeWM’s error and 87% of LeHami’s, and LeWM’s predictions keep about the true spread. So LeWM fails by losing track of the state, for example by drifting out of phase, not by merging states. Keeping volume prevents merging; it does not prevent losing track.

How much of the error is collapse. A frozen probe PP, fitted on the encoder’s latents of true frames, reads a physical quantity from the rollout: y^k=P(z~k)\hat{y}_k = P(\tilde{z}_k), against the true value yky_k. Over the test starts, the mean squared error of any such reading can be written as ([31])

E[(y^k−yk)2]=(μ^−μ)2+(σ^−rσ)2+(1−r2)σ2,\mathbb{E}\left[(\hat{y}_k-y_k)^2\right] = (\hat{\mu}-\mu)^2 + (\hat{\sigma}-r\sigma)^2 + (1-r^2)\sigma^2,

with μ\mu, σ\sigma and μ^\hat{\mu}, σ^\hat{\sigma} the mean and standard deviation of yky_k and y^k\hat{y}_k over the test starts, and rr the Pearson correlation between y^k\hat{y}_k and yky_k over the same starts, at a fixed step KK. This is an identity, not a model of the error. Collapse of the rollout shows up in the amplitude term, as readings that vary less than they should (σ^<rσ\hat{\sigma}<r\sigma). Table 22 gives its share. On the mass-spring it is most of the free predictors’ error: their readings stay correlated with the truth (0.95 and 0.98) but vary too little, and the amplitude part is 79% and 83% of their position error, against 5% for LeHami. Their rollouts there also lose rank (Table 1), so this is more than a change of scale: directions of the motion are lost. On the pendulums, two-body and the cart pole their correlation with the truth is low, the amplitude part is small, and the error is mostly loss of correlation; merging can cause that, but so can drifting out of step, as LeWM on its own state shows.

predictorcons. pendulumact. pendulummass-springtwo-bodycart pole
LeHami1.03/1.35/1.04/1.251.00/1.04/1.01/1.211.10/1.22/1.15/1.571.50/0.94/1.59/0.831.33/0.58/1.42/0.94
MLP, matched0.81/0.49/0.78/0.560.91/0.68/0.90/0.840.73/0.17/0.70/0.370.85/0.75/0.85/0.940.72/0.22/0.71/0.56
Transformer (LeWM’s)0.86/0.62/0.83/0.700.92/0.81/0.90/0.900.83/0.37/0.80/0.590.84/0.76/0.84/0.950.63/0.20/0.64/0.61

Table 1. Rollout collapse on the data, at the longest step. Each cell gives four ratios of the rollout to the truth, separated by slashes: distance between rollouts / tangent area / spread / effective rank; 1 is right, below 1 the rollout contracts, above 1 it drifts. Mean over three seeds (largest s.d. 0.17). Steps KK: 30 for the pendulums, 50 for the mass-spring, 70 for two-body and the cart pole.

predictorcons. pendulum, K=30K = 30act. pendulum, K=30K = 30mass-spring, K=50K = 50two-body, K=70K = 70cart pole, K=70K = 70
LeHami14% / 13%24% / 23%5% / 2%22% / 24%17% / 5%
MLP, matched16% / 16%18% / 9%79% / 69%1% / 1%12% / 1%
Transformer (LeWM’s)22% / 15%20% / 9%83% / 71%1% / 1%3% / 3%
LeWM W=3W=36% / 7%9% / 11%1% / 3%0% / 0%0% / 0%

Table 22. Share of the squared error due to the amplitude part. Collapse shows up in this part, as predictions that vary less than they should. Each cell gives position / velocity, read by the 25-NN probe at the steps of Table 1, mean over three seeds. Position and velocity: sin θ\theta and cos⁡θ\cos\theta for the pendulums, qq and pp for the mass-spring, the orbit’s canonical coordinates qq and pp for two-body, ϕ\phi and its momentum for the cart pole. The rest of the error is almost all loss of correlation.

The probe is the 25-NN probe fitted on one-step predictions of the training episodes. Two-body positions are in canvas units (one pixel is 0.087).

environment, stepLeHamiMLP, matchedTransformer (LeWM’s)repeat the startpredict the mean
cons. pendulum θ\theta, K=10K = 100.177 ±\pm 0.0020.416 ±\pm 0.0210.279 ±\pm 0.0521.9811.299
cons. pendulum θ\theta, K=30K = 300.460 ±\pm 0.0281.154 ±\pm 0.0021.073 ±\pm 0.0091.2131.195
cons. pendulum θ\theta, K=70K = 700.779 ±\pm 0.0341.310 ±\pm 0.0151.313 ±\pm 0.0461.2591.324
act. pendulum θ\theta, K=10K = 100.319 ±\pm 0.0370.259 ±\pm 0.0120.200 ±\pm 0.0181.6881.053
act. pendulum θ\theta, K=30K = 300.596 ±\pm 0.0270.811 ±\pm 0.0200.707 ±\pm 0.0041.1081.019
act. pendulum θ\theta, K=70K = 700.908 ±\pm 0.0671.073 ±\pm 0.0271.076 ±\pm 0.0151.1861.168
mass-spring qq, K=10K = 100.013 ±\pm 0.0010.030 ±\pm 0.0010.025 ±\pm 0.0010.3270.355
mass-spring qq, K=50K = 500.074 ±\pm 0.0160.223 ±\pm 0.0050.164 ±\pm 0.0180.4220.336
two-body position, K=10K = 100.027 ±\pm 0.0060.024 ±\pm 0.0090.027 ±\pm 0.0010.8281.456
two-body position, K=70K = 700.421 ±\pm 0.0470.148 ±\pm 0.0730.183 ±\pm 0.0372.5021.456
cart pole ϕ\phi, K=10K = 100.109 ±\pm 0.0050.072 ±\pm 0.0140.058 ±\pm 0.0120.5111.224
cart pole ϕ\phi, K=70K = 701.041 ±\pm 0.0981.190 ±\pm 0.0931.104 ±\pm 0.0812.2761.285

Table 16. MAE of the position. Mean ±\pm s.d. over three seeds. Bold: lowest of the three predictors given the same state. The baselines use no model.

LeHami against LeWM with its own state

Tables 1 and 2 compare predictors on the same state. Table 18 compares LeHami with LeWM on its own learned state: from one frame (W=1W=1, the baseline of the main text, run on the pendulums) or from three (W=3W=3, untied kernel, run on all five). Both have the same latent size as LeHami (64), but learn all of it, while LeHami learns 32 dimensions and computes the other 32 (p=SG⁡(q)p = \operatorname{SG}(q)); LeWM W=3W=3 also has more parameters (4.45M against 3.03M).

cons. pendulumact. pendulummass-springtwo-bodycart pole
Collapse
LeHami1.03/1.35/1.04/1.251.00/1.04/1.01/1.211.10/1.22/1.15/1.571.50/0.94/1.59/0.831.33/0.58/1.42/0.94
LeWM W=1W=11.01/0.78/1.01/0.981.00/1.06/1.00/1.00–––
LeWM W=3W=30.99/1.00/0.99/0.990.99/1.00/0.99/0.990.99/1.00/0.98/1.010.98/0.95/0.98/1.000.93/0.76/0.92/0.97
Position MAE
LeHami0.779 ± 0.0340.908 ± 0.0670.074 ± 0.0160.421 ± 0.0471.041 ± 0.098
LeWM W=1W=11.242 ± 0.1340.984 ± 0.151–––
LeWM W=3W=30.502 ± 0.0900.644 ± 0.0490.016 ± 0.0030.165 ± 0.0220.203 ± 0.033
Velocity MAE
LeHami2.185 ± 0.2272.280 ± 0.2060.086 ± 0.0090.112 ± 0.0132.314 ± 0.192
LeWM W=1W=12.732 ± 0.2762.259 ± 0.151–––
LeWM W=3W=31.134 ± 0.1451.820 ± 0.1120.015 ± 0.0040.052 ± 0.0070.652 ± 0.077

Table 18. LeHami against LeWM with its own state. Collapse cells give distance between rollouts / tangent area / spread / effective rank, as in Table 1, at the same steps. MAE as in Table 2, at K=70K = 70 (K=50K = 50 for the mass-spring), mean ± s.d. over three seeds. –: not run.

environment, stepLeHamiMLP, matchedTransformer (LeWM’s)repeat the startpredict the mean
cons. pendulum ω\omega, K=10K = 100.473 ± 0.0031.418 ± 0.0381.160 ± 0.0553.6022.386
cons. pendulum ω\omega, K=30K = 301.318 ± 0.0702.905 ± 0.1062.658 ± 0.1102.8132.723
cons. pendulum ω\omega, K=70K = 702.185 ± 0.2272.672 ± 0.0852.566 ± 0.1442.7412.499
act. pendulum ω\omega, K=10K = 100.913 ± 0.0490.895 ± 0.0450.773 ± 0.0243.1202.065
act. pendulum ω\omega, K=30K = 301.458 ± 0.0592.089 ± 0.0521.858 ± 0.0322.7332.607
act. pendulum ω\omega, K=70K = 702.280 ± 0.2062.721 ± 0.0332.801 ± 0.0863.2222.541
mass-spring pp, K=10K = 100.038 ± 0.0030.144 ± 0.0060.103 ± 0.0110.3240.367
mass-spring pp, K=50K = 500.086 ± 0.0090.254 ± 0.0040.201 ± 0.0190.4360.347
two-body velocity, K=10K = 100.007 ± 0.0010.007 ± 0.0030.008 ± 0.0000.2730.423
two-body velocity, K=70K = 700.112 ± 0.0130.056 ± 0.0340.062 ± 0.0190.6880.423
cart pole ϕ˙\dot{\phi}, K=10K = 102.015 ± 0.0541.370 ± 0.1041.272 ± 0.3951.9872.544
cart pole ϕ˙\dot{\phi}, K=70K = 702.314 ± 0.1922.140 ± 0.1012.248 ± 0.2993.7782.409

Table 17. MAE of the velocity, same layout. On the cart pole the probe reads ϕ˙\dot{\phi} poorly from [q, SG(q)] even before any rollout, so those rows measure the probe more than the rollout.

LeWM W=3W=3 is more accurate on four of five environments and mostly does not contract; on the cart pole, the hardest environment, it starts to (tangent area 0.76), and nothing in its predictor prevents this. LeWM W=1W=1 is less accurate than LeHami on the conservative pendulum at K=70K = 70 (1.24 against 0.78 rad) and close on the actuated one (0.98 against 0.91).

Backward rollout

From a mid-episode frame of a held-out episode we roll LeHami back KK steps, with the torques that drove the earlier frames on the actuated pendulum, and score it against the true frame KK steps earlier; the forward rollout from the same frame is scored against the frame KK steps later. The probe is an MLP fitted on the encoder’s latents of the training episodes. The baselines are computed on the same earlier frames. Table 19 gives the numbers behind Figure 5 (right). The angle is recovered as well backward as forward on both pendulums. The velocity backward beats both baselines up to K=20K = 20 on the conservative pendulum and up to K=10K = 10 on the actuated one.

The mass stays in the rollout

On the actuated pendulum the bob is drawn with a constant density, so its mass is visible in one frame. Table 20 reads it from each model’s rollout with a linear probe fitted on the encoder’s latents of the training episodes, on held-out test episodes with the same three masses. Every model keeps it; unit mass does not stop LeHami from carrying it. Table 15 gives the rod length and the 25-NN probe for LeHami and LeWM.

Further controls

Tables referred to in Sections 4.2 and 4.3, and in Appendices E.3, D.3.3 and E.4.

KKforwardbackwardrepeat the startpredict the mean
cons., θ\theta [rad]10.052 ± 0.0040.057 ± 0.0030.2511.272
cons., θ\theta [rad]50.209 ± 0.0090.206 ± 0.0021.1961.286
cons., θ\theta [rad]100.456 ± 0.0000.446 ± 0.0081.6761.299
cons., θ\theta [rad]200.527 ± 0.0070.507 ± 0.0081.0541.274
cons., ω\omega [rad/s]10.238 ± 0.0050.230 ± 0.0210.6402.509
cons., ω\omega [rad/s]50.873 ± 0.0260.855 ± 0.0362.8702.477
cons., ω\omega [rad/s]101.141 ± 0.0131.216 ± 0.0104.3062.433
cons., ω\omega [rad/s]201.801 ± 0.0191.858 ± 0.0343.0472.500
act., θ\theta [rad]10.077 ± 0.0090.074 ± 0.0060.2421.047
act., θ\theta [rad]50.343 ± 0.0300.332 ± 0.0311.1201.041
act., θ\theta [rad]100.531 ± 0.0360.506 ± 0.0211.4871.025
act., θ\theta [rad]200.716 ± 0.0500.684 ± 0.0961.0381.004
act., ω\omega [rad/s]10.462 ± 0.0530.452 ± 0.0490.6692.423
act., ω\omega [rad/s]51.708 ± 0.3161.575 ± 0.1562.8002.382
act., ω\omega [rad/s]102.178 ± 0.4141.895 ± 0.2383.9092.361
act., ω\omega [rad/s]203.193 ± 1.1242.343 ± 0.4102.8632.282

Table 19. Forward and backward rollouts against the true frames. MAE, mean ± s.d. over three seeds; baselines on the earlier frames.

References

  1. [1]Robert Jenkinson Alvarez. Beyond isotropy in JEPAs: Hamiltonian geometry and symplectic prediction. arXiv preprint arXiv:2605.20107, 2026.arxiv.org/abs/2605.20107
  2. [2]Vladimir I. Arnold. Mathematical Methods of Classical Mechanics. Springer, 2nd edition, 1989.
  3. [3]Mido Assran, Adrien Bardes, David Fan, Quentin Garrido, Russell Howes, Matthew Muckley, Ammar Rizvi, Claire Roberts, Koustuv Sinha, Artem Zholus, et al. V-Jepa 2: Self-supervised video models enable understanding, prediction and planning. arXiv preprint arXiv:2506.09985, 2025.arxiv.org/abs/2506.09985
  4. [6]Adrien Bardes, Jean Ponce, and Yann LeCun. Vicreg: Variance-invariance-covariance regularization for self-supervised learning. arXiv preprint arXiv:2105.04906, 2021.arxiv.org/abs/2105.04906
  5. [7]Kamel Belloulata and Amina Belalia. Contractive MASO-generalized predictors for stable latent-space learning in JEPA. Transactions on Machine Learning Research, 2026.
  6. [8]Aleksandar Botev, Andrew Jaegle, Peter Wirnsberger, Daniel Hennes, and Irina Higgins. Which priors matter? Benchmarking models for learning latent dynamics. In NeurIPS Datasets and Benchmarks Track, 2021.arxiv.org/abs/2111.05458
  7. [9]Zhengdao Chen, Jianyu Zhang, Martin Arjovsky, and Léon Bottou. Symplectic recurrent neural networks. arXiv preprint arXiv:1909.13334, 2019.arxiv.org/abs/1909.13334
  8. [10]Miles Cranmer, Sam Greydanus, Stephan Hoyer, Peter Battaglia, David Spergel, and Shirley Ho. Lagrangian neural networks. arXiv preprint arXiv:2003.04630, 2020.arxiv.org/abs/2003.04630
  9. [11]Sen Cui and Jinheng Ma. Physically native world models: A hamiltonian perspective on generative world modeling. arXiv preprint arXiv:2605.00412, 2026.arxiv.org/abs/2605.00412
  10. [12]Ria Doshi, Homer Walke, Oier Mees, Sudeep Dasari, and Sergey Levine. Scaling cross-embodied learning: One policy for manipulation, navigation, locomotion, and aviation. arXiv preprint arXiv:2408.11812, 2024.arxiv.org/abs/2408.11812
  11. [13]Thai Duong and Nikolay Atanasov. Hamiltonian-based neural ode networks on the se (3) manifold for dynamics learning and control. arXiv preprint arXiv:2106.12782, 2021.arxiv.org/abs/2106.12782
  12. [14]Herbert Goldstein. Classical mechanics. Pearson Education India, 2011.
  13. [15]Peter A Gorry. General least-squares smoothing and differentiation by the convolution (savitzky-golay) method. Analytical Chemistry, 62(6):570–573, 1990.DOI
  14. [16]Samuel Greydanus, Misko Dzamba, and Jason Yosinski. Hamiltonian neural networks. Advances in neural information processing systems, 32, 2019.arxiv.org/abs/1906.01563
  15. [17]Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. arXiv preprint arXiv:1912.01603, 2019.arxiv.org/abs/1912.01603
  16. [18]Danijar Hafner, Timothy Lillicrap, Mohammad Norouzi, and Jimmy Ba. Mastering atari with discrete world models. arXiv preprint arXiv:2010.02193, 2020.arxiv.org/abs/2010.02193
  17. [19]Ernst Hairer, Christian Lubich, and Gerhard Wanner. Geometric numerical integration illustrated by the störmer–verlet method. Acta numerica, 12:399–450, 2003.
  18. [20]Nicklas Hansen, Xiaolong Wang, and Hao Su. Temporal difference learning for model predictive control. arXiv preprint arXiv:2203.04955, 2022.arxiv.org/abs/2203.04955
  19. [21]Sylvia L. Herbert, Mo Chen, SooJean Han, Somil Bansal, Jaime F. Fisac, and Claire J. Tomlin. Fast track: A modular framework for fast and guaranteed safe motion planning. In 2017 IEEE 56th Annual Conference on Decision and Control (CDC), pp. 1517–1522. IEEE, 2017.DOI
  20. [22]Irina Higgins, Peter Wirnsberger, Andrew Jaegle, and Aleksandar Botev. SyMetric: Measuring the quality of learnt Hamiltonian dynamics inferred from vision. In Advances in Neural Information Processing Systems, 2021.arxiv.org/abs/2111.05986
  21. [23]Pengzhan Jin, Zhen Zhang, Aiqing Zhu, Yifa Tang, and George Em Karniadakis. SympNets: Intrinsic structure-preserving symplectic networks for identifying Hamiltonian systems. Neural Networks, 132:166–179, 2020.arxiv.org/abs/2001.03750
  22. [24]Seung su Kim, Ashwini Shukla, and Aude Billard. Catching objects in flight. IEEE Transactions on Robotics, 30(5):1049–1065, 2014.DOI
  23. [25]Yann LeCun et al. A path towards autonomous machine intelligence version 0.9. 2, 2022-06-27. Open Review, 62(1):1–62, 2022.
  24. [26]Xueyu Luan and Chenwei Shi. Ph-dreamer: A physics-driven world model via port-hamiltonian generative dynamics. arXiv preprint arXiv:2605.18303, 2026.arxiv.org/abs/2605.18303
  25. [27]Lucas Maes, Quentin Le Lidec, Damien Scieur, Yann LeCun, and Randall Balestriero. LeWorld-Model: Stable end-to-end joint-embedding predictive architecture from pixels. arXiv preprint arXiv:2603.19312, 2026a. URL https://arxiv.org/abs/2603.19312.
  26. [28]Lucas Maes, Quentin Le Lidec, Luiz Facury, Nassim Massaudi, Ayush Chaurasia, Francesco Capuano, Richard Gao, Taj Gillin, Dan Haramati, Damien Scieur, Yann LeCun, and Randall Balestriero. stable world-model: A platform for reproducible world modeling research and evaluation, 2026b. URL https://arxiv.org/abs/2605.21800.
  27. [29]Jerrold E Marsden, Tudor S Ratiu, and M Golubitsky. Introduction to mechanics and symmetry: a basic exposition of classical mechanical systems, volume 17. Springer, 1999.
  28. [30]Ian M Mitchell, Alexandre M Bayen, and Claire J Tomlin. A time-dependent hamilton-jacobi formulation of reachable sets for continuous dynamic games. IEEE Transactions on automatic control, 50(7):947–957, 2005.DOI
  29. [31]Allan H. Murphy. Skill scores based on the mean square error and their relationships to the correlation coefficient. Monthly Weather Review, 116(12):2417–2424, 1988.doi.org/10.1175/1520-0493(1988)116<2417:ssbotm>2.0.co;2
  30. [32]Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaeddin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023.arxiv.org/abs/2304.07193
  31. [33]Vlad Sobal, Wancong Zhang, Kyunghyun Cho, Randall Balestriero, Tim GJ Rudner, and Yann LeCun. Learning from reward-free offline data: A case for planning with latent dynamics models. arXiv preprint arXiv:2502.14819, 2025.arxiv.org/abs/2502.14819
  32. [34]Chee Keong Tan, Michael James Tippett, and Jie Bao. Model predictive control with non-uniformly spaced optimization horizon for multi-timescale processes. Computers & Chemical Engineering, 84:162–170, 2016.DOI
  33. [35]Haoyun Tang, Haodong Cui, Keyao Xu, Kun Wang, and Zhandong Mei. Ham-world: Soft-hamiltonian world models with selective memory for planning. arXiv preprint arXiv:2605.05951, 2026.arxiv.org/abs/2605.05951
  34. [36]Molei Tao. Explicit symplectic approximation of nonseparable hamiltonians: Algorithm and long time performance. Physical Review E, 94(4):043303, 2016.DOI
  35. [37]Peter Toth, Danilo J Rezende, Andrew Jaegle, Sébastien Racanière, Aleksandar Botev, and Irina Higgins. Hamiltonian generative networks. In International conference on learning representations, 2019.arxiv.org/abs/1909.13789
  36. [38]Mark Towers, Ariel Kwiatkowski, Jordan Terry, John U. Balis, Gianluca De Cola, Tristan Deleu, Manuel Goulão, Andreas Kallinteris, Markus Krimmel, Arjun KG, et al. Gymnasium: A standard interface for reinforcement learning environments. arXiv preprint arXiv:2407.17032, 2024.arxiv.org/abs/2407.17032
  37. [39]Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In 2018 IEEE/CVF conference on computer vision and pattern recognition, pp. 6450–6459. IEEE, 2018.
  38. [40]Kan Wu, Jinnian Zhang, Houwen Peng, Mengchen Liu, Bin Xiao, Jianlong Fu, and Lu Yuan. Tinyvit: Fast pretraining distillation for small vision transformers. In European conference on computer vision, pp. 68–85. Springer, 2022.arxiv.org/abs/2207.10666

Paper details

vlnc:W_gh7gkr5t
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

AI

View statement
Looking for related papers…
Contents