Abstract
Simulation-to-real transfer is an important strategy for making reinforcement learning practical with real robots. Successful sim-to-real transfer systems have difficulty producing policies which generalize across tasks, despite training for thousands of hours equivalent real robot time. To address this shortcoming, we present a novel approach to efficiently learning new robotic skills directly on a real robot, based on model-predictive control (MPC) and an algorithm for learning task representations. In short, we show how to reuse the simulation from the pre-training step of sim-to-real methods as a tool for foresight, allowing the sim-to-real policy adapt to unseen tasks. Rather than end-to-end learning policies for single tasks and attempting to transfer them, we first use simulation to simultaneously learn (1) a continuous parameterization (i.e. a skill embedding or latent) of task-appropriate primitive skills, and (2) a single policy for these skills which is conditioned on this representation. We then directly transfer our multi-skill policy to a real robot, and actuate the robot by choosing sequences of skill latents which actuate the policy, with each latent corresponding to a pre-learned primitive skill controller. We complete unseen tasks by choosing new sequences of skill latents to control the robot using MPC, where our MPC model is composed of the pre-trained skill policy executed in the simulation environment, run in parallel with the real robot.
Introduction
Reinforcement learning (RL) has demonstrated remarkable success in solving specific tasks within simulated environments. However, two significant hurdles remain for practical robotics: the "reality gap" in Sim-to-Real transfer and the lack of generalization to novel tasks. Traditional sim-to-real methods often require extensive simulated data and are brittle when faced with real-world variations or multi-stage tasks with sparse rewards.
This research addresses these challenges by proposing a framework that treats simulation not just as a training ground, but as an online "foresight" tool. By composing primitive skills learned in simulation on the fly, robots can perform complex, unseen tasks in the real world without additional training.
Methodology: Latent Skill Composition
The proposed framework operates in two distinct phases: offline learning in simulation and online zero-shot adaptation in the real world.
1. Learning the Skill Embedding
In the simulation phase, a multi-task policy $\pi(a|s, z)$ is trained, where $z$ is a low-dimensional latent vector representing a specific skill. Using variational inference, the researchers ensure the latent space is both high-entropy (capturing diverse skill variations) and identifiable (allowing trajectories to be mapped back to specific latents). Proximal Policy Optimization (PPO) is employed within the MuJoCo physics engine to develop this library of primitive skills.
2. Zero-Shot Adaptation via MPC
During real-world execution, the robot's policy remains frozen. To solve a new task, a "composer" algorithm samples candidate skill latents ($z$ vectors). These candidates are evaluated by running them through the simulator in parallel with the real robot's state. This process, Model Predictive Control (MPC) in the latent skill space, identifies the sequence of skills that maximizes the predicted reward for the new task.
Experimental Evaluation
The method was evaluated using a 7-DOF Sawyer robot arm in both MuJoCo simulation and a physical laboratory setting.
Task Setup
- Training: The robot was trained on primitive tasks: reaching eight goal positions in 3D space and pushing a box in four cardinal directions.
- Unseen Evaluation Tasks: The robot was tasked with drawing geometric shapes (triangles and rectangles) in 3D space and navigating a box through complex, multi-point sequential paths.
Results and Discussion
The system achieved successful zero-shot execution on all evaluation tasks. Notably, the Sawyer robot completed 3D drawing tasks in approximately two minutes of real-time execution. In box-pushing experiments, the robot successfully composed sequences of 3 to 8 different latent skills to follow complex trajectories.
A key insight is the efficiency gained by planning in the "skill space" rather than the raw joint-torque space. This abstraction makes MPC computationally tractable for real-time applications. Furthermore, the system demonstrated reactive robustness; by re-planning at every step, the robot could correct for physical errors, such as a box slipping, by selecting compensatory skills in the next cycle.
Limitations
The performance is inherently tied to the MPC horizon; a horizon that is too short lacks foresight, while one that is too long may over-commit to suboptimal skills. Additionally, the robot is limited by its "vocabulary" of learned skills; it cannot perform actions fundamentally different from those in its training set. Future work involves learning the high-level composer itself to further enhance planning speed and complexity.
Summary updated