Introduction
Reinforcement Learning (RL) faces a significant hurdle in environments with sparse rewards, where an agent receives feedback only after completing a complex sequence of actions. Without a dense signal to guide exploration, agents often fail to learn meaningful behaviors. While Learning from Demonstrations (LfD) and Curriculum Learning (CL) offer potential solutions, they are rarely integrated into a single, automated framework.
This paper introduces Task Phasing, a framework that leverages sub-optimal demonstrations to automatically generate a training curriculum. By transitioning from a simple task (defined by demonstrations) to the complex target task, Task Phasing enables agents to succeed where standard RL algorithms fail.
The Task Phasing Framework
The core of Task Phasing is the creation of a "task continuum" that bridges the gap between initial demonstration-based tasks and the final target. The authors propose two primary domain-independent approaches:
- Temporal Task Phasing: Control is shared between the agent and a demonstrator policy. Initially, the demonstrator handles most actions, but the probability of the RL agent taking control gradually increases until it has full autonomy.
- Reward Task Phasing: The agent begins with a dense reward function learned from demonstrations via Inverse Reinforcement Learning. This dense signal is phased out over time, eventually leaving only the original sparse target reward.
To ensure stable training, the framework utilizes Maximum Entropy (MaxEnt) soft policies. This mathematical smoothing prevents policy "cliffs"—discontinuous jumps in behavior that can occur when the task difficulty shifts, which would otherwise cause training to collapse.
The Recoverability Trade-off
A key insight of this research is the relationship between the phasing method and the "recoverability" of the environment.
- Temporal Phasing is most effective in recoverable domains like PyFlags, where a single mistake does not necessarily preclude eventual success. In these environments, the agent can explore and recover from errors while the demonstrator provides a safety net.
- Reward Phasing excels in unrecoverable domains like the Fetch robotic tasks. In these scenarios, a single wrong move (e.g., dropping an object) makes the goal impossible to reach. Here, a dense reward signal is more effective than shared control for guiding the agent through delicate sequences.
Experimental Results
The researchers evaluated Task Phasing against several state-of-the-art baselines, including Hindsight Experience Replay (HER), Self-adaptive Imitation Learning (SAIL), and Random Network Distillation (RND).
As shown in the results, Task Phasing consistently outperformed the baselines. In the PyFlags environment, Temporal Phasing was the only method to achieve a positive game score against the opponent, effectively "surpassing the teacher" by improving upon the sub-optimal demonstrations. In the Fetch domains, Reward Phasing achieved near-perfect success rates while standard RL algorithms failed to learn entirely.
Conclusion
Task Phasing provides a robust, automated method for curriculum generation in sparse-reward environments. By understanding the trade-off between temporal and reward-based phasing, researchers can better tailor RL training to the specific recovery characteristics of a task. Future work aims to unify these two approaches into a single, adaptive algorithm that can automatically select the optimal phasing strategy for any given domain.
Summary updated