Information-theoretic Task Selection for Meta-Reinforcement Learning

Ricardo Luna Gutierrez, Matteo LeonettiNeurIPS 2020

Introduction

In Meta-Reinforcement Learning (Meta-RL), the prevailing wisdom suggests that exposing an agent to a massive number of training tasks leads to better generalization. However, this paper challenges the "more is better" assumption. The authors introduce Information-Theoretic Task Selection (ITTS), an algorithm designed to identify a high-quality, concise subset of training tasks that are both unique and relevant. This targeted approach leads to faster learning and superior performance on unseen test tasks.

The Problem with Dense Task Coverage

Reinforcement Learning (RL) agents traditionally struggle to adapt to new environments without extensive retraining. Meta-RL addresses this by training an agent across a wide variety of tasks so it can "learn how to learn" and quickly adapt to related scenarios.

Currently, most Meta-RL approaches rely on "dense coverage"—sampling as many training tasks as possible. The authors identify three major flaws in this methodology:

  1. Computational Cost: Dense sampling is incredibly expensive and sometimes impossible to execute in complex environments.
  2. Redundancy: Many tasks within a massive set are so similar that they fail to provide new, actionable information to the agent.
  3. Overfitting: Training on a massive set of highly similar tasks can inadvertently hurt the agent's ability to generalize to truly novel scenarios.

This raises a critical question: Can we select a smaller, "smarter" set of training tasks that actually improves final performance?

Methodology: ITTS

To solve this, the authors propose ITTS, a pre-processing step that filters a large pool of available tasks into an optimized training set. ITTS evaluates tasks based on two core information-theoretic pillars:

  1. Difference ($\delta$): To eliminate redundancy, ITTS measures the average Kullback–Leibler (KL) divergence between the optimal policies of different tasks. If two tasks result in nearly identical optimal behaviors, one is discarded.
  2. Relevance ($\rho$): To ensure the selected tasks actually aid the target distribution, ITTS utilizes a small validation set. It measures Information Gain (the reduction in policy entropy) when an agent transfers knowledge from a training task to a validation task. If learning on a validation task becomes "more certain" after exposure to a training task, that training task is deemed relevant.

Crucially, ITTS is algorithm-agnostic. It functions as a wrapper that can be applied prior to any Meta-RL algorithm, whether context-based (like RL²) or gradient-based (like MAML).

Experimental Setup

The researchers evaluated ITTS across six diverse domains to ensure robustness:

  • Classic Control: CartPole (balancing a pole).
  • Navigation: MiniGrid (navigating a maze).
  • Locomotion: Half-Cheetah and Ant (simulated robots learning to run at specific speeds).
  • Complex Grid World: Krazy World (a challenging environment with obstacles and varying rewards).
  • Real-World Application (MGEnv): A newly introduced domain for Micro-Grid control using real historical data from PecanStreet Inc. to simulate energy consumption and solar generation.

Key Insights and Results

The results were remarkably consistent across all six domains, proving that less is more. Agents trained on the ITTS-selected subset consistently outperformed agents trained on the entire set of available tasks.

Performance comparison of ITTS against individual components

By filtering out tasks that are too similar, ITTS forces the meta-learner to capture the underlying structure of the problem rather than just memorizing specific trajectories. Furthermore, ITTS significantly beat out random task selection, proving that the information-theoretic metrics (Difference and Relevance) capture meaningful task relationships. In the real-world MGEnv domain, ITTS-trained agents were notably more effective at managing energy costs in highly variable scenarios compared to standard Meta-RL baselines.

Limitations and Future Work

While the results are highly promising, the authors note a few areas for future development:

  • Heuristic Nature: ITTS is currently a heuristic algorithm. Developing a more rigorous theoretical framework for why specific task subsets improve generalization is a vital next step.
  • Pre-computation Cost: ITTS requires finding the optimal policies for the training tasks before selection. While manageable for the scenarios focused on in the paper, it could become a bottleneck for massive-scale problems.
  • Threshold Sensitivity: The "Difference" threshold ($\epsilon$) is domain-dependent.
Effect of the difference threshold parameter on normalized return

As shown above, the performance curve relative to the threshold is convex, meaning there is a "Goldilocks" sweet spot for task variety. While the authors found it relatively easy to tune, automating this parameter selection would make the tool even more robust and user-friendly.

Summary updated

BibTeX
@inproceedings{gutierrez2020information,
  author = {Ricardo Luna Gutierrez and Matteo Leonetti},
  title = {{Information-theoretic Task Selection for Meta-Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure