Efficient Multi-task Reinforcement Learning with Cross-Task Policy Guidance

Jinmin He, Kai Li, Yifan Zang, Haobo Fu, Qiang Fu, Junliang Xing, Jian Cheng

Overview

Multi-task reinforcement learning (MTRL) aims to train agents capable of mastering multiple skills simultaneously by leveraging shared information. While existing methods primarily focus on sharing neural network parameters, they often miss a more direct approach: explicitly sharing behaviors. The Cross-Task Policy Guidance (CTPG) framework introduces a novel mechanism that allows agents to "borrow" successful behaviors from other tasks. By training a "guide policy" to select the best behavior from a pool of task-specific policies, CTPG significantly improves sample efficiency and final performance across complex robotic manipulation and locomotion benchmarks.

The Challenge of Knowledge Sharing

Traditionally, MTRL relies on implicit knowledge sharing—designing clever neural network architectures where different tasks share the same "brain" (parameters) to find common features.

However, the authors argue that this overlooks a more intuitive approach: explicit policy sharing. Consider how a human who knows how to ride a bicycle can quickly learn to ride a motorcycle by relying on their existing balance and steering skills. Similarly, in reinforcement learning, if Task A (e.g., opening a microwave door) has already mastered the "reach for handle" phase, Task B (e.g., opening a drawer) should be able to use Task A’s policy to get through that initial phase faster.

Shared skills across different robotic manipulation tasks.

The primary challenge in explicit policy sharing is figuring out which task's advice to follow and when to stop taking that advice once the agent is proficient.

The CTPG Framework

To solve this, the authors introduce Cross-Task Policy Guidance (CTPG), a modular framework designed to plug into existing MTRL algorithms. Its core components include:

  1. The Guide Policy ($\Pi^g$): Instead of controlling the robot directly, CTPG trains a separate "guide" for every task. Every $K$ timesteps, this guide evaluates all available task policies and selects one to act as the "behavior policy" for data collection.
  2. Policy-Filter Gate: Not all advice is helpful. This gate compares the current task's value function ($V$) with the guide's estimated Q-values, masking out policies that would perform worse than the task's own current policy.
  3. Guide-Block Gate: Once a task is mastered, extra guidance can become a distraction. CTPG cleverly uses the Soft Actor-Critic (SAC) temperature parameter ($\alpha$)—which naturally tracks policy entropy and task difficulty—to identify "mastered" tasks and block them from seeking further guidance.
  4. Hindsight Off-Policy Correction: Because policies constantly change during training, data collected by an old version of a guide policy might become "stale." This mechanism re-labels old transitions to reflect which policy would have been most likely to produce that behavior in the present, stabilizing the learning process.

Experimental Validation and Results

The researchers evaluated CTPG on two major reinforcement learning benchmarks: MetaWorld (a suite of robotic manipulation tasks like pushing buttons and opening drawers) and HalfCheetah (a locomotion benchmark with varying gravity and morphology conditions).

Tested alongside five classical MTRL methods (MTSAC, MHSAC, PCGrad, SM, and PaCo), CTPG demonstrated consistently superior results:

  • Performance Boost: In the MetaWorld-MT10 benchmark, adding CTPG to the MTSAC baseline raised the success rate from 62.7% to 75.7%.
  • Scalability: On the massive MT50 benchmark (50 distinct tasks), CTPG improved the Soft Module (SM) approach from 55.0% to 66.2% success.
  • Sample Efficiency: CTPG reached higher performance levels much earlier in the training process compared to baseline versions or other behavior-sharing methods.
  • Versatility: The framework proved effective even without implicit parameter sharing, demonstrating that explicit behavior sharing provides a fundamental benefit to exploration.

Key Insights

  • Explicit is Better than Implicit: While sharing parameters helps, explicitly choosing which behavior to follow provides a much stronger exploration signal for unmastered tasks.
  • The Entropy "Aha" Moment: Using the SAC temperature parameter ($\alpha$) as a proxy for task mastery is a highly effective, "free" signal. As an agent becomes more confident, its entropy changes, allowing the system to automatically phase out guidance without manual tuning.
  • Cross-Pollination of Skills: Visualizations of a "Pick-Place" task revealed that the guide policy was smart enough to borrow the "reach" behavior from a "Peg-Insert" task for the first 20 steps, seamlessly switching back to its own policy once it needed to grip the specific object.

Limitations and Future Work

While highly effective, CTPG has a few areas for future refinement. Currently, the "guide step" $K$ (how often the guide picks a new policy) is a fixed hyperparameter, but different skills naturally have different durations; automating the selection of $K$ is a vital next step. Additionally, while the SAC temperature is a good proxy for mastery, investigating other metrics for the Guide-Block gate—especially those not tied to specific RL algorithms—could make the framework even more robust. Finally, training an additional guide policy for every task adds some computational complexity, though the overall training time remains manageable because the guide only acts intermittently.

Summary updated

BibTeX
@inproceedings{he2024efficient,
  author = {Jinmin He and Kai Li and Yifan Zang and Haobo Fu and QIANG FU and Junliang Xing and Jian Cheng},
  title = {{Efficient Multi-task Reinforcement Learning with Cross-Task Policy Guidance}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=3qUks3wrnH},
}
Figure