Hard Tasks First: Multi-Task Reinforcement Learning Through Task Scheduling

Myungsik Cho, Jongeui Park, Suyoung Lee, Youngchul SungICML 2024

In the world of Reinforcement Learning (RL), we often assume that "practice makes perfect." But what happens when an agent has to learn ten different things at once? Usually, it masters the easy stuff and completely ignores the hard stuff. A new paper titled "Hard Tasks First: Multi-Task Reinforcement Learning Through Task Scheduling" proposes a counter-intuitive solution: stop worrying about the easy wins and tackle the hardest challenges head-on from day one.

TL;DR

The authors introduce Scheduled Multi-Task Training (SMT), an algorithm that prevents "simplicity bias" in multi-task RL by prioritizing the most difficult tasks during training. By combining a novel task-difficulty metric with periodic network resets, SMT achieves state-of-the-art performance on the Meta-World robotic manipulation benchmarks, specifically excelling where traditional methods fail.

What Problem Does This Paper Address?

Multi-task RL (MTRL) aims to train a single "generalist" agent capable of performing various tasks, like a robot arm that can both open a drawer and insert a peg into a hole. Theoretically, learning multiple tasks should help via "positive transfer"—knowledge from one task helping another.

In practice, however, we often see negative transfer and simplicity bias. When an agent is presented with a mix of easy (e.g., "reach a point") and hard (e.g., "push an object") tasks, the easy tasks generate large, clear gradient signals early on. The neural network quickly overfits to these easy tasks, essentially "drowning out" the subtler signals needed to learn complex ones. By the time the agent is ready for the hard tasks, the learning rate has often decayed, or the network is stuck in a local optimum, leaving the difficult tasks forever unlearned.

Methods

The researchers propose Scheduled Multi-Task Training (SMT), which relies on three main pillars:

  1. Complexity-Based Scheduling: Instead of training on all tasks at once, SMT maintains a "training pool" of the $K$ most difficult tasks. To determine difficulty, they use a metric derived from probabilistic inference—specifically, how much the agent's current trajectory deviates from an "optimal" one (measured via KL divergence). As tasks become "easy" (solved), they are moved out of the pool to make room for harder ones.
  2. The Reset Mechanism: To combat "primacy bias" (the tendency of early experiences to over-influence the network), SMT periodically reinitializes the weights of the policy and value networks. Crucially, it keeps the replay buffer (the memory of past experiences) intact. This allows the agent to "start fresh" with its weights while still learning from the high-quality data it collected previously.
  3. Budget-Based Training: Training is split into two stages. Stage 1 focuses on individual task solvability. If a task seems "unsolvable" within a certain time budget, it's benched. In Stage 2, the agent gets a second chance to tackle these benched tasks together, potentially benefiting from the general features learned in Stage 1.

Datasets

The authors evaluated SMT on the Meta-World benchmark, a standard for multi-task robotic manipulation.

Examples of Meta-World tasks including reach, drawer-close, peg-insert-side, and push.
  • MT10: A set of 10 distinct tasks (e.g., reach, push, drawer-close).
  • MT50: A much more grueling set of 50 diverse tasks.

These benchmarks are challenging because they require the agent to understand 3D spatial relationships and contact physics across widely varying objectives.

Key Insights and Ideas

  • The "Simplicity Bias" is a Gradient Problem: The paper provides a fascinating analysis showing that easy tasks produce massive gradient norms early in training. This effectively "steers" the entire multi-task policy toward the easy objectives before the hard ones even have a chance to register.
  • Hard-to-Easy vs. Easy-to-Hard: While human "curriculum learning" usually goes from easy to hard, the authors argue that for SGD-based neural network training, the opposite is often better. Prioritizing hard tasks ensures their gradients are present when the learning rate is highest and the network is most plastic.
  • Resets are the "Secret Sauce": The reset mechanism is vital. Without it, the network becomes too rigid after learning the first few tasks. Resetting allows the agent to re-allocate its "representational capacity" more fairly across the task suite.

Key Results

SMT significantly outperformed established baselines like PCGrad and Soft Modularization:

  • MT10 Success Rate: SMT achieved an average success rate of 86.8%, compared to 82.4% for the next best baseline (PaCo) and only 69.4% for standard Multi-Task SAC.
  • Cracking the Hard Tasks: On the notoriously difficult "push" task in MT10, SMT achieved a 62% success rate, while almost all other baselines sat at 0%.
  • MT50 Performance: In the 50-task setting, SMT showed a clear advantage in the "bottom-k" (the hardest) tasks, proving that the scheduling strategy scales well to higher task counts.

Limitations and Future Work

While powerful, SMT introduces several new hyperparameters, such as the training pool size ($K$) and the solvability thresholds ($m, M$). The authors note that performance can be sensitive to the budget allocation parameter ($\kappa$).

Future work could involve:

  • Automating Hyperparameters: Finding ways to adaptively set the scheduling thresholds without manual tuning.
  • Architecture Integration: Combining SMT's scheduling with more complex architectures, like modular neural networks, to see if the benefits compound.
  • Real-World Robotics: Testing if this "hard tasks first" approach holds up when training on physical hardware where sample efficiency is even more critical.

Summary updated

BibTeX
@inproceedings{cho2024hard,
  author = {Myungsik Cho and Jongeui Park and Suyoung Lee and Youngchul Sung},
  title = {{Hard Tasks First: Multi-Task Reinforcement Learning Through Task Scheduling}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=haUOhXo70o},
}
Figure