Locally Persistent Exploration in Continuous Control Tasks with Sparse Rewards

Susan Amin, Maziar Gomrokchi, Hossein Aboutalebi, Harsh Satija, Doina Precup

Reinforcement learning (RL) agents learn by trial and error, but when rewards are "sparse"—meaning the agent only gets a signal after a long, specific sequence of correct actions—exploration becomes a nightmare. In continuous state and action spaces, such as a robot learning to walk, the problem is even harder because the agent cannot simply keep a count of every discrete "square" it has visited.

Most standard exploration methods rely on adding random noise (like $\epsilon$-greedy or Gaussian noise) to the agent's actions. However, this often leads to "jittery" behavior where the agent wanders aimlessly in a small area. To explore effectively, an agent needs a form of short-term memory to ensure it keeps moving in a consistent direction long enough to see something new, while eventually "forgetting" enough to return to promising areas later.

To solve this, researchers have introduced PolyRL, a novel exploration strategy that uses principles from polymer physics to navigate continuous spaces with sparse rewards. By treating an agent's trajectory like a "stiff" polymer chain, the method induces locally self-avoiding random walks that efficiently expand into unvisited regions without getting stuck in local loops.

The PolyRL Approach

PolyRL is inspired by the theory of Freely-Rotating Chains (FRCs) in polymer physics. In physics, a polymer is a chain of segments. In an FRC, each segment's orientation is correlated with the one before it, creating a "stiffness" or persistence. PolyRL applies this concept directly to RL trajectories.

Comparison of standard jittery random walk exploration (a, b) versus PolyRL's persistent, polymer-inspired trajectories (c, d).

The algorithm relies on three core mechanisms:

  1. Persistence: Instead of picking independent random actions, the agent's exploratory actions are temporally correlated. This creates Locally Self-Avoiding Random Walks (LSA-RWs), forcing the agent to be "persistent" in its direction.
  2. Radius of Gyration ($U_g^2$): To measure how well it is exploring, the agent calculates the "radius of gyration squared" of its trajectory. This is a physics metric that describes the spatial spread of a collection of points. Unlike many modern exploration methods that try to estimate the "density" of visited states (which is mathematically difficult in high dimensions), the radius of gyration provides a global measure of expansion without needing to build a complex model of the environment.
  3. Confidence Bounds: The core of the algorithm involves calculating high-probability upper and lower bounds for the change in this radius of gyration. If the trajectory's spread stays within these bounds, the agent continues its persistent, "stiff" exploration. If the trajectory becomes too erratic or stops expanding (breaking the bounds), the agent "breaks the chain" and reverts to its learned policy or starts a new exploratory sequence.

By maintaining specific bounds on the radius of gyration, the authors mathematically guarantee that the trajectory behaves as a locally self-avoiding walk, successfully bridging the gap between statistical physics and RL theory.

Experimental Setup & Key Results

The researchers evaluated PolyRL on two main types of environments: a custom 2D Navigation Task and Sparse MuJoCo Tasks.

In the 2D Navigation Task, an agent must navigate from a small chamber into a large one to find a goal. They also tested a version with "puddles" (negative rewards) to see if the agent could handle obstacles. PolyRL achieved full environment coverage in just 11 episodes, whereas standard $\epsilon$-greedy agents failed to even leave the starting room.

PolyRL achieving extensive coverage in a 2D navigation task, successfully escaping a small starting chamber.

For the Sparse MuJoCo Tasks, the team modified standard high-dimensional continuous control benchmarks (SparseHopper-V2, SparseHalfCheetah-V2, and SparseAnt-V2) to have sparse rewards.

A major finding was that PolyRL is much less sensitive to the "sparsity threshold" (how hard it is to get a reward) than other state-of-the-art methods. When integrated with Soft Actor-Critic (SAC), PolyRL significantly outperformed standard SAC and Optimistic Actor-Critic (OAC). In "Very Sparse" settings where rewards are extremely rare, PolyRL's performance remained relatively stable, while competing methods like DDPG-OU or DDPG-FiGAR dropped sharply. For example, in the 111-dimensional SparseAnt-V2 environment, SAC-PolyRL reached high reward levels while the baseline SAC often stayed at zero.

Limitations and Future Work

While PolyRL offers a robust new approach to exploration, it does have limitations:

  • Smoothness Assumption: The theoretical proofs rely on the environment being "smooth" (Lipschitz continuous). While the authors showed PolyRL works empirically even when this is violated (e.g., hitting walls), the theory doesn't fully cover these edge cases yet.
  • Hyperparameter Tuning: The method introduces new parameters like the average correlation angle ($\theta$) and the exploration factor ($\beta$). While the paper provides guidance, these may require tuning for different types of robots or tasks.
  • Adaptive Stiffness: Currently, the persistence length is fixed. Future versions of PolyRL could dynamically adjust the "stiffness" of the trajectory based on the environment's complexity, allowing for even more intelligent and adaptive exploration.

Summary updated

BibTeX
@inproceedings{amin2021locally,
  author = {Susan Amin and Maziar Gomrokchi and Hossein Aboutalebi and Harsh Satija and Doina Precup},
  title = {{Locally Persistent Exploration in Continuous Control Tasks with Sparse Rewards}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure