Introduction
Meta-Reinforcement Learning (Meta-RL) aims to develop agents capable of rapid adaptation to novel tasks by leveraging prior experience. While on-policy methods like MAML offer stability, they are often prohibitively data-intensive. Conversely, off-policy methods like PEARL improve sample efficiency but frequently suffer from "meta-overfitting"—a phenomenon where agents specialize in training distributions and fail to generalize during online exploration at test time.
A primary challenge in existing Meta-RL frameworks is the lack of distinction between exploration (identifying the task) and fulfillment (executing the task). Furthermore, many methods rely on simple averaging of transitions to infer task context, neglecting the complex relational dependencies between actions and outcomes.
The CASTER Framework
To address these limitations, we introduce CASTER (Context-Aware task inference with Self-supervised Task ExploRation). CASTER treats Meta-RL as a Partially Observable Markov Decision Process (POMDP) and decomposes the learning process into three specialized components: an Explorer, an Encoder, and an Actor.
1. Task-Exploration (The Explorer)
The Explorer is a dedicated policy designed to collect informative trajectories. Unlike standard policies that maximize environment rewards, the Explorer is driven by a curiosity-based reward derived from Bellman Residuals. This objective encourages the agent to seek out transitions that are most informative for task identification, effectively reducing task uncertainty.
2. Task-Inference (The Encoder)
The core of CASTER's reasoning capability lies in its context-aware task encoder. Instead of simple permutation-invariant averaging, CASTER utilizes a Graph Neural Network (GNN) to model the relationships between transitions in a set.
The GNN architecture allows the model to be both permutation-invariant and size-agnostic, enabling it to process varying numbers of exploration steps while capturing the "context" of the task more effectively than traditional MLPs.
3. Task-Fulfillment (The Actor)
The Actor policy receives the latent task representation from the Encoder and focuses solely on maximizing the environment's extrinsic reward. By disentangling exploration from fulfillment, CASTER ensures that the Actor can specialize in task execution without the burden of simultaneous task discovery.
Experimental Evaluation
CASTER was evaluated on several MuJoCo-based continuous control benchmarks, including Half-cheetah-velocity, Ant-goal, and Walker-random-params.
Key Results
- Efficiency and Performance: CASTER consistently outperformed baselines such as PEARL and ProMP. In the
walker-random-paramstask, CASTER achieved up to a 300% improvement in final performance. - Mitigating Meta-Overfitting: By maintaining a stochastic exploration policy and using a structured encoder, CASTER reduced the performance gap between offline training data and online test exploration by up to 75% compared to PEARL.
- Robust Adaptation: In navigation tasks like
Ant-goal, CASTER demonstrated a superior ability to search the environment broadly before converging on the target, whereas previous methods often narrowed their search too prematurely.
Conclusion
CASTER represents a significant step forward in off-policy Meta-RL by explicitly modeling task reasoning through context-aware GNNs and curiosity-driven exploration. While currently focused on locomotion tasks with structured variations, future work may extend this framework to higher-dimensional latent spaces and more complex, logical task structures.
Summary updated