General Robot Dynamics Learning and Gen2Real

Dengpeng Xing, Jiale Li, Yiming Yang, Bo XuarXiv 2021

Introduction

Acquiring accurate dynamics models—the mathematical relationship between forces and resulting motion—is a cornerstone of robot control and reinforcement learning. Traditionally, this is a "one-off" process: if you get a new robot or change a joint on an old one, you must restart the entire pipeline of system identification, data generation, and network training. While "Domain Randomization" helps bridge the Sim2Real gap, it typically focuses on a specific robot instance. This paper addresses the "tediousness of iterative sampling" by creating a single model that understands the "essence" of dynamics across different robot dimensions, topologies, and physical parameters.

Methodology: General Robot Dynamics (GRD)

The core innovation is treating robot dynamics as a sequence modeling problem, similar to Natural Language Processing. The authors adapt a Generative Pre-trained Transformer (GPT) structure to handle continuous robot states.

Architecture and Randomization

The modified GPT architecture replaces the standard embedding layer with a fully connected layer to process continuous vectors and removes positional encodings, as motion sequences inherently contain temporal information. To achieve true generality, the training data randomizes three key aspects: model dimensions (1-6 links), topology (joint axes), and dynamics parameters (mass, friction, inertia).

The GRD neural network architecture and the multi-faceted randomization strategy used for dataset generation.

Inverse Dynamics and Error Correction

Beyond predicting the next state (forward dynamics), the framework incorporates general inverse dynamics models to predict the torque required for a desired state. The authors propose "Left" and "Right" inverse configurations to mitigate inherent errors in the general forward model.

Overview of inverse dynamic network configurations: (a) General inverse, (b) Right inverse, and (c) Left inverse of general dynamics.

Gen2Real Transfer

The "Gen2Real" paradigm allows for direct transfer from the general model to a specific physical robot. This is achieved by fine-tuning only the last layer of the massive network (up to 200 million parameters) using a small amount of real-world "motor bubbling" data. This significantly lowers the barrier to entry for robot learning, as users do not need to build high-fidelity simulators for every new hardware configuration.

Datasets and Evaluation

The authors generated a massive synthetic dataset of 20 million trajectories, each with 50 state points, covering robots with 1 to 6 degrees of freedom (DoF). Physical constraints were added to ensure the data remained physically plausible (e.g., realistic material densities). Testing was performed on simulated 2-link and 3-link robots, as well as a physical UR5e industrial robot.

Key Results

  • Accuracy: The GRD model achieved a Mean Square Error (RMSE) of 0.17 in simulation, outperforming LSTMs (0.5) and linear networks (1.0).
  • Synergy: Combining the forward model with a "Left Inverse" model further reduced RMSE to 0.076.
  • Real-World Performance: On a physical UR5e robot, Gen2Real achieved a mean error of 0.018, outperforming traditional transfer methods like Spe2Real (0.036).
  • Zero-Shot Generalization: The model demonstrated a remarkable ability to generalize to unseen robot configurations, suggesting it learns fundamental physics rather than just over-fitting.

Discussion and Future Work

While the results are promising, the computational cost of 200-million-parameter models is high. Future work will explore model pruning for real-time deployment. Additionally, while the current focus is on serial manipulators, the framework could potentially scale to soft robots, parallel robots, or high-DoF systems like humanoids.

Summary updated

BibTeX
@misc{xing2021general,
  author = {Dengpeng Xing and Jiale Li and Yiming Yang and Bo Xu},
  title = {{General Robot Dynamics Learning and Gen2Real}},
  year = {2021},
  eprint = {2104.02402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.02402},
}
Figure