Skip to main content
QUICK REVIEW

[Paper Review] Meta Reinforcement Learning with Task Embedding and Shared Policy

Lin Lan, Zhenguo Li|arXiv (Cornell University)|May 16, 2019
Reinforcement Learning in RoboticsComputer Science29 references9 citations
TL;DR

This paper proposes TESP, a meta-reinforcement learning method that explicitly models task individuality via a meta-learned task encoder and task commonness via a shared policy. By adapting the task encoder using a learnable SGD optimizer and conditioning a single policy on task embeddings, TESP achieves up to 3–4× higher returns than baselines on both training and out-of-distribution novel tasks, demonstrating superior data efficiency and generalization.

ABSTRACT

Despite significant progress, deep reinforcement learning (RL) suffers from data-inefficiency and limited generalization. Recent efforts apply meta-learning to learn a meta-learner from a set of RL tasks such that a novel but related task could be solved quickly. Though specific in some ways, different tasks in meta-RL are generally similar at a high level. However, most meta-RL methods do not explicitly and adequately model the specific and shared information among different tasks, which limits their ability to learn training tasks and to generalize to novel tasks. In this paper, we propose to capture the shared information on the one hand and meta-learn how to quickly abstract the specific information about a task on the other hand. Methodologically, we train an SGD meta-learner to quickly optimize a task encoder for each task, which generates a task embedding based on past experience. Meanwhile, we learn a policy which is shared across all tasks and conditioned on task embeddings. Empirical results on four simulated tasks demonstrate that our method has better learning capacity on both training and novel tasks and attains up to 3 to 4 times higher returns compared to baselines.

Motivation & Objective

  • Address the limitation of existing meta-RL methods in explicitly modeling both task individuality (specificity) and commonness (shared structure).
  • Improve data efficiency and generalization in meta-RL by decoupling task-specific adaptation from shared policy learning.
  • Enable fast adaptation to novel tasks by learning a task encoder that generates task embeddings from past experience.
  • Enhance robustness to distribution shift by training a policy that generalizes across diverse task distributions using shared parameters.

Proposed method

  • Introduce a task encoder network that generates a latent task embedding from past experience stored in an episode buffer.
  • Train a learnable SGD optimizer as a meta-learner to rapidly adapt the task encoder for each task based on its experience.
  • Use a single shared policy across all tasks, conditioned on both observations and task embeddings to produce actions.
  • Optimize the meta-learner via meta-updates using a loss that encourages fast adaptation of the task encoder and high cumulative returns.
  • Apply adaptive per-parameter learning rates in the meta-learner’s optimizer to improve convergence and stability.
  • Regularize the task encoder adaptation process using a penalty term to prevent overfitting and improve generalization.

Experimental results

Research questions

  • RQ1Can explicitly modeling task individuality through a meta-learned task encoder improve meta-RL performance on both training and novel tasks?
  • RQ2How does separating task-specific adaptation (via task encoder) from shared policy learning affect generalization to out-of-distribution tasks?
  • RQ3Does the use of a shared policy conditioned on task embeddings lead to better data efficiency and faster adaptation than task-specific policies?
  • RQ4To what extent does the episode buffer of past experiences improve the quality of task embeddings compared to using all experience?
  • RQ5How do adaptive learning rates and regularization in the meta-optimization process affect performance and stability?

Key findings

  • TESP achieves up to 3–4 times higher cumulative returns than baselines on both training and novel tasks, demonstrating superior learning capacity.
  • On out-of-distribution tasks (D''), TESP maintains strong performance, while baselines overfit and degrade significantly, showing improved generalization.
  • The gap in performance between training and out-of-distribution tasks is smaller for TESP than for baselines, indicating better robustness.
  • Ablation studies confirm that the shared policy and regularization term are critical for generalization, especially on unseen task distributions.
  • The use of a meta-learned SGD optimizer with adaptive learning rates leads to more stable convergence and lower variance across random seeds.
  • Removing the episode buffer or using all experience (instead of top-M episodes) degrades performance, showing the importance of selective experience in task embedding learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.