Manuscript Offprint
arXiv:2608.22750MOSH-WM: Mask-Grounded Soft-Hamiltonian Dynamics for Object-Centric World Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Object-centric world models forecast future videos by evolving a set of entity slots, but the variables receiving dynamics supervision are often unconstrained visual features. We introduce MOSH-WM, a mask-grounded soft-Hamiltonian world model that makes its position-like state explicitly depend on slot-owned image support. A frozen video-slot encoder produces slots and masks; spatial moments of mask-owned support form a canonical state Q, temporal differences form P, and a learned energy supplies a soft directional bias to a bounded learned increment. Decoder-relevant appearance and identity are stored separately in a causal visual context. A gated composer and bounded residual then combine this context with the propagated phase state to reconstruct decoder-compatible slots. On OBJ3D, given six observed frames and evaluated over the following 30 frames, MOSH-WM reduces LPIPS by 25.0% and spatial MSE by 33.7% relative to the strongest object-centric baseline. On CLEVRER, given six observed frames and evaluated over the following ten frames, the corresponding reductions are 14.5% and 18.7%. Horizon-resolved visual and object-state measurements show that the complete model accumulates error more slowly throughout the 30-frame closed-loop rollout. Project page: https://github.com/moshwm-anon/-moshwm-anon.github.io.
1 Introduction
The physical world evolves through regularities that govern object motion and interaction. A useful visual world model should maintain these regularities when its predictions are repeatedly fed back. Object-centric learning provides a natural representation by decomposing a scene into entity slots (Locatello et al. 2020; Kipf et al. 2022). Existing slot-based predictors evolve these slots autoregressively and decode them into future frames (Wu et al. 2023; Sajjadi et al. 2022), yielding strong visual forecasts on many benchmarks.
Most object-centric world models optimize slots for grouping and reconstruction, then fit video trajectories with a transition over these visual features. The slots can entangle geometry, appearance, identity, and decoder-specific semantics, leaving long closed-loop rollouts weakly constrained. Figure 1 illustrates the resulting gap: a strong slot predictor matches the first future frame, but its object layout and appearance drift over a 30-step rollout. A useful physical state should instead be grounded in where each object is supported while retaining separate visual information for decoding.
(a) Mask-grounded state
Observed x6

Owned mask M6 (own)

(b) Closed-loop prediction
+1
+15
+30
Ground truth

SlotFormer
MOSH-WM


Figure 1: Mask grounding and long-horizon prediction on OBJ3D. Owned masks expose object support. SlotFormer matches the immediate future but drifts over closed-loop rollout; MOSH-WM better preserves object identity and scene layout.
Hamiltonian models organize dynamics through generalized coordinates Q, generalized momenta P, and an energy function (Greydanus et al. 2019; Toth et al. 2020a; Li et al. 2025). Applying this structure directly to arbitrary visual slots remains problematic: the resulting coordinates may not describe object geometry, while a compact physical state may omit information needed by the decoder. The model must therefore extract a geometric phase state and preserve the visual factors needed for decoding. Hamiltonian guidance acts on the former; appearance and identity follow a separate contextual pathway.
MOSH-WM implements this factorization with a frozen SAV1 interface. It assigns each pixel to its owning slot and pools fixed spatial basis functions over that support to construct a position-like Q; raw finite differences yield the momentum-like P. The extractor uses owned masks and image-coordinate bases, excluding appearance-bearing slot vectors. A soft-Hamiltonian module propagates by blending energy-gradient directions with a bounded learned field. The Hamiltonian term serves as a structural prior, without claiming exact system identification. In parallel, causal slot history retains appearance and identity. A gated composer with bounded residual correction then produces slots for the frozen decoder.
Contributions. Our contributions are threefold:
• A mask-grounded phase-state extractor computes Q from per-slot owned masks and fixed spatial bases, with raw temporal differences defining P. Appearance-bearing slot features are excluded from this dynamics input.
• A soft-Hamiltonian closed-loop dynamics module combines energy-gradient directions with a bounded learned field and directly propagates .
• A decoder reconciliation interface uses causal context, gated slot composition, and bounded residual compensation to recover decoder-compatible slots.
Hamiltonian and physics-informed dynamics. Hamiltonian neural networks parameterize an energy function and obtain dynamics from phase-space gradients (Greydanus et al. 2019); Lagrangian, symplectic, continuous-time, and graph-based extensions strengthen geometric or interaction structure (Cranmer et al. 2020; Lutter et al. 2019; Zhong et al. 2020; Chen et al. 2018; Rubanova et al. 2019; Sanchez-Gonzalez et al. 2020; Battaglia et al. 2018). Hamiltonian Generative Networks infer latent phase variables from image sequences (Toth et al. 2020a,b). At the object-centric level, SlotPi uses attention over slots to estimate generalized coordinates and momenta before combining a physical module with spatiotemporal reasoning (Li et al. 2025); HaM-World factorizes planner latents into and applies a soft-Hamiltonian prior to the canonical subspace (Tang et al. 2026). In contrast, MOSH-WM grounds Q in owned image support and obtains P by finite differences, then uses the Hamiltonian field as a soft closed-loop bias while reserving visual context for decoder compatibility.
Latent and pixel-space world models. Latent world models, from World Models and PlaNet to Dreamer and MuZero, learn compact rollouts for planning or behavior learning from pixels (Ha and Schmidhuber 2018; Hafner et al. 2019, 2020, 2021; Schrittwieser et al. 2020). Stochastic video models separate motion uncertainty from visual content (Villegas et al. 2017; Denton and Fergus 2018), while pixel-space predictors such as PredRNN and SimVP directly optimize future-frame quality (Wang et al. 2017; Gao et al. 2022). These are useful visual controls, but they do not expose temporally aligned object states. Physical-reasoning benchmarks and relational predictors such as PHYRE, Physion, CLEVRER, and RPIN emphasize interactions, interventions, or counterfactual structure (Bakhtin et al. 2019; Bear et al. 2021; Yi et al. 2020; Xu et al. 2019). Our goal is complementary: to study whether a mask-grounded, softly Hamiltonian state can make closed-loop object-centric prediction more structurally interpretable while retaining a decoder-compatible visual pathway.
3 Method
Overview
Given observed frames , the frozen SAV1 interface (Kipf et al. 2022) returns visual slots and soft masks . MOSH-WM maintains a canonical phase state and a causal visual context . The phase state is used exclusively by the Soft-Hamiltonian transition, whereas retains appearance and identity information for decoding. Attention-based exchange follows the general token-interaction pattern of Transformers and Perceiver-style modules (Vaswani et al. 2017; Jaegle et al. 2021). Thus, the model does not require one visual slot to act simultaneously as a physical coordinate and a complete decoder input. Figure 2 summarizes the two closed loops: are propagated directly, while predicted slots update the causal context.
Mask-Grounded Phase-State Factorization
Slots are optimized for grouping and reconstruction and may therefore entangle geometry with appearance and semantics (Locatello et al. 2020; Kipf et al. 2022). We retain the support owned by slot n through winner-take-all assignment, . Let b be a fixed spatial basis and let Pool be normalized mask-weighted pooling. The position-like coordinate is
A. Overall MOSH-WM pipeline

