Manuscript Offprint
arXiv:2610.35468Multi-Horizon Future Discovery for Physics-Informed Exploration
ABSTRACT
Exploration in physical control environments requires agents to identify actions whose consequences reveal previously unexplored aspects of the underlying dynamics. However, many intrinsic motivation methods rely on immediate prediction errors, state novelty, or local physical changes, which may overlook informative outcomes that emerge across extended temporal horizons. We investigate whether learning structured representations of reachable futures can provide a more effective basis for exploration. To this end, we introduce Hamiltonian Temporal Contrastive Curiosity (HTC ), a framework that combines multi-horizon temporal representation learning with Hamiltonian phase-space structure. A horizon-conditioned contrastive critic learns temporal relationships from future-state pairs sampled within the same episode. The distance between positive-pair representations is then used as an intrinsic reward, encouraging the agent to explore futures that remain insufficiently organized in the learned representation. To incorporate information about physical dynamics, we additionally modulate this reward using bounded multi-step Hamiltonian variation, rather than directly rewarding changes in the Hamiltonian itself. We integrate HTC with both Soft Actor-Critic (SAC) and Proximal Policy Optimization (PPO), and evaluate it across six DeepMind Control Suite tasks. Comparisons with ICM, RIDE, E3B, Plan2Explore, and a single-step Hamiltonian curiosity baseline are complemented by state-coverage evaluations, component ablations, and phase-space diagnostics to characterize the contributions of temporal learning and physical structure to exploratory behavior.
1 INTRODUCTION
Exploration is a central challenge in reinforcement learning (RL), especially in physical control, where useful behaviors often emerge only through temporally extended interactions with the environment (Burda et al., 2018b; Pathak et al., 2017; Thrun, 1992; Stadie et al., 2015; Sutton et al., 1998; Mohamed et al., 2026). In such settings, an agent must discover not only unfamiliar states, but also how its actions shape future system dynamics (Toth et al., 2019; Garcia et al., 2025). For example, locomotion depends on coordinated changes in balance, contact, velocity, and momentum over multiple time steps rather than merely visiting visually different postures (Arzani et al., 2025; Noda et al., 2025; Toth et al., 2019; Garcia et al., 2025). Physical exploration therefore requires more than generic state-space coverage (Pathak et al., 2017; Mohamed et al., 2026; Burda et al., 2018b; Raileanu & Rocktäschel, 2020): the agent must identify action-conditioned futures that reveal informative dynamics.
Existing curiosity-driven methods promote exploration through prediction error, novelty, episodic uncertainty, or representation displacement (Pathak et al., 2017; Burda et al., 2018b; Raileanu & Rocktäschel, 2020; Henaff et al., 2022). These signals are often defined from local states or short transitions: prediction error can be affected by irrelevant stochasticity, novelty may encourage

