Neural Predictive Belief Representations

Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Bernardo A. Pires, Toby Pohlen, Rémi MunosarXiv 2018

Abstract

Unsupervised representation learning has succeeded with excellent results in many applications. It is an especially powerful tool to learn a good representation of environments with partial or noisy observations. In partially observable domains it is important for the representation to encode a belief state, a sufficient statistic of the observations seen so far. In this paper, we investigate whether it is possible to learn such a belief representation using modern neural architectures. Specifically, we focus on one-step frame prediction and two variants of contrastive predictive coding (CPC) as the objective functions to learn the representations. To evaluate these learned representations, we test how well they can predict various pieces of information about the underlying state of the environment, e.g., position of the agent in a 3D maze. We show that all three methods are able to learn belief representations of the environment, they encode not only the state information, but also its uncertainty, a crucial aspect of belief states. We also find that for CPC multi-step predictions and action-conditioning are critical for accurate belief representations in visually complex environments. The ability of neural representations to capture the belief information has the potential to spur new advances for learning and planning in partially observable domains, where leveraging uncertainty is essential for optimal decision making.

Introduction: The Challenge of Partial Observability

In real-world environments and complex simulations, agents rarely possess complete information about their surroundings. They operate within Partially Observable Markov Decision Processes (POMDPs), where a single observation—such as a camera frame—is insufficient to determine the full state of the world. To navigate effectively, an agent must maintain a belief state: a mathematical summary of past observations and actions that serves as a sufficient statistic for predicting the future.

While deep learning has excelled at representation learning, these internal models are often treated as "black boxes," evaluated only by the downstream performance of a reinforcement learning (RL) agent. This research adopts a "glass-box" approach, directly investigating whether neural representations can learn to encode ground-truth state variables (like spatial coordinates) and, more importantly, the inherent uncertainty of those states.

Methodology

The study compares three unsupervised objectives for training a recurrent neural network (the "belief" module):

  1. One-step Frame Prediction (FP): The model is tasked with reconstructing the literal pixel values of the next observation.
  2. Contrastive Predictive Coding (CPC): Instead of pixel reconstruction, the model learns to distinguish a true future observation from a set of random "noise" samples in a latent space.
  3. CPC|Action: A variant where the model is conditioned on the sequence of future actions the agent will take. This approach is inspired by Predictive State Representations (PSRs), which define state based on the outcomes of future "tests" or action sequences.
Architectural comparison between CPC(|Action) and Frame Prediction models.

To evaluate these representations, the authors use "probes"—small multi-layer perceptrons (MLPs)—to extract information such as position, orientation, and object locations from the frozen features. Success in these probing tasks indicates that the representation has successfully captured the relevant environmental information.

Experimental Environments

The researchers utilized the DeepMind Lab platform, a 3D environment based on the Quake III Arena engine, across several layouts:

  • Fixed/Room: Testing basic spatial memory and adaptation to changing object locations.
  • Maze: A complex navigation task requiring long-term spatial tracking.
  • Terrain: A visually rich environment with natural features, representing the highest level of visual complexity.

Additionally, custom "diagnostic" environments were used to isolate specific behaviors. For instance, a "teleport" task tested if models prioritize high-impact objects, while a "two hallways" symmetrical environment tested the model's ability to maintain multi-modal beliefs.

Key Insights: Encoding Uncertainty and Impact

A central finding of this work is that neural representations do not merely guess a single state; they encode uncertainty. In symmetrical environments where the agent's location is ambiguous, the representations reflect a split or distributed belief. As the agent moves and encounters unique landmarks, this "neural uncertainty" collapses into a certain, unimodal state.

Visualization of neural belief states capturing spatial uncertainty.

Further insights include:

  • Multi-step Prediction is Essential: For CPC, predicting only one step ahead resulted in poor representations. Extending the prediction horizon to 30 steps forced the model to ignore transient pixel noise and focus on stable, global structures like floor plans.
  • The "Impact" Rule: Representations are selective. They are significantly better at encoding objects that fundamentally alter future observations (like a teleportation trigger) compared to static background elements.
  • Action-Conditioning in Complex Dynamics: In the visually dense terrain environment, knowing future actions (CPC|Action) was critical. This suggests that in complex worlds, the relevance of an observation is deeply tied to the agent's intended trajectory.

Results and Performance

The quantitative results highlight the superiority of multi-step, action-conditioned models. In the maze environment, the CPC|Action 30 model achieved a position prediction error of 0.182, vastly outperforming the 1-step CPC baseline (0.638). Furthermore, CPC methods proved more computationally efficient than Frame Prediction while capturing higher-level semantic information.

In memory-intensive tasks like the teleport environment, the models successfully "remembered" the location of critical objects even after they were no longer in the agent's field of view, demonstrating that the Gated Recurrent Unit (GRU) was functioning as a robust belief-tracking memory.

Conclusion and Future Directions

This research demonstrates that modern neural architectures can indeed learn sophisticated belief representations that capture both state and uncertainty. However, challenges remain, particularly in resolving symmetries using subtle visual cues. Future work could expand these models beyond vision to include proprioception or tactile sensors. The ultimate goal is to integrate these verified belief states into planning and RL algorithms to enable more robust decision-making in the most challenging, partially observable domains.

Summary updated

Abstract

Unsupervised representation learning has succeeded with excellent results in many applications. It is an especially powerful tool to learn a good representation of environments with partial or noisy observations. In partially observable domains it is important for the representation to encode a belief state, a sufficient statistic of the observations seen so far. In this paper, we investigate whether it is possible to learn such a belief representation using modern neural architectures. Specifically, we focus on one-step frame prediction and two variants of contrastive predictive coding (CPC) as the objective functions to learn the representations. To evaluate these learned representations, we test how well they can predict various pieces of information about the underlying state of the environment, e.g., position of the agent in a 3D maze. We show that all three methods are able to learn belief representations of the environment, they encode not only the state information, but also its uncertainty, a crucial aspect of belief states. We also find that for CPC multi-step predictions and action-conditioning are critical for accurate belief representations in visually complex environments. The ability of neural representations to capture the belief information has the potential to spur new advances for learning and planning in partially observable domains, where leveraging uncertainty is essential for optimal decision making.
BibTeX
@misc{guo2018neural,
  author = {Zhaohan Daniel Guo and Mohammad Gheshlaghi Azar and Bilal Piot and Bernardo A. Pires and Toby Pohlen and Rémi Munos},
  title = {{Neural Predictive Belief Representations}},
  year = {2018},
  eprint = {1811.06407},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.06407},
}
Figure