Learning Belief Representations for Partially Observable Deep RL

Andrew Wang, Andrew C Li, Toryn Q. Klassen, Rodrigo Toro Icarte, Sheila A. McIlraithICML 2023

Introduction

Many of the most pressing real-world AI challenges are Partially Observable Markov Decision Processes (POMDPs). Unlike a game of chess where the entire board is visible, agents like warehouse robots or self-driving cars only perceive what their immediate sensors allow. To act intelligently, these agents must maintain a "memory" of the past to infer the current, hidden state of the world.

In deep reinforcement learning (RL), the standard approach is to use Recurrent Neural Networks (such as LSTMs) to process the entire history of observations. However, training these networks end-to-end is notoriously difficult. The reward signal is often too sparse or delayed to effectively teach the network which parts of its history are actually worth remembering. While traditional robotics uses "belief states"—probability distributions over possible worlds—these rarely scale to high-dimensional inputs like camera images.

This paper tackles the "exploration-exploitation dilemma" of information seeking: how do you train an agent to pay a cost to learn something today that only pays off much later? The authors introduce Believer, an algorithm that bridges the gap between traditional control theory and modern deep RL by using privileged state information during training to build compact "mental models" (beliefs).

The Believer Framework

Believer is a three-phase framework that leverages "asymmetric RL"—the concept that we often have access to full state information (like a simulator's internal variables) during training, even if the agent won't have it during deployment.

1. Representation Learning

Instead of encoding the whole state, Believer learns a compact encoding $\phi(s_t)$ that captures only the features that are both task-relevant and unobservable. It uses a variational information bottleneck to ensure the encoding doesn't waste capacity on details the agent can already see through its sensors.

2. Belief Modelling

The system trains a Variational Autoencoder (VAE) to predict the distribution of these latent state encodings given the history of actions and observations. At deployment, the agent’s "belief" is represented as a collection of samples drawn from this VAE.

3. Policy Learning

Finally, a standard RL policy (Proximal Policy Optimization, or PPO) is trained. Crucially, it doesn't just look at the current observation; it conditions its actions on the learned belief from Phase 2.

Policy Architecture

Because the belief is already a "sufficient statistic" of the past, the policy itself doesn't need to be recurrent, making it significantly easier and more stable to train.

Experimental Domains

The authors evaluated Believer on several challenging custom environments built on the MiniGrid framework, as well as a continuous control task:

  • Sphinx: An information-seeking task where an agent must pay a reward penalty to "talk to a sphinx" to learn which box contains a prize.
  • Cookie: A long-term memory task requiring the agent to remember button presses and corridor locations.
  • Lying Sphinx: A variant where the information source is noisy, requiring the agent to aggregate multiple "opinions" to form a probabilistic belief.
  • NoisyTV Sphinx: Tests robustness against irrelevant visual distractors.
  • Escape Room: A high-dimensional continuous-state/action environment where the agent must find statues that point toward a hidden portal.

Key Insights and Results

A core insight of this work is that state prediction provides a denser learning signal than reward prediction. In the Sphinx task, knowing where the prize is is immediately verifiable via state info, even if the reward for grabbing it is many steps away. Furthermore, by decoupling the "learning to remember" (unsupervised belief modeling) from "learning to act" (RL), the authors avoid the instability of training complex recurrent policies from scratch.

Believer significantly outperformed baselines like Recurrent PPO and Asymmetric Actor-Critic across all domains:

  • Information Seeking: In the high-cost Sphinx task, Believer was the only method able to learn that paying for information was worth the cost. Other methods fell into a local optimum, choosing to guess randomly rather than risk the penalty of seeking information.
  • Robustness: In the NoisyTV environment, Believer's performance remained stable while other model-based approaches crumbled due to the complexity of modeling irrelevant random noise.
  • Probabilistic Inference: In the "Lying Sphinx" task, the VAE naturally clustered beliefs.
Belief Updating

As illustrated above, when the agent is uncertain (has not collected information), its belief samples are spread across multiple possible states. Once it gathers information, the samples converge into a distinct, task-accurate cluster.

Limitations and Future Work

The primary limitation of Believer is its reliance on privileged state information during training. While common in simulation-to-real (Sim2Real) pipelines, it limits the algorithm's use in scenarios where a high-fidelity simulator isn't available.

Additionally, the current implementation relies on an offline dataset of random interactions to pre-train the representations. Future work could involve "active" representation learning, where the agent chooses actions specifically to improve its own belief model. Finally, there is a computational overhead in sampling from a VAE at every timestep during deployment, which might pose a bottleneck for high-frequency, real-time control systems.

Summary updated

BibTeX
@inproceedings{wang2023learning,
  author = {Andrew Wang and Andrew C Li and Toryn Q. Klassen and Rodrigo Toro Icarte and Sheila A. McIlraith},
  title = {{Learning Belief Representations for Partially Observable Deep RL}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=4IzEmHLono},
}
Figure