[Paper Review] Model-based Adversarial Meta-Reinforcement Learning
This paper proposes Model-based Adversarial Meta-Reinforcement Learning (AdMRL), a minimax framework that trains a shared dynamics model to minimize the worst-case sub-optimality gap across all tasks in a parameterized task family. By alternating between model learning and adversarial task search using implicit gradient estimation via conjugate gradients and REINFORCE, AdMRL achieves superior worst-case performance, generalization to out-of-distribution tasks, and sample efficiency over state-of-the-art meta-RL methods.
Meta-reinforcement learning (meta-RL) aims to learn from multiple training tasks the ability to adapt efficiently to unseen test tasks. Despite the success, existing meta-RL algorithms are known to be sensitive to the task distribution shift. When the test task distribution is different from the training task distribution, the performance may degrade significantly. To address this issue, this paper proposes Model-based Adversarial Meta-Reinforcement Learning (AdMRL), where we aim to minimize the worst-case sub-optimality gap -- the difference between the optimal return and the return that the algorithm achieves after adaptation -- across all tasks in a family of tasks, with a model-based approach. We propose a minimax objective and optimize it by alternating between learning the dynamics model on a fixed task and finding the adversarial task for the current model -- the task for which the policy induced by the model is maximally suboptimal. Assuming the family of tasks is parameterized, we derive a formula for the gradient of the suboptimality with respect to the task parameters via the implicit function theorem, and show how the gradient estimator can be efficiently implemented by the conjugate gradient method and a novel use of the REINFORCE estimator. We evaluate our approach on several continuous control benchmarks and demonstrate its efficacy in the worst-case performance over all tasks, the generalization power to out-of-distribution tasks, and in training and test time sample efficiency, over existing state-of-the-art meta-RL algorithms.
Motivation & Objective
- Address the distribution shift problem in meta-RL, where test tasks differ from training distributions, causing performance degradation.
- Formulate meta-RL as a minimax problem to minimize the worst-case sub-optimality gap across all tasks in a parameterized task family.
- Develop a model-based approach that learns a shared dynamics model to improve sample efficiency during adaptation.
- Enable efficient gradient computation through the implicit function theorem, allowing effective optimization over task parameters.
- Improve generalization to out-of-distribution tasks by adversarially selecting hard tasks during meta-training.
Proposed method
- Formulate the problem as a minimax objective: minimize the worst-case sub-optimality gap over task parameters, with the model parameters as the minimizer.
- Use a model-based approach where a shared dynamics model is trained on a fixed task and used to adapt policies during test-time inference.
- Alternate between updating the dynamics model and finding the adversarial task that maximizes the current policy’s sub-optimality gap.
- Derive the gradient of the sub-optimality gap w.r.t. task parameters using the implicit function theorem, enabling backpropagation through the adaptation process.
- Implement the gradient estimator efficiently using conjugate gradient for Hessian-vector products and a novel REINFORCE-based estimator for policy gradients.
- Optimize the minimax objective via alternating optimization between model learning and adversarial task generation.
Experimental results
Research questions
- RQ1Can a minimax formulation improve worst-case performance in meta-RL under task distribution shift?
- RQ2How can adversarial task generation improve generalization to out-of-distribution tasks in meta-RL?
- RQ3Can model-based meta-RL with implicit gradient estimation achieve better sample efficiency and robustness than distributional approaches?
- RQ4What is the impact of high-dimensional task parameter spaces on the performance of standard meta-RL methods versus adversarial training?
- RQ5How does adversarial task selection compare to random sampling (uniform or Gaussian) in covering hard tasks during meta-training?
Key findings
- AdMRL achieves significantly lower worst-case sub-optimality gap than MB-Unif and MB-Gauss across all tasks, especially on boundary tasks in Ant2D and Ant3D environments.
- On out-of-distribution tasks in Ant2D with test tasks drawn from [-5,5]² while training on [-3,3]², AdMRL shows substantially lower sub-optimality gap than baselines.
- In high-dimensional tasks, AdMRL outperforms MB-Unif and MB-Gauss by efficiently identifying and learning from the hardest tasks, avoiding overfitting to central regions of the task space.
- Visualization shows AdMRL rapidly visits and learns from hard tasks on the boundary of the task space, unlike random sampling baselines which rarely reach these regions.
- The model learned by AdMRL exhibits lower prediction error on OOD tasks than MB-Unif and MB-Gauss, indicating improved dynamics generalization.
- AdMRL maintains strong performance across adaptation steps, with the worst-case sub-optimality gap decreasing faster and to a lower value than baselines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.