[Paper Review] Linear Representation Meta-Reinforcement Learning for Instant Adaptation
FLAP introduces a meta-reinforcement learning method that learns a shared linear policy representation and uses a feed-forward adapter network to instantly predict task-specific policy weights, enabling up to 8X faster adaptation and double the average return on out-of-distribution tasks compared to prior methods like MAML and PEARL.
This paper introduces Fast Linearized Adaptive Policy (FLAP), a new meta-reinforcement learning (meta-RL) method that is able to extrapolate well to out-of-distribution tasks without the need to reuse data from training, and adapt almost instantaneously with the need of only a few samples during testing. FLAP builds upon the idea of learning a shared linear representation of the policy so that when adapting to a new task, it suffices to predict a set of linear weights. A separate adapter network is trained simultaneously with the policy such that during adaptation, we can directly use the adapter network to predict these linear weights instead of updating a meta-policy via gradient descent, such as in prior meta-RL methods like MAML, to obtain the new policy. The application of the separate feed-forward network not only speeds up the adaptation run-time significantly, but also generalizes extremely well to very different tasks that prior Meta-RL methods fail to generalize to. Experiments on standard continuous-control meta-RL benchmarks show FLAP presenting significantly stronger performance on out-of-distribution tasks with up to double the average return and up to 8X faster adaptation run-time speeds when compared to prior methods.
Motivation & Objective
- Address the limitation of existing meta-RL methods in adapting quickly to out-of-distribution tasks with high computational cost during adaptation.
- Reduce adaptation time in real-world applications like robotics by replacing gradient-based updates with direct prediction of policy weights.
- Improve generalization to unseen tasks by enabling diverse policy outputs through weight prediction rather than gradient-based fine-tuning.
- Achieve high sample efficiency during adaptation by leveraging a pre-trained adapter network that predicts optimal policy weights from minimal interaction data.
Proposed method
- Learn a shared linear representation of the policy network across multiple training tasks, parameterized as π_i = φ · w_i, where φ is the shared representation and w_i are task-specific weights.
- Train a separate feed-forward adapter network in a supervised manner to predict the task-specific weights w_i based on a single SARS tuple from the new task.
- During adaptation, fix the shared representation φ and use the adapter network to directly predict w_test for the new task, bypassing gradient updates.
- Use off-policy actor-critic training to optimize the shared policy representation and the adapter network simultaneously.
- Enable fast inference by replacing iterative gradient updates with a single forward pass through the adapter network.
- Evaluate generalization by testing on tasks significantly different from training tasks, measuring both adaptation speed and return performance.
Experimental results
Research questions
- RQ1Can a meta-RL method achieve fast adaptation without relying on gradient-based updates during inference?
- RQ2Does predicting task-specific policy weights via a learned adapter network improve generalization to out-of-distribution tasks compared to gradient-based or context-encoding methods?
- RQ3How does the use of a single SARS tuple as input to the adapter network affect adaptation performance and stability?
- RQ4Can a linear policy representation balance expressiveness and convergence stability across diverse tasks?
- RQ5To what extent does the adapter network’s ability to generalize depend on the structure of the shared policy representation?
Key findings
- FLAP achieves up to 8X faster adaptation run-time compared to prior meta-RL methods, including MAML and PEARL, due to direct prediction instead of gradient updates.
- On out-of-distribution tasks, FLAP achieves up to double the average return compared to state-of-the-art methods, demonstrating superior generalization.
- The adapter network enables strong performance with only a few environment interactions during adaptation, reducing sample complexity significantly.
- The method generalizes well even when the new task is very different from training tasks, unlike gradient-based methods that produce similar policies across tasks.
- Using a sequence of SARS tuples as input to the adapter network reduces variance and slightly improves performance on sparse-reward tasks, though at a small cost in speed.
- The adapter network converges stably and quickly during training, indicating reliable and efficient weight prediction for new tasks.
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.