Zero-Shot Reinforcement Learning Under Partial Observability

Scott Jeen, Tom Bewley, Jonathan Cullen · DOI

Abstract

Standard zero-shot reinforcement learning (RL) agents often fail in real-world scenarios where sensors are noisy or views are obstructed. These failures stem from the assumption of full observability, which is rarely met in practice. This paper introduces Forward-Backward with Memory (FB-M), a framework that integrates recurrent memory models into Behavior Foundation Models (BFMs). By processing trajectories of past observations and actions, FB-M enables agents to infer hidden information and generalize to new tasks in partially observable environments without additional training. Our results show that FB-M significantly outperforms memory-free baselines, often approaching the performance of an oracle with full state access.

Introduction

The goal of zero-shot RL is to pre-train agents on reward-free datasets so they can solve new tasks immediately upon receiving a reward signal. While current Behavior Foundation Models (BFMs) excel in Markovian environments, they struggle in Partially Observable Markov Decision Processes (POMDPs). In these settings, agents face two primary hurdles:

  1. State Misidentification: Incomplete observations prevent the agent from understanding its current state or dynamics.
  2. Task Misidentification: Limited reward signals cannot be accurately mapped to the underlying environment state, preventing the agent from identifying the goal.

The FB-M Framework

To address these challenges, the authors propose FB-M, which builds upon the Forward-Backward (FB) representation. The FB approach decomposes RL into a "Forward" model (predicting future states) and a "Backward" model (identifying tasks).

The core innovation of FB-M is the replacement of memory-free inputs with recurrent architectures. Specifically, the model uses separate Gated Recurrent Units (GRUs) for the forward model, the backward model, and the policy. These units compress the history of observations and actions into a hidden state that serves as a proxy for the missing Markov state.

The FB-M architecture integrates recurrent memory modules into the forward and backward components to process trajectories rather than single observations.

While the framework is model-agnostic—theoretically compatible with Transformers or State Space Models—the authors found that GRUs provided superior stability and performance at the scale of these RL tasks. Training often collapsed when using more complex architectures like Transformers for both components simultaneously.

Experimental Evaluation

The researchers evaluated FB-M using the ExORL (Exploratory Offline RL) benchmark across three domains: Walker, Cheetah, and Quadruped. To simulate realistic partial observability, they introduced three modifications:

  • Noisy States: Gaussian noise added to joint positions and velocities.
  • Flickering States: Observations randomly "blacked out" with a 20% probability.
  • Changed Dynamics: Unobserved changes to robot mass and damping to test physical extrapolation.

Results and Analysis

FB-M demonstrated clear superiority over standard FB and other baselines like HILP. In the "Flickering Quadruped" environment, FB-M achieved nearly double the performance of the next best baseline.

Zero-shot performance comparison across different environments and noise conditions. FB-M consistently outperforms baselines and approaches oracle (MDP) performance.

Key findings include:

  • Closing the Oracle Gap: FB-M frequently reached performance levels near the "Oracle" agent, which has perfect access to the internal environment state.
  • Robustness to Dynamics: In tests where the robot's weight was doubled, FB-M was the only method to maintain high performance, suggesting that memory allows the agent to "feel" physical changes not explicitly visible in the observations.
  • Architecture Stability: Despite the popularity of Transformers, GRUs proved to be the most reliable backbone for this specific multi-component zero-shot architecture.

Conclusion and Future Work

This work establishes that integrating temporal memory is an effective remedy for the failures of zero-shot RL under partial observability. By successfully identifying both states and tasks from history, FB-M brings Behavior Foundation Models closer to real-world utility. Future research will explore how these models scale to high-dimensional visual inputs (pixels) and more complex, long-horizon tasks where dataset bias and out-of-distribution dynamics may present new challenges.

Summary updated

BibTeX
@misc{jeen2025zero,
  author = {Scott Jeen and Tom Bewley and Jonathan Cullen},
  title = {{Zero-Shot Reinforcement Learning Under Partial Observability}},
  year = {2025},
  eprint = {2506.15446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.15446},
}
Figure