Figure 1: Overview of Hamiltonian Temporal Contrastive Curiosity (HTC ). Observations are encoded into Hamiltonian phase states; same-episode future pairs train a horizon-conditioned temporal contrastive critic; and the resulting temporal discovery signal is modulated by bounded multi-step Hamiltonian variation.
visitation without distinguishing dynamical relevance, and representation displacement does not necessarily separate coherent physical evolution from arbitrary feature change. Temporal contrastive learning provides a way to capture longer-range relations by learning representations between current state–action pairs and their future states (Ziarko et al., 2025; Hansen et al., 2022). Such relations can identify futures that remain poorly captured across multiple temporal scales, but they do not by themselves encode structured variation in the underlying physical dynamics.
Physical inductive biases provide a natural way to structure this temporal information. Hamiltonian world models represent dynamics through coordinate-like and momentum-like latent variables and organize their evolution with a learned Hamiltonian (Greydanus et al., 2019; Toth et al., 2019; Tang et al., 2026). Such phase-space representations describe how actions alter latent dynamics over time. DreamSAC exploits this structure by rewarding the change in the learned Hamiltonian across a single transition (Tang et al., 2026). However, single-step Hamiltonian-change curiosity remains local in time: a large instantaneous variation does not necessarily indicate that an action reaches an informative future over longer horizons. This motivates exploration that identifies informative action-conditioned futures across multiple temporal scales while accounting for structured variation in the learned dynamics.
To address this challenge, we introduce Hamiltonian Temporal Contrastive Curiosity (HTC ), which formulates exploration as multi-step future discovery in a learned Hamiltonian phase space. As illustrated in Figure 1, HTC trains a horizon-conditioned temporal contrastive critic on same-episode future pairs, using positive-pair representation distance as the primary curiosity signal. Bounded multi-step Hamiltonian variation then modulates this signal according to structured changes in the learned phase dynamics, while temporal novelty remains the exploration objective. A latent RND (Burda et al., 2018b) warm start stabilizes the initial learning stage before transitioning to the HTC signal.
Our contributions are summarized as follows:
-
We formulate physical exploration as multi-step action-conditioned future discovery in a learned Hamiltonian phase space, moving beyond curiosity based only on local novelty or single-step Hamiltonian change.
-
We introduce HTC , using horizon-conditioned temporal contrastive distance as the primary curiosity signal and bounded multi-step Hamiltonian variation as structural modulation of learned phase dynamics.
-
We provide comprehensive empirical validation on DeepMind Control Suite tasks with SAC and PPO against ICM, RIDE, E3B, Plan2Explore, and a single-step Hamiltonian-change variant, covering control performance, physical-state coverage, parametric OOD robustness, ablations, and Hamiltonian diagnostics.
World Models in Reinforcement Learning. World models learn predictive representations of environment dynamics and are widely used in model-based reinforcement learning (Ha & Schmidhuber, 2018b; Hafner et al., 2020; Lyu et al., 2025; Hafner et al., 2023; 2025; Xu et al., 2022; Liu et al., 2023; Ha & Schmidhuber, 2018a; Hafner et al., 2019b; Zhang et al., 2026). Latent world models compress high-dimensional observations and predict future latent states for planning, imagination, or policy learning (Hafner et al., 2019a; Assran et al., 2025; 2023). The Dreamer family uses recurrent latent dynamics with predictive reconstruction objectives (Hafner et al., 2020; 2023; 2025), whereas TD-MPC-style methods emphasize task-relevant latent prediction for efficient control (Hansen et al., 2024; 2022; Janner et al., 2019). Learned dynamics are also used for intrinsic exploration through prediction error, inverse dynamics, and uncertainty (Pathak et al., 2017; 2019; Raileanu & Rocktäschel, 2020; Henaff et al., 2022). However, standard world models mainly capture statistical regularities and need not explicitly encode physical structure (Hafner et al., 2020; 2023; 2025; 2019a; Assran et al., 2025; 2023), nor does predictive modeling alone specify which future interactions are useful for exploration (Sekar et al., 2020; Tang et al., 2026). HTC uses a Hamiltonian phase representation as the space for measuring temporal future relations, turning the world model into a structured substrate for intrinsic exploration.
Hamiltonian Dynamics for World Models. Physics-structured world models introduce inductive biases from classical mechanics to improve dynamics learning and generalization (Greydanus et al., 2019; Cranmer et al., 2020; Zhong et al., 2019; Toth et al., 2019; Arzani et al., 2025; Troch et al., 2025). Hamiltonian neural networks and symplectic models represent dynamics through coordinate-like and momentum-like variables governed by gradients of a learned Hamiltonian (Toth et al., 2019; Greydanus et al., 2019; Zhong et al., 2019). Recent work extends these priors to reinforcement learning and pixel-based world models (Schiewer et al., 2024; Deng et al., 2025; Tang et al., 2026). Their use for exploration, however, remains less developed; directly rewarding learned energy change can favor local perturbations rather than temporally extended discovery (Tang et al., 2026). HTC instead uses Hamiltonian variation only as a bounded modulation, while the primary exploration signal is the temporal contrastive distance between current phase state–action pairs and their multi-step futures.
3 METHOD
We propose Hamiltonian Temporal Contrastive Curiosity (HTC ), an intrinsic exploration method for reinforcement learning with Hamiltonian latent world models. HTC encourages the agent to discover future phase states that remain difficult to organize under the current temporal representation, while using learned Hamiltonian variation to provide a bounded physics-guided modulation. As illustrated in Figure 1, HTC consists of a Hamiltonian phase-space world model, a horizon-conditioned temporal contrastive critic, and a temporal discovery reward with latent RND warm start.
3.1 PRELIMINARIES
Controlled Hamiltonian Dynamics. We consider latent dynamics with a phase state , where and are learned coordinate-like and momentum-like latent variables (Toth et al., 2019). A controlled Hamiltonian formulation separates the internal latent dynamics from the effect of external actions (Zhong et al., 2019). Given a learned Hamiltonian and a learned control input mapping , the continuous-time dynamics are
The first component describes the internal Hamiltonian flow, while represents the action-dependent control contribution to the momentum-like dynamics.
For an autonomous Hamiltonian system without external control, , the Hamiltonian is constant along the continuous trajectory. With the control term in Equation 1, its time derivative becomes
Thus, Hamiltonian variation separates the effect of external control from the internally conservative Hamiltonian flow (Toth et al., 2019). HTC does not directly maximize this variation; instead, it uses the corresponding multi-step quantity as a bounded modulation of temporal future discovery.
Finite-Horizon Future Distribution. Temporal contrastive learning requires a distribution over future phase states reached from the current state–action pair (Ho & Ermon, 2016; Torabi et al., 2018; Eysenbach et al., 2020). Let denote the set of admissible future horizons. We define the finite-horizon future distribution as
where denotes the trajectory distribution and is the probability of sampling horizon .
HTC uses a truncated geometric horizon distribution,
which satisfies . The parameter controls preference for nearer futures while retaining explicitly multi-step positive pairs. Each pair is constrained to lie within the same episode.
Hamiltonian Phase-Space World Model. HTC uses a recurrent Hamiltonian latent world model to construct the phase representation on which temporal discovery is performed. Given an observation and recurrent deterministic state , the posterior model infers
The stochastic phase state is divided into coordinate-like and momentum-like components. In implementation, both components are represented by categorical stochastic variables; their posterior expectations are used whenever continuous phase values are required by the Hamiltonian transition or the temporal critic.
The deterministic state is updated recurrently from the previous phase state and action. The controlled Hamiltonian dynamics in Equation 1 then provide a physics-structured phase prediction, which is used together with the recurrent context to parameterize the next stochastic prior:
The Hamiltonian transition is integrated using a leapfrog step, while a learned residual prior retains sufficient flexibility for high-dimensional visual control. Detailed transition equations are given in Appendix B.
The world model is optimized with
Here, grounds the posterior latent state in the observation space; and provide balanced prior–posterior regularization; preserves action-relevant information; and aligns the Hamiltonian prediction with the posterior phase transition.
For HTC , the world model provides posterior phase trajectories for temporal pair construction and the learned Hamiltonian for evaluating multi-step Hamiltonian variation. Temporal positives are formed from actually reached same-episode posterior futures.
3.2 HAMILTONIAN TEMPORAL CONTRASTIVE CURIOSITY
HTC uses horizon-conditioned temporal contrastive mismatch as its primary curiosity signal and bounded multi-step Hamiltonian variation to modulate this signal.
Horizon-Conditioned Temporal Contrastive Critic. Contrastive representation learning brings positive pairs closer while separating them from negative samples (Chopra et al., 2005; Oord et al., 2018; Wang & Isola, 2020; Saunshi et al., 2019; Hassani & Khasahmadi, 2020). In HTC , the anchor is , the reached same-episode future forms the positive pair, and other minibatch futures serve as negatives. The horizon is sampled according to Equation 4, enabling the critic to learn future relations over multiple temporal scales.
The critic consists of an anchor encoder and a future encoder:
where is a learnable horizon embedding.
The temporal score is defined by the negative representation distance:
Given a minibatch of B same-episode positive pairs, we optimize the temporal critic with the InfoNCE objective (Oord et al., 2018):
The matched future forms the positive pair, whereas the remaining minibatch futures act as negatives. The temperature controls the sharpness of the contrastive classification.
The policy does not directly optimize . Instead, HTC extracts the positive-pair distance
A large indicates that the reached future remains poorly aligned under the current temporal representation. As these transitions are revisited, the temporal critic learns to better organize them through Equation 10, making the temporal mismatch an adaptive exploration signal.
Hamiltonian-Modulated Temporal Curiosity. For the same sampled future horizon , HTC evaluates the multi-step Hamiltonian variation
Rather than directly maximizing , HTC converts it into the bounded modulation
where denotes a running scale estimate, provides numerical stability, controls the modulation strength, and is the clipping threshold. Since the baseline value of the gate is one and its amplification is bounded, Hamiltonian variation reweights rather than replaces temporal discovery.
The raw HTC reward is
where controls an action-smoothness penalty. The reward is normalized before being combined with the cold-start signal.
Early in training, both the phase representation and the temporal critic are still being learned. We therefore use normalized latent RND, , as a warm-start exploration signal. Let n denote the global environment step. The transition weight is
The final intrinsic reward is
where denotes the normalized HTC signal. The reward used by the policy optimizer is therefore
where is the global intrinsic-reward scale. Optimizer-specific training procedures for SAC and PPO are provided in Appendix B.6.
4 EXPERIMENTS
We evaluate HTC on the DeepMind Control Suite (DMC) (Tunyasuvunakool et al., 2020) through five complementary studies. First, we compare control performance under SAC and PPO to assess whether HTC improves exploration across policy optimizers. Second, we measure physical-state coverage to examine how broadly each method explores the underlying state space. Third, we evaluate zero-shot retention under parametric dynamics shifts to test policy robustness. Fourth, component ablations isolate the contribution of the main HTC design choices. Finally, Hamiltonian diagnostics examine whether the learned phase representation exhibits the intended energy and latent structure. Additional results and diagnostics are reported in Appendix C.
4.1 EXPERIMENTAL SETUP
Benchmarks, baselines, and evaluation. We evaluate HTC on six tasks: walker_walk, walker_run, walker_stand, hopper_hop, hopper_stand, and cheetah_run. HTC is evaluated with both SAC (Haarnoja et al., 2018) and PPO (Schulman et al., 2017), and compared with four representative exploration methods: ICM (Pathak et al., 2017), RIDE (Raileanu & Rocktäschel, 2020), E3B (Henaff et al., 2022), and Plan2Explore (Sekar et al., 2020). Within each policy optimizer, all methods use the same training budget and evaluation settings. Results are reported as mean ± standard deviation, with the number of random seeds specified for each experiment. Detailed numerical results and complete learning curves are provided in Appendix C.1.
4.2 CONTROL PERFORMANCE ON DMC
Figure 2 shows that HTC maintains strong control performance under both SAC and PPO in comparison with ICM, RIDE, E3B, and Plan2Explore. Across the twelve tasks, HTC achieves the highest mean final return in eleven settings. Under SAC, HTC ranks first on five of the six tasks and performs nearly identically to the strongest baseline on walker_stand; under PPO, it achieves the

