This paper introduces Deep Variational Reinforcement Learning (DVRL), a framework designed to help agents navigate environments where they cannot see the full picture—a challenge known as Partial Observability.
By moving beyond standard "black-box" memory architectures like LSTMs, DVRL forces reinforcement learning agents to learn an internal generative model of their environment. By maintaining a "belief state" through particle-based approximate inference, the agent becomes significantly more robust to noise and missing information than traditional recurrent neural networks.
The Challenge of Partial Observability
In standard Reinforcement Learning (RL), we often assume the agent has a perfect view of the environment state. In reality, sensors are noisy, and objects get blocked by occlusions. These scenarios are modeled as Partially Observable Markov Decision Processes (POMDPs).
To solve POMDPs, agents must aggregate information over time. The status quo has been to use Recurrent Neural Networks (RNNs) to "remember" the past. However, these model-free RNNs are often inefficient; they try to memorize features of the history rather than understanding the underlying dynamics of the world. They lack an explicit "belief"—a probability distribution over what the true state of the world might be.
The DVRL Approach
The authors propose DVRL, which combines RL with Variational Autoencoders (VAEs) and Sequential Monte Carlo (SMC) methods to build a robust belief state.
- Generative Model: The agent learns a latent state representation ($z$) and a transition model that predicts how those states change based on actions.
- Particle Filter Inference: Instead of a single hidden vector, DVRL maintains a set of $K$ "particles." Each particle represents a hypothesis about the current state. This ensemble effectively represents the agent's belief state.
- The "Summary" RNN: To make a decision, the agent needs to look at all these particles. DVRL uses a second RNN to aggregate the particle ensemble into a single vector that the policy (the "actor") and the value function (the "critic") can use.
- Joint Optimization: The model is trained using a combined loss function that maximizes rewards (RL Loss) while ensuring the generative model accurately predicts observations and transitions via the Evidence Lower Bound (ELBO). They developed a specific $n$-step version of the ELBO that allows the model to be trained alongside the policy using standard RL updates (like A2C).
Experimental Benchmarks
The authors evaluated DVRL on two main benchmarks:
- Mountain Hike: A 2D continuous control task where the agent must stay on a ridge but receives very noisy GPS-like coordinates.
- Flickering Atari: A suite of 10 Atari games modified to be partially observable. In this version, there is a 50% chance at every frame that the screen goes completely blank, forcing the agent to rely entirely on its internal model to track the game state.
Key Insights and Results
- Inductive Bias Matters: By forcing the network to learn a generative model via the ELBO loss, the authors provide an inductive bias that helps the agent learn the structure of the world faster and more accurately than a pure black-box RNN.
- Robustness to Noise: In the Mountain Hike task, as the observation noise increased, the performance of standard RNNs plummeted. DVRL’s performance degraded much more gracefully because its internal belief state could filter out the noise.
- Decoupling Memory from Inference: Standard RNNs require long Backpropagation-Through-Time (BPTT) to learn to associate distant events. Because DVRL performs a recursive belief update, it can learn effectively even with shorter BPTT lengths, as the belief carries the necessary history forward in a structured way.
- Atari Performance: DVRL significantly outperformed the RNN baseline on 5 out of 10 flickering Atari games (including Pong, ChopperCommand, and Frostbite) and performed comparably on others.
- Ablation Success: The authors showed that using multiple particles (e.g., $K=30$) is significantly better than using just one. One particle is essentially a standard VAE, but multiple particles allow the agent to represent uncertainty.
Limitations and Future Work
While highly effective, DVRL comes with computational trade-offs. Maintaining a particle ensemble and running two separate RNNs (one for transitions, one for summary) is computationally more expensive than a single LSTM. Furthermore, scaling the generative model to handle highly complex, 3D photorealistic environments remains a challenge.
Looking forward, the authors suggest that because the agent now has an explicit measure of uncertainty (the variance in its particles), this could be used to drive "curiosity-based" exploration—encouraging the agent to seek out areas where its belief state is most uncertain.
Summary updated