Abstract
Multi-task deep reinforcement learning (DRL) ambitiously aims to train a general agent that masters multiple tasks simultaneously. However, varying learning speeds of different tasks compounding with negative gradients interference makes policy learning inefficient. In this work, we propose PiCor, an efficient multi-task DRL framework that splits learning into policy optimization and policy correction phases. The policy optimization phase improves the policy by any DRL algorithm on the sampled single task without considering other tasks. The policy correction phase first constructs an adaptive adjusted performance constraint set. Then the intermediate policy learned by the first phase is constrained to the set, which controls the negative interference and balances the learning speeds across tasks. Empirically, we demonstrate that PiCor outperforms previous methods and significantly improves sample efficiency on simulated robotic manipulation and continuous control tasks. We additionally show that adaptive weight adjusting can further improve data efficiency and performance.
Introduction
Training a single agent to handle multiple tasks simultaneously is a cornerstone of general artificial intelligence. However, multi-task learning in DRL is notoriously difficult due to three primary challenges:
- Catastrophic Forgetting: Learning a new task can cause an agent to abruptly lose proficiency in previously mastered ones.
- Gradient Interference: Different tasks often demand contradictory updates to neural network weights, leading to inefficient learning or stagnation.
- Imbalanced Learning Speeds: Agents often master simple tasks quickly while neglecting more complex ones, failing to achieve true generality.
PiCor (Policy Correction) addresses these issues by decoupling the learning process into two distinct phases: optimization for individual tasks and correction for multi-task stability.
The PiCor Framework
PiCor splits every training iteration into two phases to avoid the noisy "tug-of-war" often seen in multi-task gradients.
1. Policy Optimization Phase
In this phase, the agent samples a single task and performs a standard RL update (using Soft Actor-Critic, or SAC, as the backbone). It focuses purely on improving performance for that specific task using a task-specific experience replay buffer. This results in an intermediate policy ($\pi'_t$) that is optimized for the current task but might negatively impact others.
2. Policy Correction Phase
To maintain multi-task performance, PiCor projects the intermediate policy back into a performance constraint set. This mathematical boundary ensures the average performance across all tasks does not drop significantly.
- The Constraint: Using Kullback-Leibler (KL) divergence, PiCor finds a new policy $\pi_{t+1}$ that is as close as possible to the optimized intermediate policy while satisfying a lower bound on the average performance of all tasks.
- Adaptive Weight Adjusting: PiCor leverages the temperature parameter ($\alpha$) from SAC as a proxy for task difficulty. Tasks with higher uncertainty (higher $\alpha$) receive higher weights during the correction phase, forcing the model to prioritize more challenging tasks automatically.
Experimental Evaluation
The authors evaluated PiCor on two high-dimensional continuous control benchmarks:
- Meta-world MT10: A suite of 10 physically diverse robotic manipulation tasks, such as opening doors and picking objects.
- HalfCheetah Task Group: A set of 8 locomotion tasks where the robot's morphology is modified, requiring distinct gait strategies.
Key Results
PiCor significantly outperformed state-of-the-art baselines, including G-Surgery, Soft Modularization, and KTM-DRL, in both success rates and sample efficiency.
- Superior Performance: On Meta-world MT10, PiCor achieved a 73.3% success rate, compared to 66.6% for KTM-DRL and only 23.3% for standard multi-task SAC. On HalfCheetah, it reached an average return of 15,200, nearly 40% higher than the best baseline.
- Sample Efficiency: PiCor reached the peak performance of competing methods using only about 50% of the total environment samples on the MT10 benchmark.
- Ablation Study: Removing the Policy Correction phase caused performance on MT10 to plummet to roughly 24%, confirming that the correction step is vital for multi-task success.
Conclusion
PiCor offers a robust algorithmic solution for multi-task DRL by treating the problem as a constrained optimization. By separating the "drive" to learn from the "guardrails" of stability, and using entropy as a natural metric for task difficulty, PiCor achieves significant gains in both performance and data efficiency. Future work may explore scaling this approach to even larger task sets and integrating expert knowledge to further refine the constraint boundaries.
Summary updated