Manuscript Offprint
arXiv:2610.35852Differentiable Contact Dynamics for Legged Locomotion: Policy Learning and Contact-Implicit Trajectory Optimization
Gijeong Kim , Seungbin Oh , Dongyun Kang , and Hae-Won Park
Abstract—This paper proposes a smooth analytic gradient for frictional contact and applies it to policy learning and contact-implicit trajectory optimization for legged locomotion. The exact contact sensitivity is available in closed form but describes changes within the current contact mode, providing no first-order information toward neighboring contact modes. The proposed gradient replaces this sensitivity only in the backward pass, leaving the hard-contact forward solve unchanged and the realized rollout feasible. A central-path relaxation of the de Saxé-corrected second-order-cone complementarity problem for Coulomb friction smooths the conditions defining the separating, clamping, and sliding modes. The relaxed sensitivity is evaluated at a point on the central path obtained by a Newton iteration initialized from the hard-contact solution. The sensitivity remains continuous through contact-mode transitions and converges to the exact sensitivity as the relaxation vanishes. Using 100,000 samples and less than 2 min of training on a desktop PC, policy learning with the proposed gradient produces a policy that transfers to hardware without fine-tuning. On hardware, the robot under a trotting policy withstands pushes and traverses debris and slippery ground. In trajectory optimization, the proposed gradient reaches contact-rich solutions missed by exact and Signorini-relaxed gradients. Project page: https://diffcontact.github.io
Index Terms—Differentiable simulation, frictional contact, second-order cone complementarity, contact-implicit trajectory optimization, analytic policy gradient, quadruped locomotion.
I. INTRODUCTION
THE first-order gradient through contact in a differentiable physics simulator provides a common computational primitive for two classes of methods in contact-rich robot control. The first is policy learning, in which model-free reinforcement learning is widely used and policy-gradient estimates are computed from rollouts across thousands of parallel environments [1], [2], [3]. First-order policy learning [4], [5] preserves the same objective but replaces the score-function (REINFORCE) estimate [6], [7] with a typically lower-variance first-order estimate [8]. This estimate can be obtained by differentiating through the simulator, with comparable policies learned from fewer samples [9]. The second is trajectory optimization. Contact-implicit trajectory optimization (CITO) methods determine when and where contacts are made and broken without a prescribed contact-mode sequence [10], [11], [12]. Shooting-based DDP/iLQR methods [13], [14] use the same transition Jacobians as the policy-learning estimator and have been applied online in receding-horizon control for contact-rich locomotion [15].
For legged robots, both tools are limited by the contact sensitivity provided by differentiable simulation. A simulator may be differentiable without providing a useful first-order direction toward a neighboring contact mode [16], [17]. The exact contact sensitivity is available in closed form [18], [19], but it is evaluated with the active set, or contact-mode assignment, held fixed and therefore describes only the response within the current mode. A clamped contact is linearized as remaining clamped, providing no first-order information toward liftoff or slip, and the sensitivity changes discontinuously when the active set changes. In contact-implicit optimization, this mode-restricted sensitivity keeps the local search near the contact sequence of the nominal trajectory [15], [18], [20]. In first-order policy learning, the same Jacobians enter backpropagation through time (BPTT), where they can produce fragile or ineffective optimization in contact-rich systems [16], [17], [21], [22].
Prior work addresses contact sensitivity in policy learning and CITO in different ways. In policy learning, methods shorten the differentiation horizon [9], [22], use a reduced-order model for the backward pass [23], or smooth contact in the forward rollout [24]. Shorter horizons can help with long-horizon gradient instability, but do not change the contact sensitivity within each window. In CITO, transcription methods optimize contact impulses alongside the trajectory [11], [12], [25], whereas shooting methods rely on transition Jacobians from the contact dynamics [13], [14], [15]. Other approaches smooth the forward contact model [26], [20], differentiate relaxed contact solutions [27], [28], or estimate gradients across perturbed solves [29], [30]. For shooting-based CITO with a hard-contact forward solve, however, the exact contact sensitivity remains tied to the current contact mode and offers limited first-order guidance toward a different mode [18]. Relaxing only the Signorini condition during differentiation [15] partly addresses this limitation by providing directions for contact make/break transitions, but leaves sliding and normal-tangential coupling unaddressed.
We therefore propose a contact sensitivity obtained by relaxing the full frictional contact condition only in the backward pass, providing search directions toward neighboring contact modes while retaining the hard-contact forward solve. The de Saxé correction expresses frictional contact as a single second-order-cone complementarity condition [31], [32]. Relaxing this condition along a central path [33] couples normal
The authors are with the Department of Mechanical Engineering, Korea Advanced Institute of Science and Technology, Daejeon 34141, South Korea.
and tangential contact sensitivities across separation, clamping, and sliding. These coupled sensitivities are available in every contact mode, allowing the optimizer to change modes through gradient-based updates. We further investigate their role in guiding transitions to sliding, where a normal-only relaxation lacks the required tangential information.
We test the effect of this sensitivity in two optimal-control settings using a quadruped robot: first-order policy learning and contact-implicit trajectory optimization. In each setting, we compare the exact [19], Signorini-relaxed [15], and proposed sensitivities while keeping the forward contact model, objective, and initialization fixed. The policy-learning experiments ask whether single-environment BPTT can produce locomotion policies that transfer directly to hardware. The trajectory-optimization experiments ask whether the proposed sensitivity improves contact-rich motion generation and recovery from unmodeled external pulls by enabling contact-mode changes and foot repositioning.
The main contributions are:
• An analytic backward contact sensitivity that relaxes the complete de Saxcé-corrected frictional contact law along its central path while retaining the hard-contact forward solve. It provides first-order directions toward separation, sliding, and clamping in every contact mode and recovers the exact sensitivity as the relaxation vanishes.
• The proposed gradient in BPTT-based first-order policy learning and contact-implicit trajectory optimization guides contact-mode changes and yields improved policies and lower-cost contact-rich trajectories.
• Hardware demonstration of quadruped policy learning with the proposed gradient for trotting, pacing, and gait-free locomotion. Trotting policies obtained using 100,000 samples in under 2 min are tested on hardware without fine-tuning under pushes, debris, and low-friction surfaces.
The remainder of this paper is structured as follows. Section II reviews related work and Section III the optimal control and contact dynamics background. Section IV states the required contact sensitivity, Section V derives the proposed gradient, and Section VI the implementation details. Sections VII and VIII present the policy-learning and trajectory-optimization demonstrations, and Section IX concludes.
A. Contact simulation and differentiable contact
Forward models. Rigid frictional contact is commonly modeled using three coupled principles [32], [34]: the Signorini condition, Coulomb's friction-cone bound, and Moreau's maximum-dissipation principle (MDP) [35]. Their combination yields a nonsmooth nonlinear complementarity problem for the contact impulse, solved at each time step using iterative methods such as projected Gauss–Seidel and staggered projections [32]. Linear-complementarity (LCP) models polygonalize the friction cone, allowing the use of pivoting methods [36]. Convex cone-complementarity (CCP) models relax strict Signorini complementarity to obtain a convex contact problem. During sliding, this can permit a nonzero normal force together with separating normal velocity, leading to artificial normal motion and, in time-stepping simulations, force across a gap [32]. MuJoCo employs a related convex soft-contact formulation [37]. Compliant models use finite contact stiffness and dissipation; with suitable regularization, convex formulations can also handle near-rigid contact [38].
In this work, the hard-contact forward model in CITO retains the three principles of the rigid nonlinear complementarity problem. We use per-contact iteration [34], solving sliding-contact subproblems by bisection with the de Saxcé correction [39]. For BPTT policy learning, we instead use RaiSim [34] for efficient forward rollouts because training requires repeated simulations at a fine time step. This also allows us to compare BPTT with PPO in the same simulation environment, although standard RaiSim can deviate from maximum dissipation during sliding [39]. In both settings, we derive the contact gradient from the de Saxcé representation of the rigid frictional contact law [31], [40].
Differentiating contact. Finite differences estimate contact sensitivities through repeated evaluations with perturbed inputs, with the number of evaluations growing with the input dimension [37], [13]. Near contact-mode transitions, the estimates can depend on the perturbation size. Automatic differentiation instead applies the chain rule to the operations executed by the simulator [41], [17], [5]. Analytic approaches can combine derivatives of rigid-body algorithms [42], [43] with implicit differentiation of the contact equations at the converged contact solution [18], [19], [44]. The proposed method follows this analytic approach, but evaluates sensitivity at a relaxed central-path point of the frictional contact condition.
B. Differentiable simulation for policy learning
Model-free reinforcement learning (RL) is widely used for legged locomotion. Score-function policy-gradient methods do not require derivatives of the simulator [45], and large-scale parallel simulation accelerates the collection of large sample batches for stable policy updates [2]. This approach has produced hardware locomotion [1], [46], [47], [48] and example-guided motor skills [49]. First-order policy learning instead differentiates the rollout dynamics to estimate the policy gradient [5], [17], which can improve sample efficiency [9], [50]. Related model-based RL methods differentiate a learned world model rather than a physics simulator [4], [51]; DayDreamer applies this approach to quadruped hardware learning [52].
First-order estimates through long unrolled dynamics can be unstable or less effective than zeroth-order estimates, particularly under stiff or nonsmooth dynamics [16], [21]. To mitigate these difficulties, SHAC [9] combines first-order estimates with short-horizon actor–critic training, and AHAC [22] adapts the differentiation horizon to avoid stiff contact dynamics. For systems without contact transitions, differentiable flight models have supported quadrotor-policy training and hardware transfer [50], [53]. Contact-rich locomotion additionally requires the backward pass to traverse repeated changes among separating, clamping, and sliding contacts.
Recent locomotion methods modify the dynamics used for differentiation in different ways to obtain informative contact gradients. Schwarke et al. [24] smooth contact activation with distance-dependent sigmoid scaling and differentiate the resulting simulation using automatic differentiation. This improves gradient informativeness but also modifies the forward contact dynamics. Song et al. [23] retain Isaac Gym for forward simulation while computing gradients through a state-aligned single-rigid-body surrogate that relies on a prescribed gait schedule. Both approaches demonstrate hardware transfer with policies trained using 128 and 64 parallel simulation environments, respectively. The present work instead uses an articulated hard-contact simulator for the forward rollout and a backward-only relaxation of its frictional contact sensitivity, without a reduced-order surrogate or smoothed forward dynamics. Moreover, we demonstrate that a single rollout per update suffices for BPTT with the proposed gradient to learn locomotion policies that transfer directly to hardware.
C. Contact-implicit trajectory optimization
Contact-implicit trajectory optimization (CITO) determines contact timing and location jointly with the state and control trajectories. Early formulations include contact-invariant optimization [10] and formulations that encode contact activation and separation through complementarity constraints [54], [11]. The resulting mathematical program must resolve the discrete contact-mode structure embedded in these constraints.
CITO methods differ in where they handle the contact law. Direct transcription includes contact forces or impulses among the trajectory decision variables [11]; related formulations combine centroidal dynamics with full kinematics [55], or use orthogonal collocation [56] and variational integration [12]. Consensus-based algorithms separate trajectory-wide dynamics constraints from per-step contact constraints and coordinate the subproblems through ADMM [57], [58]. Phase-based formulations instead optimize contact timing through stance and swing durations [59], [60]. Shooting-based methods resolve contact within each simulation step and provide transition Jacobians to the trajectory optimizer [13], [61], [62]. When computed within a fixed active set, hard-contact sensitivities can provide limited guidance for contact-mode changes [18].
Smoothed contact sensitivities can be obtained by modifying either the contact model or its differentiation. Compliant and barrier-smoothed models replace hard contact in the planning model and may introduce force at a distance or interpenetration [13], [14], [26]. Local smoothing regularizes the contact map analytically or by averaging over perturbations [20], [29], [30]; sampling-based variants require multiple perturbed solves. Interior-point approaches differentiate a relaxed system at a nonzero central-path parameter [27], [28]; the differentiated point is an intermediate iterate of the forward solver, so its relaxation level is tied to the values visited by the solver and the gradient is obtained within that solver. Relaxing only the Signorini condition during differentiation [15], [63] decouples the relaxed point from the forward solve, which remains hard. However, the friction cone stays unrelaxed, so a clamped contact has no tangential direction toward slip. The proposed gradient instead applies the central-path relaxation to the full de Saxcé-corrected frictional cone, thereby coupling normal and tangential sensitivities across separating, clamping, and sliding contacts. Its evaluation point is not a byproduct of the forward solve but is computed by a separate Newton iteration from the hard-contact solution, so the relaxation parameter can be chosen for the backward pass alone.
III. BACKGROUND
Shooting-based trajectory optimization and BPTT-based policy learning use the transition Jacobians in a backward recursion. Forming these Jacobians through contact requires the contact-impulse sensitivity . This section reviews the two optimal-control formulations and the forward dynamics that resolve contact, and derives the analytic contact-impulse sensitivity for each contact mode. The second-order cone complementarity problem (SOCCP) formulation of frictional contact used by the proposed gradient computation is also reviewed.
A. Optimal-control formulation
With state x, control input u, and discrete-time dynamics , trajectory optimization and first-order policy learning can be posed as finite-horizon optimal-control problems of the form,
(1)
where the decision variable determines the controls through , and are the running and terminal costs, and is the initial-state distribution. The two settings differ in the choice of , , horizon, and solver. Both rely on the transition Jacobians and . Throughout, denotes the total differential with respect to an arbitrary perturbation, the corresponding total derivative (sensitivity) with respect to a parameter , a partial derivative with the remaining arguments held fixed, and the gradient of a scalar function.
Trajectory optimization (shooting-based DDP/iLQR). Here the decision variable is the open-loop control sequence from a fixed initial state . Differential dynamic programming [64], [13] is a shooting method that solves (1) by alternating an explicit forward rollout of with a backward Riccati sweep derived from Bellman's principle of optimality. The sweep forms a local quadratic approximation of the state-control value , whose derivatives combine derivatives of the cost , the transition Jacobians , and the next-step value derivatives . The iterative linear-quadratic regulator (iLQR/iLQG) uses the Gauss-Newton approximation that omits the second-order dynamics terms [65], [13]. Under this approximation,
with formed analogously. Minimizing the local quadratic model over the control increment yields the feedforward and feedback gains, whose back-substitution updates the cost-to-go for the preceding step and carries the sweep back to t = 0. Its feasibility-driven multiple-shooting variant
(FDDP) [66] admits an infeasible state–control initialization and closes the dynamics gaps over the iterations, widening the basin of attraction under poor initialization.
Policy learning (first-order, via BPTT). Here the decision variable is the policy parameter of a feedback policy , with initial states sampled from . For a truncated rollout of length , a finite-horizon loss is . A learned value function can be added as the terminal term to bootstrap the remaining return, as in actor-critic variants such as SHAC [9]. The gradient of is obtained by backpropagation through time (BPTT) [67] along the closed-loop rollout. With , the state and action gradients follow the backward recursion as,
(3)
The first recursion propagates the future loss backward through the closed-loop Jacobian , while the second gives the sensitivity of the rollout loss to the action at each step. The parameter gradient then follows as . In practice, reverse-mode automatic differentiation accumulates this recursion over the unrolled rollout using the transition Jacobians and supplied by the differentiable simulator at each step [41], [17].
Relation to reinforcement learning. Model-free reinforcement learning (RL) instead optimizes the expected return of a stochastic policy and estimates its gradient by the score-function (likelihood-ratio) rule, [6], [7], with a sampled trajectory. This zeroth-order estimator requires no dynamics derivatives and can be applied to nonsmooth or even discontinuous dynamics, with policy stochasticity providing a randomized smoothing of the objective [68], [16], at the cost of high variance [8], [69]. In contrast, the first-order gradient above is lower-variance and sample-efficient [4], [9], but nonsmooth and near-rigid contact can produce degenerate or ill-conditioned gradients [16], [21].
B. Dynamics model and the frictional contact problem
A legged robot interacts with the environment through intermittent frictional contact, modeled here by contact impulses. Its state is described by the configuration and generalized velocity , where denotes the tangent space at . The dynamics are integrated at the velocity level using a time-stepping scheme [35], [70] with a semi-implicit Euler step of size ,
with symmetric positive-definite joint-space inertia , nonlinear (Coriolis, centrifugal, and gravitational) terms , actuation selector , control input (joint torque) , and contact Jacobian mapping generalized velocities to the velocities of the contact points; stacks the contact impulses over the step.
Solving for the next-step velocity decomposes it into the free velocity and a contact contribution,
Mapping (4) to the contact frame gives the contact-space (Delassus) relation
where is the contact velocity, is the Delassus matrix (the contact-space inverse inertia) and is the free-contact term. To suppress contact drift, the normal component of is augmented by the position-level correction , where is the signed normal gap, positive in separation. Thus, , where denotes the normal rows of , and approximates the next-step signed gap.
For a single contact, dropping the index and writing with Delassus pair , frictional point contact is governed by three principles [70], [35], [32]. The Signorini condition expresses contact unilaterality as
Coulomb's law confines the impulse to the friction cone,
while the maximum-dissipation principle (MDP) selects the admissible friction impulse that maximizes dissipated power,
For sliding contact ( ), the MDP gives , where . These conditions define the following contact modes [32]:
The separating mode carries no contact impulse, the clamping mode corresponds to sticking with an interior friction impulse, and the sliding mode places the impulse on the cone boundary, . The active mode is determined by the solution rather than known a priori, giving rise to the combinatorial structure of the contact problem.
C. The de Saxcé SOCCP and its Jordan-algebra form
The Signorini condition, Coulomb friction cone, and MDP can be recast as a single conic complementarity condition using the de Saxcé correction [31], [40]. The correction offsets the normal velocity by the dissipation prescribed by the MDP:
The orthogonality “⊥” comprises three coupled conditions: primal feasibility , dual feasibility , and complementarity . This complementarity condition holds for the three contact modes in (5) [32]. For separating and clamping contacts, it follows from and , respectively. For sliding contact, and the MDP relation give . This term cancels the contribution from the de Saxcé correction, so that .
To put this complementarity in the form used by standard second-order cone solvers, the interior-point treatment of friction [33] rewrites it through the Jordan algebra of a self-dual cone. This requires a self-dual (symmetric) cone , and the friction cone is self-dual only at unit friction; we therefore apply the standard unit-friction rescaling [33]
This maps and onto the self-dual second-order cone , i.e. , while preserving the primal-dual pairing . For , the scalar complementarity condition can equivalently be expressed through the Jordan product [71], [33], , where denotes the Jordan product on (Appendix A). The de Saxcé condition (6) thus becomes the second-order cone complementarity problem (SOCCP)
whose three solution branches are the separating, clamping, and sliding modes of (5), and which can be solved by Jordan-based interior-point and path-following methods [33].
D. Contact impulse sensitivity
The contact impulse is implicitly determined by the Delassus pair and the contact conditions in (5). Differentiating these conditions together with , while holding the contact mode fixed, gives a separate sensitivity for each mode [18], [19]. For given variations and , the corresponding is obtained as follows.
Separating. Within the separating mode, the contact impulse remains zero, and therefore
Clamping. The clamping condition is . Differentiating this condition gives
and hence .
Sliding. In the sliding mode, the Signorini condition gives , while the maximum-dissipation principle imposes . Following [19, App. A], differentiating gives , so the normal condition gives . Differentiating the MDP relation through gives , where , , and . Eliminating using gives
MDP:

(a) Lift-off (Upward Target)
(b) Traverse (Lateral Target)
(c) Friction Braking
Fig. 1. Converged iLQR solutions for three CITO tasks over a 30-step horizon with hard-contact forward dynamics. The solutions differ only in the backward gradient: mode-dependent exact, Signorini-relaxed, or proposed full-cone relaxation. (a) Lift-off: the mass starts clamped on the ground with the target above its initial position. (b) Traverse: the mass starts clamped with a lateral target. (c) Friction braking: without gravity, the mass hovers above the ground at the target position with an initial lateral velocity and returns after moving away. All rollouts start from zero control. An MIQP over the contact-mode sequence, solved to zero optimality gap, provides the reference trajectory (dashed) and cost normalization. Right: final cost normalized by the MIQP cost and contact-mode sequence over the horizon; the green marker denotes the MIQP solution.
Here, and denote the normal and tangential rows of . The two conditions form a linear system for .
For multiple contacts, the mode-specific conditions are assembled into a single linear system. Separating contacts satisfy and are omitted from the reduced system, while the clamping and sliding equations are stacked for the remaining contacts. The off-diagonal Delassus blocks couple the contact sensitivities, and a single linear solve yields the remaining contact-impulse variations [18], [15], [19]. Because differentiation is performed with the contact-mode assignment fixed, the sensitivity is piecewise defined over , with a different expression for each mode assignment.
IV. PROBLEM SETTING
In this section, we examine what contact sensitivities must capture to guide first-order optimization near transitions between contact modes. We use point-mass examples to study how different relaxations of the frictional contact condition affect the available optimization directions.
A. Requirements on the backward contact gradient
The exact contact sensitivity can be uninformative for first-order updates that require a contact-mode transition [18], [30]; the optimizer can therefore remain confined to the current contact mode even when another mode would reduce the objective. The sensitivity is obtained by differentiating the contact constraints for the mode selected by the forward solve; it thus describes only perturbations that preserve that mode. For a loss , the contribution to its derivative through contact-point motion can be written as , where denotes the contact-point velocity. The first factor measures the sensitivity of the loss to contact-point motion, whereas is determined by the contact sensitivity. The limitation arises from the latter term. At a clamping contact, the mode constraint imposes , and differentiation within the fixed mode gives . Hence, the loss derivative transmitted through contact-point motion vanishes even when such motion would reduce the objective. Analogous restrictions arise in the other contact modes. At a separating contact, gives ; at a sliding contact, and the differentiated MDP constrain the sensitivity to the sliding branch.
Fig. 1 considers three CITO tasks for a planar point mass actuated by horizontal and vertical forces. Each task uses , a 0.05 s time step, a horizon of , and friction coefficient . The objective is
where , , and are the position, velocity, and applied force at step , and is the target position. The weights are , , and . Within each task, all three methods use the same objective, force limit (20 N in (a) and (b); 6 N in (c)), zero-control initialization, iLQR solver, and hard-contact forward dynamics. Only the backward contact sensitivity differs: mode-dependent exact, Signorini-relaxed (normal-only), or proposed full-cone relaxation. Under zero-control initialization, cases (a) and (b) remain clamped under gravity, whereas case (c) starts above the ground in the separating mode without gravity and with an initial lateral velocity. For comparison, we solve a mixed-integer quadratic program (MIQP) that optimizes the contact-mode sequence to zero optimality gap. Its trajectory is shown in green, and the reported costs are normalized by the MIQP solution cost.
Fig. 1 shows that the proposed gradient reaches the target in all three tasks. The Signorini-relaxed gradient succeeds in (a) but not in (b) or (c), whereas the exact gradient does not reach the target in any task. In (a), reaching the target above the initial position requires a transition from clamping to separation. The exact sensitivity gives zero normal contact-velocity variation, so the contact remains clamped. Relaxing the normal contact condition is sufficient to reach the target. In (b), reaching the lateral target requires tangential contact-velocity variation. For the clamped initialization, both the exact and Signorini-relaxed sensitivities give zero tangential variation, yielding higher-cost trajectories that remain clamped in place. The proposed gradient yields a lower-cost trajectory following the MIQP strategy: the mass lifts off and travels laterally in the separating mode, avoiding frictional resistance along the ground, before sliding and reclamping at the target.
In (c), the target coincides with the initial position, but the initial lateral velocity carries the mass past it. The bounded actuation force cannot return the mass within the horizon; descending into ground contact introduces a frictional force that can further decelerate the mass. The exact and Signorini-relaxed sensitivities do not provide the coupled normal and tangential variation needed for this motion. Both optimizations saturate the force input without returning to the target. The proposed gradient yields a trajectory that descends, brakes through sliding friction, and returns to the target. Across these tasks, covering all normal and tangential contact-mode transitions requires relaxing the full frictional contact condition.
V. ANALYTIC CONTACT SENSITIVITY VIA RELAXED DE SAXCÉ CONIC COMPLEMENTARITY
The proposed contact sensitivity is obtained by relaxing the de Saxcé-corrected conic complementarity along its central path at and analytically differentiating the relaxed relation. The relaxation couples the normal and tangential sensitivities without fixing the clamping, sliding, or separating mode. A Newton iteration initialized from the hard-contact solution computes a relaxed evaluation pair satisfying both the relaxed complementarity and the Delassus relation. A normal free-velocity offset additionally adjusts the clamping–separating sensitivity. Both modifications are restricted to the backward sensitivity evaluation.
A. Central-path relaxation and the unified contact sensitivity
The de Saxcé-corrected conic complementarity is relaxed along a central path, as in primal–dual interior-point methods for frictional contact formulated as an SOCCP [33]:
which places both and in int K. We differentiate this interior relation directly, deriving the contact sensitivity without distinguishing the separating, clamping, and sliding modes.
At fixed , differentiating (12) using the Jordan-product representation gives
where is the Jordan-product arrow matrix (Appendix A) [71]. For the scaled impulse,
with defined analogously. From and , differentiating these scalings gives and , where
Substituting these differentials into (13) gives
(14)
(a) Clamping