Figure 2: Control performance of HTC on six DMC tasks with SAC and PPO. The figure summarizes episode-return performance across five random seeds for ICM, RIDE, E3B, Plan2Explore, and HTC . Numerical results are reported as mean ± standard deviation in Appendix C.1.
highest mean return on all six tasks. The consistency across the two optimization regimes indicates that the performance of HTC is not specific to either off-policy replay or on-policy updates.
The gains are particularly visible on tasks requiring coordinated multi-step transitions, such as walker_walk and hopper_hop. This trend is consistent with the design of HTC : exploration is driven by the mismatch between the current state–action representation and its reached multi-step future, while Hamiltonian variation only provides a bounded modulation of this temporal signal. Detailed per-task returns and complete SAC/PPO learning curves are reported in Appendix C.1.
4.3 PHYSICAL-STATE EXPLORATION COVERAGE
We evaluate physical-state coverage on three DMC tasks using low-dimensional privileged simulator states, which are used only for evaluation and are not provided to the policy or intrinsic-reward module. For environment , let denote the task-specific physical state and its fixed grid discretization. The cumulative coverage at training step is
i.e., the number of unique discretized physical states visited.
For cartpole_swingup, we use the cart position and wrapped pole angle, . For ball_in_cup_catch, we use the ball position relative to the cup, . For finger_spin, we use the wrapped object angle and clipped angular velocity, . Discretization details are provided in Appendix C.2.
Figure 3 shows distinct coverage patterns across the three environments. On cartpole_swingup, HTC continues expanding its visited-state set after the other methods begin to saturate, reaching the highest final coverage and mean episode reward. On ball_in_cup_catch, RIDE attains the highest coverage, while HTC ranks second in coverage AUC, final reward, and reward AUC. On finger_spin, HTC achieves the highest final coverage and final reward, with a coverage AUC close to E3B.
Overall, HTC exhibits strong physical-state coverage on cartpole_swingup and finger_spin, while remaining competitive on ball_in_cup_catch. Full coverage and reward statistics are reported in Appendix C.2.
4.4 HAMILTONIAN MECHANISM VALIDATION
Beyond policy learning and exploration coverage, we examine whether the learned Hamiltonian phase representation exhibits the structure used by HTC . Specifically, we test whether remains stable under passive evolution, responds to policy-induced control, and varies coherently over the coordinate-like and momentum-like latent subspaces.

Figure 3: Physical-state coverage and episode reward during training. Top: cumulative unique discretized states; bottom: episode reward on cartpole_swingup, ball_in_cup_catch, and finger_spin. Curves show mean ± one standard deviation over four random seeds.
Hamiltonian Energy Dynamics and Phase-Subspace Geometry
A

B

C
Figure 4: Hamiltonian energy dynamics and phase-subspace geometry. A: open-loop learned Hamiltonian evolution under zero, random, and policy actions. B–C: PCA projections of the coordinate-like latent q and momentum-like latent p, colored by .
(A) Controlled Hamiltonian energy response. Figure 4A compares the learned Hamiltonian under three action regimes. Under zero action, remains nearly flat over the rollout horizon, consistent with approximate energy preservation under autonomous Hamiltonian evolution. Random actions produce similarly bounded deviations around the zero-action trajectory. In contrast, policy actions induce a clear and sustained energy displacement with greater long-horizon variability, showing that the learned Hamiltonian responds differently to structured control.
(B) Energy organization in the subspace. Figure 4B projects the coordinate-like latent into two principal components and colors each state by . The projected trajectory exhibits a clear energy-ordered structure: high-energy states are concentrated near one end of the curve, while lower-energy states occupy a different region of the projected subspace. This smooth variation indicates that the learned Hamiltonian is systematically coupled to the component of the phase representation. Therefore, the energy term used by HTC is computed over an organized phase subspace rather than over an unstructured latent cloud.
(C) Energy organization in the subspace. Figure 4C shows the corresponding projection for the momentum-like latent . The learned energy again varies smoothly across the projected trajectory, with a compact low-energy region and a separate high-energy branch. This indicates that depends on both components of the learned phase state. Together, the and visualizations support the design of HTC: temporal future discovery is performed in a Hamiltonian phase space

