Multi-Task Reinforcement Learning with Soft Modularization
Ruihan Yang, Huazhe Xu, Yi Wu, Xiaolong Wang
TL;DR
This work tackles the optimization challenges of multi-task reinforcement learning by introducing soft modularization: a base policy network composed of modules whose connections are softly weighted by a routing network conditioned on the task, enabling end-to-end training without predefined hierarchies. By jointly learning module routing and task-conditioned policies, the method achieves superior sample efficiency and final performance on a large suite of robotic manipulation tasks in Meta-World, particularly as task count increases. The paper also provides extensive analyses of routing visualizations, capacity effects, and ablations that underscore the importance of both balanced multi-task optimization and observation-informed routing. Overall, soft modularization demonstrates strong cross-task transfer and opens avenues for zero-shot generalization to unseen tasks with efficient training and scalable modular designs.
Abstract
Multi-task learning is a very challenging problem in reinforcement learning. While training multiple tasks jointly allow the policies to share parameters across different tasks, the optimization problem becomes non-trivial: It remains unclear what parameters in the network should be reused across tasks, and how the gradients from different tasks may interfere with each other. Thus, instead of naively sharing parameters across tasks, we introduce an explicit modularization technique on policy representation to alleviate this optimization issue. Given a base policy network, we design a routing network which estimates different routing strategies to reconfigure the base network for each task. Instead of directly selecting routes for each task, our task-specific policy uses a method called soft modularization to softly combine all the possible routes, which makes it suitable for sequential tasks. We experiment with various robotics manipulation tasks in simulation and show our method improves both sample efficiency and performance over strong baselines by a large margin.
