Abstract
Meta-reinforcement learning (meta-RL) aims to quickly solve new RL tasks by leveraging knowledge from prior tasks. Previous studies often assume a single-mode homogeneous task distribution, ignoring possible structured heterogeneity among tasks. Such an oversight can hamper effective exploration and adaptation, especially with limited samples. In this work, we harness the structured heterogeneity among tasks via clustering to improve meta-RL, which facilitates knowledge sharing at the cluster level. To facilitate exploration, we also develop a dedicated cluster-level exploratory policy to discover task clusters via divide-and-conquer. The knowledge from the discovered clusters helps to narrow the search space of task-specific policy learning, leading to more sample-efficient policy adaptation. We evaluate the proposed method on environments with parametric clusters (e.g., rewards and state dynamics in the MuJoCo suite) and non-parametric clusters (e.g., control skills in the Meta-World suite). The results demonstrate strong advantages of our solution against a set of representative meta-RL methods.
Introduction
Meta-reinforcement learning (meta-RL) is designed to enable agents to adapt rapidly to novel tasks by drawing on experience from a distribution of related tasks. However, a significant limitation of current meta-RL frameworks is the assumption of a "unimodal" task distribution, where all tasks are treated as relatively homogeneous.
In practice, tasks often exhibit structured heterogeneity. For instance, in a navigation scenario, goals might be clustered in specific regions of a map rather than being uniformly distributed. Treating such diverse tasks as a single distribution forces an agent to search the entire task space during adaptation, leading to a "task inference bottleneck." This paper introduces MILET (Meta reInforcement Learning via Exploratory Task clusTering), which explicitly models these latent clusters to improve exploration and adaptation efficiency.
Methodology: The MILET Framework
MILET utilizes a "divide-and-conquer" approach to task inference, structured around three primary components:
- Cluster-Based Variational Inference (CBVI): Unlike standard variational autoencoders (VAEs) that map trajectories to a single latent embedding, MILET employs a hierarchical latent space. It first infers a discrete cluster assignment ($c$) and subsequently a task-specific latent variable ($z$) conditioned on that cluster.
- Stacked GRU Encoder: The architecture uses two Gated Recurrent Units (GRUs) to support this hierarchy. The C-GRU captures coarse, cluster-level patterns, while the T-GRU focuses on fine-grained, task-specific details.
- Dual-Policy Architecture: Adaptation is split into two phases. In the first episode, a dedicated exploration policy ($\pi_\psi$) is deployed to reduce uncertainty about the task cluster. This policy is guided by intrinsic rewards that favor actions leading to consistent cluster inference. Once the cluster is identified, an exploitation policy ($\pi_\phi$) takes over to solve the specific task parameters.
Experimental Evaluation
The researchers evaluated MILET on two major benchmarks representing different types of task clustering:
- MuJoCo (Parametric Clusters): Modified environments such as Ant-Goal and Humanoid-Dir (clustered rewards) and Hopper/Walker-Rand-Params (clustered physical dynamics like mass and friction).
- Meta-World (Non-parametric Clusters): A suite of robotic manipulation tasks (e.g., pushing, pulling) that share motor skills but require distinct strategies based on the object type.
Key Results and Insights
Superior Adaptation Performance
In MuJoCo environments, MILET significantly outperformed representative baselines including RL$^2$, PEARL, and VariBAD. A critical observation is that by the second episode (the exploitation phase), MILET's performance approached that of an "Oracle" model—one pre-informed of the ground-truth clusters. This suggests that the exploratory policy effectively identifies the task cluster within a single trial.
Purposeful Exploration
Qualitative analysis of agent traces reveals that MILET’s exploration policy performs active "probing." While baseline models like VariBAD often exhibit random-walk behavior in early stages, MILET's traces show structured search patterns (e.g., spirals) designed to elicit information about the cluster. This coarse-to-fine inference—identifying the general task type before the specific parameters—dramatically narrows the search space.
Robustness to Structure
MILET also demonstrated robustness in environments without explicit cluster structures (e.g., Ant-U). In these scenarios, the model automatically segmented the continuous task space into virtual clusters, allowing for localized knowledge sharing that still outperformed global unimodal models.
Conclusion and Future Work
MILET addresses the task inference bottleneck by leveraging structured heterogeneity through hierarchical clustering and dedicated exploration. While the current implementation requires a pre-defined cluster count ($C$), future work aims to incorporate non-parametric priors, such as the Dirichlet Process, to allow the model to discover the optimal number of clusters autonomously. Additionally, combining MILET with skill-based RL could further enhance its ability to handle complex, multi-modal task distributions.
Summary updated