NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Modelling Generalized Forces with Reinforcement Learning for Sim-to-Real Transfer

Rae Jeong, Jackie Kay, Francesco Romano, Thomas Lampe, Thomas Rothörl, Abbas Abdolmaleki, Tom Erez, Yuval Tassa, Francesco NoriarXiv 2019

Abstract

Sim-to-real transfer is a critical bottleneck in robotics, where policies trained in simulation often fail on physical hardware due to the "reality gap." This paper proposes a hybrid approach that combines classical physics engines with a learned Generalized Force Model (GFM). By framing model learning as a Reinforcement Learning problem, we can inject state-dependent forces into a simulator to match real-world dynamics using only minutes of physical data. Our results on a Sawyer robotic arm show that this method significantly improves success rates on complex manipulation tasks, outperforming standard simulation and curriculum-based baselines.

Introduction: The Reality Gap in Robotics

Training robotic agents directly in the real world is often impractical due to the time required, safety concerns, and the difficulty of resetting environments. While simulators like MuJoCo offer a safe and fast alternative, they suffer from the "reality gap"—discrepancies in friction, cable tensions, and sensor noise that prevent simulated success from translating to the real world.

Traditional approaches to this problem include System Identification (SysID) and Domain Randomization (DR). SysID attempts to tune physical parameters (e.g., mass, friction), but is limited by the simulator's underlying equations. If a phenomenon is not modeled, it cannot be tuned. DR trains policies across a wide range of randomized environments to ensure robustness, but often results in overly conservative behavior that performs suboptimally in the specific target environment.

Proposed Method: Generalized Force Models (GFM)

The core innovation of this work is the Generalized Force Model (GFM). Instead of learning a residual in the state space (which can lead to physically inconsistent trajectories), the GFM is a neural network $F_\phi(q, \nu)$ that outputs generalized forces. These forces are added directly to the simulator's equations of motion:

$$M(q)\dot{\nu} + c(q, \nu) = \tau + F_\phi(q, \nu)$$

This formulation ensures that the augmented simulation respects the robot's physical constraints, such as joint limits and kinematic links. Because robotic dynamics, particularly those involving contact, are often non-differentiable, the authors frame the training of the GFM as a Reinforcement Learning problem. In this setup, the GFM acts as the "agent," and its "reward" is defined by the similarity between the simulated trajectory and a small set of recorded real-world trajectories.

The GFM Pipeline

The proposed method follows a structured four-step process to bridge the reality gap:

The four-step pipeline for learning and deploying a Generalized Force Model (GFM).
  1. Initial Policy Training: A base policy is trained in a standard, unaugmented simulator.
  2. Real-World Data Collection: The base policy is deployed on the real robot for a few minutes to collect a small dataset of trajectories.
  3. GFM Training: The GFM is trained via RL to minimize the discrepancy between the simulator's predictions and the collected real-world data.
  4. Policy Retraining: The final task policy is retrained from scratch in the high-fidelity simulator augmented by the learned GFM.

Experimental Setup and Results

The method was evaluated using a Sawyer robotic arm on two nonprehensile manipulation tasks: 3D Position Matching (pushing a brick to a target) and 6D Pose Matching (sliding an object to a specific pose).

Comparison of real-world and simulated environments for manipulation tasks.

The GFM approach demonstrated substantial improvements over baselines. In the 3D Position Matching task, the success rate increased from 38% (original simulator) to 84% using a GFM ensemble. For the more challenging 6D Pose Matching task, success improved from 18% to 44%.

Method 3D Position Success 6D Pose Success
Original Simulator 38% 18%
Simulator + Curriculum 62% -
Hybrid Model (GFM Ensemble) 84% 44%

Discussion and Future Work

A key finding was the effectiveness of using an ensemble of 3 GFMs. By training multiple models, the system creates a form of "learned domain randomization," preventing the policy from overfitting to the specific trajectories used for training.

While highly effective, the GFM remains a local approximation. Its accuracy is highest in the regions of the state space covered by the initial real-world data. Future work may explore torque-level control to capture even finer interaction forces and investigate methods to expand the GFM's coverage as the policy explores new states.

Summary updated

BibTeX
@misc{jeong2019modelling,
  author = {Rae Jeong and Jackie Kay and Francesco Romano and Thomas Lampe and Thomas Rothörl and Abbas Abdolmaleki and Tom Erez and Yuval Tassa and Francesco Nori},
  title = {{Modelling Generalized Forces with Reinforcement Learning for Sim-to-Real Transfer}},
  year = {2019},
  eprint = {1910.09471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.09471},
}
Figure