Figure 5: Zero-shot policy retention under parametric physical shifts. Bars and error bars show mean ± standard deviation over four random seeds. Higher values indicate greater return retention.
whose energy varies coherently over the learned latent dynamics, and whose controlled evolution is modulated by the policy actions.
We further analyze the relation between the q and p subspaces in Appendix C.3. The dimension-wise coupling maps show that q and p are dynamically related but not uniformly coupled: only selected cross-dimensional pairs exhibit strong correlations. This supports a non-collapsed phase representation in which coordinate-like and momentum-like variables share the same trajectory dynamics while preserving distinct representational roles.
4.5 PARAMETRIC OOD ROBUSTNESS
We further evaluate the zero-shot robustness of SAC policies trained with HTC under parametric dynamics shifts. The final policies trained on the original DMC environments are evaluated on variants of walker_walk, hopper_stand, and cheetah_run with modified gravity (1.5×), friction (2.0×), mass (1.5×), or damping (2.0×). We report return retention, defined as the OOD return divided by the corresponding in-distribution return for the same method and seed.
Figure 5 shows that HTC maintains high retention under several physical shifts. On walker_walk, HTC achieves the highest retention under gravity, friction, and mass perturbations, with an average retention of 89.7% across the four variants. On hopper_stand, it performs strongly under the mass shift and remains competitive under friction and damping, while RIDE obtains the highest retention under the gravity shift. On cheetah_run, HTC achieves the highest retention under gravity and mass perturbations, with mass-shift retention exceeding 100%.
Across all three tasks and four parameter shifts, HTC obtains the highest overall average retention (82.3%), compared with RIDE (80.6%), E3B (72.5%), and ICM (69.4%). Detailed per-shift results are reported in Appendix C.4.
4.6 ABLATION STUDY
We ablate the main components of HTC on walker_walk, hopper_hop, and cheetah_run. Specifically, w/o removes the physical-consistency loss; w/o removes the Hamiltonian modulation; one-step replaces the temporal contrastive reward with one-step Hamiltonian change; w/o RND removes the warm-start schedule; and w/o repr. norm disables contrastive representation normalization. All variants use SAC with the same training budget and are evaluated over four random seeds.
Table 1 shows that the full HTC configuration achieves the highest mean final return on all three tasks. Removing or lowers the mean return across all environments, with larger reductions from removing on walker_walk and cheetah_run. Replacing the temporal contrastive reward with one-step produces the largest reduction on hopper_hop, where the final return drops to .
Removing the RND warm start or representation normalization also reduces performance across all three tasks. The reduction from removing representation normalization is particularly pronounced on hopper_hop, whereas removing the RND warm start produces a larger absolute decrease on
Table 1: HTC ablations. Final return (mean std, four seeds).
| Variant | Walker | Hopper | Cheetah |
|---|---|---|---|
| w/o | 693.166 203.967 | 245.416 14.651 | 566.209 159.871 |
| w/o | 718.941 16.122 | 235.203 1.896 | 609.108 16.185 |
| one-step | 761.051 195.324 | 1.843 1.183 | 510.093 128.266 |
| w/o RND | 785.069 93.809 | 227.774 0.719 | 578.816 9.910 |
| w/o repr. norm | 757.758 114.117 | 144.466 85.169 | 594.697 16.876 |
| HTC full | 814.342 162.857 | 250.865 9.598 | 659.810 33.525 |
cheetah_run. Across the three tasks, the complete configuration yields the strongest mean final performance. Full learning curves are reported in Appendix C.5.
5 CONCLUSION
We presented Hamiltonian Temporal Contrastive Curiosity (HTC), an intrinsic exploration method for discovering temporally informative futures in a learned Hamiltonian phase space. HTC uses a horizon-conditioned temporal contrastive critic to identify poorly organized multi-step futures and modulates this signal with bounded Hamiltonian variation to emphasize structured changes in the learned phase dynamics. Across DeepMind Control Suite tasks, HTC shows strong control performance with both SAC and PPO, competitive physical-state coverage, and robust retention under parametric dynamics shifts. Ablations show performance degradation when removing physical consistency, Hamiltonian modulation, warm start, or representation normalization, while the single-step Hamiltonian-change reward performs substantially worse on hopper_hop. Hamiltonian diagnostics further reveal energy-organized phase representations with distinct responses to policy-induced control. Overall, these results characterize HTC as a physics-structured approach to long-horizon exploration in physical control.
AI USE STATEMENT
During the preparation of this manuscript, the authors used ChatGPT to assist with language polishing, including grammar correction and phrasing improvements. ChatGPT was not used for research ideation. The authors reviewed all AI-assisted text and take full responsibility for the final content of this work.
REFERENCES
Amirhossein Arzani, Lingxiao Yuan, Pania Newell, and Bei Wang. Interpreting and generalizing deep learning in physics-based problems with functional linear models. Engineering with Computers, 41(1):135–157, 2025.
Mahmoud Assran, Quentin Duval, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, Yann LeCun, and Nicolas Ballas. Self-supervised learning from images with a joint-embedding predictive architecture. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 15619–15629. IEEE, 2023.
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.
Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. Advances in neural information processing systems, 29, 2016.
Yuri Burda, Harri Edwards, Deepak Pathak, Amos Storkey, Trevor Darrell, and Alexei A Efros. Large-scale study of curiosity-driven learning. arXiv preprint arXiv:1808.04355, 2018a.
Yuri Burda, Harrison Edwards, Amos Storkey, and Oleg Klimov. Exploration by random network distillation. arXiv preprint arXiv:1810.12894, 2018b.
Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In 2005 IEEE computer society conference on computer vision and pattern recognition (CVPR'05), volume 1, pp. 539–546. IEEE, 2005.
Miles Cranmer, Sam Greydanus, Stephan Hoyer, Peter Battaglia, David Spergel, and Shirley Ho. Lagrangian neural networks. arXiv preprint arXiv:2003.04630, 2020.
Congyue Deng, Brandon Y Feng, Cecilia Garraffo, Alan Garbarz, Robin Walters, William T Freeman, Leonidas Guibas, and Kaiming He. Denoising hamiltonian network for physical reasoning. arXiv preprint arXiv:2503.07596, 2025.
Benjamin Eysenbach, Ruslan Salakhutdinov, and Sergey Levine. C-learning: Learning to achieve goals via recursive classification. arXiv preprint arXiv:2011.08909, 2020.
Alejandro Castaneda Garcia, Jan Warchocki, Jan Van Gemert, Daan Brinks, and Nergis Tomen. Learning physics from video: Unsupervised physical parameter estimation for continuous dynamical systems. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 27924–27933, 2025.
Samuel Greydanus, Misko Dzamba, and Jason Yosinski. Hamiltonian neural networks. Advances in neural information processing systems, 32, 2019.
Zhaohan Guo, Shantanu Thakoor, Miruna Pislar, Bernardo Avila Pires, Florent Altché, Corentin Tallec, Alaa Saade, Daniele Calandriello, Jean-Bastien Grill, Yunhao Tang, et al. Byol-explore: Exploration by bootstrapped prediction. Advances in neural information processing systems, 35:31855–31870, 2022.
David Ha and Jürgen Schmidhuber. Recurrent world models facilitate policy evolution. Advances in neural information processing systems, 31, 2018a.
David Ha and Jürgen Schmidhuber. World models. arXiv preprint arXiv:1803.10122, 2(3):440, 2018b.
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International conference on machine learning, pp. 1861–1870. Pmlr, 2018.
Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. arXiv preprint arXiv:1912.01603, 2019a.
Danijar Hafner, Timothy Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. In International conference on machine learning, pp. 2555–2565. PMLR, 2019b.
Danijar Hafner, Timothy Lillicrap, Mohammad Norouzi, and Jimmy Ba. Mastering atari with discrete world models. arXiv preprint arXiv:2010.02193, 2020.
Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy Lillicrap. Mastering diverse domains through world models. arXiv preprint arXiv:2301.04104, 2023.
Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy Lillicrap. Mastering diverse control tasks through world models. Nature, 640(8059):647–653, 2025.
Nick Hansen, Hao Su, and Xiaolong Wang. Td-mpc2: Scalable, robust world models for continuous control. In International Conference on Learning Representations, volume 2024, pp. 47376–47405, 2024.
Nicklas Hansen, Xiaolong Wang, and Hao Su. Temporal difference learning for model predictive control. arXiv preprint arXiv:2203.04955, 2022.
Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive multi-view representation learning on graphs. In International conference on machine learning, pp. 4116–4126. PMLR, 2020.
Mikael Henaff, Roberta Raileanu, Minqi Jiang, and Tim Rocktäschel. Exploration via elliptical episodic bonuses. Advances in Neural Information Processing Systems, 35:37631–37646, 2022.
Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. Advances in neural information processing systems, 29, 2016.
Rein Houthooft, Xi Chen, Yan Duan, John Schulman, Filip De Turck, and Pieter Abbeel. Vime: Variational information maximizing exploration. Advances in neural information processing systems, 29, 2016.
Michael Janner, Justin Fu, Marvin Zhang, and Sergey Levine. When to trust your model: Model-based policy optimization. Advances in neural information processing systems, 32, 2019.
Lisa Lee, Benjamin Eysenbach, Emilio Parisotto, Eric Xing, Sergey Levine, and Ruslan Salakhutdinov. Efficient exploration via state marginal matching. arXiv preprint arXiv:1906.05274, 2019.
Yuren Liu, Biwei Huang, Zhengmao Zhu, Honglong Tian, Mingming Gong, Yang Yu, and Kun Zhang. Learning world models with identifiable factorization. Advances in Neural Information Processing Systems, 36:31831–31864, 2023.
Jiangran Lyu, Ziming Li, Xuesong Shi, Chaoyi Xu, Yizhou Wang, and He Wang. Dywa: Dynamics-adaptive world action model for generalizable non-prehensile manipulation. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 11058–11068. IEEE, 2025.
Augustine Mavor-Parker, Kimberly Young, Caswell Barry, and Lewis Griffin. How to stay curious while avoiding noisy tvs using aleatoric uncertainty estimation. In International conference on machine learning, pp. 15220–15240. PMLR, 2022.
Faisal Mohamed, Catherine Ji, Benjamin Eysenbach, and Glen Berseth. Temporal representations for exploration: Learning complex exploratory behavior without extrinsic rewards. arXiv preprint arXiv:2603.02008, 2026.
Kohei Noda, Araki Wakiuchi, Yoshihiro Hayashi, and Ryo Yoshida. Advancing extrapolative predictions of material properties through learning to learn using extrapolative episodic training. Communications Materials, 6(1):36, 2025.
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
Georg Ostrovski, Marc G Bellemare, Aäron Oord, and Rémi Munos. Count-based exploration with neural density models. In International conference on machine learning, pp. 2721–2730. PMLR, 2017.
Deepak Pathak, Pulkit Agrawal, Alexei A Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In International conference on machine learning, pp. 2778–2787. PMLR, 2017.
Deepak Pathak, Dhiraj Gandhi, and Abhinav Gupta. Self-supervised exploration via disagreement. In International conference on machine learning, pp. 5062–5071. PMLR, 2019.
Roberta Raileanu and Tim Rocktäschel. Ride: Rewarding impact-driven exploration for procedurally-generated environments. arXiv preprint arXiv:2002.12292, 2020.
Nikunj Saunshi, Orestis Plevrakis, Sanjeev Arora, Mikhail Khodak, and Hrishikesh Khandeparkar. A theoretical analysis of contrastive unsupervised representation learning. In International conference on machine learning, pp. 5628–5637. PMLR, 2019.
Robin Schiewer, Anand Subramoney, and Laurenz Wiskott. Exploring the limits of hierarchical world models in reinforcement learning. Scientific Reports, 14(1):26856, 2024.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
Ramanan Sekar, Oleh Rybkin, Kostas Daniilidis, Pieter Abbeel, Danijar Hafner, and Deepak Pathak. Planning to explore via self-supervised world models. In International conference on machine learning, pp. 8583–8592. PMLR, 2020.
Bradly C Stadie, Sergey Levine, and Pieter Abbeel. Incentivizing exploration in reinforcement learning with deep predictive models. arXiv preprint arXiv:1507.00814, 2015.
Richard S Sutton, Andrew G Barto, and Andrew Barto. Reinforcement learning: An introduction, volume 1. MIT press Cambridge, 1998.
Haoran Tang, Rein Houthooft, Davis Foote, Adam Stooke, OpenAI Xi Chen, Yan Duan, John Schulman, Filip DeTurck, and Pieter Abbeel. # exploration: A study of count-based exploration for deep reinforcement learning. Advances in neural information processing systems, 30, 2017.
Jinzhou Tang, Fan Feng, Minghao Fu, Wenjun Lin, Jing Yang, Biwei Huang, and Keze Wang. Dreamsac: Learning hamiltonian world models via symmetry exploration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15188–15198, 2026.
Sebastian B Thrun. Efficient exploration in reinforcement learning. Carnegie Mellon University, 1992.
Faraz Torabi, Garrett Warnell, and Peter Stone. Generative adversarial imitation from observation. arXiv preprint arXiv:1807.06158, 2018.
Peter Toth, Danilo Jimenez Rezende, Andrew Jaegle, Sébastien Racanière, Aleksandar Botev, and Irina Higgins. Hamiltonian generative networks. arXiv preprint arXiv:1909.13789, 2019.
Arne Troch, Kevin Mets, and Siegfried Mercelis. Action-conditioned hamiltonian generative networks (ac-hgn) for supervised and reinforcement learning. In 7th Annual Learning for Dynamics & Control Conference, 04-06 June, 2025, Ann Arbor, Michigan, USA, pp. 310–322, 2025.
Saran Tunyasuvunakool, Alistair Muldal, Yotam Doron, Siqi Liu, Steven Bohez, Josh Merel, Tom Erez, Timothy Lillicrap, Nicolas Heess, and Yuval Tassa. dm_control: Software and tasks for continuous control. Software Impacts, 6:100022, 2020.
Tongzhou Wang and Phillip Isola. Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In International conference on machine learning, pp. 9929–9939. PMLR, 2020.
Yingchen Xu, Jack Parker-Holder, Aldo Pacchiano, Philip Ball, Oleh Rybkin, Stephen Roberts, Tim Rocktäschel, and Edward Grefenstette. Learning general world models in a handful of reward-free deployments. Advances in Neural Information Processing Systems, 35:26820–26838, 2022.
Jiahan Zhang, Muqing Jiang, Nanru Dai, Taiming Lu, Arda Uzunoglu, Shunchi Zhang, Yana Wei, Jiahao Wang, Vishal Patel, Paul Liang, et al. World-in-world: World models in a closed-loop world. In International Conference on Learning Representations, volume 2026, pp. 55660–55699, 2026.
Yaofeng Desmond Zhong, Biswadip Dey, and Amit Chakraborty. Symplectic ode-net: Learning hamiltonian dynamics with control. arXiv preprint arXiv:1909.12077, 2019.
Alicja Ziarko, Michał Bortkiewicz, Michał Zawalski, Benjamin Eysenbach, and Piotr Miłos. Contrastive representations for temporal reasoning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=U1kcH5Ccrk.
A DETAILED METHODOLOGY
This section provides additional derivations for the controlled Hamiltonian relations introduced in Equation 1 and 2, followed by the leapfrog discretization used by the Hamiltonian transition core. We then derive a continuous-time interpretation of the multi-step Hamiltonian variation defined in Equation 12.
A.1 CONTROLLED HAMILTONIAN DYNAMICS AND ENERGY BALANCE
Autonomous Hamiltonian conservation. Starting from the controlled dynamics in Equation 1, consider first the autonomous case . For a Hamiltonian with no explicit time dependence, its derivative along the trajectory is
(19)
This is the standard conservation relation of an autonomous Hamiltonian system. In classical mechanics, it is associated with time-translation invariance through Noether's theorem: in the absence of explicit time dependence and external forcing, the Hamiltonian remains constant along the continuous trajectory.
Energy balance under control. Restoring the action-dependent term in Equation 1 gives
(20)
Using , the last term can equivalently be written as . Thus, Equation 20 recovers the controlled energy-balance relation in Equation 2.
A.2 SYMPLECTIC INTEGRATION OF THE CONTROLLED DYNAMICS
The controlled continuous-time dynamics in Equation 1 must be discretized to construct the Hamiltonian transition prior. Our implementation uses a leapfrog integrator with step size , with held fixed over one integration step.
The update follows the kick–drift–kick structure. Starting from , the first momentum half-step is
The intermediate momentum-like state is then used to advance the coordinate-like variable over a full step:
Finally, the momentum update is completed at the new position:
The three updates constitute the Hamiltonian physics step used in the world model. Gradients of with respect to q and p are evaluated through automatic differentiation, while the learned control term is incorporated into both momentum half-steps.
For the autonomous Hamiltonian component, leapfrog provides a symplectic discretization and is designed to preserve the geometric structure of Hamiltonian dynamics under repeated integration. Symplectic integration does not imply exact conservation of at every discrete step. The complete world-model prior also contains the learned control contribution and a stochastic residual parameterization; accordingly, the leapfrog step is used as a structure-preserving inductive bias for the Hamiltonian transition core.
A.3 TEMPORAL HAMILTONIAN VARIATION
The controlled energy-balance relation in Equation 2 provides a continuous-time interpretation of the multi-step Hamiltonian variation used by HTC . Integrating it over the interval gives
For a sampled discrete horizon , HTC uses the endpoint magnitude defined in Equation 12. Hence, the multi-step term summarizes the Hamiltonian variation across the reached temporal interval rather than only an adjacent one-step change.
HTC does not optimize this quantity independently. The endpoint variation is transformed by the bounded gate in Equation 13 and modulates the temporal mismatch defined in Equation 11. The resulting intrinsic signal is given in Equation 14. Thus, temporal future discovery remains the primary exploration signal, while Hamiltonian variation provides a bounded structural modulation over the same reached multi-step transition.
B IMPLEMENTATION DETAILS
We provide implementation details of the Hamiltonian latent world model, its optimization objectives, the temporal contrastive critic, and the intrinsic-reward schedule used in HTC . Algorithms 1 and 2 summarize the integration of HTC with SAC and PPO, respectively.
B.1 HAMILTONIAN LATENT WORLD MODEL
At time t, the recurrent latent state consists of a deterministic state and a phase representation
where and denote coordinate-like and momentum-like latent variables. The deterministic state is updated by the recurrent core,
where denotes the input projection preceding the GRU.
Let
denote the observation token produced by the visual encoder . The posterior network predicts categorical distributions over the two phase components:
Their continuous posterior expectations are
For compactness, and below denote these continuous phase values whenever the Hamiltonian transition or temporal critic is evaluated.
The Hamiltonian transition follows the controlled dynamics in Equation 1. The learned input mapping
maps the action to the momentum-like control term . Using the leapfrog updates in Equation 21 and 23, one deterministic Hamiltonian step is written compactly as
where denotes one controlled leapfrog step and .
The continuous prediction is subsequently mapped to categorical prior logits. We denote by the deterministic Gaussian-shaped logit projection with width parameter . The prior logits are
where
For , the gated residual branch is
where and denote the residual-value and gate networks, respectively, is the sigmoid function, denotes element-wise multiplication, and s is the residual scale. We use . The residual output is zero-initialized and the gate is initialized negatively so that the Hamiltonian prediction dominates early training.
The categorical prior distributions used below are obtained as
B.2 WORLD MODEL LOSS FUNCTIONS
The complete world-model objective is defined in Equation 7. We use and . This section specifies the individual loss terms used to optimize the posterior representation and the Hamiltonian dynamics prior.
Reconstruction Loss ( ). Define the posterior state
The decoder reconstructs the next observation from the posterior state:
Dynamics and Representation Losses ( ). The dynamics loss updates the prior while stopping gradients through the posterior distributions:
(41)
Conversely, the representation loss updates the posterior while stopping gradients through the prior:
(42)
Here, denotes the stop-gradient operator. In the implementation, the - and -KL terms are summed before applying standard free-nats stabilization and batch averaging.
Inverse-Dynamics Loss ( ). The inverse-dynamics model predicts the executed action from adjacent posterior states,
and is optimized by
Hamiltonian Consistency Loss ( ). The continuous Hamiltonian prediction from Equation 32 is aligned with the posterior phase expectation:
(45)
B.3 TEMPORAL CONTRASTIVE CRITIC
The temporal critic operates on posterior phase trajectories inferred from collected experience. Future horizons are sampled according to the truncated geometric distribution in Equation 4, with and in the reported configuration. Only anchor–future pairs belonging to the same episode are retained.
The anchor and future representations follow Equation 8. Both representations are -normalized before evaluating the score in Equation 9. The critic uses a representation dimension of 64 and a horizon-embedding dimension of 16. The temperature is initialized to 0.1 and optimized jointly with the critic.
The temporal critic is trained using in Equation 10 with a batch size of 256 and AdamW learning rate . Gradients are stopped at the phase-state input in the default configuration, so this objective updates the temporal critic without directly propagating gradients into the Hamiltonian world model.
At reward computation time, the temporal mismatch is evaluated using Equation 11, while the Hamiltonian modulation and the raw HTC reward are computed according to Equation 13 and 14, respectively. The HTC reward is then normalized using expected-distance normalization. For -normalized representations and Euclidean distance, the reference distance is .
B.4 COLD START AND REWARD SCHEDULING
The cold-start RND (Burda et al., 2018b) module operates on the posterior phase representation . It consists of a trainable predictor and a fixed randomly initialized target network . The raw RND signal is
The predictor and target are MLPs with hidden dimension 256 and output dimension 128. The predictor is optimized with AdamW at learning rate .
The RND signal is normalized by running statistics before reward mixing. The RND-to-HTC transition follows Equation 15] and 16, with and environment steps. The resulting intrinsic reward is combined with the extrinsic reward according to Equation 17.
B.5 HYPERPARAMETERS
The core exploration hyperparameters are summarized in Table 2, while the policy-optimizer configurations are reported in Table 3.
B.6 TRAINING PSEUDOCODE
Algorithms 1 and 2 summarize the integration of HTC with off-policy SAC and on-policy PPO, respectively. Standard SAC and PPO optimization steps are omitted for clarity.
Table 2: Core hyperparameters for HTC and intrinsic-reward baselines.
| HTC | Intrinsic-reward baselines | ||||
|---|---|---|---|---|---|
| Hyperparameter | Value | Hyperparameter | ICM | E3B | RIDE |
| Intrinsic scale | 0.05 | Intrinsic scale | 0.05 | 0.05 | 0.05 |
| Cold-start reward | RND | Latent dim | 256 | 256 | 256 |
| Warmup steps | 50K | Reward lr | |||
| Annealing steps | 200K | Batch size | 256 | 256 | 256 |
| World-model lr | Update proportion | 1.0 | 1.0 | 1.0 | |
| World-model batch size | 256 | Reward normalization | RMS | RMS | RMS |
| Deterministic state dim | 256 | E3B ridge | - | 0.1 | - |
| Stochastic latent dim | 32 | RIDE | - | - | 10 |
| dim | 16 / 16 | Kernel cluster distance | - | - | 0.008 |
| Categorical classes | 32 | Kernel epsilon | - | - | |
| Sequence chunk | 32 | RIDE | - | - | 0.001 |
| Integrator / | Leapfrog / 0.1 | RIDE | - | - | 8.0 |
| Logit projection std. | 0.1 | 0.0 | 0.0 | 0.0 | |
| Residual scale | 1.0 | - | - | - | |
| KL balance | 0.8 | ||||
| Free-nats stabilization | 1.0 | ||||
| Physics loss weight | 1.0 | ||||
| Temporal horizon | 1–16 | ||||
| Horizon sampling | Geometric (0.98) | ||||
| Temporal critic lr / batch | |||||
| Critic hidden / repr. dim | 256 / 64 | ||||
| Horizon embedding dim | 16 | ||||
| Temperature init. | 0.1 (learned) | ||||
| Similarity | Negative | ||||
| Representation normalization | Yes | ||||
| Energy gate | 0.1 / 5.0 | ||||
| Smoothness | 0.01 | ||||
Table 3: SAC and PPO hyperparameters.
| Hyperparameter | SAC | PPO |
|---|---|---|
| Learning rate | ||
| Feature dim | 50 | 512 |
| Hidden dim | 1024 | 1024 |
| Batch size | 256 | 256 |
| Discount | 0.99 | 0.99 |
| Initial random steps | 5000 | - |
| Replay size | 50000 | - |
| Initial temperature | 0.1 | - |
| Target update | 0.005 | - |
| Actor / target update freq. | 1/2 | - |
| Rollout steps | - | 256 |
| PPO epochs | - | 15 |
| Clip range / value clip | - | 0.2 / 0.1 |
| Entropy coefficient | - | 0.1 |
| Value coefficient | - | 0.5 |
| Max gradient norm | - | 0.5 |
Algorithm 1 HTC² with Soft Actor–Critic
1: Params: policy, critics, world model, TC critic, RND 2: Init: replay buffer , target critics, fixed RND target initialization 3: while not converged do 4: , environment interaction 5: , posterior phase trajectory 6: , Equation 4 7: Equation 10 8: Equation 14 9: latent RND 10: Equation 15 11: Equation 16 12: Equation 17 13: anchor transitions 14: standard SAC update 15: Equation 7 16: RND predictor update
Algorithm 2 HTC² with Proximal Policy Optimization
1: Params: policy, value, world model, TC critic, RND 2: Init: rollout buffer , fixed RND target initialization 3: for each rollout iteration do 4: on-policy rollout 5: posterior phase trajectory 6: , Equation 4 7: Equation 10 8: Equation 14 9: latent RND 10: Equation 15 11: Equation 16 12: Equation 17 13: advantages and returns 14: standard clipped PPO update 15: Equation 7 16: RND predictor update
C ADDITIONAL EXPERIMENTS AND DIAGNOSTICS
C.1 DETAILED DMC CONTROL RESULTS
This section provides the complete numerical results and learning curves corresponding to the DMC control benchmark in Section 4.2. All reported final returns are computed over five random seeds and are shown as mean ± standard deviation. Table 4 reports the final control performance for ICM, RIDE, E3B, and HTC under SAC and PPO, with Plan2Explore additionally included in the PPO comparison. Figures 6 and 7 provide the corresponding SAC and PPO learning curves.
With SAC, HTC achieves the highest mean final return on five of the six tasks. On walker_stand, HTC obtains , compared with for RIDE. The largest absolute difference relative to the strongest competing baseline occurs on walker_walk, where HTC reaches , compared with for RIDE.
Table 4: Final control performance on six DMC tasks. Episode return over five random seeds, reported as mean ± standard deviation. Within each optimizer block and task, red, orange, and yellow denote the first, second, and third-ranked exploration methods, respectively. Higher is better.
| RL | Exploration | Walker Walk | Walker Run | Walker Stand | Hopper Hop | Hopper Stand | Cheetah Run |
|---|---|---|---|---|---|---|---|
| SAC | ICM | 677.8±230.2 | 356.7±52.9 | 936.9±31.7 | 237.5±9.1 | 863.3±29.5 | 631.9±45.4 |
| RIDE | 717.9±67.5 | 364.9±117.7 | 967.1±3.3 | 239.0±11.3 | 871.3±22.1 | 624.7±44.0 | |
| E3B | 679.2±199.4 | 401.6±92.1 | 961.3±8.1 | 235.4±24.7 | 858.0±22.1 | 619.5±40.2 | |
| HTC2 (ours) | 827.0±115.2 | 415.8±111.4 | 966.5±3.8 | 248.8±6.1 | 883.8±12.5 | 656.5±45.0 | |
| PPO | ICM | 601.9±179.6 | 269.1±47.1 | 921.0±25.4 | 89.5±61.2 | 637.6±55.6 | 451.5±69.2 |
| RIDE | 641.1±153.5 | 254.2±23.1 | 877.4±82.0 | 83.4±68.5 | 565.8±174.0 | 425.8±43.8 | |
| E3B | 698.5±129.7 | 277.5±16.4 | 865.7±100.1 | 55.3±65.4 | 628.1±53.9 | 445.9±33.3 | |
| Plan2Explore | 647.8±47.3 | 239.2±38.4 | 929.2±6.2 | 74.2±68.6 | 620.7±51.8 | 435.2±37.6 | |
| HTC2 (ours) | 733.6±160.7 | 307.9±22.8 | 930.6±20.1 | 100.7±58.8 | 670.2±25.1 | 458.0±27.4 |
ICM+sac RIDE+sac E3B+sac HTC2(ours)+sac