(b) Separating
(c) Sliding
Fig. 2. Central-path relaxation of the exact contact solutions in the clamping, separating, and sliding regimes for a two-dimensional contact with . The top row shows the contact impulse , and the bottom row shows the de Saxé-corrected contact velocity . At , the clamping regime has , the separating regime has , and, in the sliding regime, both and lie on their respective cone boundaries. For , the corresponding relaxed variables lie in int and int . Black markers denote the exact solution. Blue and orange markers denote the relaxed impulse and corrected contact velocity , respectively, for . Darker markers correspond to larger , and dotted curves trace the relaxed-solution loci as increases.
Sensitivity of Normal Impulse

Sensitivity of Tangential Impulse
Sensitivity of Normal Velocity
Sensitivity of Tangential Velocity
Exact
Proposed , 1 Solve
Randomized Smoothing 0th-Order (N=128)
Randomized Smoothing 1st-Order (N=128)
Fig. 3. Sensitivities of a single contact under the exact, randomized-smoothing, and proposed gradients: the impulse and contact-velocity components with respect to the free normal velocity . The point-mass model has diagonal and nonzero free tangential velocity . As increases, the hard-contact solution changes mode from clamping to sliding and then to separating. The exact sensitivity (black, ) jumps at the mode boundaries and contains zero components resulting from differentiation of the contact constraints with the mode held fixed. Randomized smoothing with perturbation standard deviation 0.6 yields zeroth- and first-order estimates [16], [30] using perturbed solves per point. The proposed sensitivity ( ) is evaluated deterministically at a single Newton-solved central-path point for each (Section V-B) and remains continuous across these mode transitions.
where the explicit block forms of and are given as follows.
Using the definitions of , , and , direct multiplication of and gives,
and
\mathcal{M}_{\lambda}=\left[\frac{\sigma_{N}+\mu\left\|\boldsymbol{\sigma}_{T}\right\|}{\mu\sigma_{T}}\left|\begin{array}{c}\boldsymbol{\sigma}_{T}^{\top}\\ \left(\sigma_{N}/\mu+\left\|\boldsymbol{\sigma}_{T}\right\|\right)I_{2}\end{array}\right].Combining with the differentiated Delassus relation gives the unified sensitivity equation
For , we set . This convention applies at the initialization of Algorithm 1 from a clamping contact, where , and at any iterate with .
For a single contact, for example, the sensitivity with respect to a variable is
For contacts, the per-contact blocks of and assemble into the corresponding -dimensional system, which is solved jointly for the contact-impulse sensitivity. Taking as a component of or provides the contact sensitivities used to compute and .
B. Evaluating the sensitivity at
We evaluate the sensitivity in (15) at a relaxed pair satisfying the Delassus relation and the relaxed complementarity for , rather than at the hard-contact pair. This change in the evaluation point also changes the constraints imposed on the linearized contact response. At , the hard-contact pair satisfies rigid complementarity and lies on a mode-dependent boundary of the cones. Differentiation with the contact mode fixed enforces the conditions in (5); for example, in clamping and in separating. The exact sensitivity therefore provides no first-order direction toward a change in the current contact mode. For , a relaxed pair on the physical central-path branch satisfies . Its linearization is governed by the unified system (15) rather than the hard-contact mode conditions, so the corresponding sensitivity components can be nonzero.
Fig. 2 illustrates the evaluation-point geometry for clamping, separating, and sliding contacts. At the hard-contact root, in clamping and in separating, whereas both variables are nonzero and lie on their respective cone boundaries in sliding. As increases from zero, the relaxed points depart from their hard-contact roots and move into their respective cone interiors. Fig. 3 shows the sensitivities for a single-contact model with diagonal A and nonzero as is swept across the three contact modes. For the exact sensitivity, the tangential impulse and contact-velocity derivatives are zero in clamping and separating, and the normal contact-velocity derivative is zero in clamping and sliding. These derivatives change discontinuously at the contact-mode boundaries. For , the proposed curves vary continuously across the plotted contact-mode transitions, and components constrained to zero by the exact contact mode become nonzero; in particular, the full-cone coupling produces nonzero tangential sensitivities for a normal perturbation, such as in this example. The empirical means obtained from repeated zeroth- and first-order randomized-smoothing estimates show the same qualitative features in this sweep [16], [30], while the proposed sensitivity does not require Monte Carlo sampling.
The relaxed evaluation point is computed by a Newton iteration initialized at the hard-contact solution returned by the forward pass, while the associated Delassus pair is held fixed. To cast the relaxed complementarity together with the Delassus relation as a root-finding problem in the impulse alone, we substitute into (12) and define the residual
Its Jacobian is the system matrix in (15),
To solve , we use the following Newton update with a regularization term at iteration :
(17)
where . The last update keeps the Delassus relation satisfied at every iterate. Upon convergence, satisfies both relations and is used to evaluate and for the contact sensitivity.
The term I provides a residual-scaled diagonal regularization of the Newton system, as in regularized Newton methods for nonlinear equations [72]; here, is the
Algorithm 1 Regularized Newton iteration for the backward evaluation point
Require: Hard-contact impulse ; Delassus pair ; ; regularization parameter ; tolerance ; maximum iterations
1: ;
2: for do
3: Form and evaluate from (16)
4: if then
5: break
6: end if
7: Assemble from (14) and solve as in (17)
8: ;
9: end for
10: return
(a)

(b)
Fig. 4. Effect of the normal free-velocity offset in the proposed relaxation. (a) Increasing translates the dynamics relation (dashed). Its intersection with the relaxed contact law moves along the curve toward lower and higher . (b) Normal sensitivity as a function of the unshifted . Increasing shifts the sensitivity curve to more negative .
regularization parameter. This term regularizes the linear solve during the early Newton iterations, particularly when the hard-contact initialization yields a poorly conditioned Newton matrix. For example, for a clamping contact close to the friction-cone boundary, becomes small and approaches singularity. As the Newton iteration converges and the residual decreases, the regularization weakens and vanishes at the relaxed root, recovering the unregularized Newton system. Algorithm 1 summarizes the procedure.
C. Normal free-velocity offset
To improve numerical conditioning, we additionally apply a nonnegative offset to the normal component of the backward free-contact term before the Newton iteration,
With held fixed during differentiation, the offset changes the Newton residual and the relaxed evaluation pair without changing the form of the sensitivity system (15). For a
The eigenvalues of include , which approaches zero at the clamping-sliding boundary.

Fig. 5. Overview of the proposed differentiable contact framework. Given , the hard-contact forward solve determines the contact impulse , contact velocity , and next state under the realized sliding, clamping, or separating mode. For the backward pass, the Signorini condition, Coulomb friction cone, and maximum-dissipation principle are expressed as a single conic complementarity condition using the de Saxé correction. The hard-contact solution at is relaxed along the central path to , and analytic differentiation yields the relaxed contact sensitivity and transition Jacobians . These Jacobians are used for BPTT policy learning and DDP-based trajectory optimization.
given impulse, the offset adds a positive diagonal contribution to the Newton matrix, which can improve the conditioning of the linear solve. We observe a lower rate of convergence to spurious roots with the offset enabled (Section VII-D).
Fig. 4 illustrates how increasing shifts the normal sensitivity curve toward more negative values of the unshifted . At the same , this shift provides greater normal sensitivity toward contact release for states whose hard-contact forward solution remains clamped. This sensitivity can guide trajectory optimization toward solutions involving liftoff.
D. Recovery of the fixed-mode sensitivity as
In the limit , with , the central-path relaxation vanishes and the proposed sensitivity recovers the exact fixed-mode sensitivity derived in Section III-D. For a separating contact, gives with nonsingular , so the limiting sensitivity gives ; for a clamping contact, gives with nonsingular , so it gives , equivalently . These recover (9) and (10), respectively. For a sliding contact, substituting the hard solution into and gives
where . In , combining the first row with the component of the last two rows along gives . With , the last two rows reduce to , where and . These conditions coincide with the differentiated Signorini and MDP conditions in (11), recovering the exact sliding sensitivity.
VI. IMPLEMENTATION
Fig. 5 summarizes the forward–backward computation. The forward pass determines the realized transition, while the proposed relaxed contact sensitivity is used to assemble the transition Jacobians for BPTT and DDP.
A. Transition-Jacobian assembly
The proposed gradient replaces the contact sensitivity used to form the transition Jacobians. The semi-implicit step (4) defines the discrete transition . Differentiating the transition gives, for example,
with an analogous expression for . For the proposed backward pass, and are obtained from (15) at the central-path evaluation point obtained by Algorithm 1; the remaining factors, at fixed impulse and , are evaluated at the same point.
The other derivatives required to form are computed analytically with Pinocchio [73]. The rigid-body derivatives are evaluated with the contact impulse held fixed, while the variations and in (15) additionally require derivatives of the contact Jacobian, including the kinematic Hessian . The derivative of the position-level correction included in is also retained in . Further details of the rigid-body derivative assembly are given in [15, App. B].
B. Optimal-control setup
We evaluate policy learning and contact-implicit trajectory optimization on a 45-kg floating-base quadruped with a 37-dimensional state and 12 joint-torque inputs. Contact is modeled at four point feet on flat ground under Coulomb friction, and the control step is 25 ms. The transition Jacobians enter the BPTT recursion (3) for policy learning and the DDP/iLQR backward pass (2) for trajectory optimization. The hard-contact forward solve is retained in both settings; the complementarity relaxation is applied only to the backward contact sensitivity.
Cost. The regulating cost is
TABLE I RUNNING-COST WEIGHTS FOR POLICY LEARNING
| Term | Weight | Term | Weight |
|---|---|---|---|
| Base | Joints | ||
| Position, x, y | 0 | Position | |
| Height | Hip-roll position | 1 | |
| Orientation, roll-pitch | Velocity | ||
| Orientation, yaw | 0 | Feet | |
| Linear velocity, x, y | 4 | Position, x | 3 |
| Linear velocity, z | 2 | Position, y | |
| Angular velocity, roll-pitch | 2 | Foot clearance | |
| Angular velocity, yaw | 2 | Regularization | |
| Control effort | |||
| Action rate | |||
| Joint acceleration |
Used only for gait-conditioned tasks.
where specifies the target base pose and velocity together with the nominal joint configuration, and and are diagonal weights. The floating-base orientation residual uses the logarithm, while the remaining state residuals are Euclidean differences [15]. The state reference does not prescribe a contact mode or contact sequence.
The policy-learning stage cost is
The foot term regulates the hip-relative horizontal foot position about its nominal value . For the gait-conditioned tasks, tracks a phase-dependent target for the foot clearance , with a maximum of during swing and zero during stance; its weight is zero in the gait-free tasks. The smoothness term penalizes changes in the action and the joint acceleration , with weights and . Trajectory optimization retains the cost weights of [15], weighted toward position tracking.
C. Policy-learning implementation
For policy learning, we consider velocity-command-tracking tasks in which the policy is conditioned on commands for planar linear velocity and yaw rate. The decision variable is the policy parameter , which defines a feedback mapping from the current observation to an action.
The forward rollout uses RaiSim [34] with a 1-ms simulation time step, yielding 25 simulation steps per control step at . Rollouts are differentiated over windows of control steps (0.5 s), as in short-horizon differentiable-simulation training [9], [23]. For the proposed backward pass, Algorithm 1 is initialized with the substep-accumulated impulse and with assembled at the simulated next state ; its tangential components are the contact-point velocities, and its normal is the contact gap divided by the control step. The free-contact term of the backward Delassus pair is accordingly set to . After each policy update, the next training window continues from the terminal state of the preceding window; the simulator is reset only at episode termination. Episodes terminate after 4 s or when either the per-step cost or cumulative body-contact count exceeds its prescribed threshold. Adam [74] updates at a constant learning rate of . The policy is deterministic.
The policy network uses a [256, 128] multilayer perceptron (MLP) with LeakyReLU activations. Its 60-dimensional observation comprises the command, gravity direction, joint positions and velocities, body twist, body-frame foot positions, and previous action; gait-conditioned tasks add a two-dimensional phase encoding. The policy observation is detached from the computational graph before policy evaluation. The output specifies joint targets , which are mapped to joint torques by PD gains and , yielding a constant action-to-torque Jacobian. Training is performed on a desktop with a 10-core Intel Core i9-10900K CPU.
D. Trajectory optimization implementation
In CITO, we consider base-pose reaching tasks. The reference specifies the desired base position and orientation while retaining the nominal joint configuration. Because no contact modes are preplanned, the optimized state-control trajectory determines the contact modes, contact impulses, and foothold placements required to reach the reference. For a given current state, the decision variable is the control sequence. Box-FDDP [75] solves the resulting optimal-control problem over steps (0.5 s). For the nominal CITO evaluation, successive finite-horizon problems are solved in a receding-horizon fashion: the state is advanced one step along the optimized trajectory, which is then shifted to initialize the next solve.
VII. POLICY LEARNING VIA BACKPROPAGATION THROUGH TIME
We evaluate how the backward contact gradient affects policy learning across the locomotion tasks. Hardware experiments assess policies trained with single-environment BPTT and deployed without fine-tuning. The PPO comparison evaluates sample efficiency and performance under a shared task objective and simulation setting. The Newton iteration is evaluated in terms of convergence and cone feasibility.
A. Training across contact gradients
Fig. 6 compares three contact sensitivities under a fixed training setup. The baselines are the mode-dependent exact sensitivity [19] (Section III-D) and the Signorini-relaxed sensitivity [15, Eq. 19], which replaces the Signorini complementarity with while retaining the unrelaxed friction cone. Appendix B derives this sensitivity in our formulation. The proposed gradient relaxes the full frictional contact condition. Both relaxed gradients use . The proposed gradient uses for trotting and pacing and for the gait-free tasks. Training uses 16 environments and 5,000 policy iterations per run across 10 seeds.
Four velocity-command-tracking tasks are considered: gait-free locomotion at nominal and low friction, and trotting and pacing at nominal friction. Training command ranges are m/s in forward velocity for gait-free tasks and and m/s in forward and lateral velocities for trotting and pacing, respectively.