B. Mask-grounded Soft-Hamiltonian Dynamics

C. Causal Spatiotemporal Residual

Figure 2: MOSH-WM pipeline. A frozen SAVi interface supplies visual slots and decoded masks. Mask-owned pooling extracts Q, raw temporal differences provide P, and causal slots provide C. The SOFTHAMILTONIAN update propagates ; a gated composer and bounded spatiotemporal residual return to decoder-compatible slot space. Dashed arrows denote direct state propagation and autoregressive context update.
The lightweight map contains a basis projector, a slot embedding, and one attention-MLP block. Its inputs are mask support and fixed spatial bases, which separate the canonical coordinate from direct slot appearance. Its momentum-like companion is the temporal finite difference,
In parallel, a causal spatiotemporal encoder reads slot history and produces . Context never enters the phase-state extractor; it is reserved for the decoder-compatible pathway below.
Soft-Hamiltonian Closed-Loop Dynamics
A fully learned transition can fit local visual correlations without a preferred physical direction, while a strict Hamiltonian model can be too restrictive for imperfect visual observations. We therefore use a soft physical bias. The energy head receives only the canonical pair,
A learned core conditioned on and predicts increments . We blend these increments with the energy-gradient directions:
The learned path captures residual dynamics, whereas the gradient path organizes phase evolution. These are forward-Euler Soft-Hamiltonian updates, not a symplectic solver or a claim that is ground-truth mechanical energy. During rollout, the model directly sets ; the update scale and gradient clipping are specified with the learning objective below.
Physics–Appearance Reconciliation
The phase state intentionally omits decoder-relevant visual information. After the physical update, we use a gated composer to combine the normalized phase displacement with , yielding a physical slot proposal . A causal reasoning module then provides a small decoder-space correction:
The composer applies learned projections to normalized phase displacement and , predicts a sigmoid gate, and blends the two projected features before mapping them to slot space. The frozen decoder produces , and is appended to the history used for . Hence, visual context can improve decoding without being fed back into the mask-grounded phase extractor.
Learning Objective
We freeze the SAV1 encoder and decoder, encode frames, and unroll K future steps according to the training curriculum. The complete objective is
keeps predicted slots compatible with the frozen observer and decoder, while supervises decoded appearance using pixel, multiscale, and edge consistency. aligns the learned phase increment with the Hamiltonian gradient direction, and discourages abrupt local and rollout-level energy drift. directly supervises mask-derived object trajectories. bounds the visual correction to the phase-composed slot. On OBJ3D, . The rollout component inside has weight 0.25; , Hamiltonian gradients are clipped at 5, and the residual gain increases to 0.04. Further definitions and schedules are given in the supplement.
4 Experiments
We organize the experiments around four questions: (1) does the mask-grounded phase interface preserve decoder-compatible appearance; (2) does MOSH-WM improve visual quality and object dynamics on the primary OBJ3D and CLEVRER benchmarks; (3) does the advantage persist under long-horizon feedback and component removal; and (4) does the factorization transfer to a different frozen observer on Physion? The section follows that order so the evidence builds from interface fidelity to benchmark performance, stability, ablation, and transfer.
Experimental Setup
Datasets and protocols. OBJ3D (Lin et al. 2020a) contains controlled multi-object motion in videos. The primary protocol observes six frames and evaluates the next 30 frames, with the MOSH-WM curriculum ending at the same horizon. CLEVRER (Yi et al. 2020), built on the compositional CLEVR scene family (Johnson et al. 2017), contains smaller objects, collisions, occlusions, and multi-object interactions; six observations are followed by ten predictions. Physion (Bear et al. 2021) contains rendered physical interactions across Collide, Contain, Dominoes, Drape, Drop, Link, Roll, and Support scenarios. Following the SlotFormer protocol, each video is truncated to 150 source frames and sampled every three frames. STEVE produces six 192-dimensional slots; MOSH observes 15 sampled frames and predicts the remaining 35 without target feedback.
Implementation and evaluation protocol. Methods share the observation window, test partition, evaluator, and metrics within each protocol, while the MOSH-WM observer and decoder remain frozen. On OBJ3D, the world model uses six 128-dimensional slots, four attention heads, one Q block, one energy block, two context blocks, two reasoning blocks, MLP expansion ratio 2, and composer width 256. We train with batch size 8, Adam at learning rate , 5% warm-up followed by cosine decay, zero weight decay, gradient clipping at 1, and 8,000 steps with a 10/15/20/24/30-frame rollout curriculum; validation Slot@30 selects the checkpoint without using test data. CLEVRER uses seven slots, batch size 20, learning rate , and 2,400 constrained-stage steps with a 6/8/10-frame curriculum. For Physion, STEVE is adapted on 250 videos per scenario and selected by validation token reconstruction; MOSH is selected independently by validation slot MSE@30. All methods receive the same six observed frames and predict 30 future frames without target feedback on OBJ3D. LPIPS is averaged per predicted frame; PSNR and SSIM use images mapped from to . Object-state metrics re-encode predictions and targets with the frozen observer: centroid error measures normalized foreground displacement, velocity error compares first differences, pair-distance error compares foreground-object pairs, and Slot@30 excludes the largest-area background slot. Physion reports horizon-resolved slot MSE on all 512 test videos and decoded metrics on a scenario-balanced 64-video subset. The transfer studies are single validation-selected runs, so we treat them as matched transfer evidence rather than multi-seed comparisons.
Evaluation on Video Prediction
Baselines. The primary object-centric baselines are SLOT-FORMER (Wu et al. 2023) and SAVi-dyn (Kipf et al. 2022). They share the frozen SAVi observer and decoder with MOSH-WM on OBJ3D and CLEVRER. PredRNN (Wang et al. 2017) provides a pixel-space visual baseline, while object-state metrics apply only to methods with aligned slots.
Evaluation metrics. We report LPIPS (Zhang et al. 2018), PSNR, SSIM (Wang et al. 2004), and spatial MSE for decoded videos; CLEVRER additionally uses foreground MSE. OBJ3D dynamics use centroid ADE/FDE, velocity error, pairwise-distance error, and observer-slot MSE. Physion uses horizon-resolved slot MSE on all 512 test videos and STEVE-decoded PSNR, SSIM, and LPIPS on a scenario-balanced 64-video test subset.
Object-centric interface. Before comparing dynamics, we verify the interface from which MOSH-WM constructs . Figure 4 follows the scene-decomposition visualization of SlotPi: each row is one observation time, and each sequence is arranged as the ground-truth frame, a mutually exclusive color mask, and six independently decoded RGB slots on white backgrounds. Slot columns are fixed over time. Foreground objects remain assigned to consistent slots across the observation window, while the background component is separated from the object slots. This owned support is pooled by Equation 1. The RGB slot paired with each mask supplies the appearance and identity features retained in the causal context.
Table 1 quantifies the same interface. Mapping the mask-grounded phase representation back to decoder-compatible slots changes LPIPS by only 0.0002 and PSNR by 0.24 dB relative to direct frozen-SAVi reconstruction. This is the first evidence that the phase-state factorization preserves decoder-compatible appearance before rollout begins.
Observation context
Autoregressive prediction

