Model-Based Reinforcement Learning with Isolated Imaginations

Minting Pan, Xiangming Zhu, Yunbo Wang, Xiaokang Yang

TL;DR

This paper introduces Iso-Dream++, a novel model-based reinforcement learning (MBRL) approach that tackles the challenge of learning world models in environments with mixed controllable and uncontrollable dynamics. By decoupling these dynamics and incorporating sparse dependencies, Iso-Dream++ enables more robust and forward-looking decision-making, significantly outperforming existing methods in complex tasks like autonomous driving and robotic control.

What Problem Does This Paper Address?

In many real-world scenarios, especially autonomous driving, the environment's dynamics are not solely dictated by the agent's actions. There are often "noncontrollable" elements—like the behavior of other vehicles—that evolve independently or only sparsely depend on the agent's actions. Traditional world models, which aim to predict the consequences of actions, struggle in such settings. They might fail to disentangle these mixed dynamics, leading to poor predictions and suboptimal decision-making, particularly for long-horizon tasks where anticipating these external factors is crucial for safety and performance. The paper aims to address this by developing a world model that can effectively isolate and reason about these distinct types of dynamics.

Methods

Iso-Dream++ builds upon the Dreamer framework but introduces several key innovations:

  • Decoupled World Model: The core idea is to split the world model into separate branches for "controllable" (action-dependent) and "noncontrollable" (action-independent) state transitions. This is achieved through a multi-branch architecture and by optimizing an "inverse dynamics" objective. This objective encourages the controllable branch to learn dynamics that are directly influenced by actions, while the noncontrollable branch focuses on the remaining environmental changes.
  • Min-Max Variance Constraints: To prevent "training collapse" (where one branch dominates and learns everything, leaving the other branch useless), the authors introduce min-max variance constraints. This technique encourages diversity in the action-conditioned branch's predictions while penalizing diversity in the action-free branch, effectively forcing a clearer separation of dynamics.
  • Sparse Dependency Modeling: Recognizing that noncontrollable dynamics can sometimes be influenced by controllable ones (e.g., other cars braking when an agent cuts them off), Iso-Dream++ models this "sparse dependency." A "dependency gate" module is introduced to detect these moments and allow the noncontrollable state transition to incorporate information from the controllable state.
  • Future-State Attention for Policy Learning: For behavior learning, the agent uses a "future state attention" mechanism. This allows the policy to selectively weigh and integrate predicted noncontrollable states over a future horizon, enabling more informed and proactive decisions. The agent learns to anticipate potential risks or opportunities arising from these external dynamics.

Datasets

The paper evaluates Iso-Dream++ on two primary environments:

  • CARLA: A realistic simulator for autonomous driving research. The authors use a highway driving task in "Town04," with experiments conducted in both day and night modes to test robustness.
  • DeepMind Control Suite (DMC): A suite of continuous control tasks. The authors use modified versions with noisy video backgrounds ("video_easy" and "video_hard") to specifically test the model's ability to handle visual distractions and disentangle dynamics.

Key Insights and Ideas

  • The Power of Decoupling: The fundamental insight is that explicitly separating controllable and noncontrollable dynamics is crucial for robust performance in complex, real-world environments. This modularity allows the agent to focus its learning efforts more effectively.
  • Preventing "Training Collapse": The min-max variance constraints are a clever way to enforce disentanglement. By actively penalizing over-reliance on one branch, they ensure that both controllable and noncontrollable dynamics are learned meaningfully.
  • Sparse Dependencies Matter: The explicit modeling of sparse dependencies between controllable and noncontrollable states is a significant step towards realism. It allows the agent to react to subtle but important external influences, which is critical for safety-sensitive applications like driving.
  • Forward-Looking Behavior: The attention mechanism for integrating future noncontrollable states allows the agent to be truly "forward-looking," anticipating potential issues and making decisions that mitigate risks or exploit opportunities before they fully materialize.
  • Transfer Learning Benefits: The modular nature of Iso-Dream++ makes it highly amenable to transfer learning. The ability to selectively transfer specific branches (e.g., the noncontrollable dynamics branch) between related tasks (like day vs. night driving) significantly boosts performance.

Key Results

  • CARLA: Iso-Dream++ significantly outperforms existing MBRL methods, achieving an average return of around 60 after 500k environment steps, compared to ~10 for DreamerV2 and ~25 for Denoised-MDP. Qualitative results show the agent making more flexible and safer driving decisions, especially when dealing with other vehicles.
  • DeepMind Control Suite: The model achieves state-of-the-art performance across various tasks, particularly excelling in scenarios with noisy backgrounds. Ablation studies confirm the effectiveness of each proposed component (inverse dynamics, variance constraints, sparse dependency, attention, static branch).
  • Transfer Learning: In CARLA, transferring the pretrained action-free branch for night driving yields substantial improvements. In DMC, transferring the action-conditioned branch to a harder task (video_hard) also leads to significantly better finetuning results compared to training from scratch or transferring the entire world model.

Limitations and Future Work

  • Computational Cost: While Iso-Dream++ is more efficient than methods relying on extensive Monte-Carlo planning, MBRL in general can still be computationally intensive.
  • Hyperparameter Sensitivity: The paper notes that while the attention horizon ($\tau$) has a sweet spot, performance doesn't degrade drastically for a range of values. However, fine-tuning these parameters might still be necessary for optimal performance across diverse tasks.
  • Future Work: The authors suggest that their decoupled world model and behavior learning techniques can be seamlessly integrated with existing Dreamer variants (V2-V3), potentially leading to further improvements. The modularity also opens doors for more sophisticated transfer learning strategies. The ability to selectively incorporate or ignore noncontrollable dynamics based on domain knowledge is also highlighted as a key advantage for future applications.

Summary updated

BibTeX
@article{pan2023model,
  author = {Minting Pan and Xiangming Zhu and Yunbo Wang and Xiaokang Yang},
  title = {{Model-Based Reinforcement Learning with Isolated Imaginations}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=KdXOX6QH9l},
}
Figure