frax: Fast Robot Kinematics and Dynamics in JAX
Pith reviewed 2026-05-19 17:15 UTC · model grok-4.3
The pith
A JAX library computes robot kinematics and dynamics in low microseconds on CPU for kilohertz control and up to 100 million evaluations per second on GPU.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
frax is a pure-Python JAX library for rigid-body kinematics and dynamics that achieves low-microsecond computation times on CPU suitable for kilohertz control rates, outperforms common Python libraries and approaches optimized C++ speeds, and scales the same code to thousands of instances on GPU reaching upwards of 100 million dynamics evaluations per second, all while supporting automatic differentiation for optimization-based methods.
What carries the argument
The fully-vectorized approach to robot dynamics in JAX, which enables the same pure-Python code to execute efficiently on CPU, GPU, and TPU while providing automatic differentiation.
Load-bearing premise
The fully vectorized JAX implementation preserves numerical accuracy and stability equivalent to established non-vectorized rigid-body dynamics libraries while delivering the stated speedups on the tested hardware configurations.
What would settle it
A side-by-side comparison of computed joint torques, accelerations, and positions from frax against a reference library such as Pinocchio on identical robot models and trajectories, checking for discrepancies beyond floating-point error, or direct timing measurements of single and batched evaluations on standard CPU and GPU hardware.
Figures
read the original abstract
In robot control, planning, and learning, there is a need for rigid-body dynamics libraries that are highly performant, easy to use, and compatible with CPUs and accelerators. While existing libraries often excel at either low-latency CPU execution or high-throughput GPU workloads, few provide a unified framework that targets multiple architectures without compromising performance or ease-of-use. To address this, we introduce frax, a JAX-based library for robot kinematics and dynamics, providing a high-performance, pure-Python interface across CPU, GPU, and TPU. Via a fully-vectorized approach to robot dynamics, frax enables efficient real-time control and parallelization, while supporting automatic differentiation for optimization-based methods. On CPU, frax achieves low-microsecond computation times suitable for kilohertz control rates, outperforming common libraries in Python and approaching optimized C++ implementations. On GPU, the same code scales to thousands of instances, reaching upwards of 100 million dynamics evaluations per second. We validate performance on a Franka Panda manipulator and a Unitree G1 humanoid, and release frax as an open-source library.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces frax, a JAX-based library for rigid-body kinematics and dynamics computations in robotics. It presents a fully vectorized pure-Python implementation that targets CPU, GPU, and TPU, claims low-microsecond latency on CPU for real-time control and scaling to 100 million dynamics evaluations per second on GPU, supports automatic differentiation, and validates the approach on a Franka Panda manipulator and Unitree G1 humanoid while releasing the code as open source.
Significance. If the performance numbers and numerical fidelity hold under scrutiny, frax would offer a practical, unified framework that lowers the barrier to high-throughput and differentiable dynamics in JAX-based robotics pipelines. The open-source release and emphasis on cross-architecture compatibility without separate code paths are concrete strengths that could accelerate research in parallel simulation, learning, and optimization.
major comments (2)
- [§5] §5 (Experiments): The reported CPU and GPU timing results (low-μs per evaluation, 100 M evals/s) are presented without benchmark protocol details such as number of trials, warm-up iterations, timing method (e.g., timeit vs. wall-clock), hardware SKUs, JAX/XLA versions, or error bars; this information is required to substantiate the central performance claims and allow reproduction.
- [§4] §4 (Implementation) and §5.2 (Validation): No quantitative numerical equivalence tests are shown comparing frax outputs (mass matrix, bias terms, forward kinematics) against reference implementations such as Pinocchio or MuJoCo for the Franka and G1 models; vectorized reordering and JAX rewrites can alter floating-point accumulation, so explicit residual norms or max-absolute-difference tables are needed to confirm the accuracy assumption underlying all speed claims.
minor comments (3)
- [Abstract] Abstract: The phrase 'outperforming common libraries in Python' should name the specific libraries and versions used in the comparison.
- [Figures] Figure 3 (or equivalent scaling plot): Axis labels and legends are too small for readability; consider increasing font size and adding a table of raw throughput numbers.
- [§3] §3 (Related Work): The discussion of existing JAX robotics libraries is brief; adding a short table contrasting API style, supported features, and reported throughputs would improve clarity.
Simulated Author's Rebuttal
We thank the referee for their constructive comments, which have helped us improve the clarity and reproducibility of our work. We address each major comment in turn below.
read point-by-point responses
-
Referee: [§5] §5 (Experiments): The reported CPU and GPU timing results (low-μs per evaluation, 100 M evals/s) are presented without benchmark protocol details such as number of trials, warm-up iterations, timing method (e.g., timeit vs. wall-clock), hardware SKUs, JAX/XLA versions, or error bars; this information is required to substantiate the central performance claims and allow reproduction.
Authors: We agree that the benchmark protocol details were insufficiently described. In the revised manuscript we will expand §5 with a dedicated experimental setup subsection that specifies the number of trials, warm-up iterations, timing method (using jax.block_until_ready to ensure XLA execution), hardware SKUs, JAX and XLA versions, and error bars (mean ± one standard deviation over repeated runs). These additions will fully substantiate the reported CPU and GPU performance figures and enable reproduction. revision: yes
-
Referee: [§4] §4 (Implementation) and §5.2 (Validation): No quantitative numerical equivalence tests are shown comparing frax outputs (mass matrix, bias terms, forward kinematics) against reference implementations such as Pinocchio or MuJoCo for the Franka and G1 models; vectorized reordering and JAX rewrites can alter floating-point accumulation, so explicit residual norms or max-absolute-difference tables are needed to confirm the accuracy assumption underlying all speed claims.
Authors: We acknowledge the value of explicit quantitative checks. Although the manuscript already performs validation on the Franka Panda and Unitree G1, it does not report residual norms or max-absolute-difference tables. In the revised §5.2 we will add such tables, reporting maximum absolute differences and L2 norms for the mass matrix, bias terms, and forward-kinematics outputs against Pinocchio (and MuJoCo where applicable) over a representative set of joint configurations. This will directly address potential floating-point discrepancies introduced by vectorization and JAX rewrites. revision: yes
Circularity Check
No circularity: implementation and empirical benchmarks only
full rationale
The paper describes an open-source JAX library implementing standard rigid-body dynamics (RNEA/ABA) via vectorization for CPU/GPU/TPU. No mathematical derivation chain, first-principles predictions, or fitted parameters are claimed. Performance numbers are presented as direct empirical measurements on Franka and G1 hardware rather than outputs derived from the library's own results. Any self-citations are incidental and non-load-bearing; the central contribution is engineering and benchmarking, which remains self-contained against external reference libraries.
Axiom & Free-Parameter Ledger
axioms (1)
- standard math Standard rigid-body kinematics and dynamics equations hold and can be implemented via vectorized operations without loss of correctness
Lean theorems connected to this paper
-
IndisputableMonolith/Foundation/AbsoluteFloorClosure.leanreality_from_one_distinction unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
Via a fully-vectorized approach to robot dynamics, frax enables efficient real-time control and parallelization... Algorithms 1 and 2 provide an overview of the primary vectorized dynamics methods... ancestor mask U
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Reference graph
Works this paper leans on
-
[1]
Justin Carpentier, Guilhem Saurel, Gabriele Buondonno, Joseph Mirabel, Florent Lamiraux, Olivier Stasse, and Nicolas Mansard. The pinocchio c++ library – a fast and flexible implementation of rigid body dynamics algorithms and their analytical derivatives. InIEEE International Symposium on System Integrations (SII), 2019
work page 2019
-
[2]
Martin L. Felis. Rbdl: an efficient rigid-body dynam- ics library using recursive algorithms.Autonomous Robots, pages 1–17, 2016. ISSN 1573-7527. doi: 10.1007/s10514-016-9574-0. URL http://dx.doi.org/10. 1007/s10514-016-9574-0
-
[3]
Marco Frigerio, Jonas Buchli, Darwin G Caldwell, and Claudio Semini. Robcogen: a code generator for efficient kinematics and dynamics of articulated robots, based on domain specific languages.Journal of Software Engineering for Robotics (JOSER), 7(1):36–54, 2016
work page 2016
-
[4]
Twan Koolen and contributors. Rigidbodydy- namics.jl, 2016. URL https://github.com/tkoolen/ RigidBodyDynamics.jl
work page 2016
-
[5]
ALTRO: A Fast Solver for Constrained Trajectory Optimization,
Sabrina M. Neuman, Twan Koolen, Jules Drean, Ja- son E. Miller, and Srinivas Devadas. Benchmarking and workload analysis of robot dynamics algorithms. In 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 5235–5242, 2019. doi: 10.1109/IROS40897.2019.8967694
-
[6]
Emanuel Todorov, Tom Erez, and Yuval Tassa. Mu- joco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 5026–5033. IEEE, 2012. doi: 10.1109/IROS.2012.6386109
-
[7]
Drake: Model-based design and verification for robotics, 2019
Russ Tedrake and the Drake Development Team. Drake: Model-based design and verification for robotics, 2019. URL https://drake.mit.edu
work page 2019
-
[8]
Pybullet, a python module for physics simulation for games, robotics and machine learning
Erwin Coumans and Yunfei Bai. Pybullet, a python module for physics simulation for games, robotics and machine learning. http://pybullet.org, 2016–2021
work page 2016
-
[9]
Isaac Lab: A GPU-Accelerated Simulation Framework for Multi-Modal Robot Learning
Mayank Mittal, Pascal Roth, James Tigue, Antoine Richard, Octi Zhang, Peter Du, Antonio Serrano-Mu ˜noz, Xinjie Yao, Ren ´e Zurbr ¨ugg, Nikita Rudin, Lukasz Wawrzyniak, Milad Rakhsha, Alain Denzler, Eric Hei- den, Ales Borovicka, Ossama Ahmed, Iretiayo Akinola, Abrar Anwar, Mark T. Carlson, Ji Yuan Feng, Ani- mesh Garg, Renato Gasoto, Lionel Gulich, Yijie...
work page internal anchor Pith review Pith/arXiv arXiv 2025
-
[10]
Newton: Gpu-accelerated physics simulation for robotics and simulation research,
The Newton Contributors. Newton: Gpu-accelerated physics simulation for robotics and simulation research,
-
[11]
URL https://github.com/newton-physics/newton
-
[12]
Genesis: A generative and universal physics engine for robotics and beyond, December 2024
Genesis Authors. Genesis: A generative and universal physics engine for robotics and beyond, December 2024. URL https://github.com/Genesis-Embodied-AI/Genesis
work page 2024
-
[13]
Daniel Freeman, Erik Frey, Anton Raichuk, Sertan Girgin, Igor Mordatch, and Olivier Bachem
C. Daniel Freeman, Erik Frey, Anton Raichuk, Sertan Girgin, Igor Mordatch, and Olivier Bachem. Brax - a differentiable physics engine for large scale rigid body simulation, 2021. URL http://github.com/google/brax
work page 2021
-
[14]
curobo: Parallelized collision-free minimum-jerk robot motion generation, 2023
Balakumar Sundaralingam, Siva Kumar Sastry Hari, Adam Fishman, Caelan Garrett, Karl Van Wyk, Valts Blukis, Alexander Millane, Helen Oleynikova, Ankur Handa, Fabio Ramos, Nathan Ratliff, and Dieter Fox. curobo: Parallelized collision-free minimum-jerk robot motion generation, 2023
work page 2023
- [15]
-
[16]
Pyroki: A modular toolkit for robot kinematic optimization
Chung Min Kim*, Brent Yi*, Hongsuk Choi, Yi Ma, Ken Goldberg, and Angjoo Kanazawa. Pyroki: A mod- ular toolkit for robot kinematic optimization. In2025 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2025. URL https://arxiv.org/abs/ 2505.03728
-
[17]
Pink: Python inverse kinematics based on Pinocchio, 2026
St ´ephane Caron, Yann De Mont-Marin, Rohan Budhiraja, Seung Hyeon Bang, Ivan Domrachev, Simeon Nedelchev, Peter Du, Adrien Escande, Joris Vaillant, Bruce Wingo, Santosh Patapati, and Daniel San Jos ´e Pro. Pink: Python inverse kinematics based on Pinocchio, 2026. URL https: //github.com/stephane-caron/pink
work page 2026
-
[18]
Mink: Python inverse kinematics based on MuJoCo, February 2026
Kevin Zakka. Mink: Python inverse kinematics based on MuJoCo, February 2026. URL https://github.com/ kevinzakka/mink
work page 2026
-
[19]
Analytical derivatives of rigid body dynamics algorithms
Justin Carpentier and Nicolas Mansard. Analytical derivatives of rigid body dynamics algorithms. In Robotics: Science and systems (RSS 2018), 2018
work page 2018
-
[20]
Neuman, Thomas Bourgeat, Scott Kuindersma, Srinivas Devadas, and Vijay Janapa Reddi
Brian Plancher, Sabrina M. Neuman, Thomas Bourgeat, Scott Kuindersma, Srinivas Devadas, and Vijay Janapa Reddi. Accelerating robot dynamics gradients on a cpu, gpu, and fpga.IEEE Robotics and Automation Letters, 6 (2):2335–2342, 2021. doi: 10.1109/LRA.2021.3057845
-
[21]
Brian Plancher, Sabrina M. Neuman, Radhika Ghosal, Scott Kuindersma, and Vijay Janapa Reddi. Grid: Gpu- accelerated rigid body dynamics with analytical gradi- ents. In2022 International Conference on Robotics and Automation (ICRA), pages 6253–6260, 2022. doi: 10.1109/ICRA46639.2022.9812384
-
[22]
Crocoddyl: An Efficient and Versatile Framework for Multi-Contact Optimal Control
Carlos Mastalli, Rohan Budhiraja, Wolfgang Merkt, Guilhem Saurel, Bilal Hammoud, Maximilien Naveau, Justin Carpentier, Ludovic Righetti, Sethu Vijayakumar, and Nicolas Mansard. Crocoddyl: An Efficient and Versatile Framework for Multi-Contact Optimal Control. InIEEE International Conference on Robotics and Au- tomation (ICRA), 2020
work page 2020
-
[23]
Proxddp: Proximal constrained trajectory optimization
Wilson Jallet, Antoine Bambade, Etienne Arlaud, Sarah El-Kazdadi, Nicolas Mansard, and Justin Carpentier. Proxddp: Proximal constrained trajectory optimization. IEEE Transactions on Robotics, 41:2605–2624, 2025. doi: 10.1109/TRO.2025.3554437
-
[24]
Implementing torque control with high-ratio gear boxes and without joint- torque sensors
Andrea Del Prete, Nicolas Mansard, Oscar E Ramos, Olivier Stasse, and Francesco Nori. Implementing torque control with high-ratio gear boxes and without joint- torque sensors. InInt. Journal of Humanoid Robotics, page 1550044, 2016. URL https://hal.archives-ouvertes. fr/hal-01136936/document
work page 2016
-
[25]
Safe, task-consistent manipulation with operational space control barrier func- tions
Daniel Morton and Marco Pavone. Safe, task-consistent manipulation with operational space control barrier func- tions. In2025 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 187–194,
-
[26]
doi: 10.1109/IROS60139.2025.11246389
-
[27]
Roy Featherstone.Rigid body dynamics algorithms. Springer, 2008. APPENDIX A. Timing All timing values were recorded on a desktop PC with an i9-14900KF CPU, 64GB RAM, and an RTX 4090 GPU. Python methods were tested withtime.perf_counter over 10,000 iterations, withjax.block_until_ready() called on any JAX functions to avoid timing the asynchronous dispatch...
work page 2008
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.