Figure 3: Long-sequence prediction on OBJ3D. Two observation frames and six future frames are shown at a larger scale than a full-frame strip. All rows use the same six-frame context and independently exported 30-frame closed-loop predictions. Under repeated feedback, MOSH-WM better retains object identity, color, and relative layout.
Time

Figure 4: SlotPi-style scene decomposition by the frozen SAVi observer on OBJ3D. Each row is one observation time. The mask uses a black background and mutually exclusive colors; slots 1–6 are independently decoded RGB components on near-white backgrounds. Fixed columns expose temporal slot consistency and the support used to construct Q.
Visual prediction results.
OBJ3D visual prediction. Table 2(a) shows that the final 6-to-30 model improves perceptual, distortion, and structural metrics over both reported object-centric baselines. Relative to the strongest object-centric baseline, LPIPS and spatial MSE fall by and , PSNR improves by 2.43 dB, and SSIM reaches 0.8916. MOSH-WM also outperforms the
| Reconstruction | LPIPS ↓ | PSNR ↑ | SSIM ↑ | MSE ↓ |
|---|---|---|---|---|
| Frozen SAVi | 0.0286 | 41.05 | 0.9826 | 0.376 |
| Phase composer | 0.0288 | 40.81 | 0.9820 | 0.395 |
Table 1: OBJ3D reconstruction quality before rollout. The phase-to-slot composer remains close to the frozen-interface upper bound.
reported pixel-space PredRNN baseline on all four visual metrics. Together with the reconstruction test above, this closes the chain from interface fidelity to end-to-end forecast quality.
OBJ3D object dynamics. The common-observer measurements in Table 2(c) show corresponding object-level gains. MOSH-WM lowers centroid ADE by , FDE by , velocity error by , pairwise-distance error by , and slot MSE by relative to the strongest baseline in each column. The lower pairwise-distance error reflects better preservation of the scene configuration. Image-space and observer-space metrics thus agree on more accurate state evolution.
CLEVRER. Table 2(b) evaluates transfer to collisions and occlusion. Under the shared local protocol, MOSH-WM improves all five visual metrics over SLOTFORMER and SAVi-dyn. The time-boxed single-run comparison supports transfer within this matched setup.
Qualitative behavior. Figure 3 displays early and late prediction times jointly. The three methods remain close immediately after the observation window. At later steps, the baselines increasingly alter object color, shape, or relative position, while MOSH-WM stays closer to the target. The
(a) OBJ3D visual prediction (6 observed → 30 predicted)
| Method | LPIPS ↓ | PSNR ↑ | SSIM ↑ | MSE ↓ |
|---|---|---|---|---|
| MOSH-WM | 0.0858 | 31.02 | 0.8916 | 4.718 |
| SLOTFORMER | 0.1144 | 28.59 | 0.8503 | 7.119 |
| SAVi-dyn | 0.1197 | 28.35 | 0.8522 | 7.368 |
| PredRNN | 0.1657 | 30.98 | 0.8823 | 5.258 |
(b) CLEVRER visual prediction (6 observed → 10 predicted)
| Method | LPIPS ↓ | PSNR ↑ | SSIM ↑ | MSE ↓ | FG-MSE ↓ |
|---|---|---|---|---|---|
| MOSH-WM | 0.3192 | 26.60 | 0.8375 | 10.068 | 0.00996 |
| SLOTFORMER | 0.3814 | 25.58 | 0.7953 | 12.379 | 0.01223 |
| SAVi-dyn | 0.3736 | 25.51 | 0.7944 | 12.558 | 0.01240 |
(c) OBJ3D dynamics measured through the shared frozen observer
| Method | ADE ↓ | FDE ↓ | Velocity ↓ | Pair distance ↓ | Slot MSE ↓ |
|---|---|---|---|---|---|
| MOSH-WM | .00473 | .00957 | .00127 | .00592 | .00795 |
| SLOTFORMER | .00559 | .01057 | .00160 | .00696 | .01230 |
| SAVi-dyn | .00597 | .01098 | .00136 | .00717 | .01173 |
Table 2: Primary results under shared protocols. Bold denotes the best result in each dataset block. OBJ3D uses 6-to-30 prediction and CLEVRER uses 6-to-10 prediction. Object-state metrics use the shared frozen observer.
| Method | Mean@10 | Mean@30 | Final@30 |
|---|---|---|---|
| MOSH-WM | .0381 | .0858 | .1744 |
| SLOTFORMER | .0540 | .1144 | .2063 |
| SAVi-dyn | .0559 | .1197 | .2065 |
Table 3: OBJ3D mean LPIPS up to increasing horizons and LPIPS at the final predicted frame.
widening gap indicates slower closed-loop drift.
Long-horizon error accumulation. Table 3 evaluates the same checkpoints in continuous rollouts. MOSH-WM leads over the first ten predicted frames, and its absolute gap to SLOTFORMER grows from 0.0159 at Mean@10 to 0.0286 at Mean@30. Final-frame LPIPS is also lower (0.1744 versus 0.2063), confirming that the advantage does not vanish at the rollout endpoint.
Figure 5 shows slower visual-error growth for MOSH-WM. Its centroid and pairwise-geometry curves also remain below the competing object-centric transitions throughout the rollout. The gain spans decoded frames, individual trajectories, and object relations. Direct propagation of a mask-grounded state keeps later predictions anchored to an explicit geometric path.
Distortion over time. The same trend holds in pixel space: MOSH-WM approximately halves mean spatial MSE over the first ten predictions and retains a 33.7% advantage at Mean@30 relative to SLOTFORMER. Table 3 and Figure 5 confirm the gain across metrics and rollout horizons, so the long-horizon claim is supported by both image and object-state measurements.
Ablation Study
OBJ3D components. Table 4 evaluates every variant with the same six observations and 30-step closed-loop rollout. The trained variants retain their respective optimization protocols; the comparison here standardizes inference rather than imposing an identical training budget. The two additional settings are independently fine-tuned for 2,000 steps
(a) Visual degradation

