Abstract
Multi-Task Reinforcement Learning (MTRL) aims to develop generalist agents capable of performing a wide array of diverse tasks. However, scaling these agents to handle hundreds of tasks simultaneously has remained a significant challenge due to performance degradation and gradient interference. This paper introduces M3DT (Mixture-of-Expert Decision Transformer), a framework that combines the Decision Transformer architecture with a Mixture-of-Experts (MoE) approach. By utilizing a specialized three-stage training process and gradient-based task grouping, M3DT successfully masters a benchmark of 160 diverse control tasks, significantly outperforming existing state-of-the-art models and demonstrating superior scalability.
Introduction
In the pursuit of a "Generalist Agent," researchers aim to create single models capable of everything from robotic manipulation to complex locomotion. While Large Language Models (LLMs) have proven that scaling parameters leads to massive jumps in capability, Multi-Task Reinforcement Learning has struggled to replicate this "scaling law" success. As the number of tasks increases, standard models often experience a sharp decline in performance.
The authors identify two primary roadblocks to scaling MTRL:
- Task Scalability: Performance typically drops as more tasks are added. Models that handle 50 tasks well often crumble when faced with 160.
- Gradient Conflicts: Simultaneous learning of diverse tasks leads to contradictory parameter updates. This "tug-of-war" within the model's gradients prevents it from mastering any single task effectively.
Simply increasing the size of a standard Decision Transformer does not solve these issues; the authors found that these models hit a performance ceiling regardless of parameter count.
The M3DT Framework
M3DT breaks through the scaling ceiling by introducing three core innovations designed to "divide and conquer" the task space:
1. Mixture-of-Experts (MoE) Architecture
Instead of a monolithic network, M3DT replaces standard feed-forward layers with multiple "experts" (smaller neural networks). This allows the model to increase its total parameter count—and thus its capacity—while keeping the computational load per task manageable.
2. Gradient-Based Task Grouping
To ensure experts are utilized effectively, M3DT calculates "Agreement Vectors" to identify tasks with similar requirements. Similar tasks are grouped together and assigned to specific experts, ensuring that each expert only needs to learn a cohesive subset of the total task library.
3. Three-Stage Training Mechanism
To mitigate gradient conflicts, the authors developed a structured training protocol:
- Stage 1: Backbone Training: The model is trained briefly on all tasks to learn shared features (e.g., basic physics). Early stopping is employed here to prevent gradient conflicts from degrading the shared foundation.
- Stage 2: Expert Training: The shared backbone is frozen, and individual experts are trained on their assigned task groups. This allows for specialization without cross-task interference.
- Stage 3: Router Training: Finally, a "router" is trained to determine the optimal weighting of experts for any given state, integrating specialized knowledge into a unified policy.
Experimental Setup and Datasets
The researchers evaluated M3DT on a massive suite of 160 continuous control tasks, a benchmark significantly larger than the 50-task sets common in prior research. The suite includes:
- Meta-World (50 tasks): Robotic manipulation such as opening drawers or pressing buttons.
- DMControl (30 tasks): Classic control problems like Cartpole and Walker.
- Mujoco Locomotion (80 tasks): 40 variations of "Cheetah-vel" and 40 variations of "Ant-dir," requiring precise velocity and direction control.
Key Results and Insights
M3DT demonstrates that the solution to massive MTRL is to make the model perceive the problem as learning a few tasks at a time. Key findings include:
- Superior Performance: On the 160-task benchmark, M3DT achieved a normalized score of 78.21, compared to 71.65 for the strongest baseline (PromptDT-Large).
- Resilience to Scaling: When moving from 10 to 160 tasks, M3DT saw only a 12.3% performance decline, whereas other state-of-the-art baselines suffered a 20% drop.
- Unlocking Parameter Scalability: Unlike standard Decision Transformers that plateau at 20 million parameters, M3DT continues to improve as more experts (and thus more parameters) are added.
- Weighted Experts: The authors found that using a weighted combination of all experts performs better in RL than the "sparse routing" (using only 1 or 2 experts) typically used in LLMs, likely due to subtle shared similarities across control tasks.
Limitations and Future Work
While M3DT represents a significant step forward, challenges remain. The use of a weighted sum of all experts increases inference costs as the model scales. Additionally, while M3DT masters a large set of known tasks, future work is needed to explore how well these specialized experts generalize to entirely new, unseen tasks. Finally, the authors suggest that more sophisticated designs for the experts and routers could further enhance performance and efficiency.
Summary updated