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 feeds each predicted state back as input, so the latent distribution contracts until distinct states merge. We argue that this drift and contraction reflect two missing structures in planner-facing latents: a history-conditioned predictive state summarizing past observations and actions, and geometric organization that separates configuration, momentum, and task semantics. We propose HaM-World, a structured world model that decomposes the latent state into a canonical-like (q,p) subspace and a context subspace c, while using Mamba selective state-space memory as the history-conditioned input to the same latent dynamics. The (q,p) subspace evolves through an energy-derived Hamiltonian vector field plus learnable residual/control dynamics, while c captures semantic, dissipative, and non-conservative factors. The planner uses this single latent state for prediction, reward/value estimation, imagined rollouts, and CEM search. On six DeepMind Control Suite tasks, HaM-World ranks first on four and second on the other two, with the highest six-task Avg. AUC (91.9, +10.3% over TD-MPC2). Within the horizons the planner unrolls, it reduces imagined-rollout error to 45% of TD-MPC2's and wins 11/12 k in {3,5,7} 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). Ablations show that both selective memory and the Soft-Hamiltonian prior contribute to the gains. Mechanism diagnostics support the intended design, showing bounded action-free energy drift, structured energy variation under policy rollouts, and coherent control-induced energy transfer.
翻译:暂无翻译