(b) Object trajectories

(c) Pairwise geometry

Figure 5: OBJ3D closed-loop error accumulation. (a) Mean LPIPS over increasing horizons. (b) Per-frame centroid error. (c) Per-frame pairwise-distance error. All curves use the same six observations.
from the long-rollout model rather than applied only at inference time. This makes the ablation about component sensitivity rather than a pure post hoc switch of modules.
The complete model gives the best visual and slot-space results. Removing physics nearly doubles LPIPS and more than
| Variant | LPIPS ↓ | MSE ↓ | Slot@30 ↓ |
|---|---|---|---|
| MOSH-WM (α = 0.5) | 0.0858 | 4.718 | 0.02608 |
| residual only | 0.1665 | 8.468 | 0.08405 |
| physics only | 0.1037 | 5.840 | 0.04212 |
| w/o context | 0.1437 | 8.595 | 0.04799 |
| re-encode state | 0.1122 | 6.259 | 0.06985 |
| α = 0.1 | 0.0964 | 5.154 | 0.02970 |
| α = 0.2 | 0.0961 | 5.140 | 0.02939 |
Table 4: OBJ3D component and mixing-coefficient ablation. All entries use the same six-input, 30-prediction evaluator. Bold identifies each column minimum.

Figure 6: Physion transfer through frozen STEVE. Slot MSE remains lowest for the complete model throughout the 35-step closed-loop rollout.
triples Slot@30, while removing causal context also causes a large visual degradation. Physics-only prediction is substantially stronger than residual-only prediction, but remains behind their learned combination. Re-encoding the propagated state also increases long-horizon slot error. Among the added mixing coefficients, is slightly better than , but neither improves over the default model. The ablation therefore supports both submodules and their coupling.
Additional capacity ablations clarify whether the gain depends on a narrowly tuned transition width. Under the shared short-budget protocol, two attention blocks achieve LPIPS/MSE/Slot@30 of 0.0873/4.789/0.02755, compared with 0.1863/9.945/0.06165 for one block and 0.1251/6.856/0.03984 for three blocks. The same pattern appears in the MLP sweep: the default expansion ratio of two gives 0.0873/4.789/0.02755, whereas ratios one and four degrade to 0.2662/12.266/0.07734 and 0.2193/10.887/0.06511. Thus, the reported improvement is not explained by simply increasing capacity; the two-block configuration provides the best balance between expressivity and rollout stability under the shared budget.
Physion transfer. Figure 6 evaluates a separately trained STEVE interface. Full MOSH is much more stable than residual-only prediction and improves over Hamiltonian-only prediction across the rollout, supporting the combined physics–appearance pathway across observers. Scenario results and manifests are in the supplement, completing the transfer evidence after OBJ3D, CLEVRER, and the long-horizon OBJ3D ablations. The Physion result is primarily a representation-transfer test: STEVE differs from SAVi in slot dimension, resolution, and decoder behavior, so slot MSE is the meaningful cross-observer metric. The complete model remains below both reduced variants throughout the rollout, supporting the intended division of labor between phase dynamics and contextual appearance. The scenario breakdown uses the same locked no-feedback protocol, so differences reflect interaction difficulty rather than changes in training.
The horizon-resolved values further quantify this transfer. Full MOSH records slot MSE of 0.0126, 0.0187, 0.0230, 0.0290, 0.0362, and 0.0422 at horizons 1, 3, 5, 10, 20, and 30, respectively. Hamiltonian-only prediction remains bounded but is consistently higher, reaching 0.0932 at horizon 30, whereas residual-only prediction accumulates rapidly to 1.9220. The gap is already visible at horizon 3 and widens throughout the rollout, indicating that the contextual branch is not merely repairing the first predicted frame; it helps preserve a stable decoder-compatible trajectory over repeated feedback. Scenario-level results show the same pattern across different interactions. At horizon 30, the lowest slot error occurs on Support (0.0278) and Drop (0.0321), while Drape (0.0683) and Collide (0.0546) are more difficult. These differences are expected from the changing contact and occlusion patterns, but the common evaluator and frozen observer make the breakdown useful as a robustness check. Together with the aggregate curve, the scenario results support transfer of the phase/context factorization rather than performance on a single favorable physical setting.
5 Discussion and Limitations
On OBJ3D, the complete model leads in image and observer space, its margin grows under feedback, and each component removal increases error. The experimental story is therefore coherent: the interface is faithful, the benchmark gains are broad, the long-horizon drift is smaller, and the transfer result holds on a different frozen observer.
Limitations. Results are single validation-selected runs. The state inherits observer errors, and its energy is a soft bias rather than an identified conserved Hamiltonian. PredRNN lacks aligned slots, while CLEVRER and Physion are fixed-compute transfers with protocol-specific metrics. We study passive rollout rather than control or planning.
6 Conclusion
Summary. MOSH-WM separates mask-grounded phase state from decoder-oriented context. Slot support defines , temporal differences define , soft Hamiltonian guidance structures rollout, and a causal composer restores decoder-relevant appearance.
Evidence. On 6-to-30 OBJ3D, LPIPS falls by and spatial MSE by versus the strongest object-centric baseline; object-state metrics, horizon curves, and ablations agree. CLEVRER transfers favorably, while Physion confirms the combined pathway under a distinct STEVE interface.
Future work. We will improve phase extraction under occlusion and add interaction, depth, and action variables.
References
Bakhtin, A.; et al. 2019. PHYRE: A New Benchmark for Physical Reasoning. In NeurIPS.
Battaglia, P. W.; et al. 2016. Interaction Networks for Learning about Objects, Relations and Physics. In NeurIPS.
Battaglia, P. W.; et al. 2018. Relational Inductive Biases, Deep Learning, and Graph Networks. arXiv preprint arXiv:1806.01261.
Bear, D. M.; et al. 2021. Physion: Evaluating Physical Prediction from Vision in Humans and Machines. In NeurIPS.
Burgess, C. P.; et al. 2019. MONet: Unsupervised Scene Decomposition and Representation. In ICML.
Chang, M. B.; et al. 2017. A Compositional Object-Based Approach to Learning Physical Dynamics. In ICLR.
Chen, R. T. Q.; et al. 2018. Neural Ordinary Differential Equations. In NeurIPS.
Cranmer, M.; et al. 2020. Lagrangian Neural Networks. In ICLR.
Denton, E.; and Fergus, R. 2018. Stochastic Video Generation with a Learned Prior. In ICML.
Engelcke, M.; et al. 2020. GENESIS: Generative Scene Inference and Sampling with Object-Centric Latent Representations. In ICLR.
Engelcke, M.; et al. 2021. GENESIS-V2: Inferring Unordered Object-Centric Scene Representations without Iterative Refinement. In NeurIPS.
Eslami, S. M. A.; et al. 2016. Attend, Infer, Repeat: Fast Scene Understanding with Generative Models. In NeurIPS.
Eslami, S. M. A.; et al. 2018. Neural Scene Representation and Rendering. Science, 360(6394): 1204–1210.
Gao, Z.; et al. 2022. SimVP: Simpler Yet Better Video Prediction. In CVPR, 3170–3180.
Greff, K.; et al. 2019. Multi-Object Representation Learning with Iterative Variational Inference. In ICLR.
Greydanus, S.; et al. 2019. Hamiltonian Neural Networks. In NeurIPS.
Ha, D.; and Schmidhuber, J. 2018. World Models. In NeurIPS Workshop.
Hafner, D.; et al. 2019. Learning Latent Dynamics for Planning from Pixels. In ICML.
Hafner, D.; et al. 2020. Dream to Control: Learning Behaviors by Latent Imagination. In ICLR.
Hafner, D.; et al. 2021. Mastering Atari with Discrete World Models. In ICLR.
Jaegle, A.; et al. 2021. Perceiver: General Perception with Iterative Attention. In ICML.
Jiang, J.; et al. 2020. SCALOR: Generative World Models with Scalable Object-Oriented Representations. In ICLR.
Johnson, J.; et al. 2017. CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning. In CVPR.
Kipf, T.; et al. 2020. Contrastive Learning of Structured World Models. In ICLR.
Kipf, T.; et al. 2022. Conditional Object-Centric Learning from Video. In ICLR.
Kipf, T. N.; et al. 2018. Neural Relational Inference for Interacting Systems. In ICML.
Li, J.; et al. 2025. SlotPi: Physics-informed Object-centric Reasoning Models. In ACM Multimedia.
Lin, Z.; et al. 2020a. Improving Generative Imagination in Object-Centric World Models. In ICML, 6140–6149.
Lin, Z.; et al. 2020b. SPACE: Unsupervised Object-Oriented Scene Representation via Spatial Attention and Decomposition. In ICLR.
Lippe, P.; et al. 2023. Efficient Object-Centric Learning with Slot Mixing. In NeurIPS.
Locatello, F.; et al. 2020. Object-Centric Learning with Slot Attention. In NeurIPS.
Lutter, M.; et al. 2019. Deep Lagrangian Networks: Using Physics as Model Prior for Deep Learning. In ICLR.
Rubanova, Y.; et al. 2019. Latent Ordinary Differential Equations for Irregularly-Sampled Time Series. In NeurIPS.
Sajjadi, M.; et al. 2022. Object-Centric Video Prediction. In NeurIPS.
Sanchez-Gonzalez, A.; et al. 2020. Learning to Simulate Complex Physics with Graph Networks. In ICML.
Schrittwieser, J.; et al. 2020. Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model. Nature, 588: 604–609.
Seitzer, M.; et al. 2023. Bridging the Gap to Real-World Object-Centric Learning. In ICLR.
Singh, G.; et al. 2022. STEVE: Slot Transformer for Object-Centric Learning. In NeurIPS.
Tang, H.; et al. 2026. HaM-World: Soft-Hamiltonian World Models with Selective Memory for Planning. arXiv preprint arXiv:2605.05951.
Toth, P.; et al. 2020a. Hamiltonian Generative Networks. In ICLR.
Toth, P.; et al. 2020b. Hamiltonian Generative Networks with Non-separable Hamiltonians. In NeurIPS.
Vaswani, A.; et al. 2017. Attention Is All You Need. In NeurIPS.
Veerapaneni, R.; et al. 2020. Entity Abstraction in Visual Model-Based Reinforcement Learning. In CoRL.
Villegas, R.; et al. 2017. Decomposing Motion and Content for Natural Video Sequence Prediction. In ICLR.
Wang, Y.; et al. 2017. PredRNN: A Recurrent Neural Network for Spatiotemporal Predictive Learning. In NeurIPS.
Wang, Z.; et al. 2004. Image Quality Assessment: From Error Visibility to Structural Similarity. IEEE TIP.
Watters, N.; et al. 2017. Visual Interaction Networks: Learning a Physics Simulator from Video in the Wild. In NeurIPS.
Wu, Z.; et al. 2023. SlotFormer: Unsupervised Visual Dynamics Simulation with Object-Centric Models. In ICLR.
Xu, Z.; et al. 2019. Unsupervised Discovery of Parts, Structure, and Dynamics. In ICLR.
Yi, K.; et al. 2020. CLEVRER: Collision Events for Video Representation and Reasoning. In ICLR.
Zhang, R.; et al. 2018. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. In CVPR.
Zhong, Y.; et al. 2020. Symplectic ODE-Net: Learning Hamiltonian Dynamics with Control. In ICLR.
A Additional Method Details
Additional Overview
Given observed frames , the frozen SAV1 interface returns visual slots and soft masks . MOSH-WM maintains a canonical phase state and a causal visual context . The phase state is used exclusively by the Soft-Hamiltonian transition, whereas retains appearance and identity information for decoding.
Mask-Grounded Phase-State Factorization
Slots are optimized for grouping and reconstruction and may therefore entangle geometry with appearance and semantics (Locatello et al. 2020; Kipf et al. 2022). We retain the support owned by slot n through winner-take-all assignment, . Let b be a fixed spatial basis and let Pool be normalized mask-weighted pooling. The position-like coordinate is
The lightweight map contains a basis projector, a slot embedding, and one attention-MLP block. Its inputs are mask support and fixed spatial bases, which separate the canonical coordinate from direct slot appearance. Its momentum-like companion is the temporal finite difference,
In parallel, a causal spatiotemporal encoder reads slot history and produces . Context never enters the phase-state extractor; it is reserved for the decoder-compatible pathway below.
Soft-Hamiltonian Closed-Loop Dynamics
A fully learned transition can fit local visual correlations without a preferred physical direction, while a strict Hamiltonian model can be too restrictive for imperfect visual observations. We therefore use a soft physical bias. The energy head receives only the canonical pair,
A learned core conditioned on and predicts increments . We blend these increments with the energy-gradient directions:
The learned path captures residual dynamics, whereas the gradient path organizes phase evolution. These are forward-Euler Soft-Hamiltonian updates, not a symplectic solver or a claim that is ground-truth mechanical energy. During rollout, the model directly sets .
Physics–Appearance Reconciliation
The phase state intentionally omits decoder-relevant visual information. After the physical update, we use a gated composer to combine the normalized phase displacement with , yielding a physical slot proposal . A causal reasoning module then provides a small decoder-space correction:
The composer applies learned projections to normalized phase displacement and , predicts a sigmoid gate, and blends the two projected features before mapping them to slot space. The frozen decoder produces , and is appended to the history used for .
Learning Objective
We freeze the SAV1 encoder and decoder, encode frames, and unroll K future steps according to the training curriculum. The complete objective is
The image term combines pixel fidelity, pooled multiscale fidelity, and gradient matching. The Hamiltonian term aligns the learned increments with the energy gradient, the energy term encourages rollout consistency, the centroid term stabilizes geometry, and the residual term constrains the decoder-side correction. During the early phase of training, the physical coefficients are linearly warmed up so appearance reconstruction stabilizes first.
B Training Diagnostic
The main OBJ3D run uses the shared configuration reported in the experimental setup. The validation curve below documents checkpoint selection without repeating the protocol details.

