Abstract
Offline Multi-Task Reinforcement Learning (MTRL) aims to train a single policy capable of performing diverse tasks using pre-collected datasets. However, high-capacity models like the Decision Transformer often suffer from "gradient conflict," where updates for different tasks interfere with one another, leading to negative transfer. This paper introduces HarmoDT (Harmony Multi-Task Decision Transformer), a meta-learning framework that identifies and maintains task-specific "harmony subspaces" of parameters through trainable masks. By isolating non-conflicting weights, HarmoDT enables effective scaling across dozens of robotic tasks, outperforming state-of-the-art methods by up to 11% on the Meta-World benchmark.
The Challenge of Gradient Conflict
In multi-task settings, a shared neural network backbone must accommodate the requirements of many different objectives. Gradient conflict occurs when Task A requires a weight to increase while Task B requires it to decrease. As the number of tasks grows, these conflicts multiply, causing the model's performance to plateau or even degrade compared to single-task training. This phenomenon, known as negative transfer, is the primary bottleneck in scaling offline RL models to broad, general-purpose capabilities.
Methodology: Harmony Subspaces
HarmoDT addresses this by treating parameter sharing as a bi-level optimization problem. Instead of a fully shared backbone, the model learns a task-specific mask that delineates a "harmony subspace" for each objective.
The framework consists of several key components:
- Bi-level Optimization: The upper level optimizes the task-specific masks, while the inner level updates the model weights within the allowed subspaces.
- Harmony Score: A novel metric that combines an "Agreement Score" (alignment with average gradients) and an "Importance Score" (relevance to the specific task) to determine which weights should be masked.
- Dynamic Mask Updates: Using a cosine annealing strategy, the algorithm periodically masks conflicting weights and recovers those that have transitioned into harmony, stabilizing the subspaces over time.
- Voting for Generalization: For unseen tasks, HarmoDT aggregates masks from known tasks. Parameters consistently deemed "harmonious" across training tasks are included in the mask for the new task, facilitating zero-shot transfer.
Experimental Evaluation
HarmoDT was evaluated on the Meta-World benchmark, featuring 50 distinct robotic manipulation tasks. The researchers tested the model against both near-optimal expert data and sub-optimal datasets requiring trajectory "stitching." Comparisons were made against several baselines, including MTDIFF, Prompt-DT, and MTDT.
Results and Scalability
HarmoDT demonstrated significant performance gains, particularly as the task count increased. On the 50-task Meta-World benchmark with sub-optimal data, HarmoDT achieved a 57.2% success rate, compared to 48.9% for the best baseline (MTDIFF).
Key insights from the results include:
- Superior Scaling: While competing models showed sharp performance drops when moving from 5 to 50 tasks, HarmoDT maintained a much higher success rate, showing an 11% improvement over the previous state-of-the-art in 30-task scenarios.
- Generalization: The voting-based mask construction for unseen tasks led to a 9.6% improvement in cumulative reward over Prompt-DT.
- Task Clustering: t-SNE visualizations revealed that HarmoDT naturally clusters similar tasks (e.g., different variations of a "push" task) into overlapping parameter subspaces, while keeping disparate tasks separate.
Conclusion
HarmoDT provides a robust solution to the gradient conflict problem in offline MTRL. By leveraging task-specific masks to create harmony subspaces, it allows for the training of high-performance, unified policies across large task sets. Future work may explore dynamic parameter allocation to account for varying task complexities and further improve the efficiency of the subspace selection process.
Summary updated