Estimating Disentangled Belief about Hidden State and Hidden Task for Meta-Reinforcement Learning
Most meta-reinforcement learning (meta-RL) algorithms operate under the assumption that while the agent may not know its specific task, it has perfect knowledge of its current state. However, real-world applications often involve noisy sensors and partially obscured environments, creating a "double-blind" challenge. This paper introduces the Hierarchical State-Space Model (HSSM) to address these Meta-POMDPs by disentangling global task information from local state information.
The Problem: From Meta-MDP to Meta-POMDP
In standard Meta-RL, agents are typically trained in a Meta-MDP setting. Here, the agent knows its exact state (e.g., coordinates) but is uncertain about the goal or task parameters ($z$).
In contrast, a Meta-POMDP (Partially Observable Markov Decision Process) introduces uncertainty at both levels. The agent must infer both what it is supposed to do and where it currently is based on a sequence of partial observations ($o$). Prior methods often conflated these two types of uncertainty into a single latent variable, leading to inefficient learning and poor adaptation.
The HSSM Approach
The authors propose the HSSM-agent (HSSMA), which utilizes a specific inductive bias: tasks are "global" (constant throughout an episode), while states are "local" (dynamic at every timestep).
- Hierarchical Latent Variables: The model represents the environment using two distinct latent variables: a global variable $\tilde{z}$ for the hidden task and a local variable $\tilde{s}_t$ for the hidden state at time $t$.
- Amortized Inference: An RNN-based encoder approximates the posterior beliefs of these variables from the history of actions and observations.
- $\beta$-VAE Objective: To prevent "posterior collapse"—where the model ignores the high-level task variable—the authors employ a modified training objective inspired by $\beta$-VAEs. Using a coefficient $\beta < 1$ for the KL-divergence term encourages the model to capture meaningful task-specific information in $\tilde{z}$.
Experimental Results
The HSSMA was evaluated against state-of-the-art baselines like VariBAD and $RL^2$ across several environments:
- GridWorld Navigation: HSSM achieved over 90% accuracy in task identification, demonstrating successful disentanglement of task and state information.
- MuJoCo Locomotion: In benchmarks like HalfCheetahVel and Walker2DRandParam, modified to be partially observable (e.g., hiding velocity), HSSMA significantly outperformed VariBAD. While VariBAD's performance dropped sharply when states became hidden, HSSMA maintained high performance and reached peak rewards faster.
Key Insights
The research highlights that explicit disentanglement serves as a powerful shortcut for the agent's policy. By separating "what is the task?" from "where am I?", the policy can focus on decision-making rather than untangling latent representations. Furthermore, the simple inductive bias of global vs. local variables proved sufficient to organize the agent's internal model effectively.
Future Directions
While HSSMA shows promise, the authors note that moving from on-policy (PPO) to off-policy algorithms could further improve sample efficiency. Additionally, exploring more expressive inference techniques like normalizing flows or incorporating semi-supervised task labels could further bridge the gap between approximate and true belief states.
Summary updated