Manuscript Offprint
arXiv:2610.21349CQDC-Warp: GPU-Accelerated Differentiable Quasi-Dynamic Simulation for Contact-Rich Manipulation
Yanchen Ding , Jiayi Chen , Jianfeng Xu , Wei Zhao , Li Yi , He Wang
Peking University, Galbot, Tsinghua University
Equal contribution, Corresponding author
Abstract—Efficient synthesis of contact-rich manipulation trajectories is essential for downstream robot learning. Gradient-based planning offers a promising approach, but jointly optimizing motion and contact decisions remains challenging. Meanwhile, many existing planners run on CPUs with limited throughput. We present CQDC-Warp, a GPU-accelerated differentiable quasi-dynamic simulator for batched model predictive control (MPC). We use it to study contact-guided trajectory optimization, in which intended robot-object contacts are specified before planning and encouraged through soft costs, while the simulated dynamics determine contact geometry and frictional response without a prescribed contact-mode schedule. Across 17,408 trials on the 17-object Allegro in-hand rotation benchmark, our framework achieves 79.8% success, compared with 73.7% for CFree and 65.2% for IMPACT, and reduces mean trajectory-generation time by factors of 27.0 and 50.2, respectively. On a single NVIDIA RTX 4090 with 2,048 parallel worlds, forward and backward throughput reach and world-steps per second, respectively. Further experiments cover manipulation with LEAP and Shadow hands, environmental contact exploitation, bimanual manipulation, whole-body control, and real-world trajectory replay on a Sharpa hand.
I. INTRODUCTION
Contact-rich dexterous manipulation is a central capability for general-purpose embodied intelligence. Modern robot learning increasingly relies on large, diverse, and high-quality datasets of robot behavior [14]. Collecting such data for dexterous hands is particularly challenging due to the high cost and complexity of teleoperation, as well as differences between human and robot embodiments [15], [16]. Scalable generation of physically plausible dexterous trajectories could therefore support both task execution and demonstration collection for downstream robot learning.
Reinforcement learning (RL) has demonstrated impressive dexterous manipulation behaviors [17]–[19] covering a broad range of objects [20]–[22]. However, acquiring these behaviors with model-free RL typically requires extensive trial and error guided by task-specific rewards. The underlying dynamics are treated as a black box: policy updates rely on sampled experience rather than derivatives of the physical dynamics. Moreover, learned policies remain sensitive to their training distributions, which can limit their reuse across contact-rich tasks and scenes.
Gradient-based planning provides another route, exploiting dynamics derivatives to efficiently refine action sequences [23], [24]. Within this paradigm, contact-implicit trajectory optimization is an active and promising research direction: it jointly optimizes state and control trajectories

Fig. 1: CQDC-Warp. A differentiable contact simulator for GPU-parallel trajectory generation on versatile robotic tasks.
and contact interactions without prescribing intended contact in advance [25]–[29]. However, this generality also introduces strong coupling between motion and contact decisions, resulting in large, nonconvex optimization problems that can be difficult to solve reliably. Yet, from a practical standpoint, an even more basic question remains open: given a suitable initialization and intended contacts specified in advance, can existing tools reliably optimize action sequences across diverse robot platforms and contact-rich tasks? Here, intended contacts specify which robot link should touch the object, rather than prescribing a complete contact-mode schedule; their exact geometry and frictional response are still determined by the simulated dynamics. This assumption is practical in many manipulation settings, where intended contacts can be inferred from task structure, grasp or trajectory initialization, or human demonstrations with tactile gloves.
Differentiable simulation supports such local optimization by providing gradients through simulated rollouts. Existing differentiable contact simulators, however, face several limitations. Some methods introduce force-at-a-distance through smoothing [5] or neglect coupling between contact constraints [8]. Many implementations run on CPUs or optimize only one trajectory at a time [8], [29], [30], limiting throughput. GPU-based differentiable simulators are available [9],
| Simulator | Year | Device | Dynamics | Contact Model | Dynamics Gradient | Geometry | Geometry Gradient | Demonstrated Robots |
|---|---|---|---|---|---|---|---|---|
| ADD [1] | 2020 | CPU | Full | Penalty | Implicit | SDF | Analytic | UR5 |
| Nimble [2] | 2021 | CPU | Full | LCP | Implicit | Meshes | Analytic | Catapult |
| Dojo [3] | 2022 | CPU | Full | NCP | Implicit | Primitives | Analytic | Ant / HalfCheetah |
| Silico [4] | 2023 | CPU | Full | NCP | Implicit | Primitives | Implicit | Fingertips |
| CQDC [5] | 2023 | CPU | Quasi-dynamic | CCP | Implicit | Primitives | AutoDiff | Allegro / Dual iiwa |
| Simple [6], [7] | 2025 | CPU | Full | NCP | Implicit | Meshes | Surrogate | CartPole / Hopper |
| ComFree [8] | 2025 | CPU | Quasi-dynamic | Penalty | AutoDiff | Meshes | - | TriFinger / Allegro |
| TDS [9], [10] | 2021 | GPU | Full | NCP | AutoDiff | Primitives | AutoDiff | - |
| DiffSDFSim [11] | 2021 | GPU | Full | LCP | Implicit | SDF | AutoDiff | - |
| Brax [12] | 2021 | GPU | Full | Impulse | AutoDiff | Primitives | AutoDiff | Reacher |
| DiffMJX [13] | 2026 | GPU | Full | CCP | AutoDiff | Meshes | AutoDiff | MyoHand / MyoArm |
| CQDC-Warp (ours) | 2026 | GPU | Quasi-dynamic | CCP | Implicit | Meshes | Surrogate | Allegro / LEAP / Shadow Sharpa / GO2 / A1 / G1 |
TABLE I: Representative differentiable rigid-body contact simulators. CQDC-Warp combines GPU-batched simulation with surrogate geometry gradients for meshes and demonstrates manipulation across diverse robot platforms.
[12], [13], but their published evaluations typically cover only one or two robot embodiments and a limited set of tasks. Efficient trajectory generation across diverse robot platforms and contact-rich tasks remains less explored.
In this work, we propose CQDC-Warp, a GPU-accelerated differentiable simulator that extends the Convex Quasi-Dynamic Contact (CQDC) model in three respects. First, we introduce compliant frictional contact to regularize the contact solve and revise the inertial model to retain coupling between actuated and unactuated coordinates. Second, we provide implicit derivatives of the contact dynamics and sampled surrogate derivatives of contact geometry. Third, we develop an efficient GPU implementation built on MuJoCo-Warp's batched pipeline [31], enabling parallel model predictive control (MPC) across independent simulation worlds. Experiments demonstrate in-hand manipulation, environmental contact exploitation, bimanual manipulation, and whole-body control across dexterous hands, quadrupeds, and humanoids, as well as a trajectory replay in the real world.
Our main contributions are:
-
CQDC-Warp, a GPU-accelerated differentiable quasi-dynamic contact simulator, integrated into a batched MPC framework.
-
A contact-guided trajectory optimization setting in which intended contacts are specified before planning, while the exact contact realization remains implicit.
-
Experimental validation across diverse robots and contact-rich tasks, including simulation benchmarks and real-world trajectory replay.
A. Rigid-Body Contact Models
Classical penalty models prescribe local contact forces that penalize penetration, typically using spring–damper laws for the normal response and regularized friction [1], [9]. Larger penalty stiffness reduces penetration but can worsen numerical conditioning [1]. Complementarity-based formulations instead express rigid frictional contact as a nonlinear complementarity problem (NCP), combining the Signorini condition, Coulomb friction, and maximum dissipation [3], [4], [6], [7], [9], [32]. Polyhedral approximations of friction cones yield linear complementarity problems (LCPs) [2], [11], [33]. Cone complementarity problems (CCPs) retain the circular friction cones but relax normal complementarity, enabling convex optimization at the cost of possible gliding artifacts [32], [34]; this formulation underlies CQDC [5].
B. Differentiable Contact Simulation
Dynamics gradients can be obtained through automatic differentiation (AD), which applies the chain rule to the simulator's computational graph [9], [12]. For iterative contact solvers, unrolling makes differentiation cost grow with the iteration count [6]. Implicit differentiation instead linearizes the contact equations or optimality conditions at the converged solution and solves a sensitivity system, avoiding differentiation through solver iterations [1]-[3], [5], [6]. CQDC-Warp follows this implicit approach.
Geometry gradients describe how contact points, normals, and gaps change with body poses. Signed distance fields (SDFs) provide distances and surface normals through field values and spatial derivatives, supporting differentiable contact with nonconvex shapes [11]. However, constructing and storing an SDF adds preprocessing and memory overhead, and geometry edits may require rebuilding the field [35]. For triangle-based collision queries, analytic derivatives and direct AD capture variation within a triangle but not transitions between triangles [2], [36]. Silico obtains implicit geometry gradients by jointly solving geometry and dynamics, but embedding geometric variables and constraints enlarges the coupled system [4]. Sampling-based surrogate gradients aggregate information across neighboring surface features, providing informative local gradients beyond a single triangle [36], [37]. CQDC-Warp adopts this surrogate approach. Table I summarizes these differentiation choices across simulators.
C. Contact-Rich Trajectory Optimization
Trajectory optimization commonly uses single shooting, multiple shooting, or direct collocation [23]. Single shooting optimizes control sequences through a complete rollout; multiple shooting introduces intermediate states and continuity constraints between shorter rollouts [26], [27]. Direct collocation represents trajectories with piecewise polynomials and enforces dynamics at selected nodes [23]. The latter two allow direct state-trajectory initialization and expose temporal sparsity, at the cost of additional variables and constraints. Differentiable simulation also enables gradient-based single-shooting MPC on GPUs [13]. CQDC-Warp follows this route, optimizing command sequences through GPU-batched differentiable rollouts.
A separate design choice is how much contact structure is prescribed. Crocoddyl [38] optimizes motion given a predefined contact-mode sequence and enforces the corresponding contact constraints. Contact-implicit methods instead optimize motion and contact interactions jointly without requiring such a sequence [25]–[29]. Our contact-guided setting uses an intermediate level of contact prior.
III. PRELIMINARIES
A. CQDC: Convex Quasi-Dynamic Contact Dynamics
Pang et al. [5] propose a convex, differentiable quasi-dynamic contact model, written as
where
Here and are the actuated and unactuated configurations, is the corresponding tangent displacement, is the actuator target, and , are generalized external forces. Matrices and are the actuator stiffness and unactuated mass matrices; is the step size, and controls the inertial regularization. The stiffness block treats the actuator as a position-controlled impedance with equilibrium command [5], [39]. The Jacobian stacks per-contact Jacobians , with and its actuated and unactuated blocks, while stacks the corresponding contact forces. At contact , is the signed gap, is the local normal-axis basis vector, and and are the Coulomb friction cone with coefficient and its dual [32]. The complementarity constraint follows Anitescu's cone formulation [34]. The generalized-inequality KKT conditions [40] show that (1) is the optimality condition for the following problem:
Here denotes the squared Q-norm.
By neglecting transient dynamics and focusing on transitions between steady states, the quasi-dynamic approximation supports larger planning time steps, allowing the planner to look further ahead with fewer steps [5]. This makes the model particularly useful for planning quasi-static manipulation tasks dominated by friction and damping.
B. Differentiable Collision Detection
The central idea of sampling-based differentiable collision detection is to preserve the GJK+EPA forward query [41], [42] while differentiating its witness points through a smooth surrogate in the backward pass. Montaut et al. [37] realize this idea by formulating the discrete witness-point selection as an argmax and approximating it with a soft argmax over sampled surface points to make the witness-point mapping differentiable. Their direction-based scoring is restricted to convex geometry and becomes ill-conditioned when the direction between the witness points vanishes. DiffCollision [36] instead writes the optimality condition in a distance-based form, extending the construction to concave geometry. Let be the forward witness point on object and be world-frame surface samples on object . Its backward surrogate is
(4)
where SoftArgmax denotes the average of the sampled points weighted by the softmax of their scores with temperature . DiffCollision also introduces equivalent gradient transport (EGT) to transfer the gradient of a fixed object to the optimized object when only one pose is adjustable.
IV. CQDC-WARP
This section first introduces two modeling improvements of CQDC-Warp over CQDC: a compliant-contact formulation and a revised inertial model. We then describe how gradients are computed through contact geometry using witness-pair surrogates and through the contact solve via implicit differentiation. Finally, we summarize the batched GPU implementation in NVIDIA Warp.
A. Compliant Contact
We replace the hard-contact model of classical CQDC with a compliant-contact formulation that retains the friction-cone constraint while penalizing contact deformation. The resulting problem is
(5)
where are contact-space slack variables, scales the reference gap, and , , is the contact-compliance matrix.
This formulation shares the convex soft-contact structure of MuJoCo [32], [43] and SAP [44], expressed here in displacements rather than accelerations (MuJoCo) or velocities (SAP). At the displacement level, the normal response in the stiction branch acts as a unilateral linear spring: it resists compression without attraction, with stiffness and a zero-force reference gap . Thus sets contact softness,
(a) CQDC: original metric

