Abstract
Meta-Reinforcement Learning (meta-RL) aims to develop agents capable of rapid adaptation to novel tasks. However, the high sample complexity of these methods remains a significant barrier to practical deployment. This paper investigates the impact of task selection on training efficiency, proposing a coreset-based approach for Model-Agnostic Meta-Reinforcement Learning (MAML-RL). By identifying a diverse, weighted subset of informative tasks through submodular optimization, the proposed method achieves significant theoretical and empirical reductions in sample complexity, demonstrating up to a 4x speedup in complex continuous control environments.
1. Introduction
Meta-Reinforcement Learning represents a paradigm shift in artificial intelligence, moving from learning specific tasks to "learning to learn." While promising, meta-RL is notoriously sample-hungry, often requiring millions of interactions with various environments to achieve generalization. Traditional approaches typically treat all training tasks as equally important, sampling them uniformly from a task distribution. This paper argues that this uniform sampling is inefficient due to task redundancy. By focusing training on a carefully selected "coreset" of tasks, computational resources can be directed toward the most informative experiences, significantly accelerating the convergence of the meta-policy.
2. The Challenge of Task Redundancy
In many meta-RL scenarios, the training pool contains a high degree of similarity between tasks. For instance, a robot learning to navigate different terrains may encounter hundreds of variations that differ only slightly in friction or slope. Training on every single variation is computationally wasteful. Current meta-RL algorithms struggle with this "data glut," leading to slow convergence and high variance in gradient estimates. The core challenge lies in identifying which tasks are representative of the entire distribution without having prior knowledge of the underlying task structure or access to perfect gradients.
3. Methodology: Coreset Selection for MAML-RL
The researchers introduce a novel framework for task selection that acts as a pre-processing step for MAML-RL. The methodology consists of four primary stages:
3.1 Zeroth-Order Gradient Estimation
Reinforcement Learning environments are often "black boxes" where direct gradient computation is impossible. To overcome this, the authors utilize a derivative-free, two-point estimation method (ZO2P). This allows the algorithm to approximate how each task influences the policy parameters, providing a basis for comparison between tasks.
3.2 Submodular Optimization and Facility Location
Task selection is framed as a "facility location" problem. The goal is to select a subset of tasks $S$ from the original pool $M$ such that every task in $M$ is "close" to at least one task in $S$ within the gradient space. This ensures that the selected coreset maintains the diversity of the original task distribution.
3.3 Greedy Selection and Weighting
A greedy algorithm is employed to iteratively select the most diverse tasks until a target coreset size $L$ is reached. Crucially, the algorithm assigns weights to these selected tasks. These weights reflect the number of redundant tasks from the original pool that each coreset task represents, ensuring the meta-gradient remains an unbiased estimator of the full task distribution gradient.
3.4 Meta-Training
The final meta-policy is trained using standard MAML-RL, but only utilizing the small, weighted coreset rather than the full task pool.
4. Experimental Evaluation
The approach was validated across both theoretical baselines and complex continuous control benchmarks:
- MuJoCo Benchmarks: Standard tasks including Cartpole, Hopper, and Walker2D were modified to create hundreds of task variations by altering physical properties like mass, friction, and limb lengths.
- Linear Quadratic Regulator (LQR): A classic control theory baseline was used to provide rigorous mathematical validation for the "MAML-LQR" case study.
4.1 Key Insights
- Gradient-Based Diversity: The research highlights that task selection should be driven by diversity in the gradient space rather than reward space. If two tasks suggest similar parameter updates, they are redundant.
- Theoretical Speedup: The authors prove that for general non-concave rewards, the method reduces the samples needed for a stationary solution by a factor of $O(1/\epsilon)$. For LQR, the reduction is proportional to $O(\log(1/\epsilon))$.
5. Results and Discussion
The empirical results demonstrate substantial improvements over vanilla MAML:
- Efficiency Gains: In the Walker2D environment, the coreset-based approach reached high reward thresholds approximately four times faster than standard MAML.
- Performance Ceiling: In the Hopper environment, the coreset method achieved a reward of 120 by iteration 60, whereas vanilla MAML failed to reach a reward of 90 even after 200 iterations.
- Complexity Scaling: The benefits of task selection were most pronounced in higher-dimensional environments (e.g., Walker2D), suggesting that as task complexity increases, the value of identifying a representative coreset grows.
6. Limitations and Future Work
While effective, the method requires the user to pre-specify the coreset size $L$. If $L$ is set too low for a highly heterogeneous task set, the algorithm may fail to capture the necessary diversity for convergence. Additionally, the current selection process is static. Future research could explore dynamic coreset selection or integrated clustering layers to adapt to task heterogeneity during the training process itself. Although the initial gradient approximation introduces some overhead, the overall reduction in training samples provides a significant net gain in computational efficiency.
Summary updated