Batched Differentiable Rigid Body Dynamics in PyTorch for GPU-Accelerated Robot Learning
PyTorch 中的批量可微刚体动力学用于 GPU 加速的机器人学习
Yue Wang、Yanran Xu、Wenbo Wu、Chuanhang Qiu、Zhaoxing Li · arXiv:2605.31481 · 2026-05-29 · cs.RO
随着机器人控制转向采用环内动态计算的大规模强化学习,社区对 Pinocchio 等 CPU 绑定库的依赖在基于 GPU 的训练管道中造成了吞吐量瓶颈。我们推出了 BARD(批量铰接刚体动力学),这是 Featherstone 刚体动力学算法的独立 PyTorch 实现,针对批量 GPU 评估和自动微分进行了优化。三种设计选择使其高效:避免冗余树遍历的分层惰性求值缓存、通过预先计算的 Rodrigues 常量进行无矩阵相乘的联合变换以及级别并行 Pro
中文为机器翻译节选,以英文原文为准。
English abstract
As robot control shifts toward large-scale reinforcement learning with in-loop dynamics computation, the community's reliance on CPU-bound libraries such as Pinocchio creates a throughput bottleneck in GPU-based training pipelines. We present BARD (Batched Articulated Rigid-body Dynamics), a self-contained PyTorch implementation of Featherstone's rigid-body dynamics algorithms, optimized for batched GPU evaluation and automatic differentiation. Three design choices make this efficient: a tiered lazy-evaluation cache that avoids redundant tree traversals, matmul-free joint transforms via pre-computed Rodrigues constants, and level-parallel propagation that reduces sequential operations to tree-depth batched steps. On five robot models (7-23 DOFs), BARD matches Pinocchio numerically while reaching up to 64x higher throughput for Forward Kinematics and 63x for Jacobians at batch size 4096…