Abstract
To equip robots with dexterous skills, an effective approach is to first transfer the desired skill via Learning from Demonstration (LfD), then let the robot improve it by self-exploration via Reinforcement Learning (RL). In this paper, we propose a novel LfD+RL framework, namely Adaptive Conditional Neural Movement Primitives (ACNMP), that allows efficient policy improvement in novel environments and effective skill transfer between different agents. This is achieved through exploiting the latent representation learned by the underlying Conditional Neural Process (CNP) model, and simultaneous training of the model with supervised learning (SL) for acquiring the demonstrated trajectories and via RL for new trajectory discovery. Through simulation experiments, we show that (i) ACNMP enables the system to extrapolate to situations where pure LfD fails; (ii) Simultaneous training of the system through SL and RL preserves the shape of demonstrations while adapting to novel situations due to the shared representations used by both learners; (iii) ACNMP enables order-of-magnitude sample-efficient RL in extrapolation of reaching tasks compared to the existing approaches; (iv) ACNMPs can be used to implement skill transfer between robots having different morphology, with competitive learning speeds and importantly with less number of assumptions compared to the state-of-the-art approaches. Finally, we show the real-world suitability of ACNMPs through real robot experiments that involve obstacle avoidance, pick and place and pouring actions.
Introduction
Equipping robots with dexterous skills typically follows a two-step "imitate then improve" pipeline. First, Learning from Demonstration (LfD) provides a baseline by mimicking a human expert. Second, Reinforcement Learning (RL) allows the robot to refine that skill through trial and error. However, this approach faces three major hurdles: extrapolation failure when targets move outside the training distribution, the "catastrophic forgetting" of demonstration style where RL solutions become jerky or robotic, and the morphology gap where skills learned by one robot cannot easily translate to another with different joint structures.
Adaptive Conditional Neural Movement Primitives (ACNMP) addresses these challenges by combining the stylistic consistency of human demonstrations with the adaptive flexibility of RL. By sharing a single latent representation between supervised learning and RL, ACNMP allows robots to adapt to novel environments with significantly higher sample efficiency than previous methods.
Methodology
The ACNMP framework is built upon Conditional Neural Processes (CNPs). Unlike standard neural networks that map a single input to a single output, CNPs learn to represent a whole distribution of trajectories. The core innovation of ACNMP is Representation Sharing through simultaneous training.
As shown in the framework overview, the model is trained using two loss functions concurrently. Supervised Learning (SL) ensures the robot maintains the "style" of the original expert demonstrations, while Policy Gradient RL pushes the robot to succeed in new, unseen scenarios. Because both the imitation and exploration components share the same internal features (latent space), the robot explores new movements using the established "vocabulary" of the demonstrations. For morphology transfer, separate ACNMPs are trained on a simple proxy task, forcing their latent representations to align and creating a "universal translator" for complex skills.
Experimental Evaluation and Results
The framework was evaluated across simulated 2D obstacle avoidance, planar arm pushing tasks, and real-world UR10 robot experiments including pick-and-place and marble pouring.
Key results include:
- Sample Efficiency: In reaching tasks, ACNMP achieved success in just 130 roll-outs, compared to 1,200 required by the state-of-the-art ProMP+RL approach. In wall-avoidance, it required 700k samples to reach performance levels that took competing methods 10 million samples.
- Generalization: In a marble-pouring task, the initial LfD model had an error of 600g when asked to extrapolate. After just 18 RL iterations, ACNMP reduced that error to 27g.
- Morphology Agnostic Transfer: The system successfully transferred a complex button-pressing skill between different robot arms with a 90% success rate in just 11 iterations.
Key Insights: Latent Space and Style
A critical insight of this work is that the latent space is the key to both transfer and style preservation. By treating style as a soft constraint through simultaneous training, the robot finds paths to the goal that look natural and human-like rather than just finding any mathematically valid path.
As visualized in the latent space plots, different trajectories cluster meaningfully. Because the RL agent starts with this rich representation of what a "good movement" looks like, it does not wander aimlessly during exploration; it simply tweaks the existing representation to fit the new goal.
Conclusion
ACNMP demonstrates that simultaneous supervised and reinforcement learning over a shared representation provides a robust path for robot skill acquisition. While the system requires more computational power than simpler primitives due to its neural core, it offers superior generalization and sample efficiency. Future work will explore contact-rich tasks involving complex friction and tactile feedback, as well as establishing formal mathematical guarantees for shape preservation during extreme extrapolation.
Summary updated