DiffNeuSim: A Differentiable Neuromechanical Simulator for Full-Body Musculoskeletal Motion

Hyoungseo Son, Seungmoon SongarXiv 2026

TL;DR

DiffNeuSim is a GPU-accelerated, differentiable simulator for full-body human movement powered by 356 Hill-type muscles and elastic tendons. By computing exact gradients through muscle–tendon dynamics, skeletal physics, and ground contact, it trains muscle-driven movement policies in minutes rather than hundreds of GPU-hours—achieving an estimated 1,300-fold speedup over model-free reinforcement learning.

What Problem Does This Paper Address?

Simulating how the human nervous system coordinates hundreds of muscles to walk, run, or jump is central to biomechanics, rehabilitation, and assistive robotics. Yet detailed musculoskeletal models are notoriously slow to simulate, and training controllers with model-free reinforcement learning (RL) typically demands billions of environment steps.

To make full-body simulation faster, recent GPU-based systems either omit gradients or simplify muscle mechanics by assuming rigid tendons. That shortcut ignores how real tendons stretch, store, and return elastic energy—a simplification that can distort the predicted movements. DiffNeuSim bridges this gap by combining GPU-level speed, analytic gradients, and elastic-tendon muscle dynamics in one open-source framework.

Methods

DiffNeuSim builds on NablaEngine’s GPU execution model—assigning one warp of 32 threads to each simulated world—and MuJoCo’s compliant contact formulation. Across 4,096 parallel worlds on a single RTX 4090, it simulates full-body musculoskeletal dynamics and backpropagates gradients through time.

DiffNeuSim overview: musculoskeletal model, differentiable rollout, and simulation throughput
  • What’s new: DiffNeuSim integrates and analytically differentiates Hill-type muscle–tendon dynamics (supporting both Millard et al. and Geyer & Herr formulations, with elastic or rigid tendons), skeletal dynamics, and foot–ground contact tuned to match human heel-pad mechanics.
  • Policy learning: Across all tasks, the authors use Soft Analytic Policy Optimization (SAPO), a gradient-based actor–critic algorithm, with the same fully connected neural network architecture. The actor directly outputs individual muscle excitations, and gradients flow straight through the physics and muscle dynamics.
  • Musculoskeletal models: They provide a full-body model (356 muscles, 37 bodies, 37 degrees of freedom) for imitation learning, and a reduced trunk-and-lower-limb model (290 muscles, 17 bodies, 23 degrees of freedom) for predictive locomotion.

Datasets

No new experimental data were collected. For imitation learning, the authors used MuscleMimic’s benchmark of 972 training and 108 held-out motion clips retargeted from the KIT Whole-Body Human Motion Database and AMASS. For biomechanical evaluation of predictive walking and running, they compared against published human kinematics (Rose & Gamble), ground reaction forces and joint moments (Camargo et al.), electromyographic (EMG) muscle activations (Perry & Burnfield), and metabolic cost-of-transport data.

Key Insights and Ideas

  • Tendon elasticity isn’t optional: Replacing elastic tendons with rigid ones noticeably degraded movement. At the same commanded walking speed, rigid-tendon models took fewer, longer steps with a stiff, overly extended knee. In dynamic tasks, rigid tendons reduced sprinting speed (5.61 vs. 7.22 m/s) and vertical jumping height (0.413 vs. 0.536 m).
  • Human-like gait without engineered rules: Without prescribed gait patterns or specialized control structures (like central pattern generators), policies trained purely on task-level rewards—tracking a target speed while penalizing effort and instability—spontaneously produced human-like walking, a U-shaped cost-of-transport curve, and a walk-to-run transition at 2.15 m/s (near typical human speeds).
  • Speed unlocks automated science: Because predictive walking trained in ~18 minutes, the authors could use an LLM-assisted heuristic search to evaluate 42 reward settings in ~11 hours—a systematic exploration that would be impractical with slower RL pipelines.
  • Zero-shot transfer: Policies trained in DiffNeuSim without domain randomization transferred zero-shot to MuJoCo (equipped with elastic tendons) with nearly identical tracking performance.

Key Results

  • Simulation throughput: On one RTX 4090 across 4,096 parallel worlds, DiffNeuSim reached 0.88 million environment steps/sec forward (~8,800× real time) and 0.38 million steps/sec with gradients (~3,800× real time)—37× faster forward and 16× faster with gradients than MuJoCo Warp’s forward simulation.
  • Imitation learning: Individual motions were learned from scratch in 77 s on average (14 of 20 clips). A generalist policy reached 93.5% success in 14.2 min, surpassing MuscleMimic’s 92.62% (which required ~320 GPU-hours) with an estimated 1,300× training speedup and matching its 2.28 cm site error. Fine-tuning specialists on an H200 mastered dynamic skills like a dance jump (6.0 min) and a 360° jumping kick (2.4 h).
Specialist policies fine-tuned from the generalist for dynamic motions
  • Predictive locomotion: Walking emerged in ~18 min and running in ~30 min, achieving lower kinetics and muscle-activation errors than four established biologically inspired control models.

Limitations and Future Work

The authors note that muscle paths currently use straight via points rather than wrapping surfaces, which can introduce moment-arm errors at large joint angles. Additionally, complex collision geometries—such as irregular terrain or dexterous object manipulation—are harder to parallelize efficiently on GPUs. Looking ahead, they envision DiffNeuSim as complementary to established ecosystems like OpenSim and MyoSuite: researchers can train controllers rapidly in DiffNeuSim and deploy them in standard environments like MuJoCo.

Summary updated

BibTeX
@misc{son2026diffneusim,
  author = {Hyoungseo Son and Seungmoon Song},
  title = {{DiffNeuSim: A Differentiable Neuromechanical Simulator for Full-Body Musculoskeletal Motion}},
  year = {2026},
  eprint = {2611.41579},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.41579},
}
Figure