Sample-efficient reinforcement learning for environments with rare high-reward states

Daniel G Mastropietro, Urtzi Ayesta, Matthieu JonckheereEWRL 2024

Abstract

We introduce Fleming-Viot Actor-Critic (FVAC), an algorithm designed for efficient policy optimization in reinforcement learning (RL) environments characterized by rare, high-reward states. FVAC integrates the Actor-Critic framework with a Fleming-Viot particle system—a stochastic population model—to artificially boost the visit frequency of rare states. This is achieved by enforcing exploration outside an "Absorption Set" of states identified as highly visited during an initial exploration phase. Operating under the average reward criterion and requiring only a black-box simulator, FVAC demonstrates superior sample efficiency compared to standard temporal difference methods. We validate our approach using Windy Grid World benchmarks, where FVAC consistently finds optimal policies in scenarios where traditional methods fail.

Introduction

In many reinforcement learning applications, the primary challenge is not just learning from rewards, but finding them in the first place. When rewards are "sparse" (infrequent) and "rare" (difficult to reach due to environment dynamics), standard exploration strategies like $\epsilon$-greedy often fail. Agents can become trapped in "boring" regions of the state space, never encountering the terminal states that provide meaningful feedback. This "needle in a haystack" problem typically requires extensive domain knowledge or complex reward shaping to solve.

FVAC addresses this by leveraging a population-based mechanism to force exploration into under-visited areas. By identifying and avoiding frequently visited states, the algorithm ensures a balanced exploration of the state space without requiring manual definition of state importance.

The Fleming-Viot Actor-Critic (FVAC) Framework

The core innovation of FVAC is the use of a Fleming-Viot (FV) particle system to estimate the "Critic" within an Actor-Critic architecture. The process follows several key steps:

1. The Fleming-Viot Mechanism

The algorithm maintains a population of $N$ particles (agents) exploring the environment. When a particle enters a pre-defined Absorption Set $A$—representing frequently visited or "uninteresting" states—it is "killed." It is then immediately "reborn" at the current location of another active particle outside of $A$. This redistribution mechanism effectively teleports the population away from over-explored regions and into rarer ones.

2. Automatic Absorption Set Definition

Unlike previous methods that required manual identification of the absorption set, FVAC automates this process. It performs an initial exploration of the environment to flag states that exceed a specific visit frequency threshold (e.g., 5%). These states are then designated as the set $A$ for the remainder of the training.

3. Discrete-to-Continuous Adaptation

The Fleming-Viot process is mathematically rooted in continuous-time systems. To apply it to discrete-time Markov Decision Processes (MDPs), the authors utilize uniformization, a technique that allows the discrete transitions to be treated within the continuous-time FV framework.

4. Actor-Critic Integration

The FV system provides a robust estimate of the stationary distribution of the environment, which is used to calculate the Critic (the value function). This estimate informs the Actor (the policy), which is updated via a standard policy gradient using a three-layer neural network. The algorithm is specifically designed for the average reward criterion, making it ideal for continuing tasks or episodic tasks cast as continuing ones.

Experimental Evaluation

FVAC was evaluated against Temporal Difference Actor-Critic (TDAC) using custom Windy Grid World benchmarks. These environments are designed to be difficult to navigate due to "wind" dynamics that push the agent away from the goal:

  • 4x5 Maze: A small grid with a high wind intensity (0.8), making the single terminal reward cell extremely difficult to reach.
  • 6x8 Maze: A larger grid with 50% random obstacles and moderate wind (0.5).

In both cases, a reward of +1 is only granted at the "Finish" cell, with all other transitions yielding zero reward. To ensure a fair comparison, both FVAC and TDAC were given the same total budget of simulation steps.

Results and Discussion

The results across 10 independent replications highlight three primary advantages of FVAC:

  • Reliability: In the 4x5 maze, FVAC consistently converged to a near-optimal policy. Conversely, the median TDAC agent failed to learn, remaining stuck in the initial regions of the maze throughout the training budget.
  • Speed: In the 6x8 maze, FVAC exhibited a significantly steeper learning curve. While TDAC eventually began to learn, it only achieved approximately half the performance level of FVAC within the same timeframe.
  • Stability: FVAC showed remarkably low variance across runs. While TDAC's performance was highly sensitive to random seeds—often failing entirely depending on the initial exploration—FVAC's forced exploration mechanism ensured consistent success.

Conclusion

FVAC represents a significant step forward in model-free RL for sparse-reward environments. By treating the Critic as a population model rather than a simple value estimator, the algorithm enforces exploration in a way that curiosity-driven rewards only encourage.

Currently, the method requires a black-box simulator and is tied to the average reward criterion. Future research will focus on extending FVAC to discounted reward settings, refining hyperparameter selection (such as the number of particles $N$), and scaling the approach to high-dimensional tasks like complex games or continuous control problems.

Summary updated

BibTeX
@inproceedings{mastropietro2024sample,
  author = {Daniel G Mastropietro and Urtzi Ayesta and Matthieu Jonckheere},
  title = {{Sample-efficient reinforcement learning for environments with rare high-reward states}},
  booktitle = {EWRL},
  year = {2024},
  url = {https://openreview.net/forum?id=mMYvXU2SXG},
}
Figure