SFP: State-free Priors for Exploration in Off-Policy Reinforcement Learning

Marco Bagatella, Sammy Joe Christen, Otmar Hilliges

Abstract

Efficient exploration is a crucial challenge in deep reinforcement learning. Several methods, such as behavioral priors, are able to leverage offline data in order to efficiently accelerate reinforcement learning on complex tasks. However, if the task at hand deviates excessively from the demonstrated task, the effectiveness of such methods is limited. In our work, we propose to learn features from offline data that are shared by a more diverse range of tasks, such as correlation between actions and directedness. Therefore, we introduce state-free priors, which directly model temporal consistency in demonstrated trajectories, and are capable of driving exploration in complex tasks, even when trained on data collected on simpler tasks. Furthermore, we introduce a novel integration scheme for action priors in off-policy reinforcement learning by dynamically sampling actions from a probabilistic mixture of policy and action prior. We compare our approach against strong baselines and provide empirical evidence that it can accelerate reinforcement learning in long-horizon continuous control tasks under sparse reward settings.

Introduction

Reinforcement learning (RL) agents often struggle with "sparse reward" tasks, where they might wander for thousands of steps before receiving any feedback. To solve this, researchers often use behavioral priors—pre-trained models that tell the agent which actions are "reasonable" based on expert demonstrations.

However, most existing priors are state-dependent: they learn a mapping from a specific observation (e.g., a camera image) to an action. This creates a "distribution shift" problem. If the downstream task looks different from the training data (e.g., different lighting, new objects, or moving from a simple room to a complex maze), the prior becomes useless or even harmful because it doesn't recognize the state. The authors aim to create a prior that captures the essence of useful movement (like directedness and consistency) in a way that transfers across vastly different environments.

Methodology

The SFP framework introduces two primary innovations: State-free Priors (SFP) and a Dynamic Integration Scheme.

State-free Priors (SFP)

Instead of learning a standard state-dependent policy $\pi(a|s)$, SFP learns a non-Markovian distribution $\bar{\pi}(a_t | a_{0:t-1})$. This prior models the temporal correlation between actions rather than state-action mappings. For example, if a robot arm is moving forward, it’s likely to continue moving forward regardless of the specific visual state. This is modeled using Real NVP (Normalizing Flows) to capture complex, multi-modal action distributions.

Comparison of graphical models: (a) standard state-dependent behavioral priors vs. (b, d) proposed state-free priors that model temporal action dependencies.

Dynamic Integration Scheme

The framework integrates the prior into the online policy via a probabilistic mixture: $$\tilde{a}_t \sim (1 - \lambda_t)\pi_{policy} + \lambda_t\bar{\pi}_{prior}$$ The mixing weight $\lambda_t$ is a learned function of the state, allowing the agent to rely on the prior when it's helpful and ignore it once the task is mastered or if the prior suggests suboptimal actions.

Overview of the SFP framework: A state-free prior is learned offline from task-agnostic trajectories and integrated into the online policy via a probabilistic mixture.

Experimental Evaluation

The authors evaluated SFP across three diverse domains: Meta-world (robotic manipulation), Point-maze (2D navigation), and Gym-MuJoCo (locomotion).

Key Results

  • Superior Generalization: In Meta-world, SFP significantly outperformed state-based priors on downstream tasks. While state-based methods were faster on tasks identical to the training data, they failed completely when the task changed.
  • Visual RL Transfer: SFP successfully transferred "movement wisdom" from a non-visual reaching task to a visual window-opening task, where the agent only had access to RGB images.
  • Robustness to Bias: In experiments where observations were intentionally corrupted with a constant bias, state-based priors crashed in performance, while SFP maintained its effectiveness because it ignores the corrupted state signal.
  • State Coverage: Qualitative results showed that SFP produces "directed" trajectories that cover the state space much more effectively than standard Gaussian exploration.

Conclusion

SFP demonstrates that for exploration, knowing that actions should be correlated over time (moving in a direction rather than jittering) is often more important than knowing exactly which action to take in a specific state. Because SFP doesn't look at the state, it is immune to visual distribution shifts. While it cannot learn task-specific logic like "grasp the handle," it provides a robust foundation for exploration in complex, sparse-reward environments.

Summary updated

BibTeX
@article{bagatella2022sfp,
  author = {Marco Bagatella and Sammy Joe Christen and Otmar Hilliges},
  title = {{SFP: State-free Priors for Exploration in Off-Policy Reinforcement Learning}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=qYNfwFCX9a},
}
Figure