TL;DR
This paper introduces SMEC, a novel framework for reinforcement learning policy reuse that leverages the insight that short-term behaviors of previously learned policies can be valuable even in unrelated tasks. SMEC adaptively selects and utilizes these "myopic" behaviors, leading to significantly faster and more efficient learning compared to existing methods, especially when prior policies are not perfectly aligned with the current task.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents often require vast amounts of data to learn effective policies from scratch. While reusing previously learned policies (policy reuse) can accelerate this process, it's challenging because prior policies might be irrelevant or even detrimental to the current task. Existing policy reuse methods often struggle with this "negative transfer" problem, either by assuming strong task relatedness or by failing to effectively discern useful behaviors from harmful ones. This paper addresses the challenge of efficiently and robustly reusing prior policies, even when their relevance to the current task is uncertain, by focusing on the sharability of short-term behaviors.
Methods
The core of the proposed method, Selective Myopic behavior Control (SMEC), lies in its novel approach to evaluating and utilizing prior policies.
- Selective Myopic Behavior Control (SMEC): SMEC operates by periodically switching between the current task policy and prior policies. The key innovation is how it decides which policy to use.
- Hybrid Value Function Architecture: Instead of training separate value functions for each prior policy (which can be computationally expensive), SMEC uses a shared architecture to estimate value functions for both the task policy and all prior policies simultaneously. Crucially, it uses different discount factors for the task policy (long-term) and prior policies (short-term) to focus on their respective horizons.
- Value-Guided Behavior Planning: At regular intervals (every
hsteps), SMEC compares the estimated short-term values of the prior policies and the long-term value of the task policy. It then selects the policy that offers the highest estimated value for the nexthsteps. This "myopic" selection allows it to exploit beneficial short-term behaviors. - UCB for Exploration: To encourage exploration and prevent premature convergence to suboptimal prior policies, SMEC incorporates an Upper Confidence Bound (UCB) term into its policy selection mechanism, balancing estimated value with uncertainty.
- Truncated Behavior Evaluation: To mitigate the "off-policy" problem (where training data comes from a different policy than the one being evaluated), SMEC uses a truncated discount factor for evaluating prior policies, effectively limiting the horizon of their evaluation.
Datasets
The paper evaluates SMEC on two benchmark environments:
- MetaWorld: A manipulation benchmark with 12 downstream tasks.
- AntMaze: A locomotion environment with 3 downstream tasks.
The authors also describe using various sets of prior policies for MetaWorld tasks, including optimal and sub-optimal task-specific policies, to investigate the impact of prior policy quality.
Key Insights and Ideas
- Short-term behaviors are transferable: The central insight is that even if a prior policy isn't optimal for a new task, its short-term actions might still be beneficial and can be effectively reused.
- Myopic evaluation for prior policies: By using a shorter horizon (lower discount factor) for evaluating prior policies, SMEC can better capture their immediate utility without being misled by long-term consequences that might be irrelevant or harmful.
- Adaptive policy selection is key: SMEC's ability to dynamically choose the best policy (task or prior) based on estimated short-term value is crucial for its success, allowing it to leverage useful prior behaviors while naturally "weaning off" irrelevant ones as the task policy improves.
- Hybrid value functions enable scalability: The shared architecture for value estimation makes SMEC computationally feasible even with a large number of prior policies.
Key Results
- Superior Sample Efficiency: SMEC consistently outperforms baseline methods (including learning from scratch and other policy reuse techniques) across all tested manipulation and locomotion tasks, achieving higher success rates with significantly fewer training steps.
- Effective Prior Policy Utilization: Experiments show that SMEC can identify and effectively utilize beneficial prior policies, even when they are not perfectly aligned with the task. The utilization of prior policies increases early in training and then decreases as the task policy improves.
- Robustness to Prior Policy Quality: SMEC's performance improves with the addition of more relevant prior policies, including optimal task-specific ones, demonstrating its ability to exploit high-quality prior knowledge.
- Computational Efficiency: SMEC incurs only a modest increase in wall-clock time compared to learning from scratch, even with a substantial number of prior policies.
Limitations and Future Work
- Dependence on Prior Policy Utility: The learning efficiency is still limited by the utility of the prior policies. If prior policies are entirely ineffective, SMEC's performance might be constrained.
- Future Directions: The authors suggest integrating SMEC with skill discovery schemes to pre-train diverse prior policies and extending policy reuse for safe exploration and risk-sensitive decision-making. They also propose exploring its application in continual learning settings.
Summary updated