Online Multi-Task Learning Using Active Sampling

Sahil Sharma, Balaraman RavindranWorkshops @ ICLR 2017

TL;DR: Researchers have developed A4C (Active-sampling A3C), a framework that allows a single reinforcement learning agent to master multiple different tasks simultaneously without needing expensive "teacher" networks. By using an active sampling strategy, the agent intelligently chooses to spend more time practicing the tasks it finds most difficult, significantly outperforming standard random-task-selection baselines.

Introduction

Deep Reinforcement Learning (DRL) has seen massive success in specific games, but these agents are notoriously "brittle"—an agent that plays Space Invaders perfectly is usually useless at Seaquest.

To create a single "generalist" agent, researchers often use Multi-Task Learning (MTL). However, current state-of-the-art MTL methods usually rely on Policy Distillation. This requires training several "expert" networks (one for each task) first, and then training a "student" network to mimic them. This is incredibly resource-intensive: if you want an agent to learn 20 tasks, you first have to solve those 20 tasks individually.

The authors address this inefficiency by asking: Can we train a single agent to learn multiple tasks from scratch, online, without any expert supervision?

Methodology: Active-Sampling A3C (A4C)

The authors introduce A4C, which builds upon the popular Asynchronous Advantage Actor-Critic (A3C) algorithm. The core innovation is the Active Sampling mechanism:

  1. Initial Exploration: For a set number of steps, the agent picks tasks at random to get a "feel" for the environment.
  2. Performance Tracking: The agent maintains a running average of its scores for each task.
  3. The "Gap" Metric: It compares its current performance against a baseline score (usually human-level performance or published benchmarks). It calculates a "difficulty" value based on how far it is from the goal.
  4. Softmax Selection: Instead of picking the next task at random, the agent uses a softmax distribution over these difficulty values. Tasks where the agent is performing poorly relative to the baseline are assigned a higher probability of being selected for the next training episode.

Essentially, the agent "chooses" its own curriculum, focusing its limited training time on the games it hasn't mastered yet.

Experimental Setup

The researchers evaluated their approach using the Atari 2600 domain via the Arcade Learning Environment. They created three distinct multi-tasking instances, each containing six different games to ensure the agent had to generalize across very different state spaces and visual styles:

  • MT1: Space Invaders, Seaquest, Crazy Climber, Demon Attack, Name This Game, Star Gunner.
  • MT2: Asterix, Alien, Assault, Bank Heist, Gopher, Tutankhamun.
  • MT3: Breakout, Centipede, Kung Fu, Frostbite, Q-Bert, Wizard of Wor.

Results and Insights

The A4C agent consistently and significantly outperformed the baseline (BA3C) across all three task sets.

Learning curves for the six games in the MT1 task set.

The "naive" way to do multi-tasking is to cycle through tasks randomly (the BA3C baseline). The results show this is highly inefficient because the agent wastes time on tasks it has already "solved" while neglecting those where it is struggling. Furthermore, unlike previous methods like Actor-Mimic, A4C learns directly from raw pixels and rewards, making it a "truly" online approach that is far more data-efficient than distillation-based methods.

Performance comparison of A4CSH and BA3CSH across MT1, MT2, and MT3.

The authors argue that the standard arithmetic mean ($q_{am}$) of scores is a poor metric for multi-tasking because a high score in one easy game can mask a total failure in a hard game. They propose using the Harmonic Mean ($q_{hm}$), which is much more sensitive to low outliers, ensuring the agent is actually competent across all tasks.

As seen in the performance table above, the most striking result is in the Harmonic Mean for MT1 and MT3, where the baseline agent essentially failed to learn a balanced policy (scoring near zero), while A4C maintained high performance across the board.

Limitations and Future Work

  • Dependency on Baselines: The active sampling logic requires a baseline score to calculate the performance gap. While the authors used human scores, in a completely novel environment where no baseline exists, the algorithm might need a different way to estimate task difficulty.
  • Scaling: While the agent handled 6 tasks well, it remains to be seen how this scales to dozens or hundreds of tasks with overlapping or conflicting controls.
  • Hyperparameter Sensitivity: The "temperature" parameter in the softmax operation controls how aggressively the agent focuses on hard tasks versus exploring easy ones. Finding the optimal balance for this is crucial for performance.

Summary updated

BibTeX
@inproceedings{sharma2017online,
  author = {Sahil Sharma and Balaraman Ravindran},
  title = {{Online Multi-Task Learning Using Active Sampling}},
  booktitle = {Workshops @ ICLR},
  year = {2017},
}
Figure