Abstract
Reinforcement Learning (RL) in environments with sparse rewards remains a significant challenge, often requiring agents to explore extensively before receiving meaningful feedback. While Hindsight Experience Replay (HER) has mitigated some of these issues, the role of reward magnitude and stochasticity is less understood. This paper introduces the concept of "environmental pressure"—the inclusion of stochastic, negative bonus rewards during training. Our results in the FetchSlide robotic benchmark demonstrate that punitive training environments can lead to significantly higher success rates (up to 73%) compared to standard deterministic baselines (39%). We find that negative rewards act as a form of regularization, forcing the agent to learn more robust and efficient policies, whereas positive bonuses often act as distractions that hinder the learning process.
Introduction: The Challenge of Sparse Rewards
In Deep Reinforcement Learning, "sparse rewards" are a notorious hurdle. Most environments provide feedback only upon task completion (e.g., +1 for success, 0 otherwise), leaving the agent to wander aimlessly until it happens to stumble upon the goal. While techniques like Hindsight Experience Replay (HER) allow agents to learn from failures by re-examining past trajectories, the magnitude of these rewards is often treated as an arbitrary engineering choice. This research investigates whether manipulating the "adversity" an agent faces during training—specifically through stochastic, non-deterministic reward noise—can force the development of more robust policies.
Methodology: Introducing Environmental Pressure
The researchers utilized a standard Deep Deterministic Policy Gradient (DDPG) algorithm combined with HER. Their primary contribution is the modification of the reward function during the training phase to include a stochastic bonus.
The Reward Formula
The modified reward $R'$ is calculated as the original reward $r$ plus a bonus $b$ (which can be positive or negative) applied with a certain probability $1-p$. These bonuses were applied only during training; during testing, agents were evaluated in the standard, "clean" environment.
Training Stages
The bonus was tested across three distinct stages of an episode:
- NG (Non-Goal): Applied only when the agent has not yet reached the goal.
- G (Goal): Applied only after the agent has reached the goal.
- B (Both): Applied throughout the entire episode.
Experimental Setup
The study utilized the FetchSlide environment in the MuJoCo physics engine. This is a challenging robotics task where a robotic arm must strike a puck so that it slides and stops at a specific target. It serves as a classic sparse reward problem because the agent receives no feedback until the puck reaches its destination.
Key Insights and Results
Success Rate Boost
Agents trained with negative environmental pressure consistently outperformed the standard HER baseline. While the baseline achieved a success rate of approximately 39%, specific configurations with negative bonuses reached success rates between 68% and 73%.
The "Goldilocks" Zone of Adversity
There is a clear threshold for how much adversity is beneficial. While negative pressure generally improved performance, excessive pressure eventually led to degradation. The data suggests that finding the right balance between a challenging and an impossible environment is critical for optimal learning.
Positive Rewards as Distractions
In a negative reward framework (where the goal is 0 and failures are -1), adding random positive bonuses hindered learning. These incentives likely confused the agent, making it difficult to distinguish between truly beneficial actions and lucky random bonuses.
Reward Noise as Regularization
The authors suggest that stochastic rewards act similarly to regularization in supervised learning. By preventing the agent from overfitting to a perfectly deterministic reward signal, the noise forces the agent to develop a more generalized and robust strategy. Interestingly, the agents that performed best during testing often had the lowest accumulated rewards during training, indicating that training performance is a poor proxy for learned capability under environmental pressure.
Conclusion and Future Work
This research demonstrates that "punitive" training environments can significantly enhance the efficiency and success of RL agents in sparse reward tasks. However, the study is currently limited to the FetchSlide environment. Future work should explore a wider variety of tasks, such as locomotion or discrete games, and investigate "curriculum learning" for rewards—gradually increasing environmental pressure as the agent's proficiency grows.
Summary updated