Learning Efficient Representation for Intrinsic Motivation

Ruihan Zhao, Stas Tiomkin, Pieter AbbeelarXiv 2019

Abstract

Mutual Information between agent Actions and environment States (MIAS) quantifies the influence of an agent on its environment. Maximizing MIAS, often termed "empowerment," serves as a powerful intrinsic motivation for reinforcement learning. However, calculating empowerment in arbitrary dynamics is challenging due to the need for high-confidence mutual information estimation, which typically requires an exponential number of samples. This work introduces a novel approach to estimate empowerment from visual observations without sampling. By representing the relationship between action sequences and future states using a specific stochastic dynamic model in latent space, we can efficiently compute empowerment using the "Water-Filling" algorithm. Our results demonstrate that this embedding preserves the information-theoretic properties of the original dynamics.

Introduction

In Reinforcement Learning (RL), designing effective reward functions is a significant challenge. Intrinsic motivation provides a way for agents to explore and learn useful behaviors without explicit external goals. Empowerment, defined as the maximum mutual information between an agent's actions and future states, is a compelling metric for intrinsic motivation as it encourages agents to seek states where they have maximum control.

Despite its theoretical appeal, empowerment is difficult to compute in high-dimensional spaces like raw pixels. Traditional methods rely on sampling to estimate mutual information, which is computationally prohibitive. We propose IMPAC (Intrinsically Motivated Perception and Action Cycle), a framework that learns a latent representation designed for efficient empowerment calculation.

The IMPAC framework: Raw sensor data and actuations are embedded into a latent space where empowerment is computed via the Water-Filling algorithm to generate intrinsic rewards for a controller.

Methods

The core innovation of IMPAC is a specialized deep learning architecture that transforms complex environment dynamics into a mathematically tractable form.

Latent Embedding and Linear-in-Action Dynamics

The system uses convolutional autoencoders to compress raw $64 \times 64$ images into a latent state $z_t$. Action sequences are similarly embedded into a latent action vector $b_t$. To facilitate efficient computation, we impose a "linear-in-action" constraint on the latent dynamics: $z_{t+k} \approx A(z_t)b_t$. Here, $A(z_t)$ is a transition matrix predicted by a neural network based on the current latent state. While the overall dynamics are non-linear, the relationship between the latent action and the future latent state is forced to be linear in this latent space.

The "Water-Filling" Trick

By modeling the latent dynamics as a linear Gaussian channel, we can bypass expensive mutual information estimation. Instead, we utilize the Water-Filling algorithm from information theory. This allows for the analytical and near-instantaneous computation of channel capacity, which corresponds to the agent's empowerment in that state. This intrinsic reward is then fed into a controller to guide the agent's actions.

Experimental Results

We evaluated IMPAC on two simulated environments: the Inverted Pendulum and a custom Double Tunnel environment.

Inverted Pendulum: Landscape Accuracy and Zero-Reward Learning

In the Inverted Pendulum task, the agent received only raw visual frames. The empowerment landscape generated by IMPAC was qualitatively identical to the analytical solution derived from true physics. Remarkably, the agent successfully learned to solve the "swing-up" task using only empowerment as a reward signal, demonstrating that seeking control can lead to complex, goal-oriented behavior.

Empowerment landscape and trajectory for the Inverted Pendulum task. The model accurately captures the states of high empowerment (red) where the agent has maximum control over the system's future.

Double Tunnel: Empowerment as a Proxy for Safety

The Double Tunnel environment tested the agent's preference for safety. When a standard goal reward was augmented with an empowerment reward ($\beta \times Emp(s)$), the agent's behavior shifted. As the weight $\beta$ increased, the agent preferred wider tunnels over narrower ones. Wider tunnels offer greater future state diversity and thus higher empowerment, serving as a natural proxy for safety and risk-aversion.

Conclusion

IMPAC demonstrates that by imposing specific mathematical structures on latent representations, we can leverage classical information theory to solve modern RL challenges. This approach enables the use of empowerment as a real-time intrinsic reward from visual inputs, paving the way for more robust and self-motivated autonomous agents.

Summary updated

BibTeX
@misc{zhao2019learning,
  author = {Ruihan Zhao and Stas Tiomkin and Pieter Abbeel},
  title = {{Learning Efficient Representation for Intrinsic Motivation}},
  year = {2019},
  eprint = {1912.02624},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.02624},
}
Figure