Abstract
Deep Reinforcement Learning (DRL) often suffers from extreme sample inefficiency. While Transfer Learning (TL) offers a potential solution by leveraging prior knowledge, existing methods frequently struggle with task similarity modeling and the risk of negative transfer. This paper presents the Policy Transfer Framework (PTF), which treats policy transfer as an "option learning" problem. By decoupling target task learning from source policy selection and employing an adaptive weighting mechanism based on termination probabilities, PTF effectively accelerates learning while remaining robust to irrelevant source knowledge.
Introduction
Deep Reinforcement Learning has demonstrated remarkable success in complex domains, yet its practical application is often hindered by the vast amount of environmental interaction required for convergence. Transfer Learning aims to mitigate this by reusing "source policies" from previously mastered tasks. However, traditional TL approaches face three primary challenges: the need for complex similarity metrics between tasks, a lack of flexibility in combining multiple source policies, and the danger of "negative transfer," where inappropriate source knowledge slows down the learning process.
Methodology: The Policy Transfer Framework (PTF)
The proposed Policy Transfer Framework (PTF) addresses these challenges by modeling the transfer process as an "option learning" problem. Unlike methods that use source policies solely for exploration, PTF incorporates them into a functional optimization objective.
The framework consists of two primary components:
- Agent Module: A standard DRL agent (such as A3C or PPO) that learns the target task. In addition to environmental rewards, it optimizes a "Transfer Loss" objective, which encourages the imitation of a selected source policy.
- Option Module: This module treats each source policy in a library as a high-level "option." A specialized network learns to select the most beneficial source policy for a given state and determines how long it should be followed.
Adaptive Weighting and Trust
A key innovation in PTF is the use of the termination probability ($\beta$) of an option as a heuristic for trust. If the Option Module detects that a source policy is performing poorly on the target task, the termination probability for that option increases. PTF then automatically scales down the Transfer Loss, allowing the agent to rely more on its own experience and less on the potentially harmful source policy. This mechanism provides a robust defense against negative transfer.
Experimental Setup
The efficacy of PTF was evaluated across three distinct environments designed to test different aspects of transfer:
- Grid World: A discrete navigation task requiring the agent to find goals while navigating obstacles. This environment tests the ability to adapt to different layouts and goal locations.
- Pinball: A continuous control domain where a ball must be maneuvered through a maze. This task introduces high-dimensional state and action spaces.
- Reacher: A robotic control task from the DeepMind Control Suite involving a two-link planar arm.
Results and Discussion
Experimental results demonstrate that PTF significantly outperforms vanilla DRL agents and state-of-the-art transfer methods like CAPS.
- Accelerated Convergence: In Grid World and Pinball, PTF reached peak performance substantially faster than learning from scratch.
- Performance Gains: In the Reacher environment, PTF-A3C achieved nearly double the average return of standard A3C within the same training duration.
- Robustness to Dissimilarity: PTF successfully identified useful components of source policies even when the target task was significantly different. By learning "when to quit" a source policy, the agent avoids the pitfalls of negative transfer that often plague more rigid transfer methods.
Conclusion
The Policy Transfer Framework provides a flexible and robust approach to accelerating DRL through the intelligent reuse of source policies. By framing transfer as option learning and utilizing adaptive weighting, PTF overcomes common hurdles in transfer learning. Future work includes extending the framework to multi-agent settings and exploring the learning of more abstract, generalizable knowledge to further enhance adaptation in novel environments.
Summary updated