TL;DR
Zero-shot reinforcement learning models (Behavior Foundation Models) fail when environments are partially observable due to distinct "task" and "state" misidentification errors. This paper introduces memory-augmented architectures (FB-M) that compress history trajectories to restore zero-shot generalization capabilities across noisy, flickering, and dynamically changing environments.
What Problem Does This Paper Address?
Zero-shot reinforcement learning (RL) aims to pre-train agents on reward-free datasets so they can immediately solve any downstream task at test time simply by reading a few reward-labeled examples. While state-of-the-art Behavior Foundation Models (BFMs) excel at this under the assumption of full state observability, real-world deployments are rarely so clean. Sensor noise, occlusions, egocentric viewpoints, and unmodeled changes in environment dynamics introduce partial observability (POMDPs).
The authors expose two primary failure modes that occur when standard BFMs are subjected to partial observability:
- Task Misidentification: When partial observations are fed into the backward model, the agent fails to correctly infer the target task embedding from reward-labeled data.
- State Misidentification: When partial observations are fed into the forward model and policy, the agent cannot accurately predict long-run dynamics or select optimal actions.
Methods
To remedy these failures, the authors introduce memory models into the BFM framework, focusing on the Forward-Backward (FB) representation. The resulting architecture is called FB-M (Forward-Backward with Memory).
Instead of conditioning the forward model ($F$), backward model ($B$), and policy ($\pi$) on single, raw observations, the authors introduce separate recurrent memory models (specifically Gated Recurrent Units, or GRUs) for each component. These memory models ingest a history window of past observation-action pairs ($\tau^L_t$) and compress them into a hidden state proxy for the true underlying Markov state.
During test-time evaluation, task embeddings are inferred by passing reward-labeled history trajectories through the memory-augmented backward model.
Datasets
The authors evaluated their approach by modifying ExORL, a standard zero-shot RL benchmark built on the continuous control domains of the DeepMind Control Suite:
- Walker (Low dimensionality, locomotion)
- Cheetah (Low dimensionality, locomotion)
- Quadruped (High dimensionality, locomotion in a 3D maze)
They introduced two distinct evaluation settings:
- Partially Observed States: Noisy states (adding isotropic zero-mean Gaussian noise) and Flickering states (randomly dropping/zeroing out states with a 20% probability).
- Partially Observed Changes in Dynamics: Modulating the mass and damping coefficients in the MuJoCo backend to test interpolation (within the training distribution range) and extrapolation (double the standard coefficients) without explicitly informing the agent of the changes.
All models were pre-trained on reward-free datasets collected via a highly exploratory Random Network Distillation (RND) behavior policy.
Key Insights and Ideas
- The Dual-Failure Trap: Partial observability is uniquely damaging to zero-shot RL because it breaks both the task-inference phase (backward model) and the execution phase (forward model/policy) simultaneously.
- Simplicity Wins (GRU > Transformers/S4): While Transformers and Structured State Space models (S4) typically dominate sequence modeling, GRUs proved to be the most performant and stable memory backbone for this architecture.
- The Degeneracy of Non-GRU Pairs: The authors discovered a striking failure mode: training completely collapses when both the forward and backward networks utilize Transformer or S4 memory models simultaneously, suggesting that their combined dot-product representation becomes degenerate.
- Frame Stacking is Insufficient: Simply stacking the last few observations (a common heuristic in deep RL) fails to capture long-term context adequately and often performs worse than standard memory-free baselines in highly dynamic environments like Cheetah.
Key Results
- State Observability Anomalies: On noisy and flickering variants of ExORL, memory-free baselines (FB and HILP) achieved less than 50% of the oracle's performance in most cases. FB-M significantly outperformed these baselines. The benefit was most pronounced in the complex Quadruped environment, where FB-M achieved near-oracle performance.
- Dynamics Generalization: In the dynamics interpolation setting, memory-free FB performed surprisingly well, but FB-M matched or exceeded all algorithms across all settings. Remarkably, in the extrapolation setting (doubled mass and damping), FB-M slightly outperformed the oracle policy on Cheetah and Quadruped.
Limitations and Future Work
- Memory Model Instability: The training collapse observed when pairing non-GRU memory models (Transformers/S4) across both forward and backward networks highlights a fragile interaction in the representation space that requires deeper theoretical investigation.
- Dataset Homogeneity: This study relied on highly exploratory RND datasets. In real-world applications, datasets are often narrower and more homogeneous. Poor state-action coverage could trigger out-of-distribution (OOD) pathologies, meaning future iterations will likely need to integrate offline RL regularization techniques.
Summary updated