(a)
Gait-Free (Low Friction)
Trot
Pace
(b) Median
3.986
3.515
0.489
0.900
0.888
0.738
1.54
1.22
1.09
(c)
Friction Coefficient
Friction Coefficient
Friction Coefficient
Friction Coefficient
Fig. 6. Training with three backward contact gradients (no relaxation, Signorini-relaxed, and proposed) on four locomotion tasks (10 seeds). Training uses 16 environments, with friction coefficient for low-friction gait-free locomotion and otherwise. (a) Training reward. Curves show the mean and shaded bands denote standard deviation across training curves smoothed separately for each seed. (b) Violin plots of evaluation cost. Each violin shows evaluation costs from 2,250 in-distribution rollouts across commands, friction coefficients, and seeds. Each cost is averaged over pre-fall steps. White markers and thick bars denote medians and interquartile ranges, respectively. Median costs are listed below the violins, with the lowest per task in bold. (c) Evaluation fall rate over an extended friction range; gray shading denotes out-of-distribution friction.

Estimated Contact
(b)
(c)
Time [s]
Fig. 7. Hardware deployment of BPTT-trained locomotion policies. Snapshots show the hardware experiments, and the plots show estimated foot-contact patterns. (a) Trot, (b) pace, and (c) gait-free locomotion. Training uses 100,000 control steps in 108 s for the trot and pace policies, and 160,000 steps in 172 s for the gait-free policy.
All tasks share a yaw-rate range of rad/s. Each final policy is evaluated on 225 test cases, covering 45 commands at five friction coefficients within the training ranges. Evaluation costs are averaged over steps until a fall or the end of each rollout, and the costs are pooled across test cases and seeds in Fig. 6(b). A fall is recorded if base height drops below 0.2 m, base tilt exceeds , or per-step cost exceeds a prescribed threshold. Fig. 6(c) reports fall rates over an extended friction range, including values outside the training ranges.
Fig. 6 shows that only the proposed gradient learns both gait-free tasks. The learned policies achieve low evaluation costs and maintain low fall rates over the tested friction range. They advance the feet by swinging or sliding, both admissible because the objective contains no foot-clearance term. The exact and Signorini-relaxed gradients do not acquire gait-free locomotion; their training rewards plateau at similar levels, with high evaluation costs and falls in nearly all rollouts. In their rollouts, the stance feet fail to advance with the body, causing the base to pitch forward and fall under forward commands. Neither baseline provides tangential contact-velocity variation at clamped contacts; normal variation from the Signorini relaxation is insufficient for these tasks.
For the gait-free task trained at low friction, the forward rollout encounters sliding more frequently. The sliding-mode sensitivity provides tangential variation, but both baseline policies still fail to acquire locomotion. This result indicates that relying on the forward rollout to encounter useful contact modes while differentiating only within the realized mode does not suffice. The proposed gradient instead provides sensitivity across contact-mode transitions, enabling gait-free locomotion.
For the gait-conditioned tasks, the proposed gradient learns both trot and pace with the lowest median evaluation costs (Fig. 6(b)). The exact gradient shows partial task learning, but its policies still have higher fall rates than those trained with either relaxed gradient (Fig. 6(c)). The Signorini-relaxed gradient learns both gaits. The prescribed phase and clearance objective specify when each foot should lift, and the Signorini relaxation supplies normal sensitivity for this liftoff, supporting gait learning. However, the Signorini-relaxed sensitivity

(b)
(c)
Fig. 8. Hardware robustness tests of trotting policies trained with 100,000 samples in under 2 min. Snapshots show representative trials for each experiment. (a) Traversal over scattered debris. (b) Recovery from external pushes. The plot shows lateral-velocity tracking error over 14 trials; gray curves show individual trials, the green curve shows the median, and the shaded interval marks the push. (c) Locomotion on a low-friction surface. Base roll and pitch and estimated foot-contact modes are shown during pronounced foot slippage; the highlighted interval marks the slippage event.
provides no direction toward the clamping-to-sliding transition at a stance contact and therefore does not reflect the margin of the contact impulse to the friction-cone boundary. Below the training friction range, the Signorini-relaxed policies fall more frequently on slippery terrain, whereas the proposed policies maintain lower fall rates.
B. Hardware demonstration
Hardware experiments deploy policies learned by BPTT with the proposed gradient on the 45-kg quadruped robot. All policies are trained using a single simulation environment, so each policy update uses one rollout gradient without variance reduction from averaging across parallel environments. The trotting and pacing policies are trained for 5,000 policy iterations with 20 control steps per iteration (100,000 samples), taking 108 s of training time on the desktop platform in Section VI. The low-friction gait-free policy is trained for 8,000 iterations (160,000 samples) and takes 172 s. Fig. 7 shows hardware trials and the corresponding estimated contact patterns for the three locomotion policies. The trotting and pacing policies track commanded velocities on a treadmill while maintaining their prescribed contact patterns. The low-friction gait-free policy is deployed and produces locomotion without a prescribed gait. These policies are transferred to hardware without fine-tuning.
Fig. 8 evaluates the robustness of the trotting policies under debris, external pushes, and low friction. The robot traverses scattered debris while maintaining stable locomotion. Across 14 external-push trials, the lateral-velocity tracking error increases during the push and then decreases toward zero (Fig. 8(b)). For the low-friction test, a trotting policy trained over the extended range is evaluated on a boric-acid-coated surface with measured foot-surface friction coefficient , outside the training range. The robot recovers from intermittent foot slips and continues walking without falling. Fig. 8(c) highlights a pronounced slippage interval. The front-right (FR) and rear-left (RL) feet initially enter sliding, followed by sustained sliding of the front-left (FL) foot. As this slippage persists, the base roll and pitch undergo larger excursions. The attitude excursions then decrease as the robot recovers from the slip and continues locomotion. These hardware results show that the per-rollout gradients provided by the proposed contact sensitivity are sufficient for BPTT policy learning, direct hardware transfer, and robust locomotion under external disturbances.
C. Comparison with Model-Free RL
We compare BPTT using the proposed gradient with PPO [45] to assess training sample efficiency and the performance of the resulting policies on the trot task. Fig. 9 presents training progress across environment counts, whereas Fig. 10 reports evaluation performance and wall-clock training time. Both methods use the same observation and action spaces, PD control law, RaiSim simulation [34], and per-step cost; its negative, scaled value defines the PPO reward. Each policy iteration collects 20 control steps per environment. BPTT differentiates the resulting undiscounted truncated cost without a terminal value or critic, whereas PPO uses a learned critic to bootstrap the discounted return. Evaluation follows Section VII-A over the same 225-cell grid, with both velocity commands and friction coefficients within the training distribution. Each configuration uses 5 seeds; the one-environment BPTT case uses 20 seeds. The PPO configuration is summarized in Appendix C.
BPTT with the proposed gradient learns the trot at every environment count from one to 64 (Fig. 9(a)). PPO does not reach the trot over this range, with unstable training at 16 environments and a reward that increases but converges to a lower value at 64 (Fig. 9(b)). PPO estimates the policy gradient by sampling returns under a stochastic policy, and
(a) BPTT with Proposed Gradient

(b) PPO Training
(c) Reward vs. Samples
Fig. 9. Training-reward comparison between BPTT and PPO on the trot command-tracking task. (a) BPTT and (b) PPO training reward over policy iterations for different numbers of environments; curves show the mean and shaded bands denote one standard deviation. (c) Training reward versus cumulative environment steps for BPTT with one environment and PPO with 64 and 128 environments. Among the tested configurations, BPTT learns the trot with one environment, whereas PPO first learns it with 128 environments; PPO with 64 environments does not learn the trot.
BPTT (Proposed Gradient) PPO

Fig. 10. Comparison of BPTT and PPO in trained-policy evaluation and training wall-clock time versus the number of environments (mean across seeds; shading denotes one standard deviation). Policy evaluation uses 10-s trot rollouts over sampled velocity commands and in-distribution friction values. BPTT is shown through 64 environments and PPO through 1024. (a) Linear-velocity tracking RMSE. (b) Angular-velocity tracking RMSE. (c) Evaluation cost. (d) Training wall-clock time on a desktop (log scale); dashed lines mark 2 and 20 minutes.
the variance of this estimate decreases with the batch size of each update [69]. The stability of training and the reward attained depend on the batch size, and the trot is recovered only at a sufficiently large batch (Fig. 9(b)). For BPTT with the proposed gradient, the update quality depends on the contact sensitivity rather than on the batch size, and a single environment is sufficient to learn the trot. The smallest setting that learns the trot uses one environment for BPTT and 128 for PPO. Training uses approximately and samples, respectively, differing by two orders of magnitude (Fig. 9(c)). For PPO, the onset of trotting occurs at 128 environments, where the foot-clearance term defined relative to the reference gait decreases from 0.57 at 64 environments to 0.06 and remains near 0.05 for larger batches.
For velocity tracking and evaluation cost, BPTT attains performance comparable to PPO using fewer environments (Fig. 10(a)–(c)). The BPTT linear-velocity root-mean-square error (RMSE) reaches 0.126 m/s with 2 environments, compared with 0.124 m/s for PPO with 128 environments. At 8–64 environments, the BPTT linear-velocity RMSE is 0.097–0.107 m/s, closely matching the 0.096–0.110 m/s range attained by PPO at 256–1024 environments (Fig. 10(a)). The BPTT angular-velocity RMSE reaches 0.058 rad/s with 4 environments, below the 0.062–0.093 rad/s range of PPO at 128–1024 environments. At 8–64 environments, the BPTT angular-velocity RMSE remains at 0.052–0.054 rad/s, below this PPO range (Fig. 10(b)). For evaluation cost, all BPTT configurations shown attain lower values than PPO with 64 environments. From 16 to 64 environments, the BPTT evaluation cost is 0.765–0.776, comparable to 0.763 for PPO with 128 environments (Fig. 10(c)).
For the smallest number of environments that acquire the trot, BPTT with 1 environment trains in 1.8 min, whereas PPO with 128 environments requires 17.7 min, corresponding to a 9.8-fold reduction in wall-clock training time for BPTT (Fig. 10(d)). The BPTT configurations with 4 and 16 environments, which respectively attain tracking accuracy and evaluation cost comparable to PPO with 128 environments, train in 2.3 and 4.3 min, corresponding to 7.7- and 4.1-fold reductions. At larger BPTT batch sizes, wall-clock time scales linearly with the number of environments, reaching 17.2 min at 64 environments. In this regime, the available CPU cores are saturated, and BPTT computes dynamics gradients through each rollout, increasing the per-environment computational load relative to PPO.
D. Numerical Behavior of the Newton Iteration
In BPTT trotting training, the proposed configuration satisfies the residual tolerance ( ) in 99.95% of backward contact evaluations within eight Newton iterations (Fig. 11(a)). The ablation independently enables or disables the residual-scaled diagonal regularization and the normal free-velocity offset . For each configuration, we collect contact evaluations during single-environment training across five seeds. The curves show the cumulative percentage of evaluations that meet the tolerance within Newton iterations. Enabling either or both terms yields higher residual-convergence rates during the early iterations than using neither term.
Residual convergence alone does not guarantee convergence to a physical root because the residual equation
Proposed (regularization ) Residual-scaled regularization ( ) only Normal free-velocity offset ( ) only No regularization or offset
(a) Residual Convergence

