Abstract
Training humanoid robots in simulation is essential for safety and scalability, yet policies often fail during real-world deployment due to the "sim-to-real gap." This gap is largely driven by simulator inductive bias—the specific mathematical assumptions inherent to any single physics engine. We present PolySim, a novel training framework that bridges this gap by training reinforcement learning (RL) policies across multiple physics simulators simultaneously. By exposing agents to a diverse mixture of dynamics from engines such as IsaacGym, IsaacSim, and Genesis, PolySim produces controllers that generalize significantly better than those trained in any single environment. Our results demonstrate a 52.8% improvement in success rates on unseen simulators and successful zero-shot deployment on the Unitree G1 humanoid hardware.
Introduction
The development of agile humanoid control is hindered by the difficulty of collecting large-scale, high-quality data in the real world. While simulation offers a safe alternative, the transition from virtual environments to physical hardware remains a primary bottleneck. Traditional domain randomization (DR) attempts to address this by varying physical parameters like mass and friction. However, DR is structurally limited; it cannot account for the fundamental differences in how different simulators solve contacts, integrate motion, or handle friction.
Every physics engine possesses a unique "flavor" of error. If a robot learns to exploit the specific numerical quirks of one engine, it develops a policy that is overfitted to that engine's bias. PolySim introduces dynamics-level domain randomization, forcing the policy to find solutions that are robust across entirely different mathematical formulations of physics.
The PolySim Framework
To enable efficient training across heterogeneous simulators, PolySim utilizes a decoupled architecture designed for high-performance RL. The framework consists of three primary components:
- Training–Simulation Isolation: A client-server architecture separates the RL learner (TrainClient) from the simulator runtimes (SimServers). This ensures that the failure or performance fluctuation of a single simulator instance does not stall the entire training pipeline.
- Simulator Router: This component serves as a universal interface. It harmonizes disparate physics APIs, aligns gravity vectors and time steps, and normalizes numerical conventions (e.g., coordinate systems and units). This allows the RL agent to interact with a consistent observation and action space regardless of the underlying backend.
- GPU-Direct Communication: To maintain the high throughput required for modern RL, PolySim implements RPC over NCCL/NVLink. This allows data to be passed directly between GPUs, bypassing CPU bottlenecks and minimizing latency during the aggregation of experiences from multiple simulators.
Conceptual Advantage: The Convex Hull of Dynamics
The theoretical foundation of PolySim rests on the idea of the "convex hull." If we represent real-world dynamics and various simulators as points in a high-dimensional space of physical behaviors, training on a single simulator provides only a single point of reference. By training on a mixture of simulators, the policy learns to operate within the convex hull—the space spanned by these different engines.
As illustrated in the conceptual diagram above, the mixture of dynamics provided by PolySim is much more likely to overlap with or be closer to real-world dynamics than any individual simulator. This approach effectively regularizes the policy, preventing it from learning "cheats" that only work in one specific engine.
Experimental Setup and Results
We evaluated PolySim using the ASAP dataset, which contains 14 humanoid motion sequences of varying difficulty, including locomotion and jumping. Training was conducted across IsaacGym, IsaacSim, and Genesis. To rigorously test generalization, we used MuJoCo as an "unseen" evaluation benchmark, treating it as a proxy for the real world.
Sim-to-Sim Performance
PolySim demonstrated a significant performance leap over single-simulator baselines. When tested in the unseen MuJoCo environment, the PolySim policy achieved a 52.8% higher execution success rate compared to a policy trained exclusively in IsaacSim. Furthermore, PolySim consistently showed lower tracking and velocity errors across all tested motion sequences, outperforming even advanced parameter-level domain randomization techniques.
Zero-Shot Real-World Deployment
The ultimate validation of the framework was the zero-shot deployment on the Unitree G1 humanoid robot. Without any fine-tuning or real-world data, the PolySim-trained policy successfully executed agile tasks on the physical hardware. The system's overhead remained minimal, adding only 0.1–0.3 seconds per training iteration, proving that multi-simulator training is computationally feasible.
Conclusion and Future Work
PolySim effectively mitigates simulator inductive bias by leveraging the collective strengths of multiple physics engines. By training in the "convex hull" of simulated dynamics, we achieve a level of robustness that enables direct transfer to physical humanoid hardware. Future research will focus on expanding the diversity of simulators within the framework and applying PolySim to complex manipulation tasks, where contact physics are even more sensitive to simulator-specific biases.
Summary updated