Figure 6: SAC learning curves on six DMC tasks. Curves show the mean episode return over five random seeds, with shaded regions indicating one standard deviation, for SAC combined with ICM, RIDE, E3B, and HTC .
Under PPO, HTC achieves the highest mean final return on all six tasks among the evaluated methods, including Plan2Explore. On walker_stand, HTC reaches , while Plan2Explore obtains , showing very similar mean performance in this high-return regime. On hopper_hop, HTC obtains , compared with for the strongest competing baseline, ICM.
Overall, the SAC and PPO results show that the strong mean final-return performance of HTC spans multiple control tasks rather than being driven by a single environment. The complete learning curves further show how these differences evolve over training.
C.2 DETAILED PHYSICAL-STATE COVERAGE RESULTS
We provide the detailed physical-state discretization and numerical statistics corresponding to Figure 3. All statistics are computed over four random seeds and reported as mean standard deviation.
Coverage-state construction. For cartpole_swingup, we use
with a grid over and .
ICM+ppo RIDE+ppo E3B+ppo HTC2(ours)+ppo Plan2Explore+ppo

hopper_hop
hopper_stand
cheetah_run
Normalized Training Step
Normalized Training Step
Normalized Training Step
Figure 7: PPO learning curves on six DMC tasks. Curves show the mean episode return over five random seeds, with shaded regions indicating one standard deviation, for PPO combined with ICM, RIDE, E3B, Plan2Explore, and HTC.
Table 5: Physical-state coverage and downstream control performance on three DMC environments. Final performance and area under the training curve (AUC) are reported as mean standard deviation over four random seeds. For each row, the best and second-best mean values are highlighted in green and yellow, respectively. The highlighting reflects ranking by the reported means. Higher values are better for all metrics.
| Environment | Metric | Statistic | HTC2 (Ours) + SAC | ICM + SAC | RIDE + SAC | E3B + SAC |
|---|---|---|---|---|---|---|
| Cartpole Swingup | Visited States | Final | 4320.000 ± 0.000 | 3862.250 ± 486.344 | 3759.500 ± 249.116 | 3384.750 ± 399.951 |
| AUC | 3525.652 ± 71.624 | 3187.527 ± 163.460 | 3200.982 ± 70.494 | 2976.313 ± 208.753 | ||
| Episode Reward | Final | 579.550 ± 273.080 | 126.855 ± 253.710 | 0.000 ± 0.000 | 0.000 ± 0.000 | |
| AUC | 134.662 ± 87.884 | 15.452 ± 30.791 | 0.058 ± 0.042 | 0.017 ± 0.013 | ||
| Ball in Cup Catch | Visited States | Final | 2655.000 ± 55.154 | 2680.500 ± 3.536 | 2731.500 ± 14.849 | 2664.500 ± 12.021 |
| AUC | 2415.110 ± 30.751 | 2406.878 ± 69.883 | 2499.878 ± 14.418 | 2334.732 ± 19.627 | ||
| Episode Reward | Final | 958.730 ± 2.447 | 939.715 ± 29.013 | 964.390 ± 1.909 | 945.705 ± 13.513 | |
| AUC | 708.565 ± 87.088 | 544.440 ± 262.849 | 716.214 ± 27.763 | 399.726 ± 85.061 | ||
| Finger Spin | Visited States | Final | 5541.500 ± 34.648 | 5428.500 ± 58.690 | 5412.000 ± 156.978 | 5513.500 ± 41.719 |
| AUC | 5317.105 ± 4.489 | 5202.047 ± 88.931 | 5195.651 ± 213.415 | 5317.360 ± 34.418 | ||
| Episode Reward | Final | 965.350 ± 6.604 | 957.740 ± 0.905 | 956.460 ± 3.281 | 927.550 ± 41.111 | |
| AUC | 877.415 ± 11.824 | 880.650 ± 12.565 | 881.395 ± 3.270 | 846.177 ± 28.606 |
For ball_in_cup Catch, the physical state is
which is discretized using a grid, with both dimensions restricted to .
For finger_spin, we use
with a grid over and . These task-specific physical states are used only for evaluation and do not affect policy learning.
Table 5 reports the complete coverage and reward statistics for the three environments. On cartpole_swingup, HTC reaches visited states at the end of training and obtains a coverage AUC of , both the highest mean values among the four methods. Its final episode reward and reward AUC are and , respectively, which are also the highest reported means for this task.
On ball_in_cup Catch, RIDE achieves the highest final coverage, , followed by ICM at , E3B at , and HTC at . In terms of coverage AUC, HTC obtains the second-highest mean value of , behind RIDE at . For downstream control, HTC reaches a final reward of and a reward AUC of , both ranking second among the evaluated methods and remaining close to the corresponding RIDE values of and .
On finger_spin, HTC obtains the highest final coverage, , followed by E3B at . The coverage AUC values of HTC and E3B are and , respectively. HTC also achieves the highest final reward, . For reward AUC, RIDE and ICM obtain and , while HTC reaches .
Across the three tasks, HTC achieves the highest final visited-state count on cartpole_swingup and finger_spin, while RIDE achieves the highest final coverage on ball_in_cup Catch. The corresponding reward statistics show the same diversity across environments, with HTC attaining the highest final reward on cartpole_swingup and finger_spin, and the second-highest final reward on ball_in_cup Catch.
C.3 ADDITIONAL HAMILTONIAN LATENT DIAGNOSTICS
This section provides additional diagnostics for the learned Hamiltonian phase representation. The main text shows that the learned scalar is stable under passive evolution, responds to policy actions, and varies smoothly over the projected q and p subspaces. Here, we further inspect the internal organization of the phase latents from three complementary perspectives: temporal phase trajectories, action-conditioned phase updates, and dimension-wise q-p coupling.
Phase trajectory organization. Figure 8 visualizes the coordinate-like latent q and the momentum-like latent p using separate PCA bases. For each subspace, we show three views: coloring by the learned Hamiltonian energy, coloring by normalized episode time, and projected trajectory traces. Both q and p exhibit smooth energy variation along the projected trajectory, while the normalized-time coloring shows an ordered temporal progression. The trajectory traces further indicate that the learned phase state evolves along coherent low-dimensional paths. This supports the use of posterior phase trajectories for same-episode future pair sampling in HTC .