Figure 7: Validation Slot@30 during the main OBJ3D training run. The curve is used for checkpoint selection.
We vary one architectural or functional component at a time under a shared short-budget protocol. Shape-compatible tensors inherit the validation-selected full-model initialization; changed shapes are reinitialized. These experiments measure directional sensitivity rather than multi-seed confidence intervals.
>| Attention blocks | LPIPS | MSE | Slot@30 |
|---|---|---|---|
| 1 | 0.1863 | 9.945 | 0.06165 |
| 2 (default) | 0.0873 | 4.789 | 0.02755 |
| 3 | 0.1251 | 6.856 | 0.03984 |
| MLP ratio | LPIPS | MSE | Slot@30 |
|---|---|---|---|
| 1 | 0.2662 | 12.266 | 0.07734 |
| 2 (default) | 0.0873 | 4.789 | 0.02755 |
| 4 | 0.2193 | 10.887 | 0.06511 |
Table 5: Capacity sensitivity under the shared short-budget protocol.
The complete model is preferred in both capacity sweeps. The two-block configuration balances expressivity and rollout stability, while the default MLP ratio avoids the degradation observed at narrower and wider settings.
C Additional OBJ3D Results
Independent Long-Horizon Rollout
The following sequence is independent of the main-paper qualitative strip. All methods receive the same six observations and generate the next 30 frames autoregressively. The visualization emphasizes identity retention, relative layout, and the growth of errors under repeated feedback.

