DyMoDreamer: World Modeling with Dynamic Modulation

Boxuan Zhang, Runqing Wang, Wei Xiao, Weipu Zhang, Jian Sun, Gao Huang, Jie Chen, Gang Wang

Introduction

Deep Reinforcement Learning (DRL) has historically struggled with sample efficiency, often requiring millions of interactions to master even basic tasks. Model-based reinforcement learning (MBRL) addresses this by training a "world model"—a neural simulator that allows agents to learn from imagined trajectories. However, standard world models, such as the Dreamer series, often treat visual observations holistically, assigning equal importance to static backgrounds and small, fast-moving, reward-critical objects. This lack of prioritization leads to computational inefficiency and "hallucinations" in imagination, where critical objects like a ball in Pong may flicker or disappear.

DyMoDreamer introduces a novel approach to world modeling by explicitly incorporating a sense of motion. Inspired by how human infants prioritize moving objects to learn environmental physics, DyMoDreamer utilizes a "dynamic modulation" mechanism to distinguish moving entities from static backgrounds, significantly improving sample efficiency and performance.

Methodology: Dynamic Modulation

The core innovation of DyMoDreamer is the integration of motion cues into a Recurrent State-Space Model (RSSM). This is achieved through three primary components:

Inter-frame Differencing

The model calculates the difference between consecutive frames ($o_t - o_{t-1}$). To ensure the agent captures both the moving object and its immediate context, a dilation operation is applied to these pixel-level differences. This creates "differential observations" that highlight areas of change.

The Dynamic Modulator ($d_t$)

These differential observations are processed by a dedicated encoder to produce a stochastic categorical distribution known as the "dynamic modulator" ($d_t$). This variable specifically encodes motion-related information.

RSSM Integration and Regularization

Unlike standard RSSMs that rely solely on a latent state ($z_t$) and a hidden state ($h_t$), DyMoDreamer’s recurrent state explicitly incorporates the previous dynamic modulator ($d_{t-1}$). This architectural change forces the model's internal memory to prioritize dynamic elements. Furthermore, the authors introduced a Differential Divergence Regularization ($L_{reg}$) term, which penalizes the model if the predicted changes in its imagination do not align with observed changes in real-world frames.

DyMoDreamer Architecture: The dynamic modulation block processes inter-frame differences to inform the recurrent state.

Experimental Evaluation

DyMoDreamer was evaluated across several challenging benchmarks to prove its versatility:

  • Atari 100k: A standard benchmark of 26 games where agents are limited to 100,000 interaction steps (roughly 2 hours of gameplay).
  • DeepMind Visual Control Suite (DMC): 20 pixel-based continuous control tasks.
  • Crafter: A procedurally generated survival environment requiring long-term planning.
  • DeepMind Proprio: A state-based version of DMC used to validate the differencing logic on non-visual data like coordinates.

Key Results and Insights

DyMoDreamer established new state-of-the-art (SOTA) performance across multiple benchmarks. On Atari 100k, it achieved a mean human-normalized score of 156.6%, surpassing previous leaders like DIAMOND and the baseline DreamerV3.

Performance comparison on Atari 100k: DyMoDreamer outperforms existing Transformer-based and RNN-based world models in both mean and median scores.

Emergent Specialization

A key finding was the natural specialization of the latent pathways. The standard latent variable ($z_t$) tended to focus on static background elements, while the dynamic modulator ($d_t$) specialized in agent-controllable and moving elements. This separation of concerns allows the model to maintain higher fidelity for reward-critical objects.

Pixel-Space Advantage

The research demonstrated that calculating differences in raw pixel space is more effective than doing so in compressed latent space. Small, single-pixel objects often lost during latent compression remain distinct in pixel-level differencing, preventing the "disappearing object" problem common in other world models.

Reduced Imagination Hallucinations

Qualitative analysis in games like Boxing showed that DyMoDreamer maintains the integrity of moving characters much better than DreamerV3. While DreamerV3's imagination often suffered from characters flickering or dissolving, DyMoDreamer's focus on motion kept these entities stable.

Conclusion and Future Work

DyMoDreamer demonstrates that explicitly modeling motion is a powerful tool for improving the sample efficiency and robustness of world models. By prioritizing dynamic elements, the agent learns more effectively from fewer interactions.

Despite these gains, challenges remain. Compounding errors in long-horizon imagination can still lead to divergence over hundreds of steps. Future research may explore integrating dynamic modulation into transformer-based architectures to improve long-term reasoning or implementing "soft predictive constraints" to better anticipate future states during training.

Summary updated

BibTeX
@inproceedings{zhang2025dymodreamer,
  author = {Boxuan Zhang and Runqing Wang and Wei Xiao and Weipu Zhang and Jian Sun and Gao Huang and Jie Chen and Gang Wang},
  title = {{DyMoDreamer: World Modeling with Dynamic Modulation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=SYKwGnik3w},
}
Figure