p-Subspace PCA: Hamiltonian Energy
p-Subspace PCA: Temporal Progression
Directed p-Subspace Trajectories
p-PC1
p-PC1
p-PC1
Figure 8: Separate PCA projections of coordinate-like q and momentum-like p latents on walker_walk. Each subspace is visualized by learned Hamiltonian energy , normalized episode time, and projected trajectory traces. The learned phase representation exhibits smooth energy organization and temporally coherent evolution in both subspaces.
Action-conditioned phase evolution. Figure 9 analyzes how actions modulate the learned phase dynamics. The phase PCA colored by action magnitude and learned control push shows that control-related quantities vary systematically over the phase trajectory rather than being uniformly distributed. The one-step phase updates further separate low-control and high-control transitions: high-control samples produce larger and more directionally distinct phase updates. The phase-step magnitude statistics also increase for the high-control group. These results indicate that the learned phase state is responsive to action-conditioned control, which is the transition structure used by HTC to construct horizon-conditioned future pairs.

Local Phase Flow Under Weak and Strong Control
Phase-Step Norm Across Control Groups

Figure 9: Action-conditioned phase geometry on walker_walk. The phase PCA is colored by action magnitude and learned control push. One-step phase updates are grouped by control strength, and the high-control group produces larger phase-step magnitudes. This shows that the learned phase dynamics are modulated by action-conditioned control.
Dimension-wise coupling. Figure 10 reports the dimension-wise absolute correlation between the coordinate-like subspace and the momentum-like subspace on walker_walk, hopper_hop, and cheetah_run. Instead of treating and as two monolithic vectors, this analysis inspects all cross-dimensional pairs. The heatmaps show that the relation is not uniformly coupled across all dimensions: strong correlations appear only for selected dimension pairs, while many other pairs remain weakly or moderately correlated. This pattern indicates that the learned phase representation does not collapse and into a single mixed latent block. Rather, the two subspaces share the same trajectory-level dynamics while preserving a degree of dimension-wise separation.
This result is consistent with the intended phase-space structure of HTC . The coordinate-like and momentum-like components should not be fully independent, because they are inferred from the same controlled trajectory and jointly determine the learned Hamiltonian . At the same time, they should not become identical or uniformly entangled. The observed local and dimension-selective coupling therefore supports the use of a structured phase representation for Hamiltonian temporal contrastive exploration.
Summary. These diagnostics provide a finer view of the Hamiltonian phase representation used by HTC . The separate q/p PCA plots show energy-ordered and time-coherent phase trajectories; the action-conditioned analysis shows that phase updates are modulated by control strength; and the cross-task q-p coupling maps show trajectory-level dependence without uniform dimension-wise collapse. Together, these results support the representational structure assumed by HTC : exploration is driven by temporal future discovery in a Hamiltonian phase space whose components are dynamically related yet not reduced to a single entangled latent cloud.
Multi-Task q-p Coupling in Learned Hamiltonian Phase Latents

