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

GPU-Accelerated Robotic Simulation for Distributed Reinforcement Learning

Jacky Liang, Viktor Makoviychuk, Ankur Handa, Nuttapong Chentanez, Miles Macklin, Dieter Fox

Abstract

Most Deep Reinforcement Learning (Deep RL) algorithms require a prohibitively large number of training samples for learning complex tasks. Many recent works on speeding up Deep RL have focused on distributed training and simulation. While distributed training is often done on the GPU, simulation is not. In this work, we propose using GPU-accelerated RL simulations as an alternative to CPU ones. Using NVIDIA Flex, a GPU-based physics engine, we show promising speed-ups of learning various continuous-control, locomotion tasks. With one GPU and CPU core, we are able to train the Humanoid running task in less than 20 minutes, using 10-1000x fewer CPU cores than previous works. We also demonstrate the scalability of our simulator to multi-GPU settings to train more challenging locomotion tasks.

Introduction

Deep Reinforcement Learning is notoriously "sample hungry," often requiring millions of interactions with an environment to learn complex behaviors like locomotion. Traditionally, researchers have addressed this by scaling horizontally: running simulations on massive CPU clusters while performing policy optimization on GPUs. However, this approach introduces significant hardware costs and communication bottlenecks between CPU RAM and GPU VRAM. This paper introduces a GPU-accelerated physics simulator built on NVIDIA Flex that moves the entire RL pipeline onto the GPU, eliminating these hurdles and dramatically increasing throughput.

Methods

The core of the work is a robotics simulation framework built using NVIDIA Flex, a position-based physics engine. Flex uses CUDA to parallelize rigid body dynamics, employing a non-smooth Newton method and a sparse iterative Krylov linear solver to handle constraints and contacts. Instead of running separate processes for each environment, the authors load hundreds or thousands of robots into the same simulation space, allowing the GPU to process all agents in parallel within a single simulation step. The researchers used a variation of Proximal Policy Optimization (PPO) with SELU (Scaled Exponential Linear Units) activations for improved training stability. For multi-GPU setups, Horovod was used to synchronize gradients across workers.

Datasets and Environments

The authors benchmarked their simulator on four continuous control locomotion tasks, ranging from standard walkers to complex navigation on uneven ground.

Visualizations of the Ant, Humanoid, and Complex Terrain simulation environments.
  1. Ant: A standard four-legged walker used for sanity checks.
  2. Humanoid: A 28-Degree of Freedom (DoF) model with actuated ankles, providing more complexity than standard MuJoCo models.
  3. Humanoid Flagrun Harder (HFH): A task requiring the agent to run toward a changing target and recover from falls.
  4. Humanoid Flagrun Harder on Complex Terrain: The most difficult benchmark, where the agent navigates random rectangular obstacles using a 2D height map as an observation.

Key Insights and Results

Throughput analysis revealed a "sweet spot" for the number of concurrent agents. Simulation frames per second (FPS) peaked at around 750–1024 agents. Below this range, CUDA kernel launch overhead dominates; above it, memory and compute limits begin to saturate performance.

Simulation performance metrics showing total FPS and GPU frame time per agent as a function of concurrent humanoids.

The Humanoid running task was solved in just 16 minutes on a single NVIDIA Tesla V100, generating over 60,000 frames per second. This represents a massive reduction in hardware requirements, achieving state-of-the-art results using 10x to 1000x fewer CPU cores than previous distributed RL implementations. Furthermore, in complex tasks like HFH Terrain, moving from 1 GPU to 16 GPUs reduced training time from hours to approximately 15 minutes, demonstrating excellent multi-GPU scaling.

Limitations and Future Work

While the results are promising, the paper notes a potential sim-to-real gap, as position-based physics (Flex) can differ from real-world dynamics more than force-based solvers. Future work aims to integrate vision-based observations (pixels) to further leverage the "zero-copy" GPU data pipeline and expand the framework to include complex manipulation tasks and dynamic obstacles.

Summary updated

BibTeX
@inproceedings{liang2018gpu,
  author = {Jacky Liang and Viktor Makoviychuk and Ankur Handa and Nuttapong Chentanez and Miles Macklin and Dieter Fox},
  title = {{GPU-Accelerated Robotic Simulation for Distributed Reinforcement Learning}},
  booktitle = {Conference on Robot Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=K11e8nhM9y},
}
Figure