(b) Root Selection
Fig. 11. Newton convergence and root selection in the backward contact evaluation during BPTT trotting training. (a) Cumulative percentage of all contact evaluations reaching the residual tolerance within Newton iterations of Algorithm 1. (b) Percentage of all contact evaluations that satisfy the residual tolerance but fail the cone-feasibility check.
0 may also admit nonphysical roots with negative normal impulses, impulses outside the friction cone, or penetrating normal velocities. Spurious convergence denotes residual convergence that fails the feasibility check. If any contact fails this check, we set both transition Jacobians and to zero, thereby blocking gradient propagation through that transition. The spurious-convergence rate over all contact evaluations decreases from 3.00% with neither term enabled to approximately 0.03% with either term alone, and to 0.0058% with both terms enabled (Fig. 11(b)).
VIII. CONTACT-IMPLICIT TRAJECTORY OPTIMIZATION
We compare the proposed backward contact sensitivity with the mode-dependent exact and Signorini-relaxed sensitivities under the same CITO setup. Base-pose tracking tasks compare the optimized trajectories over a range of reference poses. A single-solve comparison examines the optimization iterates from a common initialization and the resulting foot-repositioning decision. An external-pull experiment evaluates the closed-loop robustness of contact-implicit MPC to unmodeled disturbances in simulation.
A. Base-Pose Reaching Without Prescribed Contact Modes
We evaluate how the contact gradient affects the trajectories and costs obtained by CITO over a range of base-pose references. Fig. 12 considers three tasks. (1) Translation varies the planar reference displacement from 0.2 to 1.6 m over eight directions: forward, backward, left, right, and the four diagonals. (2) Yaw rotation varies the base-yaw reference up to rad in both rotation directions, with ten planar positions sampled within 0.1 m per reference. (3) Pitch rotation varies the base-pitch reference from 0.4 to 1.2 rad at a 0.1 m height offset, with ten planar positions sampled within 0.3 m per reference. All problems start from the nominal standing pose at the origin and are solved under the receding-horizon setting. The Signorini-relaxed and proposed gradients use the relaxation parameter , and the proposed gradient uses the free-velocity offset . For each target, the cost is the finite-horizon objective averaged over the successive solves.
Fig. 12(a) and (b) show that the proposed gradient attains the lowest costs throughout the Translation and Yaw rotation tasks. The proposed gradient provides both normal and tangential contact sensitivity in all contact modes. Consequently, when a foot is clamped in the nominal rollout, the optimizer receives local directions toward separation or sliding, allowing the foot to move from its initially fixed location. In Translation, the optimized trajectories reposition the feet as the base moves toward the reference. Similarly, in Yaw rotation, they reposition the feet as the body turns, avoiding residual leg twist. As a result, the trajectories reach the references with smaller base-pose and posture residuals. The narrower standard-deviation bands indicate that this foot-repositioning behavior occurs more consistently than with the two baselines.
On the other hand, with the exact gradient, the feet remain clamped at their initial locations for translation references up to 0.7 m and yaw references up to 1.0 rad. The base therefore leans toward a translation reference or twists relative to the fixed feet toward a yaw reference, and the cost increases with reference magnitude. At larger references, the greater lean or twist can cause feet to separate or slide during the hard-contact rollout. Although these transitions allow some repositioning and reduce the cost, they do not occur consistently. A foot may reclamp during the rollout, preventing further repositioning. This variation produces the wider standard-deviation bands.
Compared with the exact gradient, the Signorini-relaxed gradient permits normal contact release and lowers the cost over the moderate reference ranges. However, it provides no tangential direction at a clamped contact. During forward Translation, feet can therefore remain at their initial or partially relocated positions even as the base approaches the reference, leaving the joints displaced from their nominal configuration. Likewise, during Yaw rotation, the base can reach the reference by pivoting about a clamped foot while retaining leg twist. The resulting posture residuals maintain the cost gap to the proposed gradient, while variation in the clamped feet and their locations produces the wider bands.
The proposed gradient also yields the lowest costs across the Pitch rotation references (Fig. 12(c)). In this task, reaching the reference requires the rear feet to separate and the robot to balance on the front feet. The proposed contact sensitivity guides both the rear-contact transition and the adjustment of the front-foot locations needed for balance. As a result, the optimized trajectory reduces forward–backward base motion and pitch excursions while tracking the reference. For a representative 1.2 rad reference, it maintains the pitch within 0.91–1.34 rad, compared with 0.77–1.50 rad for the Signorini-relaxed trajectory, and reduces the peak-to-peak forward–backward base displacement from 1.19 to 0.60 m.
With the exact gradient, by comparison, all four feet remain clamped. Leg extension raises and pitches the trunk, but the attained pitch remains below the reference and the cost rises as the reference increases. The Signorini-relaxed gradient allows rear-contact separation and thus reduces the cost relative to the exact gradient, consistent with [15]. However, its normal-only relaxation does not provide the tangential direction needed to adjust the front feet. The base moves repeatedly forward and backward, alternating between pitch overshoot and undershoot and leaving a cost gap to the proposed gradient.

Fig. 12. Comparison of the three backward contact gradients for CITO base-pose reaching. (a) Translation: the reference distance ranges from 0.2 to 1.6 m. (b) Yaw rotation: the reference yaw ranges from 0.17 to 3.14 rad. (c) Pitch rotation: the reference pitch ranges from 0.4 to 1.2 rad. For each target, the finite-horizon objective is averaged over 400 successive solves along a 10-s trajectory. Lines and shaded regions show the mean and one standard deviation over eight translation directions in (a), ten planar offsets within 0.1 m in (b), and ten planar offsets within 0.3 m in (c). The top row shows the initial standing and reference poses as solid and transparent robots, respectively.

(a)
DDP Iteration
(b)
Horizon Time [s]
(c) RR Foot Contact Mode
(d)
Horizon Time [s]
Fig. 13. Comparison of a single CITO problem over DDP iterations under the three contact gradients. All optimizations use the same current state, base-pose reference, and initial state and control trajectories for the 0.75-m rightward Translation case in Fig. 12(a); the initialization is taken at s of the exact-gradient rollout. (a) Cost versus DDP iteration. (b)–(d) Initial guess and optimized trajectories after 25 iterations over the 0.5-s horizon: (b) base roll angle, (c) RR-foot contact mode, and (d) RR-foot lateral displacement.
B. Analysis of a Single CITO Problem
We compare how the CITO solution evolves over DDP iterations under the three contact gradients (Fig. 13). All three optimizations use identical state and control trajectories for initialization; these trajectories are taken at s of the 10-s rollout obtained with the exact gradient for the 0.75-m rightward Translation case in Fig. 12(a). At this time, the base is moving rightward while the front-right (FR) and rear-right (RR) feet remain clamped. In the full 10-s rollout, this configuration leads to increasing base roll and eventually a large corrective motion as the base recovers. The shared 0.5-s CITO initial guess is taken during this clamped phase. Over this 0.5-s horizon, the planned base roll increases from to as the base continues moving laterally over the fixed right feet (Fig. 13(b)–(d)).
Starting from the common initialization, the proposed gradient reduces the cost from 116 to 39 after 25 DDP iterations (Fig. 13(a)). In the optimized trajectory, both right-foot contacts leave clamping, allowing the front-right (FR) and rear-right (RR) feet to adjust their locations as the base moves rightward. Specifically, the loaded RR contact first transitions from clamping to sliding and moves laterally by approximately 0.4 m until about 0.29 s (Fig. 13(c)–(d)). It then passes through clamping, sliding, and separating before reclamping at its new location. As a result of this foot repositioning, the planned base roll decreases toward zero (Fig. 13(b)).
With the exact and Signorini-relaxed gradients, however, the RR foot remains clamped and its lateral displacement stays at zero. The planned base roll therefore still reaches approximately , while the costs decrease only to 98 and 95, respectively, after 25 iterations.
C. Push Recovery under Unmodeled Pulls
We evaluate the three contact gradients in contact-implicit model predictive control (CI-MPC) under unmodeled external pulls (Fig. 14). CI-MPC runs at 40 Hz with a maximum of four DDP iterations per update. The optimized control is executed with a joint-level PD controller, and the simulation is performed in RaiSim [34] using a 1-ms time step and friction coefficient . For this experiment, CI-MPC tracks a nominal standing-pose reference. In each 10-s rollout, three 1-s pulls are applied to the base along a fixed body-frame direction, beginning at 2.5, 5.0, and 7.5 s. A rollout is classified as a failure if the optimizer diverges, the base height falls below 0.20 m, or the base tilt exceeds . Fig. 14(a) shows the maximum pull magnitude for eight
(a) Robustness to Unmodeled External Pulls
Response to a 250-N Forward Pull