Figure 10: Dimension-wise coupling across DMC tasks. Each heatmap shows the absolute correlation between the 16 dimensions of coordinate-like and the 16 dimensions of momentum-like . The correlations are local and dimension-selective rather than uniformly high, indicating that and remain dynamically related but do not collapse into a single fully mixed latent representation.
C.4 DETAILED PARAMETRIC OOD RESULTS
This section reports the detailed numerical values for the parametric OOD policy-retention experiment in Section 4.5. Retention is computed as
where is the zero-shot return under the perturbed environment and is the return in the original environment for the same method and seed. We evaluate four physical shifts: gravity , friction , mass , and damping .
Table 6: Parametric OOD zero-shot policy retention on walker_walk. Values report return retention relative to the base environment (, mean std).
| Model | Gravity 1.5× | Friction 2.0× | Mass 1.5× | Damping 2.0× |
|---|---|---|---|---|
| SAC+ICM | ||||
| SAC+RIDE | ||||
| SAC+E3B | ||||
Table 7: Parametric OOD zero-shot policy retention on hopper_stand. Values report return retention relative to the base environment (, mean std).
| Model | Gravity 1.5× | Friction 2.0× | Mass 1.5× | Damping 2.0× |
|---|---|---|---|---|
| SAC+ICM | ||||
| SAC+RIDE | ||||
| SAC+E3B | ||||
Discussion. The detailed results show that HTC obtains the best retention on seven out of twelve OOD settings. The strongest pattern appears under mass perturbations, where HTC achieves the highest retention on all three tasks. It also achieves the best gravity-shift retention on walker_walk and cheetah_run. These results are consistent with the objective of HTC: exploration is guided by multi-step temporal discovery in a Hamiltonian phase representation, which encourages policies to experience physically informative transitions during training. Friction and damping shifts show more task-dependent behavior, indicating that different intrinsic rewards can favor different robustness profiles.
C.5 ABLATION LEARNING CURVES
We further analyze the sample efficiency of the ablation variants in Figure 11. The curves compare full HTC with variants that remove the physical consistency loss, remove the Hamiltonian energy
Table 8: Parametric OOD zero-shot policy retention on cheetah_run. Values report return retention relative to the base environment (% , mean ± std).
| Model | Gravity 1.5× | Friction 2.0× | Mass 1.5× | Damping 2.0× |
|---|---|---|---|---|
| SAC+ICM | 70.93 ± 2.46 | 54.84 ± 25.55 | 89.33 ± 17.98 | 43.74 ± 9.29 |
| SAC+RIDE | 77.72 ± 9.16 | 92.31 ± 8.88 | 100.90 ± 7.78 | 63.70 ± 4.68 |
| SAC+E3B | 74.47 ± 27.46 | 61.43 ± 7.62 | 96.43 ± 18.18 | 67.63 ± 6.52 |
| 84.18 ± 2.15 | 64.67 ± 38.44 | 107.85 ± 8.09 | 59.89 ± 4.71 |
HTC2 full w/o L_phys w/o G_H one-step dH w/o RND warm start w/o repr. norm