Figure 8: Additional OBJ3D 6-to-30 rollout on test video 125. Columns show future horizons and rows compare ground truth with three predictors under the same closed-loop protocol.
Error and Transfer Summaries
The compact plots below are additional summaries rather than replacements for the main-paper curves. The OBJ3D plot reports relative degradation when functional pathways are removed. The Physion plot evaluates the same phase/context factorization through a different frozen observer.

Figure 9: Compact OBJ3D ablation summary. The plot shows relative error increases when the physical, context, or residual pathway is removed.

Figure 10: Physion slot error over the prediction horizon. The complete model remains lowest throughout the rollout.
D Inference Procedure
For completeness, one prediction step can be written as a fixed sequence of interface-preserving operations. First, the frozen observer encodes the current frame and returns slots and masks. Second, owned-mask pooling produces the canonical coordinate for each slot, and the temporal difference produces the momentum-like variable. Third, the learned core and the energy head jointly produce the phase update. Fourth, the composer combines the updated phase state with the causal context and applies the bounded decoder-space correction. Finally, the frozen decoder reconstructs the next frame and the predicted slots are appended to the context history.
The same chain is used during teacher-forced training and closed-loop evaluation, except that training may use the target interface slots in the loss computation. During evaluation, the predicted frame and predicted slots are fed back without target feedback. This distinction keeps the evaluator identical across methods while exposing accumulated rollout error.
Temporal Weighting and Rollout Stability
Let denote an observer-space error at future step . The rollout objective aggregates errors across the prediction window using nondecreasing temporal weights :
This weighting does not change the evaluator or the reported metrics. It only makes late rollout errors visible during optimization. The energy and centroid terms provide complementary constraints: the former discourages abrupt phase inconsistency, while the latter directly penalizes errors in the spatial support summarized by the masks.
A useful diagnostic is the ratio between the decoder correction and the composed physical proposal,
where is a numerical stabilizer. The residual regularizer acts on this ratio rather than allowing the correction to replace the phase-driven proposal. This is why the residual branch can restore decoder-relevant details while the phase branch remains responsible for the propagated state.
Reproducibility Notes
All methods use the same observation window, frozen observer, decoder, image normalization, and closed-loop evaluator for each benchmark. Model selection is performed on validation data using the specified horizon-resolved slot metric. Test frames are used only for the final reported evaluation and qualitative exports. The files in physion_results/ provide the transfer tables and manifests used to produce the Physion results shown above.
The appendix figures are intentionally separated into three roles. The training curve documents optimization and checkpoint selection; the additional OBJ3D strip tests visual stability on a sequence not used in the main qualitative figure; and the Physion visualization demonstrates transfer through a different frozen slot interface. This separation avoids counting the same visualization as independent evidence while making the evaluation protocol explicit.
E Symbols and Tensor Shapes
For clarity, the main tensors used by the implementation are summarized below. The number of slots is denoted by , the slot dimension by , the phase dimension by , and the number of observed frames by . The observer returns and ; the phase extractor returns ; and the causal context retains a history of decoder-compatible slot tokens. The same slot ordering is used for mask ownership, phase extraction, composition, and observer-space evaluation.
| Symbol | Shape | Meaning |
|---|---|---|
| video frame | ||
| observer slot tokens | ||
| soft slot masks | ||
| mask-grounded coordinate | ||
| temporal phase difference | ||
| context-dependent | causal visual memory | |
| decoder-compatible prediction |
Table 6: Notation and tensor roles used in the implementation.
Implementation-Level Update
The update is implemented slot-wise after the shared interaction blocks. Let denote the concatenated state available to the learned core. The core produces a bounded proposal , while the energy head produces the directional term . The actual phase increment is therefore
The clipping operator is applied component-wise after the energy gradient is computed. It limits an occasional high-magnitude gradient without changing the direction of ordinary updates. The learned proposal remains available even when the energy signal is weak, which is the reason the method is described as soft-Hamiltonian rather than strictly Hamiltonian.
The decoder-side composer is evaluated after the phase update. Its gate is computed from both phase and context, so the model can use phase information to determine where motion is expected while using context to preserve details that are not encoded in the canonical state. This separation also explains why the same phase state can be evaluated through different frozen observers: the observer-specific decoder interface is handled after the shared transition logic.
Closed-Loop Pseudocode
The following compact procedure describes the evaluation-time rollout without introducing an additional training assumption.
Closed-loop rollout. Encode the observed frames with the frozen observer. Initialize from the owned masks, from the last temporal difference, and from the observed slot history. For : compute and its gradients; blend the learned and gradient directions; update and ; compose the next decoder-compatible slots; decode the predicted frame; and append the predicted slots to the causal context. Return all predicted frames and observer-space states.
This procedure keeps the feedback path explicit. The target future frames are used only to compute evaluation losses; they are never used to update , , or during closed-loop testing. Consequently, the horizon curves measure accumulated error rather than one-step reconstruction quality.
F Physion Transfer
We follow the SlotFormer Physion protocol. Videos are truncated to 150 source frames and sampled every three frames; STEVE produces six 192-dimensional slots at resolution. MOSH observes 15 sampled frames, trains with a 10-step closed-loop rollout, and is evaluated for the remaining 35 sampled steps without target feedback.
| Method | @1 | @3 | @5 | @10 | @20 | @30 |
|---|---|---|---|---|---|---|
| Residual-only | .0296 | .1215 | .2500 | .6331 | 1.3689 | 1.9220 |
| Hamiltonian-only | .0541 | .0620 | .0674 | .0758 | .0858 | .0932 |
| MOSH (full) | .0126 | .0187 | .0230 | .0290 | .0362 | .0422 |
Table 7: Physion test slot MSE over the closed-loop rollout.
Physion Support | PhysionTestMP4s/Physion/Support/mp4s-redyellow/pilot_towers_nb4_5j025_mono1_dis0_occ0_tdwroom-redyellow_0011_img.mp4