(b) CQDC-Warp: revised metric

(c) MuJoCo Warp

Fig. 2: Effect of the revised inertial model. Original CQDC metric fails to model joint–base coupling, while our revised metric accurately reproduces the trajectory of MuJoCo-Warp.
while controls how much existing penetration the spring seeks to recover in one step. Beyond modeling deformation, finite compliance regularizes the contact problem and facilitates its numerical solution: as decreases toward the hard-contact limit, Newton iterations and runtime rise (Fig. 5(b)).
The shared convex structure also allows the same analytical reduction as MuJoCo: we can express the optimal as a function of through cone projection and substitute it into (5). The resulting unconstrained strictly convex problem is then solved with a batched GPU Newton method.
B. Revised Inertial Model
For floating-base robots, joint motion can induce base motion through inertial coupling. The block-diagonal metric of classical CQDC in (2) omits this coupling, which can contribute to sim-to-sim and sim-to-real discrepancies, as shown by the toy model in Figure 2. CQDC-Warp includes inertia at both actuated and unactuated coordinates and retains their inertial coupling through the full generalized mass matrix. To derive the resulting model, we start from the force balance
where is the full generalized mass matrix, is the position-control stiffness matrix, nonzero only at actuated coordinates, is the generalized acceleration, and denotes total external forces. Adopting the step approximation and collecting the displacement terms gives the classical balance form (1), with
C. Contact-Geometry Surrogate Gradients
DiffCollision independently smooths the two witness points using separate surface samples and softmax weights. Although the contact normal and gap can then be computed differentiably, this two-stage procedure requires propagating witness-point derivatives to the contact quantities used by the solver. Instead, we sample witness pairs and use shared distance-based softmax weights to directly estimate the contact midpoint c, unit normal n, and signed gap g together.
Let denote sampled world-frame surface points and normals, with superscript identifying the object. We pair each forward witness point with samples on the other object. For pair , let
where denotes normalization and is oriented to agree with the forward contact normal. The weights and three surrogates are
(9)
Surprisingly, on DiffCollision’s witness-point matching benchmark [36], our preliminary experiments show that this formulation matches DiffCollision’s performance without EGT, suggesting that directly approximating contact quantities provides a more natural formulation.
D. Contact-Solve Implicit Gradients
We differentiate the converged solution with respect to by applying the implicit function theorem to the stationarity equation [5], [45]. Let and let denote Euclidean projection onto . The stationarity residual of (5) is
Its displacement Jacobian is
where is the cone-projection Jacobian. For an upstream gradient written in row vector, implicit differentiation solves the following linear system for downstream [45]:
E. Implementation
CQDC-Warp is implemented in Python using NVIDIA Warp [46] for GPU-parallel computation and automatic differentiation. We reuse and adapt much of MuJoCo-Warp's batched GPU infrastructure, including forward kinematics, collision detection, and forward dynamics [31]. Since the MuJoCo-Warp version used in our implementation does not provide an end-to-end differentiable simulation pipeline, we augment the backward computation of each component. For forward kinematics, we modify selected kernels to enable Warp's automatic adjoint generation. Collision detection uses the contact-geometry surrogate gradients of Sec. IV-C, while forward dynamics uses the contact-solve implicit gradients of Sec. IV-D. Both the forward Newton and reverse adjoint systems are solved in parallel over independent GPU worlds.
V. CQDC-WARP MODEL PREDICTIVE CONTROL
We consider contact-guided local trajectory optimization given a suitable initialization and intended contacts specified before planning. Contact intent identifies which robot links should contact the object and enters the MPC objective through soft contact costs. It does not prescribe a complete contact-mode schedule: collision detection and the contact solve determine the realized contact geometry, forces, and frictional response during each rollout. The optimizer updates command sequences through these dynamics.
A. Batched Receding-Horizon Optimization
Finite-horizon model predictive control (MPC) solves
Here is the current observed state, f is the dynamics function, and are stage and terminal costs, and is the previously executed command. MPC executes only the first command and replans from the next observation [47], [48]. We use differentiable CQDC-Warp as the predictive dynamics f in (13). At control cycle s, we run the following algorithm.
Algorithm 1 Batched gradient-based CQDC-Warp MPC
Require: observed , previous solution , horizon , iterations , step sizes
1: ; initialize per world
2: for do
3: reset all planning worlds to
4: for do
5:
6: end for
7: and
8: retain where it improves the per-world best
9:
10: end for
11: execute
Here and store the best sequence and cost for each GPU world, while is the command-sequence gradient. The operator normalizes the translation, rotation, and joint blocks of the gradient separately, and is the iteration step size. Shift drops the executed command and appends a terminal command to warm-start the next cycle. After optimization, only the first command of the best sequence is executed, and the next observation initializes a new optimization.
B. Trajectory Costs
Every cost in CQDC-Warp MPC is of the form , where r is the residual and P applies either L2 or Huber loss to r. We now define the residuals used in our MPC planning framework, grouped into three families.
- Positional Costs: For entity e at step k, translation and rotation residuals are
where a star denotes the goal and Log maps the relative rotation to its axis–angle vector. These residuals directly track the desired pose. To compensate for insufficient positional gradients near goal, we also penalize motion away from goal using the linear and angular goal-error rates
Here denotes stop-gradient. Detaching the previous error preserves the new-endpoint gradient and prevents the rate from being reduced by moving the previous endpoint.
- Regularization Costs: Linear and angular velocity residuals activate above configured limits, while command velocity and acceleration regularize command magnitude and temporal variation:
(16)
Here and are the entity's linear and angular velocities; and are their respective limits. For joint coordinate with limits and safety margin , define the residuals
- Contact Costs: For each task, we specify the robot links intended to make contact before planning. For each designated contact , the contact distance residual measures the deviation of the signed gap from its target . Optionally, the contact position residual anchors the witness point to a fixed world-frame reference along selected Cartesian axes . The residuals are
The distance cost encourages the intended contact, while the optional position cost biases its location along selected axes. Both guide contact realization without fixing the witness point or frictional mode in the dynamics.
VI. EXPERIMENT
Common Setup: All CQDC-Warp planning uses one NVIDIA RTX 4090 GPU, with shared parameters within each task family. Each control cycle uses 20 gradient iterations and horizon . Initial step sizes for the translation, rotation, and joint blocks are , , and , respectively, with cosine decay to 10%. Planning and MuJoCo evaluation time steps are 0.01 and 0.002 s. Each rollout runs for 500 control steps without early stopping. Unless specified otherwise, success requires all tracked position and geodesic rotation errors to remain below 2 cm and for 20 consecutive evaluation steps.
| Method | Metric | Air. | Bin. | Bowl | Bun. | Cam. | Can | Cube | Cup | Ele. | Foam | Mug | Pig. | Duck | Stick | Tea. | Torus | Bottle | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CFree | Succ. (%) | 23.2 | 74.6 | 74.6 | 85.7 | 53.2 | 92.1 | 79.1 | 92.5 | 76.0 | 98.6 | 90.0 | 81.2 | 90.5 | 19.1 | 71.5 | 51.6 | 100.0 | 73.7 |
| Time (s) | 22.5 | 21.0 | 21.8 | 20.79 | 23.0 | 21.8 | 21.9 | 22.5 | 22.0 | 19.7 | 20.2 | 22.1 | 25.1 | 22.2 | 20.7 | 20.5 | 16.4 | 21.4 | |
| IMPACT | Succ. (%) | 24.3 | 65.9 | 75.5 | 67.4 | 62.7 | 94.0 | 45.8 | 97.5 | 71.4 | 88.7 | 74.2 | 63.3 | 55.4 | 6.4 | 83.1 | 44.6 | 88.8 | 65.2 |
| Time (s) | 52.2 | 39.9 | 36.2 | 40.3 | 42.8 | 31.3 | 43.0 | 27.0 | 36.5 | 31.8 | 35.5 | 47.9 | 42.7 | 55.5 | 39.3 | 46.6 | 28.7 | 39.8 | |
| CQDC-Warp (Ours) | Succ. (%) | 20.4 | 81.7 | 76.9 | 91.8 | 72.2 | 97.9 | 83.3 | 99.3 | 91.3 | 98.9 | 84.4 | 89.5 | 82.2 | 6.0 | 95.1 | 86.2 | 99.8 | 79.8 |
| Time (s) | 0.866 | 0.884 | 0.880 | 0.879 | 0.894 | 0.811 | 0.817 | 0.901 | 0.741 | 0.732 | 0.733 | 0.774 | 0.763 | 0.701 | 0.696 | 0.742 | 0.685 | 0.794 |
TABLE II: Allegro in-hand rotation. Success and mean trajectory-generation time over 1,024 trials per object.

