HaM-World: Soft-Hamiltonian World Models with Selective Memory for Planning
Haoyun Tang, Haodong Cui, Keyao Xu, Zhan-Dong Mei, Kun Wang
NeurIPS 2026
TL;DR. HaM-World introduces a Soft-Hamiltonian q/p/c latent world model with selective memory for stable planning and improved OOD generalization.
Abstract. World models enable model-based planning through learned latent dynamics, but imagined rollouts become unstable as the planning horizon grows or the dynamics distribution shifts: an unconstrained predictor contracts, because each predicted state is fed back as the next input, so the latent distribution shrinks over the rollout until distinct states merge. We argue that this drift and contraction reflect two missing structures in planner-facing latents: a history-conditioned predictive state that summarizes past observations and actions, and geometric organization that separates configuration, momentum, and task semantics. We propose HaM-World (HMW), a structured world model that decomposes the latent state into a canonical-like subspace and a context subspace , while using Mamba selective state-space memory as the history-conditioned input to the same latent dynamics. Within this interface, evolves through an energy-derived Hamiltonian vector field plus learnable residual/control dynamics, while captures semantic, dissipative, and non-conservative factors. This gives the planner a single latent state shared by dynamics prediction, reward/value estimation, imagined rollouts, and CEM action search. On six DeepMind Control Suite tasks, HaM-World ranks first on four and second on the remaining two, with the highest Avg. AUC over all six tasks (91.9, +10.3% over TD-MPC2). Within the horizon range the planner actually unrolls, it reduces imagined-rollout error to 45% of TD-MPC2's and wins 11/12 MSE cells. Under 12 OOD perturbations spanning dynamics shifts, action delay, and observation masking it attains the highest return in every condition (+10.2% on Finger Spin, +13.6% on Reacher Easy). Ablation studies show that both selective memory and the Soft Hamiltonian prior contribute to improved model performance. Mechanism diagnostics show bounded action-free energy drift, structured energy variation under policy rollouts, and coherent control-induced energy transfer. Code: https://github.com/HaoyunT/HaM_World
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes using Hamiltonian structure in latent world modeling as an inductive bias to preserve long term stability. This shows improvements in terms of long-term prediction stability, and offers performance competitive with well-regarded baselines. Overall, reviewers appreciated the conceptual novelty and careful, understanding-oriented experiments. Notable drawbacks included the limited evaluation set, marginal resulting gains in task performance, and one reviewer voiced concerns regarding the extent/usefulness of theory (I tend to find theory somewhat irrelevant for these submissions, so am not weighing one way or another). Ultimately, I would raise my score further if there were more promising experimental gains, and a deeper understanding of how stable predictions improved downstream performance.
EDIT: I have read the authors’ response and the subsequent reviewer discussion. The rebuttal substantially strengthened the paper. In particular, the authors added matched-candidate diagnostics that connect rollout and reward-prediction errors to candidate ranking and realized return. They also added two further control tasks, longer-horizon rollout results, and more detailed component ablations. These additions address my main concern about how improved prediction quality translates into downstream control. Reviewers GQhF and cr5R considered their primary concerns resolved and raised their scores, while reviewer qcdg also leans toward acceptance.
The response also clarified the appropriate scope of the claims. The results support lower rollout error at short-to-medium, planning-relevant horizons, rather than a general claim of improved long-horizon stability: HaM-World is eventually overtaken by TD-MPC2 in sufficiently long open-loop rollouts. The authors also agreed to state that memory produces the larger observed performance change, with the Hamiltonian structure providing smaller complementary gains, and to acknowledge that the evaluation remains limited to six state-based DMC tasks. They further committed to correcting the notation and figure, replacing the less informative appendix arguments, and incorporating the new analyses into the revision.
Final justification
Final Justification: I maintain my recommendation to accept. Under the narrower framing established during rebuttal, the paper presents a technically solid and conceptually interesting contribution. The new diagnostics provide credible evidence that more accurate planning-range predictions improve candidate ordering and downstream return. The main remaining limitation is evaluation breadth: the current results do not establish generalization to manipulation, contact-rich robotics, pixel observations, or substantially different domains. This limits the generality of the conclusions but does not undermine the central contribution. The final version should include the added experiments and explicitly adopt the narrower claims described above. This decision is based only on the written reviews, author response, and public discussion.
Read meta-review
Meta-review
This paper proposes using Hamiltonian structure in latent world modeling as an inductive bias to preserve long term stability. This shows improvements in terms of long-term prediction stability, and offers performance competitive with well-regarded baselines. Overall, reviewers appreciated the conceptual novelty and careful, understanding-oriented experiments. Notable drawbacks included the limited evaluation set, marginal resulting gains in task performance, and one reviewer voiced concerns regarding the extent/usefulness of theory (I tend to find theory somewhat irrelevant for these submissions, so am not weighing one way or another). Ultimately, I would raise my score further if there were more promising experimental gains, and a deeper understanding of how stable predictions improved downstream performance.
EDIT: I have read the authors’ response and the subsequent reviewer discussion. The rebuttal substantially strengthened the paper. In particular, the authors added matched-candidate diagnostics that connect rollout and reward-prediction errors to candidate ranking and realized return. They also added two further control tasks, longer-horizon rollout results, and more detailed component ablations. These additions address my main concern about how improved prediction quality translates into downstream control. Reviewers GQhF and cr5R considered their primary concerns resolved and raised their scores, while reviewer qcdg also leans toward acceptance.
The response also clarified the appropriate scope of the claims. The results support lower rollout error at short-to-medium, planning-relevant horizons, rather than a general claim of improved long-horizon stability: HaM-World is eventually overtaken by TD-MPC2 in sufficiently long open-loop rollouts. The authors also agreed to state that memory produces the larger observed performance change, with the Hamiltonian structure providing smaller complementary gains, and to acknowledge that the evaluation remains limited to six state-based DMC tasks. They further committed to correcting the notation and figure, replacing the less informative appendix arguments, and incorporating the new analyses into the revision.
Final justification
Final Justification: I maintain my recommendation to accept. Under the narrower framing established during rebuttal, the paper presents a technically solid and conceptually interesting contribution. The new diagnostics provide credible evidence that more accurate planning-range predictions improve candidate ordering and downstream return. The main remaining limitation is evaluation breadth: the current results do not establish generalization to manipulation, contact-rich robotics, pixel observations, or substantially different domains. This limits the generality of the conclusions but does not undermine the central contribution. The final version should include the added experiments and explicitly adopt the narrower claims described above. This decision is based only on the written reviews, author response, and public discussion.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses the issues of insufficient Markov completeness and unstructured latent states found in conventional planning-oriented world models. By incorporating a selective state space model (SSM) to leverage history-conditioned memory, the proposed framework, HaM-World, aims to achieve Markov completeness. Furthermore, it structures the latent state to mirror physical priors, thereby reducing accumulated errors during long-horizon rollouts. Specifically, the structured latent state of HaM-World is decoupled into energy-regularized physics (q,p) with a soft Hamiltonian prior and semantic context c.
Strengths and weaknesses
The current paper features clear and well-justified motivations behind its specific design choices, and the training strategy is articulated in a detailed, accessible manner. Moreover, both the main results and the comprehensive ablation studies convincingly demonstrate distinct performance gains attributable to the proposed geometric structure and memory integration.
However, the core theoretical foundations of this submission are somewhat underdeveloped. The text lacks a mathematically rigorous definition of both Markov completeness and the Hamiltonian property. It remain ambiguous whether Markov completeness has indeed been restored by the proposed mechanism. The draft also falls short of providing an intuitive or theoretical explanation as to why the Hamiltonian property was introduced, and exactly how it translates into the reported performance improvements.
Questions
- Mechanistically, the extraction processes for q,p, and c appear highly similar, with the only notable difference being the absence of the Hamiltonian geometric constraint on c. How does simply omitting this geometric constraint inherently force c to capture and represent "semantic context"?
- Could you clarify the exact specifications of the Mamba-based architecture used? Is it a pure state space layer setup, or does it incorporate standard components like convolution and state-expanding layers?
- Did the authors conduct an ablation study targeting the individual loss functions? It would be highly informative to see how the performance scales with and without the specific loss.
- What is the underlying mechanism that allows HaM-World to maintain robust performance in OOD scenarios under a zero-shot setting? Can this structure be reliably deployed out-of-the-box without any parameter calibration or fine-tuning?
- Was TD-MPC2 the absolute SOTA baseline at the time of this work? Given the focus on planning-oriented world models, would the evaluation not be significantly stronger if it included a wider, more diverse suite of baselines from that specific category?
- If the evaluation's rollout length is not excessively long, it raises the question of whether a Transformer-based sequence mixer could serve as a stronger baseline. Intuitively, swapping the SSM layer with a Transformer architecture might increase the computational overhead during inference, but it should match or outperform the SSM in terms of expressive power.
Limitations
yes
Final justification
I am raising my score following the rebuttal. The authors thoroughly addressed my initial concerns, particularly through a insightful explanation of how Mamba's hidden state processing mechanism supports OOD robustness. The provided evidence successfully demonstrate the model's capabilities, making the paper's contribution convincing.
Formatting concerns
No concerns
6 comments
Rebuttal
We thank the reviewer for the detailed review.
Weaknesses
W1. Markov completeness is not rigorously defined; is it truly restored?
A1. Our claim is a history-conditioned predictive state, not exact Markov completeness. Strict predictive sufficiency would require satisfying . We use as the planner-facing state ( the current observation, the history summary), with conditioning the transition, and test whether that interface retains what finite-horizon planning needs via the no-memory/GRU ablations and multi-step rollout and reward errors — evidence, not a guarantee. The revision will define the state explicitly and drop "approximate Markov completeness."
W2. The Hamiltonian property's definition, motivation, and link to performance remain unclear.
A2. (i) Why. The issue is repeated self-iteration: to evaluate one candidate the planner feeds its own output back in, six steps in a row. Even with small one-step error an unconstrained transition can then flatten trajectories into a low-dimensional subspace (candidates become indistinguishable) or push them outside the training region (heads score unseen states unreliably). We wanted a "do not drift, collapse, or expand" constraint, which classical mechanics supplies.
(ii) What it guarantees. Intuitively, the state moves along energy "contours" rather than crossing the landscape arbitrarily. For the action-free continuous-time raw field with , :
The first keeps trajectories on a level set of ; the second, divergence-freeness, means phase-space volume is neither compressed nor expanded — the two failure modes above. The shared drives both and , so they are jointly constrained. Two boundaries: are learned canonical-like coordinates and an energy-like field, not identified physical quantities; and these hold strictly only for the unclipped, action-free raw field.
(iii) Turning into performance. With the learned residual, , , clipping, and forward Euler, the full model is only a soft geometric bias, so (ii)'s boundedness is approximate. It should still propagate: bounded rollout error → reward/value heads queried at more accurate states → smaller score error → relative ordering survives (error implies regret at most ) → near-optimal actions → replanning compounds these into higher return. A matched-candidate diagnostic tests each link: 600 scenarios (50 simulator states per task/seed) scoring the identical 64 candidates from identical state/history:
| Metric | HaM-World | TD-MPC2 | |
|---|---|---|---|
| (a) | Top-1 selection regret ↓ (dynamics pred.) | 0.3263 | 0.6722 |
| Candidate reward MAE@6 ↓ (reward pred.) | 0.1851 | 0.6071 | |
| (b) | Top-1 hit rate ↑ | 33.17% | 15.00% |
| Top-5 hit rate ↑ | 54.67% | 37.17% | |
| Spearman (score vs. true-return order) ↑ | 0.4244 | 0.2570 | |
| (c) | Avg. return over diagnostic states ↑ | 122.82 | 96.75 |
(a) Two complementary score errors: Top-1 selection regret — true return of the model's rank-1 candidate minus the set's true best — gives decision cost; reward MAE compares imagined and simulator-realized cumulative rewards for the same actions, giving numerical error. It jointly reflects dynamics and reward/value prediction; MAE directly measures reward-prediction error. Without observation injection, regret is sensitive to compounding rollout error. (b) Hit rate: frequency that rank-1 is true rank-1 (or top-5); Spearman: rank correlation over 64 candidates — together, whether (a)'s errors invert ranking. (c) realized accumulation when first actions run.
The results track this chain link by link: the starting point is in the submission (four-task mean rollout MSE@5/7 1.74/2.73 vs. 4.04/4.09); both score errors are smaller (regret and reward MAE correlate 0.474, so they move together) → fewer inversions → higher realized return, matching Table 1 (254.0/150.6/184.4/58.9 vs. 232.2/105.1/155.7/15.0).
Questions
Q1. Why would merely omitting the Hamiltonian constraint on make it semantic context?
A1. It does not — no identifiable semantic decomposition follows automatically. The pair receives a canonical-like geometric bias while need not evolve along the vector field of , so is only a complementary channel for non-Hamiltonian, task-relevant information (contact, dissipation, task phase, possibly physical too). "Semantic context" is functional naming, not an identifiability guarantee.
Q2. What is the exact Mamba specification? Convolution or state-expanding layers?
A2. Two lightweight Mamba-style selective SSM layers, model and recurrent-state dimension both 128. Concatenated is projected to the model dimension; each layer has LayerNorm, input-dependent step-size/state/readout projections, learned diagonal decay, sigmoid-gated readout, and a hidden residual FFN. No temporal convolution and no state expansion beyond 128; the output conditions the Hamiltonian-pair core, control map, and context updater simultaneously.
Q3. Were individual loss functions ablated?
A3. Yes — at the granularity of the structure/objective groups those losses constrain. A1 removes the structure with its group; A2/A3 (memory-only, omitted here) separate memory from loss-group effects; A4–A6 isolate the Hamiltonian form, residual, and control port those losses act on:
| Variant | Cheetah | Finger | Cartpole MSE | Reacher MSE | Mass OOD | Damp OOD |
|---|---|---|---|---|---|---|
| Full (hybrid) | 184.4±8.4 | 254.0±14.1 | 0.009±0.003 | 0.0778±0.043 | 159.7±3.9 | 139.9±7.7 |
| A1: no geometry | 169.8±13.5 | 247.7±12.4 | 0.012±0.003 | 0.085±0.022 | 154.4±15.2 | 131.9±22.9 |
| A4: pure soft | 181.7±9.2 | 251.3±15.6 | 0.010±0.003 | 0.080±0.031 | 156.1±6.8 | 136.7±8.5 |
| A5: hard (α=1) | 158.6±17.1 | 226.7±19.3 | 0.034±0.010 | 0.119±0.029 | 138.2±13.6 | 121.5±12.4 |
| A6: no port | 153.6±18.2 | 219.3±24.5 | 0.041±0.009 | 0.129±0.028 | 130.7±12.1 | 115.4±10.8 |
This is loss-ablation evidence at the structure/loss-group level, though not a leave-one-out over 12 scalar weights. Full leads on all six metrics.
Q4. What enables zero-shot OOD performance, and is deployment calibration-free?
A4. (i) Why it is retained. Two parts, neither sufficient alone. A transferable dynamics prior: the branch learns not "how to move under this mass" but relations holding across parameters (momentum changes at a rate set by the energy slope; energy changes only under external work). These stay qualitatively valid after rescaling — only their strength changes — whereas an unstructured latent entangling them with specific parameters must refit the whole mapping.
Online state conditioning: the prior cannot know the current environment's strength, which lives only in recent interactions. Under mass×1.3 the same action responds differently, and that discrepancy accumulates in Mamba's recurrent state — a runtime state, not a parameter, so it adapts with weights frozen. The prior supplies how to roll forward, how strongly; CEM scores from the latest , executes one step, and the next observation re-anchors.
(ii) Direct deployment. Yes — all same-task perturbations load the same ID checkpoint with no parameter update, calibration, or fine-tuning, i.e. strictly zero-shot, attaining the highest return in 12/12 conditions (Finger/Reacher OOD averages 10.2%/13.6% above TD-MPC2).
Q5. Was TD-MPC2 the absolute SOTA? Should more baselines be included?
A5. We accept the first point: TD-MPC2 is the most directly related strong planning-oriented baseline, but "absolute SOTA" is inappropriate; the revision will say "strong representative baselines under the same protocol." On breadth: we compare those strictly alignable under the same 100k-step budget, seeds, and protocol. The four span three decision paradigms — latent planning with a sampling-based planner (TD-MPC2), latent imagination with an actor–critic (DreamerV3), model-free off-/on-policy control (SAC/PPO) — matching the dimensions we separate: planner-facing prediction quality, imagination quality, and the model-free ceiling.
Q6. Could a Transformer be a stronger memory baseline?
A6. A Transformer may have greater capacity, but what matters here is fit to the state-transition interface. Our memory conditions the transition at every step, requiring: a fixed-size runtime state (CEM unrolls hundreds of six-step candidates per real step, so attending over a token history recomputes attention at every imagined step, at cost scaling as candidates × horizon); incremental updates (each real step adds one observation, whereas a Transformer reprocesses or cache-manages the whole context); and an output injectable as one vector into , , — the native form of a selective SSM's recurrent state. A controlled experiment (replacing only the memory module) supports this:
| Memory | Finger | Reacher | Cheetah | Cartpole |
|---|---|---|---|---|
| Mamba (ours) | 254.0±14.1 | 150.6±7.5 | 184.4±8.4 | 58.9±3.8 |
| Transformer | 91.89±46.18 | 144.67±16.57 | 60.65±10.73 | 51.25±6.63 |
Mamba is higher on 4/4 tasks, with the largest gaps on Finger and Cheetah. Under our planner interface, this suggests a Transformer may not be a stronger memory baseline for HaM-World.
If our revisions have resolved your concerns, we would sincerely appreciate your considering a higher score.
Dear Reviewer,
Thank you again for your insightful and constructive review. In our response, we have further refined and clarified our statements regarding history-conditioned predictive states, provided a more explicit definition and motivation for the Soft-Hamiltonian inductive bias, and added a matched-candidate diagnostic to analyze step by step how rollout accuracy affects candidate-action ranking and, ultimately, realized control performance.
In addition, we have further clarified the respective roles of , , and , provided detailed specifications of the Mamba module, added ablation studies concerning the model structure and training objectives, explained the mechanism underlying zero-shot OOD generalization, and included a controlled comparison with a Transformer-based memory module.
As the discussion period has now passed its halfway point, we would be grateful to know whether these additions have adequately addressed your questions. If any concerns remain, or if further experimental results or methodological details would be helpful for your assessment, please feel free to let us know. We would be very happy to provide further clarification and continue the discussion.
Thank you again for your time and consideration.
Best regards,
The Authors
Please respond
Dear reviewer,
Please respond to the authors by the end of the rebuttal period.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Authors propose HaM-World, a structured world model that decomposes the latent state into a canonical subspace and a context subspace, while incorporating Mamba selective state-space memory as a history-conditioned input to the same latent dynamics. If my understanding is correct, this paper uses a weighted sum of a Hamiltonian latent model and an action model to predict motion of a system in world model given the encoded context . To justify the advantage of HaM-World, authors compare with tasks in DeepMind Control Suite with PPO, SAC, DreamerV3, TD-MPC2 and quantitatively show the improvement of the performance.
Strengths and weaknesses
Strength:
- Using Hamiltonian to describe the motion of a mechanical system is critical, and HaM-World model make one step on closing the gap.
- Experimental details are given which is good for reproducibility.
Weakness:
-
However, this paper only adapt Hamiltonian as soft regularization and it is a mix-up of past trail memory and Hamiltonian. Table 3 indicates a mix of Hamiltonian latent is only a marginal improvement compared with a Mamba memory component (no memory or GRU memory harm the performance more). Therefore, it is very hard to convince people the Hamiltonian latent is learned correctly and is a major boost of performance. Authors tried to use Figure 4 to motivate people that phase space energy function matches the control signal but again this is soft only and (b) part does not make sense as different components cannot match up.
-
This paper has some notation mismatch issue. Eq. (2) and Eq. (3) are kinda unrelated. Figure 1 top right panel does not match Eq. (3) and follow up discussion either, at least I don't see where is given. I can guess its and both are not labeled as well. should be a network output but it is an additive term only in the Figure. I think Figure 1 is not carefully checked which at least harm my understanding of the paper.
-
The proof in Appendix A is unnecessary. The A.1 is the weakly passivity in discrete time analysis, which is not helpful as it is not bounded by the supply work and dissipative term only, as relates with one step update which mixup Mamba memory based action and Hamiltonian dynamics together. The A.2 is a geometric bound where the most important term is . The bound itself does not have any insight on how is bounded. I would suggest remove these discussions and focus on explaining the Hamiltonian model and what time integration one is using over the rollout of the Hamiltonian. The proof I am expecting to see is to connect Eq. (2) and the update rule of Eq. (3), which is not given in the current manuscript.
Above all, I cannot give high score because I am expecting to see discussion regarding numerical integrations and the necessity of adding Hamiltonian latent model (including the port term ), which is currently missing in my point of view.
Questions
- Are all latent rollout time integration explicit-Euler? I understand symplectic integration might be intangible in this case, but have authors considered semi-implicit Euler or Velocity Verlet scheme?
- From Appendix B.1, Table 4, it indicates HaM-World, TD-MPC2 and DreamerV3 are using different planner method (CEM v.s. MPPI v.s. imagination). Are these planner method can be unified in each method or there are reasons that prohibit each method using different planner methods?
- Can authors provide ablation or experiments that can isolate and make the contribution of , , and explcit? For instance, let and add/drop part to at least help readers understand if every component is necessary.
- There are more than different loss terms to train the model. Are weights of each term hypertuned or chosen on purpose?
- Can authors provide visualization of each compared model in the manuscript to help readers understand when and why other models fail to achieve the motion task in each benchmarking environments?
Limitations
Yes, discussed at the end of the paper.
Final justification
- Authors have agreed the proof in appendix is not a must to help reader understand how soft Hamiltonian dynamical can be an effective latent model, this improves clarity in one major weakness.
- Authors have provided additional ablation and experiments in rebuttal phase to answer reviewer's question regarding limited-evaluation, effectiveness of Hamiltonian especially additional extraneous port components. Authors also promised to replace Lemma A.2 into the empirical validation. If these changes are revised and incorporated into the final camera ready version, I think the paper is solid.
Overall, authors have addressed my concerns and provide additional evidence for some of my questions. Therefore I increase my score from borderline-reject to borderline-accept.
Formatting concerns
Redraw figure 1.
8 comments
Rebuttal
We sincerely thank the reviewer for the thorough and insightful assessment. We have carefully considered your feedback and address your concerns below.
Weaknesses
W1. Soft-Hamiltonian is mixed with Mamba; memory dominates Table 3; Figure 4(b) does not establish a Hamiltonian latent.
A1. (i) Why the drops are not comparable. Mamba and the hybrid geometry are upstream and downstream of one pipeline: Mamba reduces state ambiguity from history, the dynamics organize candidate futures from that state, and the planner scores them. Removing memory destroys state inference and geometry's input, so a larger no-memory drop does not mean geometry matters less; there is no additive decomposition. Thus the memory ablation tests whether HaM-World depends on history-conditioned memory to work; it is not a drop-size ranking against geometry.
(ii) Geometry's net gain once memory is in place. A1 holds memory, planner, objectives, and budget fixed, removing only the split and geometric package: return 184.4/254.0 → 169.8/247.7, MSE@6 0.009/0.0778 → 0.012/0.0852, Reacher OOD 159.7/139.9 → 154.4/131.9. A1 removes the whole package, so this is not attributable to the scalar head alone; finer isolation is in Q3.
(iii) On Figure 4(b). We agree it was ambiguous. 4(a) uses the conjugate pair for streamline/contour alignment; 4(b) deliberately uses a non-conjugate projection where canonical alignment is not expected — reading it as evidence for Hamiltonian structure would indeed be invalid. It is a robustness check: the association survives even there (, ), not an artifact of one favorable slice.
W2. Notation mismatch: Eqs. (2)–(3) look unrelated, and Figure 1 does not match Eq. (3).
A2. The criticism is reasonable — Figure 1 is genuinely liable to mislead here, though Eq. (3) in the text is what the implementation runs.
(i) Eqs. (2)–(3) appearing unrelated. Agreed: Eq. (2) leaves abstract, so nothing shows that the it unrolls is Eq. (3). W3 substitutes Eq. (3) into Eq. (2).
(ii) . Your guess is right and the label misleading: the figure's is the text's . The "net" superscript is meaningful only on the canonical pair, where are the branch mixes with the Hamiltonian field; has no such mixing, so it is spurious. The panel will read , per Section 4.1.
(iii) The two 's. They are and : and , both on . Both become named blocks, with entering , , and simultaneously — a connection the panel omits.
(iv) . Also correct, and the drawing invites this misreading: is a network output entering the momentum update multiplicatively as , not an additive box. The revision draws as a block whose output multiplies before .
W3. Appendix A is disconnected from the implemented update; the expected proof links Eq. (2) to Eq. (3).
A3. Accepted: A.1's weak passivity is uninformative because mixes the memory-conditioned branch with the Hamiltonian field, and A.2 gives no insight into how is bounded. We replace both with the derivation you ask for.
The rule linking Eq. (2) and Eq. (3). Here Eq. (2) is written with Eq. (3) substituted in. Let and define the one-step increment of Eq. (3) as
with and , , all evaluated at . Then , and Eq. (2) becomes the single expression
Unrolling gives
so the reward and value in Eq. (2) are evaluated at states produced by applications of Eq. (3). That is the missing link — Eq. (3) is the step rule, Eq. (2) its -fold unroll under the same , , , and memory.
Questions
Q1. Are all rollouts explicit-Euler? Were semi-implicit Euler or Verlet considered?
A1. Yes — training, evaluation, and CEM imagination use the same forward-Euler transition, both gradients at the current , with a fixed per-checkpoint . It is not symplectic Euler, Velocity Verlet, or leapfrog.
We considered both; the reason against is structural. Their symplecticity requires a separable for the staggered update to form an explicit symplectic map, whereas our is a learned scalar field over the concatenation of — that structure does not exist. Symplecticity is also a property of the entire one-step map, not one additive component: ours also contains the residual, port, memory conditioning, context channel, and clipping, so swapping one branch's integrator would not make it symplectic. Ours is a local geometric bias, not a new solver.
Q2. Can the planners be unified? Does the CEM/MPPI/imagination split affect fairness?
A2. "Interchangeable in principle" differs from "still the same method after replacement." CEM and MPPI are both sampling-based and interface-compatible, but MPPI is TD-MPC2's native mechanism, tuned around its latent and value head — swapping in CEM would evaluate an untuned variant. DreamerV3's imagined actor–critic is more intrinsic still; replacing it changes the algorithm. The main table keeps each method's native procedure under a unified budget, seeds, and protocol.
To probe sensitivity to the planner, we ran 100k-step end-to-end MPPI retraining: MPPI participates in data collection, training, and deployment, architecture and budget held fixed, against the CEM branch trained in the same batch:
| Planner variant | Cheetah Return ↑ | Finger Return ↑ | Cartpole MSE ↓ | Reacher MSE ↓ | Mass OOD ↑ | Damp. OOD ↑ |
|---|---|---|---|---|---|---|
| HaM-World + CEM | 184.4±8.4 | 254.0±14.1 | 0.009±0.003 | 0.0778±0.043 | 159.7±3.9 | 139.9±7.7 |
| HaM-World + MPPI | 166.1±11.4 | 231.7±16.2 | 0.019±0.005 | 0.104±0.021 | 143.2±8.9 | 124.6±9.2 |
The CEM branch attains higher ID/OOD return and lower rollout MSE, so planner choice does affect the complete agent. Because MPPI also changes the data-collection and training distributions, this is a within-method end-to-end study, not a checkpoint-only ablation of the inference-time planner.
Q3. Can the Hamiltonian branch, residual, and port be isolated?
A3. Using the increments of W3: A1 removes with the factorization and its objectives — a package ablation, not deletion of one scalar head; A4 makes the update pure Soft-Hamiltonian; A5 sets , keeping the field but dropping the residual; A6 deletes only :
| Variant | Cheetah | Finger | Cartpole MSE | Reacher MSE | Mass OOD | Damp OOD |
|---|---|---|---|---|---|---|
| Full (hybrid) | 184.4±8.4 | 254.0±14.1 | 0.009±0.003 | 0.0778±0.043 | 159.7±3.9 | 139.9±7.7 |
| A4: pure soft | 181.7±9.2 | 251.3±15.6 | 0.010±0.003 | 0.080±0.031 | 156.1±6.8 | 136.7±8.5 |
| A5: hard (α=1) | 158.6±17.1 | 226.7±19.3 | 0.034±0.010 | 0.119±0.029 | 138.2±13.6 | 121.5±12.4 |
| A6: no port | 153.6±18.2 | 219.3±24.5 | 0.041±0.009 | 0.129±0.028 | 130.7±12.1 | 115.4±10.8 |
A4 degrades slightly on all six metrics, A5 markedly further (removing the residual over-constrains the dynamics), and A6 throughout.
Q4. Were the loss weights tuned, or chosen deliberately?
A4. Deliberately, not tuned per task. Appendix B.5 Table 6 reports all 12 weights and schedules; one global configuration was calibrated and frozen across tasks. are primary, , only assists the CEM proposal, and geometric terms sit at , shaping dynamics without dominating task fit; rollout, small-action, and energy terms warm up over 30–60% of training.
Q5. Can baselines be visualized to show when and why they fail?
A5. Yes — we completed real-environment rollout visualizations for all five methods on all six tasks, aligning frame sequences with task-state curves (velocity, body height/orientation, target distance, contact) under fixed seeds, showing when each loses balance, stalls, deviates, or fails to sustain motion. Our model also exposes and the control push, but other methods have no corresponding internals, so raw-latent alignment would be incomparable.
Minor Improvements
F1. Figure 1 should be redrawn to match Eq. (3).
A1. Agreed — specified in W2.
If these clarifications resolve your concerns, we would appreciate your reconsidering the score.
Dear Reviewer,
Thank you again for your detailed and insightful review. In our rebuttal, we have clarified the connection between Eqs. (2) and (3), specified the forward-Euler integration procedure used in training, evaluation, and planning, and addressed the misleading elements in Figure 1. We have also discussed the comparability of different planners and added controlled ablations isolating the Hamiltonian field, residual dynamics, and control port.
As the discussion period has now passed its halfway point, we would sincerely appreciate knowing whether these explanations and additional results have adequately addressed your main concerns. If any issue remains unresolved, or if further derivations, implementation details, experimental evidence, or clarifications would be helpful for your assessment, please feel free to let us know. We would be very happy to provide further information and continue the technical discussion.
Thank you again for your time and consideration.
Best regards,
The Authors
I thank authors for their reply and it helps me understand the significance of the proposed method more. My concerns have been addressed. I would like to hear how authors bound regarding explicit Euler scheme or numerically validate bound that is originally stated in appendix, but W1 and Q3 answer altogether explains why this particular Hamiltonian structure is relevant which is good enough given author agrees that proof in appendix is less relevant to the core idea. Therefore, I intend to raise my score to borderline accept if authors revise the paper accordingly.
One additional curiosity question: from table in Q3, it seems that the external forces or port input part is the core of the soft-Hamiltonian. What if authors use a separable Hamiltonian and parametrize two network or use mechanical Hamiltonian? What if authors use different network structure of ? This question requires way more additional experiment and it only provides some ideas on validating the significance of the Ham-World model, not a must-to-do to raise my evaluation.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes HaM-World, a model-based RL method that combines Mamba selective memory with a structured latent dynamics model. The latent state is decomposed into (q,p,c), where (q,p) follows a Soft-Hamiltonian dynamics prior and (c) captures non-conservative or task-specific factors. The model is used for reward/value prediction, imagined rollouts, and CEM planning. Experiments on four state-based DMC tasks report improved AUC, lower short-horizon rollout MSE, and stronger absolute OOD returns.
Strengths and weaknesses
Strengths
- The combination of memory and structured latent dynamics is conceptually interesting. The ((q,p,c)) decomposition is a reasonable way to separate physics-inspired structure from task-specific context.
- The reported results are promising on the tested DMC tasks, especially in short-horizon rollout MSE and average AUC.
Weaknesses
- The evaluation is limited to four state-based DMC tasks. Broader testing on manipulation, contact-rich robotics, pixel observations, or longer-horizon domains would better support the generality of the method.
- The paper motivates the method through long-horizon rollout stability, but rollout MSE is only reported for (k \in {3,5,7}). These horizons are short. Results for larger (k), such as 10, 15, or 20, are needed.
- Table 3 suggests memory is the dominant component. Removing memory causes a large drop, while removing geometric structure has a relatively modest effect. This weakens the claim that the Soft-Hamiltonian structure is the main driver of performance. The GRU ablation also raises questions. Since GRU provides memory too, the paper should explain why Mamba is essential rather than simply a stronger memory module.
- The Hamiltonian part of the methodology is difficult to follow. The paper should introduce the relevant intuition in the preliminaries, especially the meaning of (q), (p), (H(q,p)), (\partial_p H), and (-\partial_q H) in learned latent space.
- In Table 1.II, HaM-World has lower absolute MSE than TD-MPC2, but its MSE appears to grow faster with horizon. This should be analyzed, since long-horizon stability is a core motivation.
- The OOD results in Table 2 should be compared against the in-distribution results in Table 1. HaM-World has better absolute OOD returns, but its relative degradation may be similar to TD-MPC2. Reporting normalized retention ratios would make the robustness claim clearer.
Minor Improvements
- Add subplot labels to Figure 3, similar to Figure 4.
- Report OOD retention ratios in addition to absolute OOD returns.
Questions
- What happens to rollout MSE for horizons larger than (k=7)? Does increasing the CEM planning horizon improve or hurt HaM-World relative to baselines?
- Why is Mamba specifically needed instead of a GRU or other recurrent memory?
- Are the OOD gains still strong when normalized by each method’s in-distribution return?
- Do the Hamiltonian diagnostics hold across all tasks or mainly for Cheetah Run?
- Would the method work from pixel observations?
Limitations
yes
Final justification
Given the rebuttal, my only remaining concern is the limited evaluation setup and the extent to which the approach generalizes to other domains, such as manipulation or contact-rich robotic tasks.
Formatting concerns
None
5 comments
Rebuttal
We sincerely thank the reviewer for the thorough assessment and insightful suggestions. Below, we provide detailed responses and clarifications to the specific concerns raised in the review.
Weaknesses
W1. Only four state-based DMC tasks.
A1. The original tasks underrepresent sustained coordination, momentum, and repeated contact, so we add walker_run and hopper_hop (100k steps, seeds 7/8/9, same protocol):
| Task | HaM-World | TD-MPC2 | DreamerV3 | SAC | PPO |
|---|---|---|---|---|---|
walker_run |
151.99±33.27 | 101.85±29.72 | 104.57±22.93 | 56.54±21.08 | 19.13±3.16 |
hopper_hop |
34.46±8.93 | 13.97±7.76 | 11.30±0.27 | 14.70±1.22 | 4.70±0.21 |
W2 & W5 & Q1 (combined). Only is reported; error appears to grow faster with horizon; what happens beyond , and does a longer CEM horizon help?
(i) Why we stopped at . Table 1's rollout MSE measures what each method's native decision procedure actually uses, not open-loop stability at arbitrary length. Native horizons are ours , TD-MPC2 , and DreamerV3 ; hence lies within this range.
(ii) Beyond . Extending to (open-loop from replay-encoded , no observation injected; endpoint squared-error sum, three seeds; lower is better). DreamerV3 is omitted as it is worst at every (7.20→80.20):
| Task | Method | K=3 | K=5 | K=7 | K=10 | K=15 | K=20 |
|---|---|---|---|---|---|---|---|
| Finger | HaM-World | 0.72 | 1.43 | 2.53 | 4.30 | 7.70 | 11.55 |
| TD-MPC2 | 3.48 | 3.58 | 3.61 | 3.67 | 3.78 | 3.90 | |
| Reacher | HaM-World | 1.28 | 2.36 | 3.68 | 5.75 | 9.65 | 14.05 |
| TD-MPC2 | 3.34 | 3.38 | 3.42 | 3.48 | 3.58 | 3.68 | |
| Cheetah | HaM-World | 1.21 | 1.88 | 2.74 | 4.10 | 6.65 | 9.45 |
| TD-MPC2 | 4.28 | 4.40 | 4.47 | 4.57 | 4.74 | 4.91 | |
| Cartpole | HaM-World | 0.77 | 1.30 | 1.97 | 3.05 | 5.05 | 7.30 |
| TD-MPC2 | 4.66 | 4.79 | 4.87 | 4.99 | 5.16 | 5.34 |
(iii) On faster growth (W5). Correct, and we confirm it: we start far lower but with a steeper slope, while TD-MPC2 starts high and flat. We are lowest on 4/4, 4/4, 3/4, 2/4, 1/4 tasks at and 0/4 at , with crossovers at Reacher (), Finger (), Cheetah (), Cartpole (). We therefore narrow the claim to accuracy within the planning-relevant range. TD-MPC2's flatness also partly reflects an already high plateau, so both shapes should be read together.
(iv) Implications for planning (Q1). A closed-loop planner re-anchors every real step, so open-loop accuracy is never needed. Varying only the CEM horizon at fixed 100k checkpoints:
| Task | Native /ret. | Best /ret. | =20 ret. | Latency |
|---|---|---|---|---|
| Cartpole | 4 / 58.9 | 12 / 63.62 | 61.74 (+4.82%) | 4.61x |
| Cheetah | 6 / 184.4 | 14 / 196.16 | 168.13 (−8.82%) | 3.31x |
| Finger | 6 / 254.0 | 6 / 254.0 | 36.00 (−85.83%) | 3.24x |
| Reacher | 6 / 150.6 | 6 / 150.6 | 126.00 (−16.33%) | 3.31x |
There is a foresight–accuracy trade-off: larger sees farther but compounds error and latency. Best falls in 6–14; at only Cartpole stays above native, the others dropping 8.8%–85.8% at 3.24–4.61x latency. What matters for closed-loop control is thus rollout MSE at short-to-medium horizons (~6–12 steps), not open-loop error at arbitrary length.
W3 & Q2 (combined). Memory dominates Table 3; is Mamba merely a stronger memory module?
(i) Why the two drops are not comparable. They act at successive stages: memory improves the state estimate from history; geometry then constrains multi-step dynamics on top of that state. Removing memory destroys both state inference and geometry's input, so its drop is no reference for geometry's incremental effect; the two admit no additive decomposition. Thus the memory ablation tests whether HaM-World depends on history-conditioned memory to work; it is not a drop-size ranking against geometry.
(ii) Why Mamba specifically. Not because it is "bigger", but because three properties match our planner interface. Input-dependent selectivity: a GRU's gates are fixed after training, whereas Mamba derives its step-size, state, and readout projections from the current — and under partial observability, which history segment is informative varies precisely with contact and momentum phase. Long-range retention: repeated nonlinear gating compresses long-range dependencies, whereas a selective SSM's diagonal linear recurrence accumulates history with controlled decay. Batched-rollout compatibility: a fixed-size recurrent state conditions the transition directly, without reprocessing full history in every candidate rollout.
(iii) Controlled evidence. Replacing only Mamba with a GRU: Cartpole/Reacher MSE@6 0.009/0.0778 → 0.026/0.148, Cheetah/Finger return 184.4/254.0 → 121.1/235.6. Removing the geometric package instead: return → 169.8/247.7, MSE@6 → 0.012/0.0852, Reacher OOD → 154.4/131.9. This confirms that dependence; geometry adds complementary gains once memory is in place. Scoped to our tasks and interface; we do not claim selective SSMs beat all recurrent modules.
W4. The meanings of in learned latent space are unclear.
A4. We agree and will add this lead-in before the update equations.
A pendulum needs two quantities: where it is (angle) and how fast it moves — classically the configuration and momentum . One scalar (energy) determines both updates: (position changes at a rate set by momentum) and (momentum, by the energy slope along position). Together they make motion follow energy contours rather than drift arbitrarily.
Two boundaries in latent space. First, are learned canonical-like blocks, not dimension-wise physical quantities, and is an energy-like field, not identified mechanical energy. Second, we borrow only its directions: satisfies , orthogonal to the energy gradient, so moving along it leaves energy unchanged to first order — exactly what repeated unrolling needs. The full model does not require strict conservation: the residual fits dissipative dynamics, is an explicit control path, and carries non-Hamiltonian information. It is a soft geometric bias, not a strict Hamiltonian flow.
This also explains the OOD capability. An unstructured latent learns "given these parameters, what this state becomes next", so rescaling mass or damping forces a refit. The branch instead learns relations that stay qualitatively valid after rescaling — only their strength changes. The model need not relearn the dynamics' form, only recalibrate its strength online, which memory does from the recent observation–action response.
W6 & Q3 (combined). OOD reports only absolute return; do gains hold after normalizing by each method's ID return?
Absolute OOD return reflects post-perturbation performance; retention reflects degradation relative to a method's own ID level. From Table 1 ID returns and Table 2 OOD averages, Retention :
| Method | Finger | Reacher | 12-cond. macro |
|---|---|---|---|
| HaM-World | 72.6% | 99.5% | 86.0% |
| TD-MPC2 | 72.0% | 125.6% | 98.8% |
| SAC | 68.2% | 77.7% | 73.0% |
| DreamerV3 | 76.3% | 50.5% | 63.4% |
| PPO | 67.3% | 68.3% | 67.8% |
Each entry divides a task's 6-condition OOD average (conditions per Table 7) by its ID final return; the macro weights both tasks equally. As ratios of reported means they carry no recoverable std.
We state this precisely: we do not lead on every retention figure. DreamerV3 reaches 76.3% on Finger vs. our 72.6%, but absolute returns are 55.2 vs. 184.3; TD-MPC2 reaches 125.6% on Reacher vs. 99.5%, but 132.0 vs. 149.9. High retention with low absolute return signals a low ID starting point, so retention alone misleads. The accurate claim is highest absolute return in 12/12 conditions, with OOD averages 10.2%/13.6% above TD-MPC2 — not smallest relative degradation. The revision reports both.
Minor Improvements
M1. Figure 3 has descriptive panel titles but lacks Figure 4's explicit (a)–(d) numbering; the revision will add it and update the caption and in-text references.
M2. Agreed — W6 above gives retention for all five methods, and the revision will report it alongside absolute return.
Questions
(Q1–Q3 answered above in the combined items.)
Q4. Do the Hamiltonian diagnostics hold across tasks, or mainly on Cheetah Run?
A4. We ran the same Figures 3–4 diagnostics on all six tasks (action-free/random-action energy, trajectories and slices, control-induced contour crossing, distributions). All six show the same qualitative pattern: bounded energy variation under action-free rollouts, structured variation matching control under policy rollouts, coupled evolution, and as a complementary channel. Cheetah Run is only the representative display; full panels go to the appendix. These are supporting diagnostics.
Q5. Would the method work from pixel observations?
A5. A valuable direction. In principle the interface is compatible — swapping the MLP encoder for a visual one preserves the dynamics, memory, and planner — but this paper has no pixel experiment, so that compatibility is untested. The open question is whether stable canonical-like structure can be learned from pixels at all, since pixels do not directly expose configuration/velocity semantics; how visual nuisance variation divides against is likewise open. We will state this in future work.
If our revisions have resolved your concerns, we would sincerely appreciate your considering a higher score.
Dear Reviewer,
Thank you again for your careful and constructive review. In our rebuttal, we have addressed the concerns regarding the breadth of the evaluation, rollout behavior beyond , the faster growth of rollout error at longer horizons, the role of Mamba relative to GRU, and normalized OOD retention.
We have also added two new control tasks and further analyzed the trade-off among planning horizon, prediction accuracy, control performance, and computational latency.
As the discussion period has now passed its halfway point, we would be grateful to know whether these additional results and clarifications have adequately addressed your main concerns. If any issue remains unresolved, or if any additional experimental details or analyses would be helpful for your assessment, please feel free to let us know. We would be very happy to provide further clarification and continue the discussion.
Thank you again for your time and consideration.
Best regards,
The Authors
Please reply to the authors response
Dear reviewer,
Please reply to the author's concern before the rebuttal period is over.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the AC for the meta-review. Below we walk through how stable prediction improves control (C1), then provide more compelling evidence of the performance gains (C2–C3).
C1. How do stable predictions improve downstream control?
A1. (i) Why stability, not one-step accuracy. The planner never consumes a one-step prediction: CEM accumulates reward along an H-step rollout and queries the value at its endpoint, J^=∑kγkr^t+k+γHV^(z^t+H). A deviation at step k contaminates every later reward query, and the terminal value is queried at the most drifted state. Score quality is thus governed not by one-step error but by whether error stays bounded across the horizon — one-step accuracy with amplifying error still scores unreliably at H steps.
(ii) How stability becomes return. Two capabilities act in parallel: dynamics prediction sets at which state the reward/value heads are queried, reward/value prediction what score it receives — an accurate rollout still scores wrongly with an inaccurate head, and vice versa. What the planner needs is not correct scores but surviving relative ordering (with score error ϵ, regret is at most 2ϵ). Hence the chain: accurate dynamics and accurate reward/value → small score error → ordering intact → near-optimal action each step → replanning accumulates these into higher return.
(iii) Measuring each link. The starting point is in the submission: within each method's native planning range our four-task mean rollout MSE@5/7 is 1.74/2.73 vs. 4.04/4.09. To test propagation to decisions we ran a matched-candidate diagnostic — 600 scenarios (50 reproducible simulator states per task/seed) where both models start from identical state/history and score the identical 64 candidate sequences:
What each group measures. (a) Both quantify score error, from complementary angles: Top-1 selection regret — true return of the model's rank-1 candidate minus that of the set's actual best — gives the decision cost of that error; reward MAE compares each candidate's imagined cumulative reward against what the simulator realizes for the same actions, giving the error in score value. It jointly reflects dynamics and reward/value prediction: the rollout sets the queried states and the heads their scores. Reward MAE directly measures reward-prediction error. With no observation injected, the former is sensitive to compounding rollout error. (b) Hit rate: how often the rank-1 pick is the true rank-1 (or within the true top-5); Spearman: rank correlation over all 64 candidates — together, whether (a)'s errors have inverted the ordering. (c) what those choices accumulate to when each plan's first action is executed.
The results then track mechanism (ii) link by link: smaller score errors on both counts (regret and reward MAE have Pearson correlation 0.474, so they move together rather than independently) → fewer ordering inversions → higher realized return, matching Table 1's returns (254.0/150.6/184.4/58.9 vs. 232.2/105.1/155.7/15.0). The cost is latency (25.39 vs. 8.20 ms). "Stable prediction improves control" is thus no blanket claim but a transmission measurable at each link.
C2. Is the evaluation set too limited?
A2. The original tasks underrepresent sustained coordination, momentum, and contact; we add two (100k steps, 3 seeds, same protocol):
walker_runhopper_hopC3. Are the gains too limited?
A3. Gains are task-dependent, so we claim no uniform margin; three points bear on significance. OOD robustness: one ID checkpoint attains the highest return in 12/12 OOD conditions, so the advantage is not merely ID fitting. Cross-task: over six tasks we rank first on four, second on two. Task structure: the advantage is clearest where control needs sustained coordination and repeated contact, so history conditioning and geometric bias matter most under structured dynamics.
Meanwhile, to further clarify where these capabilities originate, we extend the submitted ablations with A4–A6, isolating the Hamiltonian form, the network residual, and the control port within the transition. The full table is given in our reply to Reviewer cr5R (Q3).