ETGL-DDPG: A Deep Deterministic Policy Gradient Algorithm for Sparse Reward Continuous Control

Ehsan Futuhi, Shayan Karimi, Chao Gao, Martin Müller · Submission to ICLR 2025 · Withdrawn

In reinforcement learning (RL), "sparse rewards" present a notoriously difficult challenge—akin to finding a needle in a haystack without a metal detector. In many real-world robotics tasks, an agent receives no "warm/cold" signal to guide its progress; it only receives a reward when the task is fully completed, such as a robot successfully pushing a button or navigating a complex maze.

Standard off-policy algorithms like the Deep Deterministic Policy Gradient (DDPG) typically struggle in these environments. To address this, researchers have introduced ETGL-DDPG, an algorithm that breathes new life into the classic DDPG framework. By combining a search-based exploration strategy, a dual-buffer replay system, and "longest n-step" returns, ETGL-DDPG achieves state-of-the-art performance in challenging continuous control environments.

The Challenge of Sparse Rewards

Standard DDPG and similar off-policy algorithms falter in sparse reward settings primarily due to three fundamental inefficiencies:

  1. Directionless Exploration: They usually rely on adding random noise to actions. In large state spaces, this random walk behavior is highly inefficient for discovering a distant, single-point goal.
  2. Uniform Replay: They treat every experience equally in the replay buffer. When success is rare, the few successful transitions are "drowned out" by thousands of failed attempts.
  3. Slow Propagation: They update values one step at a time. The "glory" of reaching the goal takes a very long time to trickle back to the initial actions that started the journey.

The ETGL-DDPG Solution

ETGL-DDPG integrates three orthogonal components to systematically fix these issues, transforming DDPG into a highly capable sparse-reward solver.

Instead of merely picking a random action to explore, the agent occasionally performs a lightweight tree search. This method, termed $\epsilon t$-greedy, uses SimHash (a locality-sensitive hashing technique) to count how often the agent has visited certain areas of the state space.

Illustration of the $\epsilon t$-greedy exploration strategy.

The search algorithm prioritizes reaching "less-visited" states. By doing so, it creates a temporally extended "option" or path for the agent to follow. This provides the temporal abstraction needed to cross large empty spaces in an environment, rather than getting stuck dithering in a local area. Crucially, the authors prove that $\epsilon t$-greedy has polynomial sample complexity (it is PAC-MDP), offering a mathematical guarantee that the agent will find a near-optimal policy in a reasonable amount of time.

Dual Replay Buffers and Longest n-step Returns

To address the issues of uniform replay and slow reward propagation, ETGL-DDPG introduces two interconnected mechanisms: the Goal-conditioned Dual Replay Buffer (GDRB) and the Longest n-step Return.

Overview of the GDRB dual-buffer system and longest n-step return calculations.

The GDRB system maintains two separate buffers. A primary buffer ($D_\beta$) stores all transitions, while an elite buffer ($D_e$) specifically stores successful trajectories. The algorithm uses an adaptive sampling ratio that gradually shifts toward sampling more from the success buffer as training progresses. This ensures the agent stays focused on the goal without overfitting to a single successful path.

Furthermore, rather than using a standard one-step update, ETGL-DDPG uses the return from the entire remaining episode for successful runs. This "longest n-step" acts as a powerful shortcut, instantly teleporting the reward signal across the whole trajectory and drastically speeding up learning. It bypasses the "deadly triad" instability issues often associated with long n-steps by only applying them to confirmed successful paths.

Experimental Validation

The algorithm was rigorously evaluated on six continuous control benchmarks modified to have sparse rewards, including navigation tasks (Wall-maze, U-maze, Point-push) and manipulation tasks (Window-open, Soccer, Press-button).

Key Results: * Superiority in Hard Tasks: In the 2D Wall-maze—which includes a "gradient cliff" designed to trap agents in local optima—ETGL-DDPG was one of only two algorithms to achieve a non-zero success rate, reaching a perfect success rate significantly faster than its competitors. * Outperforming Modern Baselines: Despite DDPG being an older backbone, the ETGL enhancements allowed it to outperform more modern algorithms like Soft Actor-Critic (SAC) and Twin Delayed DDPG (TD3) across all tested sparse environments. * Efficiency Trade-offs: While the local search and n-step calculations increase wall-clock training time by about 1.5x compared to standard DDPG, the massive gain in sample efficiency (learning in far fewer environment steps) makes it a highly favorable trade-off.

Limitations and Future Directions

While highly effective, ETGL-DDPG has a few limitations. The current method uses SimHash, which relies on a fixed preprocessing function and might struggle with high-dimensional raw pixel data (like camera feeds). Moving toward dynamic hashing or normalizing flows could improve state representation. Additionally, the current components are designed for deterministic environments; adapting the search and longest n-step returns for stochastic environments remains an open challenge. Finally, scaling the lightweight tree search to even more complex, high-frequency control tasks may require further optimization of the search budget.

Overall, ETGL-DDPG demonstrates that with targeted improvements to exploration, memory management, and reward propagation, foundational RL algorithms can still achieve cutting-edge results in highly complex, sparse-reward domains.

Summary updated

BibTeX
@misc{futuhi2024etgl,
  author = {Ehsan Futuhi and Shayan Karimi and Chao Gao and Martin Müller},
  title = {{ETGL-DDPG: A Deep Deterministic Policy Gradient Algorithm for Sparse Reward Continuous Control}},
  year = {2024},
  eprint = {2410.05225},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.05225},
}
Figure