arXiv:2609.30951cs.ROSep 2026

Manuscript Offprint

arXiv:2609.30951

Bundled Contact Gradients: Stabilizing Differentiable Simulation for Deployable Dynamic Tasks

Dyuman Aditya, Jin Cheng, Clemens Schwarke, Quan Nguyen, Gaurav Sukhatme, Stelian Coros, Gabriele Fadini

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Dyuman Aditya 1^{1}, Jin Cheng 2^{2}, Clemens Schwarke 2,3^{2,3}, Quan Nguyen 1^{1}, Gaurav Sukhatme 1^{1}, Stelian Coros 2^{2}, Gabriele Fadini 4^{4}

Abstract—Differentiable simulation provides analytic gradients of robot dynamics, enabling fast and sample-efficient first-order policy optimization. However, obtaining smooth and informative gradients through rigid-body contact typically requires softened contact models, often at the expense of physical fidelity and thereby limiting learned policies largely to simulation. This trade-off becomes particularly consequential for dynamic humanoid motions, where accurate contact dynamics are critical for transferring policies to the real world. Increasing contact stiffness in rigid-body simulation improves the fidelity of interactions, but also makes the dynamics increasingly sensitive to small state perturbations, producing high-variance gradients that can destabilize first-order policy learning. To address this, we propose Bundled Contact Gradients (BCG), a contact-local randomized smoothing framework for differentiable policy learning. When stiff contact is detected, our method evaluates a local bundle of randomized perturbation rollouts around the stiff contact configuration and aggregates their gradient signal thereby reducing gradient variance. We demonstrate the effectiveness of our method by successfully training and transferring dynamic motions zero-shot onto a real-world Unitree G1 humanoid platform. Videos and supplementary information can be found at bundledcontactgradients.github.io

I. INTRODUCTION

Learning dynamic, contact-rich behaviors, such as agile locomotion and whole-body motions is predominantly achieved by model-free reinforcement learning (RL) [1], [2]. By optimizing policies without differentiating through the underlying dynamics, model-free RL can be applied directly to simulators with non-smooth contact models and has made it the workhorse behind recent sim-to-real successes in legged-robot control [3]. However, its reliance on zero-order gradient estimation makes policy optimization sample inefficient, particularly for long-horizon, high-dimensional control problems [4]. As a result, training often requires billions of environment interactions and substantial wall-clock time [5].

Differentiable simulation offers a more efficient alternative. By exposing analytic derivatives of the dynamics, it enables first-order policy optimization, by backpropagating gradients through the simulated dynamics to the policy. When the dynamics are smooth, the resulting gradients have far lower variance than their zero-order counterparts, and methods such as SHAC [4] report large gains in sample and wall-clock efficiency over zero-order RL. The promise of

(a)

Figure

(b)

per-rollout gradient

B branch rollouts

bundled average

bundled gradient

sampled foot position + velocity

stiff contact

(c)

Fig. 1. Bundled Contact Gradients. (a) Dynamic, contact-rich Unitree G1 motions learned in differentiable simulation with stiff, deployable contact. (b) At stiff contact (time t), B perturbations of the contacting foot's position and velocity are sampled from a local sphere of radius σ\sigma and simulated in parallel for H differentiable steps, then aggregated into the bundled state (blue). In the right-to-left backward pass, per-step sample gradients agree out of contact but diverge sharply at stiff contact (red). Bundling concentrates them around a common direction (blue), stabilizing first-order policy optimization at deployable contact stiffness. (c) Zero-shot transfer of the learned policies to hardware.

first-order learning, however, has largely been confined to simulation due to highly softened contact models that are employed.

Modeling stiff ground contacts in rigid-body differentiable simulation for legged control introduces a fundamental trade-off between physical fidelity and gradient quality. Compliant, low-stiffness contact yields smooth gradients but permits soft, penetrating interactions that do not transfer to hardware. Raising the stiffness toward physically faithful, deployable values restores realism but makes the analytic gradient high-variance and biased across contact events [6], [7], which destabilizes first-order optimization. Existing first-order methods largely sidestep this tension: they either soften

Corresponding author: Dyuman Aditya agdyuman@usc.edu

1^{1}University of Southern California, LA, USA.

2^{2}ETH Zurich, Switzerland.

3^{3}NVIDIA.

4^{4} Zurich University of Applied Sciences, Switzerland.

contact or shorten the differentiable horizon around contact events [8], discarding gradient information where contact-rich behavior must be learned.

Our approach is to retain stiff contact dynamics while stabilizing the gradients used for policy learning. At a stiff contact event, the gradient from a single contact configuration can be highly sensitive to small perturbations; averaging gradients over nearby configurations can provide a more stable learning signal. Building on randomized smoothing and bundle gradients [9], [10], we apply this principle within first-order policy learning. But rather than applying smoothing globally, as in prior trajectory-optimization settings where evaluating bundles over entire trajectories can be computationally expensive, we apply it locally, only at stiff contact events. We propose Bundled Contact Gradients (BCG) (Fig. 1): when stiff contact is detected, the simulator evaluates a small bundle of perturbations sampled in Cartesian space, and simulated over a horizon in parallel. Aggregating the branches yields a locally smoothed transition, so the forward rollout retains stiff, deployable contact while the backward pass with automatic differentiation [11] receives a lower-variance, averaged contact gradient. Because bundling is triggered only at stiff contact and executed in parallel on the GPU, the overhead is limited and incurred only where the first-order gradient is most fragile.

We integrate BCG into Warp [11] and use it within a SHAC-style actor-critic framework for first-order policy optimization. To learn dynamic humanoid behaviors, we apply this framework to motion imitation, where the policy tracks reference motions using rewards from Adversarial Differential Discriminators (ADD) [12].

In summary, our main contributions are:

• We introduce Bundled Contact Gradients (BCG), a contact-local randomized-smoothing scheme that stabilizes first-order policy gradients under stiff contact without softening the forward dynamics.

• We show that BCG learns deployable humanoid motion-tracking policies with fewer samples and less training time than PPO, while achieving lower tracking error after sim-to-sim transfer.

• We demonstrate zero-shot sim-to-real transfer of dynamic motions learned through differentiable simulation to real humanoid hardware.

To the best of our knowledge, this work represents the first successful zero-shot transfer of a policy trained in differentiable simulation onto a real humanoid platform, as well as the first pairing of ADD with first-order differentiable-simulation policy learning.

References (44)