Initial
Mid
Final
Initial
Mid
Final
Initial
Mid
Final
Initial
Mid
Final

Initial
Mid
Final
Initial
Mid
Final
Initial
Mid
Final
Initial
Mid
Final

Initial
Mid
Final
Initial
Mid
Final
Initial
Mid
Final
Initial
Mid
Final
Fig. 3: Representative contact-rich trajectories, grouped by task: (a)–(d) in-hand rotation with Allegro, LEAP, and Shadow hands; (e)–(f) environmental contact exploitation using table, wall, and floor contacts; (g)–(h) bimanual bottle opening and object lifting; and (i)–(l) whole-body control with A1, GO2-D1, and G1. Light-green shapes indicate goal poses.
A. In-Hand Rotation
Allegro Hand. We use the 17-object CFree benchmark [8], also used by IMPACT [29], with 1,024 trials per object sampled from its initial-position and target-pose distribution. For this benchmark, the success threshold for rotation is . CQDC-Warp plans all 1,024 worlds in parallel, while CFree and IMPACT each run sequentially on one CPU core.
Over 17,408 trials per method (Table II), CQDC-Warp achieves mean success, versus for CFree and for IMPACT. Mean trajectory-generation time is , versus and , corresponding to and speedups under these execution settings.
LEAP and Shadow Hands. Using the Allegro parameters, we evaluate eight object-rotation tasks each on the 16-DoF LEAP and 22-DoF Shadow hands, plus a Shadow box flip. Initial hand-object configurations come from Dexonomy and BODex [49], [50], following dataset-based initialization [51]. Object-rotation targets perturb the initial orientation about a uniformly sampled axis by an angle uniformly sampled from . Success rates are for LEAP, for Shadow, and for the box flip (Fig. 1), supporting transfer across hand embodiments.
B. Additional Robots and Tasks
Environmental Contact Exploitation. The Shadow Hand tilts a bottle resting on a table by applying frictional forces from above, or raises the near end of a rounded rectangular object resting against a wall on the floor. Both tasks use environmental contacts as passive support and require maintaining hand-object contact without an enveloping grasp. With identical cost weights and MPC parameters, CQDC-Warp succeeds in 938/1024 bottle trials and 902/1024 wall-supported trials.
Bimanual Manipulation. Two independently actuated Shadow hands coordinate to open a bottle or lift an object. For opening, the left hand holds the bottle body at a fixed position while the right rotates its articulated cap by , achieving 1024/1024 successes. For lifting, the hands grasp opposite sides of a solid truncated cone and raise it by 0.20 m while preserving its orientation, achieving 1007/1024 successes.
Whole-Body Control. We evaluate four tasks using sparse pose-tracking objectives: A1 rises from prone to a three-legged stance, tracking only the trunk and raised front-left leg; GO2 with a D1 arm lifts a bottle from a table while maintaining its base pose, tracking only the bottle and base; G1 reaches and maintains a half-sitting posture from standing, tracking the torso, pelvis, wrists, and ankles, or lifts a bottle from a table, tracking only the bottle and torso.
Real-World Replay. We transfer the bottle–table task to a physical Sharpa hand using its model in planning. We obtain the manipulated-object model by scanning the target bottle and reconstructing its digital twin. The robot successfully replays the CQDC-Warp trajectory at 10 Hz over five times

