TL;DR
Current world models excel at mimicking what they've seen, but fail drastically when encountering novel physical scenarios because they learn statistical pixel correlations rather than fundamental physical laws. DreamSAC solves this by combining a physics-grounded Hamiltonian world model with "Symmetry Exploration"—an unsupervised strategy where an agent is intrinsically motivated to actively perform work and challenge its own understanding of energy conservation, enabling robust out-of-distribution generalization.
What Problem Does This Paper Address?
Deep reinforcement learning agents often rely on "world models" to simulate environments and plan actions. While state-of-the-art models (like DreamerV3) achieve impressive interpolative generalization—recombining familiar visual elements in novel ways—they struggle with extrapolative generalization. If you change the gravity, friction, or object masses, these models break down.
The core issue is that standard world models are passive statistical learners. They overfit to visual correlations and treat pixel dynamics as descriptive patterns rather than systems governed by underlying physical invariances and conservation laws. To build models truly grounded in reality, we need them to discover the environment's fundamental generative rules.
Methods
DreamSAC (Dream with Symmetry-Aware Curiosity) introduces a framework that enforces physical principles directly within the latent space of a Recurrent State-Space Model (RSSM). Its architecture relies on three main pillars:
- Hamiltonian World Model ($H_\phi$): Instead of a black-box neural network predicting the next state, DreamSAC structures each object-centric latent slot into generalized coordinates ($q$) and canonical momenta ($p$). The internal dynamics are governed by a parameterized, $G$-invariant Hamiltonian function (built using a Lie Transformer) to enforce 3D physical symmetries by construction.
- Viewpoint-Robustness Loss ($L_{vr}$): To decouple viewpoint-dependent visual features (camera angles, lighting) from viewpoint-independent physical states, the authors implement a self-supervised contrastive learning objective. By forcing the encoder to map different augmented views of the same scene to identical latent physical states, the model filters out visual nuisances.
- Symmetry Exploration: To learn physical laws efficiently, the agent cannot just watch the environment passively (where energy is conserved and $\Delta H \approx 0$). It must actively probe the system. DreamSAC introduces a physics-based curiosity reward based on the external work done by the agent: $$r_{\text{sym}} \approx |H_\phi(Z_{t+1}) - H_\phi(Z_t)|$$ This motivates the agent to seek out interactions that cause the largest predicted energy changes, exposing errors in its current understanding of physics.
To ensure training stability, the intrinsic reward is initially bootstrapped using Random Network Distillation (RND) and gradually annealed to the symmetry-probing reward as the Hamiltonian model matures. Furthermore, a Dual Integration Strategy is used: standard explicit Euler integration is applied during training for gradient stability, while a Symplectic Leapfrog integrator is used during inference to guarantee long-term energy conservation.
Datasets
The authors evaluated DreamSAC on a diverse suite of 3D physics benchmarks across two main environments:
- DeepMind Control Suite (DMCS): Diagnostic and control tasks including Cheetah, Acrobot, Hopper, Walker, Humanoid, and Reacher.
- GymFetch: Robotic manipulation tasks including FetchPush, FetchReach, and FetchSlide.
To test extrapolative capabilities, they designed specific Structural OOD splits (unseen camera viewpoints, novel object counts, and spatially extended goals) and Parametric OOD splits (unseen gravity scaled by 1.5x, friction scaled by 2.0x, and randomized compound domain shifts).
Key Insights and Ideas
- The Paradox of Learning Symmetries: While physical symmetries imply conservation laws (like conservation of energy), an agent cannot learn these laws through passive observation. It must actively perform work to break the autonomous equilibrium, making energy-boundary probing a highly efficient heuristic for system identification.
- Decoupling via Contrastive Pressure: Standard reconstruction losses incentivize models to encode camera viewpoints to perfectly redraw pixels. Introducing an opposing contrastive loss successfully forces the encoder to discard static visual nuisances while preserving the temporal dynamics essential for physics tracking.
- Rapid System Identification: Because the Hamiltonian architecture acts as a strong regularizer, adapting to a new environment doesn't require retraining from scratch. The model can freeze its visual encoder and rapidly adjust its internal physical parameters (like mass or friction) via fine-tuning with minimal data.
Key Results
- Superior Predictive Accuracy: DreamSAC demonstrated significantly lower image prediction Mean Squared Error (MSE) over long rollout horizons. In the Acrobot (H=16) environment, it achieved an MSE of 0.2064, representing a more than 10x improvement over standard DreamerV3.
- Out-of-Distribution Generalization: On downstream tasks requiring extrapolation to unseen physical properties, DreamSAC outperformed state-of-the-art baselines by 22% to 163%.
- Physical Invariance Verification: Qualitative analysis confirmed that the learned Hamiltonian remains nearly constant during zero-action rollouts, proving the model successfully discovered energy conservation without direct supervision.
Limitations and Future Work
- Conservative System Assumption: DreamSAC assumes the world is a controlled, conservative Hamiltonian system. It faces challenges in highly dissipative environments, such as movement through viscous fluids or soft-body deformations where energy is continuously lost to internal friction. The authors suggest extending this to a Port-Hamiltonian Systems (PHS) framework to model energy dissipation explicitly.
- Computational Overhead: Evaluating the gradients of the Hamiltonian during the forward pass introduces a computational penalty, resulting in an inference cost roughly 1.5x higher than standard GRU-based world models.
- Unstructured Environments: The current slot-attention mechanism assumes the scene can be cleanly decomposed into a fixed number of discrete objects, limiting its application to fluids, cloth, or granular media.
Summary updated