Shared-unique Features and Task-aware Prioritized Sampling on Multi-task Reinforcement Learning

Po-Shao Lin, Jia-Fong Yeh, Yi-Ting Chen, Winston H. HsuarXiv 2024 · DOI

Introduction

Multi-task Reinforcement Learning (MTRL) aims to develop a single policy capable of mastering a diverse array of skills, such as opening doors, picking up objects, and manipulating tools. However, current state-of-the-art (SOTA) methods often suffer from a "performance imbalance" problem. While an agent might achieve high average success rates, these metrics frequently mask total failure in specific, more challenging tasks. This imbalance typically stems from task interference—where learning one skill overwrites the nuances of another—and inefficient data sampling that fails to prioritize tasks where the agent struggles.

Methodology: The STARS Framework

To address these challenges, we introduce STARS (Shared-unique features and Task-aware Prioritized Sampling). STARS improves MTRL performance by refining how features are extracted and how training data is prioritized.

Shared-unique Feature Extractor

Rather than forcing all tasks to share a single feature space, STARS bifurcates the agent's perception into two distinct streams:

  • Task-focused Shared Features: These capture generalizable skills (e.g., reaching or grasping) by drawing from a shared knowledge pool using weighted compositions.
  • Task-unique Features: These capture the specific details of individual tasks. To prevent these features from being diluted by interference, a triplet loss is employed. This technique ensures that latent representations of the same task cluster together while pushing those of different tasks apart in the agent's latent space.

Task-aware Prioritized Sampling (TaPS)

Standard training often samples tasks uniformly, leading to wasted cycles on mastered skills. STARS implements a two-tier priority system for its replay buffer:

  • Transition Level: Prioritizes individual experiences with high temporal difference (TD) error, focusing on moments where the agent was most surprised or incorrect about the outcome.
  • Task Level: Dynamically adjusts sampling frequency based on task-specific performance. If the agent struggles with a task like "Peg Insertion," TaPS automatically allocates more training resources to it until proficiency improves.

Experimental Evaluation

The framework was evaluated on the Meta-World benchmark, specifically the MT-10 (10 tasks) and MT-50 (50 tasks) suites. To ensure robustness and prevent simple coordinate memorization, object positions were randomly initialized in each environment.

STARS demonstrates superior success rates and stability across diverse robotic tasks compared to baseline methods.

Key Results and Insights

STARS achieved a new state-of-the-art success rate of 88.5% on the MT-10 benchmark, significantly outperforming previous leaders such as PaCo (83.1%) and CARE (78.2%). Notably, STARS even surpassed "Oracle" models—individual agents trained exclusively on single tasks. This suggests that the structured sharing of features in STARS allows for positive synergy between tasks without the typical drawbacks of interference.

Ablation studies confirmed the necessity of both components: removing TaPS reduced performance to 85.7%, while removing the unique feature extractor dropped it to 86.4%. Furthermore, STARS demonstrated significantly higher stability, maintaining consistent performance across all tasks and reducing the performance gap between the easiest and hardest tasks.

Conclusion and Future Work

STARS effectively mitigates performance imbalance in MTRL through architectural separation of shared and unique features combined with dynamic task prioritization. While highly effective on the 10-task benchmark, the performance gap narrows on the 50-task suite as the unique feature space becomes more crowded. Future work will explore more scalable methods for feature extraction and resource allocation to handle increasingly massive and diverse task sets.

Summary updated

BibTeX
@misc{lin2024shared,
  author = {Po-Shao Lin and Jia-Fong Yeh and Yi-Ting Chen and Winston H. Hsu},
  title = {{Shared-unique Features and Task-aware Prioritized Sampling on Multi-task Reinforcement Learning}},
  year = {2024},
  eprint = {2406.00761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.00761},
}
Figure