On the Effectiveness of Fine-tuning Versus Meta-reinforcement Learning

Mandi Zhao, Pieter Abbeel, Stephen James · DOI

Abstract

Meta-reinforcement learning (meta-RL) is frequently proposed as the primary solution for enabling reinforcement learning agents to adapt rapidly to new environments. However, the complexity of these algorithms often raises questions regarding their necessity compared to simpler alternatives. This paper presents a rigorous comparison between three major meta-RL paradigms—gradient-based, context-based, and recurrence-based—and a straightforward baseline of multi-task pretraining followed by standard fine-tuning. Evaluating these methods across vision-based benchmarks such as Procgen, RLBench, and Atari, the study reveals that simple fine-tuning often matches or exceeds the performance of sophisticated meta-RL methods, particularly when adapting to truly novel tasks rather than minor variations of training data.

Introduction: The Challenge of Adaptation

Reinforcement learning (RL) agents are notoriously brittle, often requiring millions of interactions to master a single task and failing to generalize to even slight environmental changes. To address this, the research community has focused on Meta-Reinforcement Learning (meta-RL), which aims to "learn to learn" by extracting commonalities across tasks to enable few-shot adaptation.

However, a critical flaw exists in current meta-RL evaluation: most benchmarks focus on "variation adaptation" (e.g., changing the speed or direction of a robot) rather than "task adaptation" (e.g., moving from picking up an object to pushing a button). This paper investigates whether the high architectural complexity of meta-RL is justified when agents are faced with these more distinct and diverse task distributions.

Methodologies and Paradigms

The researchers conducted a head-to-head comparison between three dominant meta-RL paradigms and a simple baseline:

  1. Gradient-based (Reptile): This method seeks a parameter initialization that can be quickly updated to a new task via a few steps of gradient descent.
  2. Context-based (PEARL): This approach utilizes a separate encoder to infer task-specific information from recent experience, conditioning the policy on this latent "context."
  3. Recurrence-based ($RL^2$): This paradigm uses a Recurrent Neural Network (LSTM) to internalize the reinforcement learning process within its hidden states, effectively learning the update rule itself.
  4. The Baseline (Multi-task Pretraining + Fine-tuning): A single policy is trained on multiple tasks simultaneously. When presented with a new task, the agent uses standard RL algorithms (such as PPO or SAC) to update the pretrained weights.

The study specifically focuses on vision-based RL, where agents must learn directly from pixel data, representing a significantly higher level of difficulty than traditional state-based meta-RL.

Experimental Framework

The methods were evaluated across three diverse benchmarks designed to test different aspects of generalization:

  • Procgen (Coinrun): A procedurally generated environment where agents were trained on up to 10,000 levels and tested on 20 completely unseen layouts.
  • RLBench: A robotic manipulation environment with sparse rewards. The authors used a cross-validation approach, training on 10 distinct tasks (e.g., "pick up cup") and testing on an 11th held-out task (e.g., "push button").
  • Atari (ALE): A test of cross-game adaptation, training on a set of classic games (e.g., Alien, Seaquest) and testing on others (e.g., Pong, Ms. Pacman).

Key Insights and Results

The "Variation" Trap

The study found that meta-RL algorithms often overfit to small physical changes. When the visual scene and the goal change entirely—true Task Adaptation—the specialized mechanisms of meta-RL frequently break down. For instance, in Procgen, fine-tuning achieved the highest performance across the board. Increasing the number of training levels significantly boosted fine-tuning performance but provided diminishing returns for $RL^2$.

Failure of Context Encoders

Algorithms like PEARL rely heavily on context encoders to identify the current task. The authors observed that when tasks are visually disjoint, these encoders fail to provide a useful signal for unseen tasks, causing the agent's learning to stall. In contrast, the multi-task fine-tuning approach remained robust, as it does not rely on explicit task identification to begin adapting.

Overcoming Sparse Rewards

In RLBench, where rewards are rare and difficult to find, multi-task pretraining provided the agent with enough "intuition" about object interaction to solve new tasks with zero human demonstrations. In this scenario, fine-tuning matched or outperformed Reptile and significantly beat PEARL, while training from scratch failed entirely.

The Atari Benchmark

Atari remains a significant challenge for transfer learning. While fine-tuning showed advantages in specific games like Assault, the games are often too distinct for any current method to achieve perfect knowledge transfer. Nevertheless, fine-tuning remained competitive with, and often superior to, the more complex meta-RL alternatives.

Conclusion

The core takeaway for the reinforcement learning community is a call for more rigorous benchmarking. The results suggest that for many practical applications, the simplest approach—multi-task pretraining followed by fine-tuning—is the most effective and sample-efficient. To truly advance meta-RL, researchers must move beyond simple variations and test their algorithms against diverse, challenging benchmarks where simple fine-tuning is used as a mandatory baseline.

Summary updated

BibTeX
@inproceedings{zhao2022effectiveness,
  author = {Mandi Zhao and Pieter Abbeel and Stephen James},
  title = {{On the Effectiveness of Fine-tuning Versus Meta-reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=mux7gn3g_3},
}
Figure