(b)
(c)
Clamping Sliding Separating
(d)
Fig. 14. Comparison of the three contact gradients in CI-MPC under unmodeled external pulls. (a) Maximum pull magnitude over eight nominal directions. Each value is the largest pull magnitude for which at least 90% of rollouts with perturbed pull directions complete without failure. (b)–(d) Responses to a 250-N forward pull: (b) base tilt, (c) planned front-right (FR) foot contact mode, and (d) base and FR-foot x-positions. Crosses in (d) mark failures due to non-foot body contact with the ground.
nominal directions. For each direction, the reported value is the largest force magnitude for which at least 90% of rollouts with perturbed pull directions are successful.
The proposed gradient withstands the largest pulls in every tested direction (Fig. 14(a)), with limits ranging from 240 to 350 N and averaging 272 N. On average, this is 3.4 times the 81 N limit obtained with the exact gradient and 2.5 times the 107 N limit obtained with the Signorini-relaxed gradient.
For the representative 250 N forward pull, the optimizer using the proposed gradient transitions the planned front-foot contacts from clamping to sliding (Fig. 14(c)), allowing the feet to advance with the base. As the feet move forward, the resulting impulses oppose the pull, while their repositioning generates a restoring pitch moment and extends support in the pull direction (Fig. 14(d)). Consequently, the base tilt peaks near 10° and returns toward the nominal pose between pulses (Fig. 14(b)). The 10 s rollout completes without failure.
In contrast, with the exact and Signorini-relaxed gradients, the front feet remain clamped at their initial positions as the pull moves the base forward. By approximately 3 s, the base has moved ahead of the fixed front feet and begins to tip. The body then contacts the ground at 3.19 and 3.34 s in the respective rollouts, and both fail (Fig. 14(b)–(d)).
IX. CONCLUSION
This work proposed a relaxed full-cone contact gradient for policy learning and contact-implicit trajectory optimization in legged locomotion. The method relaxes the de Saxcé-corrected SOCCP along a central path and computes the relaxed evaluation point using a Newton iteration initialized from the hard-contact solution, while retaining the hard-contact forward rollout. The resulting sensitivity varies smoothly across the contact-mode transitions and recovers the hard-contact fixed-mode sensitivity as . Using the proposed gradient, BPTT trained trotting and pacing policies from 100,000 simulator samples each in 108 s. These policies and a low-friction gait-free policy transferred to hardware without fine-tuning; trotting policies were also evaluated in debris traversal, push recovery, and low-friction locomotion. In CITO, the proposed gradient reduced base-pose-reaching costs across translation, yaw, and pitch references and increased the recovered-pull limits relative to the exact and Signorini-relaxed gradients.
Future work will extend the method to non-point feet, uneven terrain, and contacts between arbitrary shapes. These extensions require differentiating through collision detection. For longer-horizon policy learning, the present 0.5-s BPTT rollouts could be augmented with a learned terminal value, as in SHAC [9].
APPENDIX A
JORDAN PRODUCT AND ARROW MATRIX
Following [71], [33], let and , where for a point contact. The Jordan product and identity are
The product is represented by the symmetric arrow matrix
APPENDIX B
SIGNORINI-RELAXED CONTACT-IMPULSE SENSITIVITY
The Signorini-relaxed gradient of [15] is obtained instead by relaxing only the normal complementarity. For a normal component with , gives , whose differential is . Stacking these normal relations with the unrelaxed tangential relations gives a differential system of the same algebraic form as (14), with and , where is diagonal, with entries on the normal indices and zero otherwise. Therefore, the contact-impulse sensitivity with respect to a variable reduces to
which is the Signorini-relaxed contact gradient in [15, Eq. 19].
TABLE II PPO SETTINGS.
| optimizer / learning rate | AdamP / |
|---|---|
| discount / GAE λ | 0.99 / 0.95 |
| clip ε | 0.2 |
| epochs / minibatches per update | 10 / 2 |
| value / entropy coefficient | 0.5 / 0.01 |
| gradient-norm clip | 0.5 |
| action std (init / bounds) | 1.0 / [0.2, 1.5] |
| actor / critic nets | [256, 128] MLP, LeakyReLU |
APPENDIX C PPO CONFIGURATION
Table II summarizes the PPO configuration used in Section VII-C. The environment, observation, action, per-step cost, and episode handling follow the BPTT setup, while PPO bootstraps the return at the end of each 20-step rollout segment using the critic.
REFERENCES
[1] J. Hwangbo, J. Lee, A. Dosovitskiy, D. Bellicoso, V. Tsounis, V. Koltun, and M. Hutter, “Learning agile and dynamic motor skills for legged robots,” Science Robotics, vol. 4, no. 26, p. eaau5872, 2019.
[2] N. Rudin, D. Hoeller, P. Reist, and M. Hutter, “Learning to walk in minutes using massively parallel deep reinforcement learning,” in Conference on Robot Learning. PMLR, 2022, pp. 91–100.
[3] V. Makoviychuk, L. Wawrzyniak, Y. Guo, M. Lu, K. Storey, M. Macklin, D. Hoeller, N. Rudin, A. Allshire, A. Handa, and G. State, “Isaac gym: High performance GPU-based physics simulation for robot learning,” arXiv preprint arXiv:2108.10470, 2021.
[4] N. Heess, G. Wayne, D. Silver, T. Lillicrap, T. Erez, and Y. Tassa, “Learning continuous control policies by stochastic value gradients,” in Advances in Neural Information Processing Systems (NeurIPS), 2015, pp. 2944–2952.
[5] J. Degrave, M. Hermans, J. Dambre, and F. Wyffels, “A differentiable physics engine for deep learning in robotics,” Frontiers in neurorobotics, vol. 13, p. 6, 2019.
[6] R. J. Williams, “Simple statistical gradient-following algorithms for connectionist reinforcement learning,” Machine Learning, vol. 8, pp. 229–256, 1992.
[7] R. S. Sutton, D. McAllester, S. Singh, and Y. Mansour, “Policy gradient methods for reinforcement learning with function approximation,” in Advances in Neural Information Processing Systems, 1999.
[8] S. Mohamed, M. Rosca, M. Figurnov, and A. Mnih, “Monte carlo gradient estimation in machine learning,” Journal of Machine Learning Research, vol. 21, no. 132, pp. 1–62, 2020.
[9] J. Xu, V. Makoviychuk, Y. Narang, F. Ramos, W. Matusik, A. Garg, and M. Macklin, “Accelerated policy learning with parallel differentiable simulation,” in International Conference on Learning Representations (ICLR), 2022.
[10] I. Mordatch, E. Todorov, and Z. Popović, “Discovery of complex behaviors through contact-invariant optimization,” in ACM Transactions on Graphics (SIGGRAPH), vol. 31, no. 4, 2012, pp. 1–8.
[11] M. Posa, C. Cantu, and R. Tedrake, “A direct method for trajectory optimization of rigid bodies through contact,” The International Journal of Robotics Research, vol. 33, no. 1, pp. 69–81, 2014.
[12] Z. Manchester, N. Doshi, R. J. Wood, and S. Kuindersma, “Contact-implicit trajectory optimization using variational integrators,” The International Journal of Robotics Research, vol. 38, no. 12, pp. 1463–1476, 2019.
[13] Y. Tassa, T. Erez, and E. Todorov, “Synthesis and stabilization of complex behaviors through online trajectory optimization,” in IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2012, pp. 4906–4913.
[14] M. Neunert, M. Stäuble, M. Gifthaler, C. D. Bellicoso, J. Carius, C. Gehring, M. Hutter, and J. Buchli, “Whole-body nonlinear model predictive control through contacts for quadrupeds,” IEEE Robotics and Automation Letters, vol. 3, no. 3, pp. 1458–1465, 2018.
[15] 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,” The International Journal of Robotics Research, vol. 44, no. 3, pp. 486–510, 2025.
[16] H. J. T. Suh, M. Simchowitz, K. Zhang, and R. Tedrake, “Do differentiable simulators give better policy gradients?” in International Conference on Machine Learning (ICML), 2022, pp. 20 668–20 696.
[17] 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 NeurIPS Datasets and Benchmarks Track, 2021.
[18] 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 Robotics: Science and Systems (RSS), 2021.
[19] Q. Le Lidec, L. Montaut, Y. de Mont-Marin, F. Schramm, and J. Carpentier, “Highly-efficient differentiable simulation for robotics,” arXiv preprint arXiv:2409.07107, 2025.
[20] 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 Transactions on Robotics, vol. 39, no. 6, pp. 4691–4711, 2023.
[21] L. Metz, C. D. Freeman, S. S. Schoenholz, and T. Kachman, “Gradients are not all you need,” arXiv preprint arXiv:2111.05803, 2021.
[22] I. Georgiev, K. Srinivasan, J. Xu, E. Heiden, and A. Garg, “Adaptive horizon actor-critic for policy learning in contact-rich differentiable simulation,” in International Conference on Machine Learning (ICML), 2024.
[23] Y. Song, S. Kim, and D. Scaramuzza, “Learning quadruped locomotion using differentiable simulation,” in Conference on Robot Learning (CoRL), 2024, pp. 258–271.
[24] C. Schwarke, V. Klemm, J. Bagajo, J.-P. Sleiman, I. Georgiev, J. Torde-sillas, and M. Hutter, “Learning deployable locomotion control via differentiable simulation,” in Conference on Robot Learning (CoRL), ser. Proceedings of Machine Learning Research, vol. 305, 2025, pp. 3665–3684.
[25] C. Dietz, S. Albrecht, G. Frison, M. Diehl, and A. Nurkanović, “Robust rigid body assembly via contact-implicit optimal control with exact second-order derivatives,” arXiv preprint arXiv:2601.22849, 2026.
[26] V. Kurtz, A. Castro, A. Ö. Önol, and H. Lin, “Inverse dynamics trajectory optimization for contact-implicit model predictive control,” The International Journal of Robotics Research, 2025, published online 2025.
[27] 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 preprint arXiv:2203.00806, 2022.
[28] S. Le Cleac'h, T. A. Howell, S. Yang, C.-Y. Lee, J. Zhang, A. Bishop, M. Schwager, and Z. Manchester, “Fast contact-implicit model predictive control,” IEEE Transactions on Robotics, vol. 40, pp. 1617–1629, 2024.
[29] H. J. T. Suh, T. Pang, and R. Tedrake, “Bundled gradients through contact via randomized smoothing,” IEEE Robotics and Automation Letters, vol. 7, no. 2, pp. 4000–4007, 2022.
[30] Q. Le Lidec, F. Schramm, L. Montaut, C. Schmid, I. Laptev, and J. Carpentier, “Leveraging randomized smoothing for optimal control of nonsmooth dynamical systems,” Nonlinear Analysis: Hybrid Systems, vol. 52, p. 101468, 2024.
[31] G. de Saxcé and Z.-Q. Feng, “The bipotential method: a constructive approach to design the complete contact law with friction and improved numerical algorithms,” Mathematical and Computer Modelling, vol. 28, no. 4–8, pp. 225–245, 1998.
[32] Q. Le Lidec, W. Jallet, L. Montaut, I. Laptev, C. Schmid, and J. Carpentier, “Contact models in robotics: a comparative analysis,” IEEE Transactions on Robotics, vol. 40, pp. 3716–3733, 2024.
[33] V. Acary, P. Armand, and H. M. Nguyen, “Solving contact problems with coulomb friction using an interior point algorithm and path following techniques,” Computer Methods in Applied Mechanics and Engineering, vol. 461, p. 119227, 2026.
[34] J. Hwangbo, J. Lee, and M. Hutter, “Per-contact iteration method for solving contact dynamics,” IEEE Robotics and Automation Letters, vol. 3, no. 2, pp. 895–902, 2018.
[35] J. J. Moreau, “Unilateral contact and dry friction in finite freedom dynamics,” in Nonsmooth Mechanics and Applications, ser. CISM Courses and Lectures. Springer, 1988, vol. 302, pp. 1–82.
[36] M. Anitescu and F. A. Potra, “Formulating dynamic multi-rigid-body contact problems with friction as solvable linear complementarity problems,” Nonlinear Dynamics, vol. 14, no. 3, pp. 231–247, 1997.
[37] E. Todorov, T. Erez, and Y. Tassa, “MuJoCo: A physics engine for model-based control,” in 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems. IEEE, 2012, pp. 5026–5033.
[38] A. M. Castro, F. N. Permenter, and X. Han, “An unconstrained convex formulation of compliant contact,” IEEE Transactions on Robotics, vol. 39, no. 2, pp. 1301–1320, 2023.
[39] Q. Le Lidec and J. Carpentier, “Reconciling RaiSim with the maximum dissipation principle,” IEEE Transactions on Robotics, vol. 40, pp. 3638–3641, 2024.
[40] V. Acary, M. Brémond, and O. Huber, “On solving contact problems with Coulomb friction: formulations and numerical comparisons,” in Advanced Topics in Nonsmooth Dynamics, R. Leine, V. Acary, and O. Brüls, Eds. Cham: Springer International Publishing, 2018, pp. 375–457.
[41] Y. Hu, L. Anderson, T.-M. Li, Q. Sun, N. Carr, J. Ragan-Kelley, and F. Durand, “DiffTaichi: Differentiable programming for physical simulation,” in International Conference on Learning Representations, 2020.
[42] R. Featherstone, Rigid Body Dynamics Algorithms. Springer, 2008.
[43] J. Carpentier and N. Mansard, “Analytical derivatives of rigid body dynamics algorithms,” in Robotics: Science and systems (RSS 2018), 2018.
[44] F. de Avila Belbute-Peres, K. Smith, K. Allen, J. Tenenbaum, and J. Z. Kolter, “End-to-end differentiable physics for learning and control,” in Advances in Neural Information Processing Systems, 2018, pp. 7178–7189.
[45] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint arXiv:1707.06347, 2017.
[46] J. Tan, T. Zhang, E. Coumans, A. Iscen, Y. Bai, D. Hafner, S. Bohez, and V. Vanhoucke, “Sim-to-real: Learning agile locomotion for quadruped robots,” in Robotics: Science and Systems, 2018.
[47] J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter, “Learning quadrupedal locomotion over challenging terrain,” Science Robotics, vol. 5, no. 47, p. eabc5986, 2020.
[48] T. Miki, J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter, "Learning robust perceptive locomotion for quadrupedal robots in the wild," Science Robotics, vol. 7, no. 62, p. eabk2822, 2022.
[49] X. B. Peng, P. Abbeel, S. Levine, and M. van de Panne, “DeepMimic: Example-guided deep reinforcement learning of physics-based character skills,” ACM Transactions on Graphics, vol. 37, no. 4, pp. 1–14, 2018.
[50] Y. Zhang, Y. Hu, Y. Song, D. Zou, and W. Lin, “Learning vision-based agile flight via differentiable physics,” Nature Machine Intelligence, vol. 7, no. 6, pp. 954–966, 2025.
[51] D. Hafner, T. Lillicrap, J. Ba, and M. Norouzi, “Dream to control: Learning behaviors by latent imagination,” in International Conference on Learning Representations (ICLR), 2020.
[52] P. Wu, A. Escontrela, D. Hafner, P. Abbeel, and K. Goldberg, “Day-Dreamer: World models for physical robot learning,” in Conference on Robot Learning, 2022.
[53] N. Wiedemann, V. Wüest, A. Loquercio, M. Müller, D. Floreano, and D. Scaramuzza, “Training efficient controllers via analytic policy gradient,” in IEEE International Conference on Robotics and Automation (ICRA), 2023, pp. 1349–1356.
[54] K. Yunt and C. Glocker, “Trajectory optimization of mechanical hybrid systems using SUMT,” in 9th IEEE International Workshop on Advanced Motion Control, 2006. IEEE, 2006, pp. 665–671.
[55] H. Dai, A. Valenzuela, and R. Tedrake, “Whole-body motion planning with centroidal dynamics and full kinematics,” in IEEE-RAS International Conference on Humanoid Robots, 2014.
[56] A. Patel, S. L. Shield, S. Kazi, A. M. Johnson, and L. T. Biegler, "Contact-implicit trajectory optimization using orthogonal collocation," IEEE Robotics and Automation Letters, vol. 4, no. 2, pp. 2242–2249, 2019.
[57] A. Aydinoglu and M. Posa, “Real-time multi-contact model predictive control via ADMM,” in IEEE International Conference on Robotics and Automation (ICRA), 2022, pp. 3414–3421.
[58] A. Aydinoglu, A. Wei, W.-C. Huang, and M. Posa, “Consensus complementarity control for multi-contact MPC,” IEEE Transactions on Robotics, vol. 40, pp. 3879–3896, 2024.
[59] A. W. Winkler, C. D. Bellicoso, M. Hutter, and J. Buchli, “Gait and trajectory optimization for legged systems through phase-based end-effector parameterization,” IEEE Robotics and Automation Letters, vol. 3, no. 3, pp. 1560–1567, 2018.
[60] S. Kim, H. Kim, G. Kim, M.-G. Kim, and H.-W. Park, “Dynamically-consistent trajectory optimization for legged robots via contact point decomposition,” IEEE Robotics and Automation Letters, vol. 10, no. 12, pp. 13161–13168, 2025.
[61] N. J. Kong, C. Li, G. Council, and A. M. Johnson, “Hybrid iLQR model predictive control for contact implicit stabilization on legged robots,” IEEE Transactions on Robotics, vol. 39, no. 6, pp. 4712–4727, 2023.
[62] V. Kurtz and H. Lin, “Contact-implicit trajectory optimization with hydroelastic contact and iLQR,” in 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2022, pp. 8829–8834.
[63] G. Kim, D. Kang, J.-H. Kim, and H.-W. Park, “Contact-implicit differential dynamic programming for model predictive control with relaxed complementarity constraints,” in 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2022, pp. 11978–11985.
[64] D. Q. Mayne, “A second-order gradient method for determining optimal trajectories of non-linear discrete-time systems,” International Journal of Control, vol. 3, no. 1, pp. 85–95, 1966.
[65] W. Li and E. Todorov, “Iterative linear quadratic regulator design for nonlinear biological movement systems,” in First International Conference on Informatics in Control, Automation and Robotics, vol. 2. SciTePress, 2004, pp. 222–229.
[66] C. Mastalli, R. Budhiraja, W. Merkt, G. Saurel, B. Hammoud, M. Naveau, J. Carpentier, L. Righetti, S. Vijayakumar, and N. Mansard, "Crocoddyl: An efficient and versatile framework for multi-contact optimal control," in IEEE International Conference on Robotics and Automation (ICRA), 2020, pp. 2536–2542.
[67] P. J. Werbos, “Backpropagation through time: what it does and how to do it,” Proceedings of the IEEE, vol. 78, no. 10, pp. 1550–1560, 1990.
[68] J. C. Duchi, P. L. Bartlett, and M. J. Wainwright, “Randomized smoothing for stochastic optimization,” SIAM Journal on Optimization, vol. 22, no. 2, pp. 674–701, 2012.
[69] B. Recht, “A tour of reinforcement learning: The view from continuous control,” Annual Review of Control, Robotics, and Autonomous Systems, vol. 2, pp. 253–279, 2019.
[70] D. E. Stewart, “Rigid-body dynamics with friction and impact,” SIAM Review, vol. 42, no. 1, pp. 3–39, 2000.
[71] F. Alizadeh and D. Goldfarb, “Second-order cone programming,” Mathematical Programming, vol. 95, no. 1, pp. 3–51, 2003.
[72] X. Xiao, Y. Li, Z. Wen, and L. Zhang, “A regularized semi-smooth newton method with projection steps for composite convex programs,” Journal of Scientific Computing, vol. 76, no. 1, pp. 364–389, 2018.
[73] J. Carpentier, G. Saurel, G. Buondonno, J. Mirabel, F. Lamiraux, O. Stasse, and N. Mansard, “The Pinocchio C++ library : A fast and flexible implementation of rigid body dynamics algorithms and their analytical derivatives,” in 2019 IEEE/SICE International Symposium on System Integration (SII), 2019, pp. 614–619.
[74] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” arXiv preprint arXiv:1412.6980, 2014.
[75] C. Mastalli, W. Merkt, J. Marti-Saumell, H. Ferrolho, J. Solà, N. Mansard, and S. Vijayakumar, “A feasibility-driven approach to control-limited DDP,” Autonomous Robots, vol. 46, no. 8, pp. 985–1005, 2022.