EMI: Exploration with Mutual Information Maximizing State and Action Embeddings

Hyoungseok Kim, Jaekyeom Kim, Yeonwoo Jeong, Sergey Levine, Hyun Oh Song

Abstract

Reinforcement learning (RL) agents often fail in environments with sparse rewards because random exploration is highly inefficient. We introduce EMI, a novel exploration method that learns compact state and action embeddings by maximizing mutual information, entirely bypassing the need to reconstruct high-dimensional observations. By imposing a linear dynamics model in this latent space, EMI generates intrinsic rewards that guide the agent to explore novel states. Our experiments demonstrate that EMI achieves strong results on complex Atari and continuous control tasks, outperforming several state-of-the-art baselines.

Introduction

In reinforcement learning, an agent learns by receiving reward signals from its environment. However, in "sparse reward" environments (like navigating a maze or playing Montezuma's Revenge), the agent might take thousands of actions before receiving any feedback. Standard RL algorithms rely on random exploration, which is often insufficient in these scenarios.

To address this, researchers use "intrinsic motivation"—providing the agent with artificial rewards for discovering novel or surprising states. The challenge lies in measuring surprise effectively. Existing methods often rely on forward predictive models that attempt to reconstruct exact next-state pixels, which is computationally expensive and sensitive to irrelevant visual noise. EMI aims to create a scalable, decoder-free representation that measures novelty for both continuous and discrete actions without generating full observations.

Methodology

EMI (Exploration with Mutual Information) learns compact representations for states ($\phi$) and actions ($\psi$) using three core principles:

  1. Mutual Information Maximization: Instead of reconstructing pixels, EMI trains embeddings so that the current state and action are highly predictive of the next state's embedding. This is achieved using a stable variational lower bound based on the Jensen-Shannon divergence (JSD).
  2. Linear Dynamics in Latent Space: EMI forces the learned embedding space to follow a simple linear topology: $\phi(s') \approx \phi(s) + \psi(a)$. This constraint requires the neural networks to absorb complex, non-linear visual dynamics into the embedding functions themselves.
  3. Explicit Error Modeling: Real-world dynamics often contain irreducible errors (e.g., structural discontinuities like moving between rooms). EMI introduces a separate error model $S(s, a)$ to capture these unexplainable jumps, ensuring the intrinsic reward remains focused on genuinely novel exploration rather than unpredictable noise.
EMI Architecture: The model processes states and actions through convolutional and fully connected layers to produce embeddings, which are then optimized using a mutual information objective based on Jensen-Shannon Divergence (JSD).

Key Insights

  • Efficiency of Latent Representations: Decoding pixels is computationally wasteful. Maximizing mutual information creates a latent space where functionally similar states cluster together, providing a more robust foundation for calculating novelty.
  • The Role of the Error Model: The error model $S(s, a)$ prevents the agent from becoming "distracted" by transitions it cannot learn. By absorbing structural discontinuities, it keeps the intrinsic reward focused on actual exploration.
  • Action Regularization: While standard VAEs regularize state distributions, the authors found that regularizing action embeddings to follow a normal distribution proved significantly more stable during early exploration.
State-to-Latent Mapping: A visualization showing how specific game states in Montezuma's Revenge (left) correspond to distinct clusters within the learned latent embedding space (right).

Experimental Results

EMI was evaluated against standard baselines including TRPO, EX2, ICM, and RND across various environments:

  • Continuous Control (MuJoCo): EMI drastically outperformed baselines. On SparseHalfCheetah, EMI achieved a mean reward of 218.1, compared to ICM's 1.4 and RND's 3.4. On SwimmerGather, it scored 0.438, doubling the performance of the next best baseline (EX2 at 0.200).
  • Atari Games: EMI showed highly competitive results, significantly outperforming ICM on Frostbite (7002 vs 4465) and Montezuma's Revenge (387 vs 161). It remained competitive with RND across the board.
  • Ablation Studies: Removing the linear dynamics constraint or the error model caused the embedding space to collapse, leading to failure in sparse continuous tasks.

Conclusion and Future Work

EMI demonstrates that effective exploration does not require high-dimensional observation reconstruction. By leveraging mutual information and linear latent dynamics, agents can efficiently navigate sparse-reward environments. Future work may involve using the learned linear dynamic models for optimal planning directly within the embedding space, potentially bridging the gap between representation learning and model-based RL.

Summary updated

BibTeX
@inproceedings{kim2019emi,
  author = {Hyoungseok Kim and Jaekyeom Kim and Yeonwoo Jeong and Sergey Levine and Hyun Oh Song},
  title = {{EMI: Exploration with Mutual Information Maximizing State and Action Embeddings}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=SJ-yghbd-H},
}
Figure