DiffNeuSim: A Differentiable Neuromechanical Simulator for Full-Body Musculoskeletal Motion
The preprint link will be added on release.
Abstract
Neuromechanical simulation can advance research in human biomechanics and motor control, but detailed models remain computationally expensive. We present DiffNeuSim, a GPU-accelerated differentiable simulator of full-body musculoskeletal dynamics with 356 Hill-type muscles, elastic tendons, skeletal dynamics and ground contact. Across 4,096 parallel worlds, one RTX 4090 runs simulations at approximately 8,800 times real time in aggregate, or 3,800 times with gradients. We used a common gradient-based policy learning algorithm and neural network architecture across all muscle-driven tasks. Imitation policies learned diverse recorded motions from scratch within minutes, and generalist imitation achieved 93.5% success in 14.2 min, surpassing a model-free reinforcement learning benchmark with an estimated 1,300-fold training speedup while matching its tracking accuracy. Walking and running emerged within 17.5–30 min without prescribed gait patterns or engineered control structures, enabling an LLM-assisted search of 42 reward settings within half a day. Predictive locomotion reproduced human-like walking kinematics, kinetics and muscle activations, a U-shaped walking cost-of-transport curve, and near-human optimal walking and energetic crossover speeds. Comparisons with rigid-tendon models highlighted the importance of modelling tendon elasticity for predicting walking gait, sprinting speed and jumping height. DiffNeuSim provides an open-source framework for investigating the biomechanical and neural mechanisms of human movement.
Figure 1
DiffNeuSim overview
DiffNeuSim simulates and differentiates full-body musculoskeletal movement across thousands of parallel environments on a GPU. At each time step, muscle excitations drive activation and Hill-type muscle–tendon dynamics, generating forces that act on the skeleton through rigid-body dynamics and ground contact. The backward pass propagates derivatives through these processes and across time.
The full-body model has 356 muscles, 65 single-joint links and 37 degrees of freedom (a); a reduced model has 290 trunk and lower-limb muscles, 29 single-joint links and 23 degrees of freedom. Across 4,096 parallel worlds on one RTX 4090, DiffNeuSim simulated 0.88 million environment steps per second, equivalent to 8,800 times real time in aggregate, or 0.38 million steps per second with gradients (c). Its forward throughput was 37 times that of MuJoCo Warp simulating MuscleMimic’s rigid-tendon MyoFullBody at the same batch size; even with gradients, DiffNeuSim achieved 16 times MuJoCo Warp’s forward throughput.
We verified the single-precision gradients against central finite differences of a separate double-precision implementation. With and without ground contact, the median relative errors were on the order of 10⁻⁵ over one environment step and remained below 10⁻⁴ over sixteen steps.
Results
Agreement with MuJoCo on the Unitree G1
DiffNeuSim’s rigid-body and contact dynamics closely matched those of MuJoCo on the Unitree G1 humanoid robot. From the same state and input, one 20 ms control step left the two simulators’ joint positions within single-precision rounding of each other, with and without ground contact. Replaying the same controls without feedback for 3 s left their root positions a median of 0.31 mm apart (at most 0.72 mm).
Two policies trained through DiffNeuSim’s gradients to track a side kick without domain randomization completed all 32 episodes from perturbed initial states in MuJoCo without modification, with nearly identical tracking errors in the two simulators.
Figure 2
Individual-motion and generalist imitation learning
Gradient-based policy learning in DiffNeuSim enabled policies to learn individual motions from scratch within minutes (a). Policies learned 14 of 20 tested motions, with an average training time of 77 s per successful motion on an RTX 4090 and a mean site error of 5.3 cm at their first successful checkpoints.
Generalist policies trained on MuscleMimic’s imitation-learning benchmark of 972 training and 108 held-out clips from the KIT Whole-Body Human Motion Database reached a mean held-out return of 0.83 after 9.1 min, approximately twice as fast as muscle-supermimic, which required 17.8 min on the same GPU (b). After 12 min, the three policies achieved a mean success rate of 91.6% and a mean site error of 2.28 cm, matching MuscleMimic’s reported site error. With further training, one policy reached 93.5% success after 14.2 min, exceeding MuscleMimic’s reported 92.62% after 15.87 billion environment steps, an estimated 320 GPU-hours (c).
Specialist policies fine-tuned from the generalist on an H200 reproduced jumps, handstands and aerial rotations at normal muscle strength (d): a dance into a jump after 6.0 min, a pick-up after 9.5 min and a handstand kick-up after 68.4 min of fine-tuning, and a kick with a 360° jumping twist after 2.4 h. The four specialists achieved a mean site error of 3.0 cm.
Results
Zero-shot transfer to MuJoCo
We further demonstrated zero-shot transfer of muscle-driven policies, trained in DiffNeuSim without domain randomization, to MuJoCo equipped with our elastic-tendon muscle implementation. The generalist policy achieved nearly identical tracking performance across all 108 held-out motions in both simulators, and the specialist policies reproduced challenging dynamic motions after transfer.
Figure 3
Task-driven predictive walking and running
Gradient-based policy learning in DiffNeuSim produced sustained walking and running across a range of speeds without engineered control structures or prescribed gait patterns. On one RTX 4090, training with the selected walking reward took about 17.5 min and training a running policy at 2.9 m/s about 30 min; the walking policy shown was trained with the same reward on one GPU of a computing cluster. The reward weights were explored through an LLM-assisted heuristic search of 42 candidates; keeping the selected reward settings fixed, policies were trained at commanded speeds from 0.7 to 4.0 m/s with multiple random seeds.
Walking emerged over a speed range of 0.63–2.13 m/s, and running and running-like gaits over 1.65–3.16 m/s (a). A quadratic fit to the minimum walking cost of transport predicted an energetically optimal walking speed of 1.61 m/s, somewhat faster than typical preferred human walking speeds, and the walking and running fits intersected at 2.15 m/s, near the typical human walk-to-run transition speed. At higher speeds, policies exhibited running with flight phases, reaching 4.86 m/s with a minor modification to the reward.
Figure 4
Predicted walking gait
The predictive walking policy reproduced key features of human walking at a typical walking speed, with overall agreement comparable to that of established biologically inspired control models. At a commanded speed of 1.3 m/s, the policy walked at an average speed of 1.22 m/s, with 117 steps per minute and a stride length of 1.25 m. Its joint kinematics, ground reaction forces, joint moments and muscle activations broadly agreed with human walking data (a).
The aggregate errors were comparable to those of the best-performing biologically inspired control models, with lower errors in kinetics and muscle activations than those of all four previously reported controllers (b). However, the policy exhibited insufficient knee flexion during early stance and excessive flexion during mid-stance, accompanied by almost no activation of the vasti, the primary knee extensors.
Figure 5
Effects of tendon elasticity on predicted movement
To investigate the effects of rigid-tendon simplification on predicted movement, we trained walking, sprinting and jumping policies with elastic and rigid tendons using the same task-specific reward settings. At the commanded walking speed of 1.3 m/s, the rigid-tendon model took fewer, longer steps than the elastic-tendon model and human walking (cadence 103 against 117 steps/min; stride length 1.44 against 1.25 m), exhibited altered joint kinematics and greater deviations in kinetics from human walking data, and kept its knee at the extension limit for approximately 45% of the gait cycle (a).
The rigid-tendon model reached a lower sprinting speed than the elastic-tendon model (5.61 versus 7.22 m/s) (b), and replacing elastic with rigid tendons reduced the maximum rise of the centre of mass above standing height from 0.536 to 0.413 m (best of three runs each) (c).
Recorded rollouts
The 3D viewer replays recorded rollouts of the paper’s policies in the browser: the predictive walking and sprinting policies, maximum-height jumping with elastic and rigid tendons, the generalist imitation policy on two held-out clips, and the specialist’s 360° jumping kick. It replays recorded states; it does not simulate.
BibTeX
@article{son2026diffneusim,
title = {DiffNeuSim: A Differentiable Neuromechanical Simulator
for Full-Body Musculoskeletal Motion},
author = {Son, Hyoungseo and Song, Seungmoon},
journal = {arXiv preprint arXiv:XXXX.XXXXX},
eprint = {XXXX.XXXXX},
archivePrefix = {arXiv},
primaryClass = {XX.XX},
url = {https://arxiv.org/abs/XXXX.XXXXX},
year = {2026}
}











