Learning dexterous in-hand manipulation

Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Józefowicz, Bob McGrew, Jakub W. Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, Jonas Schneider, Szymon Sidor, Josh Tobin, Peter Welinder, Lilian Weng, Wojciech ZarembaInt. J. Robotics Res 2018

Abstract

We use reinforcement learning (RL) to learn dexterous in-hand manipulation policies which can perform vision-based object reorientation on a physical Shadow Dexterous Hand. The training is performed in a simulated environment in which we randomize many of the physical properties of the system like friction coefficients and an object's appearance. Our policies transfer to the physical robot despite being trained entirely in simulation. Our method does not rely on any human demonstrations, but many behaviors found in human manipulation emerge naturally, including finger gaiting, multi-finger coordination, and the controlled use of gravity. Our results were obtained using the same distributed RL system that was used to train OpenAI Five. Video: https://youtu.be/jwSbzNHGflM

Introduction: The Challenge of Dexterity

While humans manipulate objects with ease, giving robots "human-level" dexterity remains a grand challenge. Most robots are designed for specific tasks in constrained environments. High-degree-of-freedom (DoF) end-effectors like the five-fingered Shadow Hand are notoriously difficult to control due to complex contact dynamics and the "reality gap"—the discrepancy between physics simulations and the messy real world.

The Shadow Hand reorienting a block through a sequence of complex finger movements.

Training directly on physical robots is too slow and risks hardware damage, while training in simulation often fails to transfer because simulators cannot perfectly model friction, motor backlash, or sensor noise. This work tackles the challenge of sim-to-real transfer for high-dimensional, contact-rich manipulation.

Methods

The researchers employed a multi-pronged approach to bridge the gap between simulation and reality, focusing on robustness through randomization and memory.

The system architecture consists of a control policy trained via RL and a vision-based pose estimator.
  • Reinforcement Learning (RL): Proximal Policy Optimization (PPO), a distributed RL algorithm, was used to train the control policy.
  • Domain Randomization: Instead of building a perfect simulator, they randomized nearly every physical parameter—friction, mass, joint damping, and gravity. This forced the policy to be robust to a wide distribution of environments.
  • Memory-Augmented Policies: The policy uses an LSTM (Long Short-Term Memory) network. This allows the robot to "sense" the specific physics of its current environment (e.g., identifying a slippery block) by observing how the object reacts to its movements over time.
  • Asymmetric Actor-Critic: During training, the "critic" had access to privileged simulator information (like exact object velocities) that the "actor" (the policy) did not. This simplified learning while ensuring the final policy could run using only available sensors.
  • Vision-Based Pose Estimation: A separate Convolutional Neural Network (CNN) was trained on synthetic images rendered in Unity to predict the object's position and orientation from three camera feeds.

Data Generation and Training

The project did not rely on external datasets, instead generating its own data through massive-scale simulation:

  • Simulated Experience: The system used 384 worker machines (6,144 CPU cores) to generate approximately 2 years of simulated experience every hour.
  • Synthetic Vision Data: The pose estimator was trained on roughly one million rendered scenes with randomized lighting, textures, and camera positions.
  • Physical Evaluation: The system was tested on a physical Shadow Hand using a cube and an octagonal prism.

Key Insights

  • Emergent Human-Like Behavior: The robot "discovered" human manipulation strategies without human demonstrations. The policy learned finger gaiting (moving fingers one by one to rotate an object), multi-finger coordination, and the controlled use of gravity.
  • Adaptation via Memory: The LSTM acted as a real-time system identifier. After just 5 seconds of interaction, the LSTM's hidden state could predict whether a block was larger or smaller than average with 80% accuracy.
  • Discretization Benefits: Using a discrete action space (dividing joint movements into 11 bins) performed significantly better than continuous control, likely simplifying the probability distributions the agent had to learn.
  • Sim-to-Real Vision: The vision model, trained only on synthetic images, transferred to the real world with low error (approx. 5 degrees of rotation error).

Results and Performance

Performance was measured by the number of consecutive successful rotations before a drop or timeout.

Task Median Successes (Sim) Median Successes (Real)
Block (State-based) 50 13
Block (Locked Wrist) 50 28.5
Block (Vision-based) 33 11.5
Octagonal Prism 30 5

While a performance gap remains between simulation and reality, these results represent a significant leap in dexterous manipulation, achieving dozens of successful rotations on a platform previously considered nearly impossible to control via traditional engineering.

Limitations and Future Work

Hardware fragility remains a major bottleneck, as the Shadow Hand required frequent repairs. The policy also struggled with specific orientations, such as when the wrist was tilted downward. Furthermore, while the system handled blocks and prisms, it failed on spheres, likely due to insufficient randomization of rolling physics. Future work aims to train a single, unified policy for a vast library of objects and further narrow the reality gap.

Summary updated

BibTeX
@article{andrychowicz2018learning,
  author = {Marcin Andrychowicz and Bowen Baker and Maciek Chociej and Rafal Józefowicz and Bob McGrew and Jakub W. Pachocki and Arthur Petron and Matthias Plappert and Glenn Powell and Alex Ray and Jonas Schneider and Szymon Sidor and Josh Tobin and Peter Welinder and Lilian Weng and Wojciech Zaremba},
  title = {{Learning dexterous in-hand manipulation}},
  journal = {Int. J. Robotics Res.},
  year = {2018},
  url = {https://openreview.net/forum?id=O12BDQUaJa},
}
Figure