Figure 11: Physion qualitative transfer. Ground truth, MOSH prediction, and absolute reconstruction error are shown at horizons 1, 10, 20, and 30. Pixel quality is limited by the frozen STEVE decoder; the experiment is primarily a slot-dynamics transfer test.
| Scenario | MOSH @30 |
|---|---|
| Collide | 0.0546 |
| Contain | 0.0341 |
| Dominoes | 0.0403 |
| Drape | 0.0683 |
| Drop | 0.0321 |
| Link | 0.0362 |
| Roll | 0.0437 |
| Support | 0.0278 |
Table 8: Scenario-level Physion slot MSE at horizon 30.
| Item | Setting |
|---|---|
| Observer | frozen SAVi / STEVE |
| OBJ3D horizon | 6 observed, 30 predicted |
| Optimizer | Adam, |
| Seed | 42 |
| Selection | validation Slot@30 |
| Feedback | disabled |
Table 9: Reproducibility checklist.
The local observer and world-model manifests, result tables, and scenario breakdowns are included in physion_results/. All reported runs use seed 42 and the same evaluator; no target feedback is used during test rollout.
Interpretation of the Transfer Result
The Physion experiment is designed to test whether the phase/context factorization survives a change in the upstream observer. The STEVE interface differs from the SAVi interface in slot dimension, image resolution, and decoder behavior, so the absolute pixel appearance is not directly comparable to OBJ3D. The reported slot metric is therefore the primary transfer measurement. The full model remains below the two reduced variants throughout the listed horizons, which is consistent with the intended division of labor: the phase branch carries the evolving spatial state, while the contextual branch preserves information required by the downstream decoder.
The scenario table should be read as a breakdown of the same locked test protocol rather than as a new training set. Each scenario uses the same observation length, rollout rule, and no-feedback evaluation. Differences between scenarios reflect the difficulty of the physical interaction, while the aggregate curve summarizes the common trend across the transfer suite. We avoid interpreting the absolute reconstruction error as a standalone image-quality claim because the frozen STEVE decoder is not optimized for pixel-perfect reconstruction in this setting.