Fig. 4: Real-world trajectory replay. We replay a CQDC-Warp trajectory to tilt a bottle with table contact.

(a) Full Dynamics
(b) Contact solver
Fig. 5: Computational efficiency.
its simulated duration (Fig. 4), supporting the trajectory's physical plausibility and its potential use for robot learning.
C. Time Analysis
We measure throughput in the Allegro bunny MPC loop over 100 control cycles at batch sizes , using the common setup of Sec. VI. Each world executes 10,000 forward and backward steps; throughput counts world-steps per second. The forward pass includes kinematics, dynamics, collision detection, constraint assembly, contact solving, and integration. The backward pass includes local-point sampling for geometry-aware gradients and differentiation through the cost and simulator. MuJoCo-Warp [31] provides a forward reference on the same scene.
Figure 5(a) shows comparable forward throughput for CQDC-Warp and MuJoCo-Warp across all batch sizes. At 2048 worlds, they reach and world-steps/s, respectively, while CQDC-Warp backward reaches world-steps/s.
To isolate solver performance, we solve ten problems extracted from saved runs, each with batch size 1,024, with and . We compare CQDC-Warp, GPU MOREAU [52], and CPU Clarabel [53], using CVXPYLayers [54] for Clarabel's backward pass. As increases (i.e., the contact becomes softer), CQDC-Warp forward time falls from 47.97 to 4.60 ms and mean Newton iterations from 14.83 to 3.41 (Fig. 5(b)), indicating that lower compliance increases solver difficulty. At , combined forward and backward time is 9.07 ms, versus 97.52 s for Clarabel and 11.54 s for MOREAU: speedups of and , respectively.
| H | 1 | 3 | 5 | 7 | 9 |
|---|---|---|---|---|---|
| Success (%) | 0.00 | 69.39 | 79.77 | 79.20 | 78.34 |
| Time (s) | 0.76 | 1.09 | 1.31 | 1.41 | 1.74 |
TABLE III: Planning-horizon ablation. Success and mean trajectory-generation time with 512 worlds per object.
D. Ablation Study
We use the 17-object Allegro benchmark (Sec. VI-A) here.
Geometry-Aware Gradient. We disable our contact-geometry derivative and fix witness points in each object's local frame. This reduces success from to , a 2.44-percentage-point drop, indicating that contact-geometry derivative helps contact position adjustment.
Horizon. We vary (Table III). The default achieves the highest success (79.77%); longer horizons increase generation time without improvement. Success falls to 69.39% at and zero at , suggesting that lookahead is necessary to anticipate object motion.
VII. CONCLUSION AND LIMITATIONS
We presented CQDC-Warp, a GPU-accelerated differentiable quasi-dynamic simulator for contact-rich manipulation. It supports the GPU parallelization of our contact-guided MPC formulation with intended contacts to guide planning while leaving their realization to the simulated dynamics. Experiments across versatile robotic tasks demonstrate the framework's effectiveness and efficiency for generating diverse contact-rich trajectories.
Our work has three main limitations. First, the planner relies on suitable initializations and intended contacts specified before planning. Further evaluation is needed on long-horizon tasks with frequent contact transitions. Second, although parameters are shared within each task family, objective weights still require tuning across different tasks and robot embodiments. Finally, the use of CQDC-Warp for large-scale manipulation data generation and its impact on downstream policy learning remain to be evaluated.
REFERENCES
[1] M. Geilinger, D. Hahn, J. Zehnder, M. Bächer, B. Thomaszewski, and S. Coros, “ADD: Analytically differentiable dynamics for multi-body systems with frictional contact,” ACM Trans. Graph., vol. 39, no. 6, pp. 190:1–190:15, 2020.
[2] K. Werling, D. Omens, J. Lee, I. Exarchos, and C. K. Liu, “Fast and feature-complete differentiable physics for articulated rigid bodies with contact,” in Proc. Robot., Sci. Syst. (RSS), Virtual, July 2021.
[3] T. A. Howell, S. Le Cleac'h, J. Brüdigam, J. Z. Kolter, M. Schwager, and Z. Manchester, “Dojo: A differentiable physics engine for robotics,” arXiv:2203.00806, 2022.
[4] S. Le Cleac'h, M. Schwager, Z. Manchester, V. Sindhwani, P. Florence, and S. Singh, “Single-level differentiable contact simulation,” IEEE Robot. Autom. Lett., vol. 8, no. 7, pp. 4012–4019, 2023.
[5] T. Pang, H. J. T. Suh, L. Yang, and R. Tedrake, “Global planning for contact-rich manipulation via local smoothing of quasi-dynamic contact models,” IEEE Trans. Robot., vol. 39, no. 6, pp. 4691–4711, Dec. 2023.
[6] Q. Le Lidec, L. Montaut, Y. de Mont-Marin, F. Schramm, and J. Carpentier, “Highly-efficient differentiable simulation for robotics,” arXiv:2409.07107v2, 2025.
[7] J. Carpentier, Q. Le Lidec, and L. Montaut, “From compliant to rigid contact simulation: A unified and efficient approach,” in Proc. Robot., Sci. Syst. (RSS), 2024.
[8] W. Jin, “Complementarity-free multi-contact modeling and optimization for dexterous manipulation,” in Proc. Robot., Sci. Syst. (RSS), Los Angeles, CA, USA, June 2025.
[9] E. Heiden, D. Millard, E. Coumans, Y. Sheng, and G. S. Sukhatme, "NeuralSim: Augmenting differentiable simulators with neural networks," in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2021.
[10] Tiny Differentiable Simulator Contributors, “Tiny Differentiable Simulator,” Open-source C++ and CUDA simulation software, accessed: Sep. 15, 2026. [Online]. Available: https://github.com/erwincoumans/tiny-differentiable-simulator
[11] M. Strecke and J. Stückler, “DiffSDFSim: Differentiable rigid-body dynamics with implicit shapes,” in Proc. Int. Conf. 3D Vision (3DV), 2021, pp. 96–105.
[12] C. D. Freeman, E. Frey, A. Raichuk, S. Girgin, I. Mordatch, and O. Bachem, “Brax: A differentiable physics engine for large scale rigid body simulation,” in Proc. Neural Inf. Process. Syst. Datasets Benchmarks, vol. 1, 2021.
[13] A. Paulus, A. R. Geist, P. Schumacher, V. Musil, S. Rappenecker, and G. Martius, “Differentiable simulation of hard contacts with soft gradients for learning and control,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2026. [Online]. Available: https://openreview.net/forum?id=2EGtfFwxx8
[14] Open X-Embodiment Collaboration, “Open X-Embodiment: Robotic learning datasets and RT-X models,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2024, pp. 6892–6903.
[15] C. Wang, H. Shi, W. Wang, R. Zhang, L. Fei-Fei, and C. K. Liu, "DexCap: Scalable and portable mocap data collection system for dexterous manipulation," in Proc. Robot., Sci. Syst. (RSS), Delft, Netherlands, July 2024.
[16] Z. Jiang, et al., “DexMimicGen: Automated data generation for bimanual dexterous manipulation via imitation learning,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2025.
[17] A. Rajeswaran, et al., “Learning complex dexterous manipulation with deep reinforcement learning and demonstrations,” in Proc. Robot., Sci. Syst. (RSS), Pittsburgh, Pennsylvania, June 2018.
[18] OpenAI, et al., “Learning dexterous in-hand manipulation,” Int. J. Robot. Res., vol. 39, no. 1, pp. 3–20, 2020.
[19] OpenAI, et al., “Solving Rubik’s Cube with a robot hand,” arXiv:1910.07113, 2019.
[20] T. Chen, J. Xu, and P. Agrawal, “A system for general in-hand object re-orientation,” in Proc. 5th Conf. Robot Learn. (CoRL), ser. Proc. Mach. Learn. Res., vol. 164, 2022, pp. 297–307.
[21] H. Qi, et al., “General in-hand object rotation with vision and touch,” in Proc. 7th Conf. Robot Learn. (CoRL), ser. Proc. Mach. Learn. Res., vol. 229, 2023, pp. 2549–2564.
[22] M. Yang, et al., “AnyRotate: Gravity-invariant in-hand object rotation with sim-to-real touch,” in Proc. 8th Conf. Robot Learn. (CoRL), ser. Proc. Mach. Learn. Res., vol. 270, 2025, pp. 4727–4747.
[23] M. Kelly, “An introduction to trajectory optimization: How to do your own direct collocation,” SIAM Rev., vol. 59, no. 4, pp. 849–904, 2017.
[24] Y. Tassa, T. Erez, and E. Todorov, “Synthesis and stabilization of complex behaviors through online trajectory optimization,” in Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst. (IROS), 2012, pp. 4906–4913.
[25] M. Posa, C. Cantu, and R. Tedrake, “A direct method for trajectory optimization of rigid bodies through contact,” Int. J. Robot. Res., vol. 33, no. 1, pp. 69–81, 2014.
[26] J.-P. Sleiman, J. Carius, R. Grandia, M. Wermelinger, and M. Hutter, "Contact-implicit trajectory optimization for dynamic object manipulation," in Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst. (IROS), 2019, pp. 6814–6821.
[27] G. Kim, D. Kang, J.-H. Kim, S. Hong, and H.-W. Park, “Contact-implicit model predictive control: Controlling diverse quadruped motions without pre-planned contact modes or trajectories,” Int. J. Robot. Res., vol. 44, no. 3, pp. 486–510, 2025.
[28] Y. Li, H. Han, S. Kang, J. Ma, and H. Yang, “On the surprising robustness of sequential convex optimization for contact-implicit motion planning,” in Proc. Robot., Sci. Syst. (RSS), Los Angeles, CA, USA, June 2025.
[29] J. Li, D. Gong, and G. Chalvatzaki, “IMPACT: An implicit active-set augmented Lagrangian for fast contact-implicit trajectory optimization,” in Proc. Robot., Sci. Syst. (RSS), Sydney, Australia, July 2026.
[30] S. Le Cleac'h, et al., “Fast contact-implicit model predictive control,” IEEE Trans. Robot., vol. 40, pp. 1617–1629, 2024.
[31] Google DeepMind and NVIDIA, “MuJoCo Warp,” Open-source GPU simulation software, 2025.
[32] Q. Le Lidec, W. Jallet, L. Montaut, I. Laptev, C. Schmid, and J. Carpentier, “Contact models in robotics: A comparative analysis,” IEEE Trans. Robot., vol. 40, pp. 3716–3733, 2024.
[33] D. E. Stewart and J. C. Trinkle, “An implicit time-stepping scheme for rigid body dynamics with inelastic collisions and Coulomb friction,” Int. J. Numer. Methods Eng., vol. 39, no. 15, pp. 2673–2691, 1996.
[34] M. Anitescu, “Optimization-based simulation of nonsmooth rigid multibody dynamics,” Math. Program., vol. 105, no. 1, pp. 113–143, 2006.
[35] NVIDIA, “PhysX SDK Documentation: Signed distance field collision,” Version 5.5.1, accessed: Sep. 15, 2026. [Online]. Available: https://nvidia-omniverse.github.io/PhysX/physx/5.5.1/docs/Geometry.html
[36] J. Chen, W. Zhao, L. Ruan, B. Chen, and H. Wang, “Robust differentiable collision detection for general objects,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2026.
[37] L. Montaut, Q. Le Lidec, A. Bambade, V. Petrik, J. Sivic, and J. Carpentier, “Differentiable collision detection: A randomized smoothing approach,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2023, pp. 3240–3246.
[38] C. Mastalli, et al., “Crocodydyl: An efficient and versatile framework for multi-contact optimal control,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2020, pp. 2536–2542.
[39] N. Hogan, “Impedance control: An approach to manipulation: Part I—theory,” J. Dyn. Syst. Meas. Control, vol. 107, no. 1, pp. 1–7, Mar. 1985.
[40] S. P. Boyd and L. Vandenberghe, Convex Optimization. Cambridge, U.K.: Cambridge University Press, 2004.
[41] E. G. Gilbert, D. W. Johnson, and S. S. Keerthi, “A fast procedure for computing the distance between complex objects in three-dimensional space,” IEEE J. Robot. Autom., vol. 4, no. 2, pp. 193–203, Apr. 1988.
[42] G. van den Bergen, “Proximity queries and penetration depth computation on 3D game objects,” in Proc. Game Developers Conf. (GDC), 2001.
[43] E. Todorov, “Convex and analytically-invertible dynamics with contacts and constraints: Theory and implementation in MuJoCo,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2014, pp. 6054–6061.
[44] A. M. Castro, F. N. Permenter, and X. Han, “An unconstrained convex formulation of compliant contact,” IEEE Trans. Robot., vol. 39, no. 2, pp. 1301–1320, Apr. 2023.
[45] A. Agrawal, S. Barratt, S. Boyd, E. Busseti, and W. M. Moursi, "Differentiating through a cone program," J. Appl. Numer. Optim., vol. 1, no. 2, pp. 107–115, 2019.
[46] M. Macklin, “Warp: A high-performance Python framework for GPU simulation and graphics,” https://github.com/NVIDIA/warp, Mar. 2022, NVIDIA GPU Technology Conference (GTC).
[47] J. B. Rawlings, D. Q. Mayne, and M. M. Diehl, Model Predictive Control: Theory, Computation, and Design, 2nd ed. Nob Hill Publishing, 2017.
[48] D. Q. Mayne, “Model predictive control: Recent developments and future promise,” Automatica, vol. 50, no. 12, pp. 2967–2986, Dec. 2014.
[49] J. Chen, Y. Ke, L. Peng, and H. Wang, “Dexonomy: Synthesizing all dexterous grasp types in a grasp taxonomy,” in Proc. Robot., Sci. Syst. (RSS), Los Angeles, CA, USA, June 2025.
[50] J. Chen, Y. Ke, and H. Wang, “BODex: Scalable and efficient robotic dexterous grasp synthesis using bilevel optimization,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2025, pp. 1–8.
[51] R. Wang, et al., “DexGraspNet: A large-scale robotic dexterous grasp dataset for general objects based on simulation,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2023, pp. 11359–11366.
[52] S. Barratt, P. Nobel, and S. Diamond, “Moreau: GPU-native differentiable optimization,” Software, 2026. [Online]. Available: https://moreau.so
[53] P. J. Goulart and Y. Chen, “Clarabel: An interior-point solver for conic programs with quadratic objectives,” Math. Program. Comput., 2026.
[54] A. Agrawal, B. Amos, S. Barratt, S. Boyd, S. Diamond, and J. Z. Kolter, “Differentiable convex optimization layers,” in Adv. Neural Inf. Process. Syst., vol. 32, 2019.