Abstract
Efficient exploration remains a challenging problem in reinforcement learning, especially for tasks where extrinsic rewards from environments are sparse or even totally disregarded. Significant advances based on intrinsic motivation show promising results in simple environments but often get stuck in environments with multimodal and stochastic dynamics. In this work, we propose a variational dynamic model based on the conditional variational inference to model the multimodality and stochasticity. We consider the environmental state-action transition as a conditional generative process by generating the next-state prediction under the condition of the current state, action, and latent variable, which provides a better understanding of the dynamics and leads a better performance in exploration. We derive an upper bound of the negative log-likelihood of the environmental transition and use such an upper bound as the intrinsic reward for exploration, which allows the agent to learn skills by self-supervised exploration without observing extrinsic rewards. We evaluate the proposed method on several image-based simulation tasks and a real robotic manipulating task. Our method outperforms several state-of-the-art environment model-based exploration approaches.
Introduction: The Challenge of Stochasticity
In Reinforcement Learning (RL), agents often struggle when external rewards are sparse. To solve this, researchers use intrinsic motivation, or "curiosity," where the agent is rewarded for visiting states that are hard to predict. However, standard curiosity models (like the Intrinsic Curiosity Module or ICM) typically use deterministic encoder-decoder architectures. These models fail in environments with stochasticity (random noise) or multimodality (where one action can lead to several distinct, valid outcomes).
In such cases, a deterministic model tries to predict the "average" of all possible outcomes, resulting in a "blurred" prediction. This causes the agent to perceive these areas as perpetually "novel" or "surprising," leading to a failure in effective exploration—a phenomenon known as the "noisy TV problem."
The Variational Dynamic Model (VDM)
The proposed Variational Dynamic Model (VDM) treats the environment's state-action transition as a conditional generative process. Instead of predicting the next state $s'$ directly from $(s, a)$, VDM introduces a latent variable $z$ to capture the "mode" or "style" of the transition.
The model consists of three core components:
- Posterior Network: Estimates the distribution of $z$ given the full transition $(s, a, s')$.
- Prior Network: Predicts the distribution of $z$ given only $(s, a)$.
- Generative Network: Predicts the next state $s'$ given $(s, a, z)$.
The agent’s reward is based on an upper bound of the negative log-likelihood of the transition. By sampling multiple latent variables, the authors derive a tighter bound that more accurately reflects how "unfamiliar" a transition is, even in noisy settings. To maintain stability, the model uses a fixed, random CNN to embed image observations into a lower-dimensional feature space.
Overcoming the "Averaging" Trap
A key insight of VDM is that it models noise rather than ignoring it. Deterministic models often fall into an "averaging trap" in multimodal settings, producing blurred images that represent the mean of all possible outcomes.
As shown in the Noisy-MNIST example, VDM generates clear, distinct possible next states, proving it has a better "understanding" of the environment's physics. Through the optimization of the variational lower bound, the model naturally learns to use the latent variable $z$ to encode the information necessary to resolve ambiguity in transitions without manual labeling.
Experimental Results
The authors evaluated VDM across a diverse set of benchmarks, including 18 Atari games, "Sticky Atari" (with artificial stochasticity), Super Mario Bros, and a real-world UR5 robotic arm task.
- Superior Exploration: VDM outperformed state-of-the-art baselines (ICM, RFM, and Disagreement) in most Atari games, particularly in hard-exploration tasks like Montezuma’s Revenge.
- Robustness: In "Sticky Atari," VDM’s performance remained nearly identical to its performance in standard environments, whereas random action repeats crippled standard curiosity models.
- Real-world Success: In the robotic task, VDM achieved a 55% Object-Interaction Frequency (OIF), significantly higher than the Disagreement baseline (43%) and a random policy (2%).
Conclusion
VDM provides a robust framework for self-supervised exploration by explicitly modeling environmental stochasticity. While the introduction of latent variables can sometimes lead to training instability, the model's ability to distinguish between true novelty and predictable randomness marks a significant step forward in solving the "noisy TV problem." Future work may explore combining VDM with extrinsic rewards or applying it to long-term model-based planning.
Summary updated