Introduction
Deep Reinforcement Learning (RL) has achieved remarkable success in complex domains but remains constrained by extreme sample inefficiency. Meta-Reinforcement Learning (Meta-RL) addresses this by enabling agents to adapt to new tasks using limited experience. However, real-world deployment faces two critical challenges: the high cost of even "few-shot" adaptation and the frequent absence of reliable reward signals during the testing phase. This paper introduces Unsupervised Meta-Testing with Conditional Neural Processes (UMCNP), a hybrid framework designed to overcome these hurdles by decoupling task inference from policy execution.
The UMCNP Framework
The core of UMCNP lies in its ability to adapt without reward signals by leveraging environment dynamics. The framework utilizes Conditional Neural Processes (CNPs) to model these dynamics. CNPs are particularly suited for meta-learning as they are permutation-invariant and can infer latent task representations from an arbitrary number of context samples.
Two-Phase Training and Adaptation
UMCNP operates in a hybrid manner, separating policy learning from dynamics modeling:
- Policy Training: The agent learns a base policy and a learned "pseudo-advantage" function (serving as a reward surrogate) using standard meta-RL on a distribution of tasks.
- Offline Dynamics Learning: Transitions from the first phase are reused to train the CNP model. The model learns to predict future states based on current states, actions, and a set of context transitions from the same task.
Unsupervised Meta-Testing via Hallucination
During meta-testing in a novel environment, the agent performs a single real-world rollout. This rollout is fed into the CNP to identify the specific dynamics of the new task. Instead of requiring more real-world interactions, the agent uses the CNP to "hallucinate" synthetic trajectories. The policy is then updated offline using these imagined samples and the pre-trained pseudo-advantage function, requiring zero additional real-world data or reward signals.
Experimental Evaluation
The researchers evaluated UMCNP across three benchmarks of increasing complexity:
- 2D Point Agent: Navigating a plane with unknown rotational force fields.
- Cartpole with Sensor Bias: Balancing a pole despite unknown drift in the angle sensor.
- Walker-2D: A bipedal robot with randomized physical parameters such as mass, friction, and damping.
Results and Discussion
UMCNP demonstrates significant improvements in sample efficiency and robustness. In the 2D Point Agent task, UMCNP matched the performance of an "Oracle" baseline (which has full access to rewards) using only one real-world rollout, whereas the Oracle required 25 rollouts to achieve similar results.
In more complex environments like Walker-2D, UMCNP outperformed existing context-aware models like NORML and CaDM, especially when data was scarce. Furthermore, the framework's ability to adapt to sensor biases in the Cartpole task without any reward signals during testing underscores its practical utility for real-world robotics where sensors may be unreliable.
Conclusion
UMCNP presents a powerful approach to hybrid meta-RL by effectively using CNPs to bridge the gap between simulation and the real world. By decoupling task inference and enabling adaptation through synthetic "hallucinations," it achieves state-of-the-art sample efficiency and operates successfully in reward-free testing environments. Future work will explore scaling this approach to high-dimensional visual inputs and physical robotic platforms.
Summary updated