Figure 11: Ablation learning curves. Curves report mean performance over 4 seeds, and shaded regions denote standard deviation. Full HTC is compared with variants removing the physical consistency loss, Hamiltonian energy gate, RND warm start, representation normalization, and with a one-step reward.
gate, replace temporal contrastive reward with one-step , remove the RND (Burda et al., 2018b) warm start, or remove representation normalization.
On walker_walk, full HTC improves steadily and reaches the highest final return. Several variants learn useful behaviors, but the full method maintains the strongest late-stage performance.
On hopper_hop, the difference between variants is more pronounced: full HTC reaches high return and remains stable, whereas the one-step reward fails to learn an effective hopping behavior. The variant without representation normalization also suffers a large drop, indicating that stable contrastive distances are important for this underactuated task.
On cheetah_run, full HTC again achieves the strongest final performance. The variants without , without the energy gate, or without RND (Burda et al., 2018b) warm start improve during training but converge to lower returns. These learning curves are consistent with the final-return ablation in Table 1: the complete HTC design improves both sample efficiency and final performance by combining Hamiltonian phase learning with multi-step temporal contrastive curiosity.
C.6 POLICY ROLLOUT VISUALIZATION
To qualitatively inspect the behavior induced by the final HTC policy, we perform additional environment rollouts from the trained checkpoint and sample temporally ordered observations from six DMC tasks. Figure 12 shows twelve sampled frames ( ) for walker_walk, walker_run, hopper_hop, hopper_stand, cheetah_run, and walker_stand.
The sampled trajectories exhibit distinct task-dependent motion patterns. On walker_walk, the agent remains upright while its leg configuration evolves across the rollout, whereas walker_run exhibits substantially larger changes in body and limb configuration. The hopper remains close to an upright posture on hopper_stand, while hopper_hop shows greater temporal variation in its articulated configuration. On cheetah_run, the torso and limbs evolve through a sequence of locomotion configurations. For walker_stand, the rollout progresses from an initially inclined configuration toward a more upright posture, followed by continued balancing adjustments.

Figure 12: HTC policy rollouts on six DMC tasks. Each row corresponds to one task, and columns show twelve temporally ordered sampled frames ( ) from the final trained policy checkpoint. The visualization is used only as a qualitative inspection of policy behavior.