Abstract
The ability to leverage shared behaviors between tasks is critical for sample-efficient multi-task reinforcement learning (MTRL). While prior methods have primarily explored parameter and data sharing, direct behavior-sharing has been limited to task families requiring similar behaviors. Our goal is to extend the efficacy of behavior-sharing to more general task families that could require a mix of shareable and conflicting behaviors. Our key insight is an agent's behavior across tasks can be used for mutually beneficial exploration. To this end, we propose a simple MTRL framework for identifying shareable behaviors over tasks and incorporating them to guide exploration. We empirically demonstrate how behavior sharing improves sample efficiency and final performance on manipulation and navigation MTRL tasks and is even complementary to parameter sharing.
1. Introduction
Multi-Task Reinforcement Learning (MTRL) aims to learn multiple tasks simultaneously, leveraging commonalities to improve efficiency. While parameter sharing and data relabeling are common, sharing behaviors—the specific actions an agent takes—is often avoided due to the risk of negative transfer. If tasks have conflicting goals, forcing them to share a common policy can degrade performance across all tasks.
The challenge is to selectively share helpful sub-behaviors (e.g., "approaching a target") while ignoring conflicting ones (e.g., "grasping different objects"). We introduce QMP (Q-switch Mixture of Policies), a framework that enables this selective sharing during the data collection phase of off-policy RL.
2. The QMP Framework
QMP improves sample efficiency by allowing a task to "borrow" behaviors from other tasks' policies during exploration. This is achieved through a mechanism called the Q-switch.
2.1 Mixture of Policies and the Q-switch
During the rollout phase, instead of relying solely on the current task's policy $\pi_i$, the agent considers a mixture of all task policies $\{\pi_1, \dots, \pi_N\}$. The Q-switch evaluates these candidates using the current task's Q-function, which estimates expected future rewards. It selects the policy that best optimizes the current task's objective:
$$\pi_{i}^{mix} = \arg \max_{\pi_j} \mathbb{E}_{a \sim \pi_j} [Q_i(s, a)] + \alpha H(\pi_j)$$
2.2 Off-Policy Data Collection
This mixture is used exclusively for gathering data for the replay buffer. Since the underlying RL algorithm (such as Soft Actor-Critic) is off-policy, it can learn effectively from this "borrowed" expertise without biasing the final task-specific policy. This allows a task that is early in its learning process to follow the successful trajectories of a more "expert" task.
3. Experimental Results
We evaluated QMP across diverse benchmarks, including robotic manipulation (Meta-World, Franka Kitchen), navigation (Maze), and locomotion (Walker2D).
3.1 Sample Efficiency and Scaling
QMP demonstrated significant improvements in sample efficiency. In the Multistage Reacher environment, it reached a 90% success rate three times faster than competitive baselines. Furthermore, the benefits of QMP scaled with task complexity; in Meta-World MT50, the larger pool of available policies led to even more effective behavior sharing compared to the MT10 setup.
3.2 Robustness to Conflict
A key strength of QMP is its ability to handle conflicting tasks. By using the task's own Q-function as a filter, the Q-switch avoids policies that lead to low rewards for the current task. This ensures that "negative transfer" is minimized, even when tasks have diametrically opposed goals.
4. Conclusion
QMP offers a robust and "plug-and-play" solution for behavior sharing in MTRL. By utilizing the Q-function to selectively filter exploration policies, it enables tasks to learn from each other's successes while remaining resilient to conflicting objectives. Future research will focus on extending these principles to on-policy algorithms and incorporating higher-level task information to further optimize policy selection.
Summary updated