Predictive Coding Enhances Meta-RL To Achieve Interpretable Bayes-Optimal Belief Representation Under Partial Observability

Po-Chen Kuo, Han Hou, Will Dabney, Edgar Y. Walker

Introduction

In real-world environments, agents rarely possess perfect information. This challenge, formalized as Partially Observable Markov Decision Processes (POMDPs), requires agents to maintain a "memory" of past events to estimate the current state of the world—a process known as Bayesian inference. While standard meta-reinforcement learning (meta-RL) agents, such as the $RL^2$ architecture, can learn to maximize rewards in these settings, their internal representations often remain messy, black-box structures. These uninterpretable memories can lead to brittle performance, especially in tasks requiring complex, active information-seeking.

This paper demonstrates that by integrating predictive coding—forcing an agent to predict future observations and rewards—we can induce the learning of internal representations that are nearly identical to mathematically ideal, interpretable Bayes-optimal belief states. This approach significantly boosts an agent's ability to explore, generalize, and solve challenging POMDP tasks.

Methods

The authors propose a meta-RL framework that incorporates self-supervised predictive coding modules into the agent's architecture. Unlike a standard black-box Recurrent Neural Network (RNN) that maps history directly to actions, this model utilizes a Variational Autoencoder (VAE) structure.

Architectural comparison of standard RL² and the proposed predictive Meta-RL framework.

As shown in Figure 2, the architecture consists of:

  1. The Encoder: An RNN processes the history of observations ($o_t$), actions ($a_{t-1}$), and rewards ($r_t$) into a low-dimensional "bottleneck" ($b_t$), representing the latent belief state.
  2. The Objective: This bottleneck must satisfy two goals: providing input for the policy network ($\pi_\psi$) to maximize rewards and feeding into decoder networks ($R_\theta, T_\theta$) to predict the next reward ($r_{t+1}$) and observation ($o_{t+1}$).
  3. Training: The RNN is trained primarily via the predictive loss (Evidence Lower Bound or ELBO), while the policy is optimized using standard RL gradients. This separation ensures the agent learns "how the world works" independently of "what to do."

Key Results

The researchers evaluated their approach on six diverse POMDP challenges, including Bandit tasks and the classic "Tiger Task." A rigorous "state machine simulation" was used to mathematically compare the agent's internal representations to ground-truth Bayes-optimal beliefs.

Comparison of model performance, representation space visualization, and state machine simulation metrics.

Emergent Interpretability and Equivalence

As illustrated in Figure 5B, the representation space of the predictive meta-RL model naturally organizes itself into structures that mirror the environment's logic, closely matching the Bayes-optimal visualization. In contrast, the $RL^2$ representation remains disorganized. Quantitatively, the predictive model achieved significantly lower dissimilarity scores, indicating its internal state is a much closer approximation of the true Bayesian belief.

Superior Performance and Generalization

The predictive modules proved essential for solving "information-seeking" gaps. In the "Oracle Bandit" task, where agents must pay to receive crucial information, only the predictive model successfully learned the optimal policy. Furthermore, these agents exhibited remarkable zero-shot generalization; for instance, agents trained on one noise level performed near-optimally when dropped into environments with different noise levels, whereas standard agents failed.

Conclusion

By adopting predictive coding as a guiding principle, meta-RL agents can move beyond simple reward maximization toward learning compact, interpretable, and Bayes-optimal representations of their world. While future work is needed to scale these methods to high-dimensional 3D simulators and explore multi-step temporal abstractions, this research provides a powerful framework for building more robust and cognitively capable AI agents.

Summary updated

BibTeX
@inproceedings{kuo2025predictive,
  author = {Po-Chen Kuo and Han Hou and Will Dabney and Edgar Y. Walker},
  title = {{Predictive Coding Enhances Meta-RL To Achieve Interpretable Bayes-Optimal Belief Representation Under Partial Observability}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ykDUVoelgj},
}
Figure