LEAP: Gradient Flow Augmented Lagrangian Trajectory Optimization for Contact Constrained Robots

arXiv:2610.20936 · cs.RO · Submitted 2026-10-14 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Robotics Radio. Generated commentary on the latest robotics and control papers.

Rosa: Today's paper: "LEAP: Gradient Flow Augmented Lagrangian Trajectory Optimization for Contact Constrained Robots".

Dev: The gist Generating dynamically feasible motions for legged and manipulating robots requires solving a large, nonlinear,

Rosa: First, who's behind it and why it matters.

Paper summary: Taro: So looking at 'LEAP: Gradient Flow Augmented Lagrangian Trajectory Optimization for Contact Constrained Robots,' we see they combined pseudospectral collocation with a two-time-scale primal-dual gradient flow whose equilibria satisfy the KKT conditions of the transcribed problem.

Rosa: It’s important to remember this method handles the initialization challenge by deforming trajectories continuously in pseudo-time until they settle at a point where all your constraints are actually satisfied.

Dev: That process is made stable by using a linearly implicit Gauss-Newton integrator, which keeps the augmented Lagrangian monotone through a step-size controller that decides how far to trust the approximation.

Taro: The results across ten benchmark problems on five robot platforms show that LEAP meets the terminal tracking criteria in all ten simulated rollouts, compared with seven for Crocoddyl and eight for Aligator.

Rosa: And on hardware, they showed a hopscotch execution on a Unitree Go2 quadruped demonstrating hardware tracking of an optimized reference with a joint-position RMS error of zero point zero six eight two rad.

Dev: This means that for someone who just listens to the show, this method suggests that complex robot motions with tight contact constraints can be found much more reliably and faster than before.

Rosa: But they also pointed out a limitation—the method relies on this pseudospectral transcription, and you have to manage mesh refinement if the initial guess isn't good enough for the nodes.

Taro: So it’s a strong tool, but it still has those necessary steps for refinement, especially when you move outside of perfect simulation.

Conclusion: Rosa: So we're wrapping up 'LEAP: Gradient Flow Augmented Lagrangian Trajectory Optimization for Contact Constrained Robots.' It’s about solving those really tough control problems where robots have to respect friction cones during motion, even when they are touching things.

Dev: Yeah, it took this contact sequence robot OCP and used a primal-dual gradient flow with an augmented Lagrangian to find a solution instead of trying to guess the answer from scratch.

Taro: The core idea is deforming the trajectory continuously in pseudo-time until it settles at a point where all your constraints are actually satisfied.

Rosa: That initialization challenge is huge because existing solvers get really stuck with bad starting points, and LEAP seems designed to handle that by always taking a step toward better feasibility.

Dev: It uses this two-time-scale flow where the primal part follows the gradient of the augmented Lagrangian and then you update those multipliers separately to keep everything monotone.

Taro: That monotonicity is what keeps it stable when things go wrong during that iterative process, so if you start somewhere messy, it’s guaranteed to move toward a better state.

Rosa: They tested this on ten benchmark problems across five different robot platforms, from simple hoppers to these big thirty-two-joint humanoids.

Dev: And they show it's actually faster than methods like Crocoddyl and Aligator on several of those benchmarks, which is something we need when we’re talking about real-time loops.

Taro: Plus, they got hardware tracking on a Unitree Go2 quadruped, showing centimeter-scale position errors during a hopscotch sequence.

Rosa: That means for someone who just listens to the show, this method suggests that complex robot motions with tight contact constraints can be found much more reliably and faster than before.

Dev: It’s about moving from finding a solution that works in simulation to one that actually performs well when the world throws unexpected stuff at it.

Taro: What this means for autonomy is better control over those dynamic maneuvers, especially when you have physical contact constraints that can't just be ignored.

Rosa: But they also pointed out a limitation—the method relies on this pseudospectral transcription, and they have to manage mesh refinement if the initial guess isn't good enough for the nodes.

Dev: That means it’s not a magic bullet; you still need to manage that initial feasibility flow and adapt the grid when things get really complicated.

Taro: So it’s a strong tool, but it still has those necessary steps for refinement, especially when you move outside of perfect simulation.

Rosa: Exactly. We’ve seen how this works in theory and on hardware, but the next step is figuring out how to make that mesh adaptation even more seamless during actual operation.

Cesar E. Ramos Chuquiure, Ryan Tsai, Yutong Zhou, Zihang Huang, Vansh Thakur, Akshunn Trivedi, Zachary Lin, Pearl Lin, Rikai Yang, Aallen Enninful Adu, Ram Vasudevan

Department of Robotics, University of Michigan Department of Computer Science and Engineering Department of Electrical Engineering and Computer Science

cs.RO

Submitted: 2026-10-14

Updated: 2026-10-14

Code: https://github.com/unitreerobotics/unitree_sdk2

License: http://creativecommons.org/licenses/by-nc-sa/4.0/

Importance score: 80/100

The gist: The gist Generating dynamically feasible motions for legged and manipulating robots requires solving a large, nonlinear, non-convex optimal control problem (OCP) in which contact wrenches must

Key concepts

Optimal Control Problem (OCP)
This is the mathematical challenge of finding the best sequence of actions (motions) for a robot over time. It involves minimizing a cost function while strictly adhering to physical laws like motion dynamics and specific constraints, such as ensuring wheels or feet don't slip when touching the ground.
Augmented Lagrangian Method
This is an advanced mathematical technique used to solve constrained optimization problems. It works by adding penalty terms (Lagrange multipliers) to the standard cost function. This helps guide the optimization process toward a feasible solution by penalizing violations of constraints, making it easier for the algorithm to find a valid motion.
Pseudospectral Collocation
This is a numerical method used to represent continuous robot motion using discrete points (nodes). Instead of solving differential equations directly, the trajectory is approximated by polynomials at these specific nodes. This transforms the complex continuous problem into a manageable, large-scale nonlinear programming problem.
Primal-Dual Gradient Flow
This is a dynamic way to solve optimization problems where you have both variables (the motion path) and constraints (like friction cones). The flow moves the system toward an optimal solution by simultaneously updating the motion variables and the constraint multipliers in a coordinated, iterative process.

Terminology

Summary

The gist Generating dynamically feasible motions for legged and manipulating robots requires solving a large, nonlinear, non-convex optimal control problem (OCP) in which contact wrenches must satisfy friction-cone constraints throughout the motion, not only at isolated instants<ref:2610.20936#pg2>.

Problem Formulation and Transcription

The Contact Sequence Robot OCP is defined as minimizing a cost subject to dynamics, mode constraints, and contact constraints across a prescribed sequence of modes<ref:2610.20936#pg4>. To transcribe this problem, the trajectory is represented by polynomials of degree p in one of two forms, the first being a Lagrange interpolant through the Chebyshev–Gauss–Lobatto (CGL) nodes<ref:2610.20936#pg6>. The cost function is approximated by Clenshaw–Curtis quadrature on the CGL nodes<ref:2610.20936#pg6>. The constraints are transcribed in two ways, with the friction cone being imposed on the Bezier control points rather than at the nodes<ref:2610.20936#pg6>. This results in a nonlinear program Problem 3 (Transcribed OCP) with variables z and constraints gi(z)=0 and gi(z)≤0<ref:2610.20936#pg8>.

Gradient Flow Methodology

LEAP integrates a primal–dual gradient flow of a Powell–Hestenes–Rockafellar augmented Lagrangian to compute a solution<ref:2610.20936#pg9>. This flow is designed to handle the initialization challenge by deforming the trajectory continuously in pseudo-time until it becomes stationary for an action functional. The method utilizes a two-time-scale flow where the primal flow follows z˙(s) = −∇zLA(z(s), γ; µ) and the multipliers jump by the damped update γ+:= γ + τγ µ ⊙ c eff(z(sk+1), γ). This structure is maintained by Lemma 10 (Monotone accepted sequence), which ensures that the accepted iterates satisfy LA(zk+1, γ) < LA(zk, γ) for every k.

Numerical Scheme for Flow Integration

The flow of Definition 5 is integrated using a linearly implicit solver to ensure that the augmented Lagrangian monotonically decreases along the numerical solution to the primal-dual flow. This step involves solving a linearized system defined by H(z, γ), which is a Gauss–Newton approximation of the exact Jacobian. The step update is given by I + hθH(v, γ)∆z = −h∇zLA(v, γ), where ∆z solves (H + 1/hθ I)∆z = −1/θ∇zLA. The step-size controller decides how far to trust H based on the ratio ϱ:= LA(v) − LA(z+(α))/pred(α).

Feasibility and Refinement

The process involves an outer loop that manages feasibility and mesh adaptation. The feasibility criterion is defined by G(z) ≤ tol and F(z) ≤ tol, where G is the node gate and F is the fine-grid violation. If G ≤ tol but F > tol, the level ends and the outer loop refines the mesh using Dorfler marking to bisect elements with the largest indicators. The outer loop also includes an initial feasibility flow where LA reduces to Φ(z):= ω squared P i ν i(z) squared, which is solved via a Levenberg–Marquardt iteration.

Performance and Validation

LEAP has been compared against Crocoddyl and Aligator on ten benchmark problems across five robot platforms. LEAP meets the terminal tracking criteria in all ten simulated rollouts, compared with seven for Crocoddyl and eight for Aligator. Furthermore, a hopscotch execution on the Unitree Go2 quadruped demonstrates hardware tracking of an optimized reference with a joint-position RMS error of 0.0682 rad. The method achieves substantial solve-time reductions and lower normalized terminal error over a range of compute budgets.

Hardware Execution

The hopscotch trajectory is executed on a Unitree Go2 quadruped using a tracking controller trained with domain randomization to accommodate remaining discrepancies between simulation and hardware. This execution shows that a LEAP reference can guide the robot through the hopscotch sequence with centimeter-scale RMS position errors. The final absolute error for the base position is 0.0309 m, which is below the threshold of 0.1 m/s.

Conclusion

LEAP combines pseudospectral collocation with a two-time-scale PHR augmented-Lagrangian flow whose equilibria satisfy the KKT conditions of the transcribed problem. It preserves descent at fixed multipliers and penalties through a linearly implicit Gauss–Newton integrator, while feasibility initialization and adaptive mesh refinement address initial infeasibility and violations between collocation nodes. Across ten benchmarks on five robot platforms, LEAP meets the terminal tracking criteria in all ten simulated rollouts, compared with seven for Crocoddyl and eight for Aligator. It achieves substantial solve-time reductions on several benchmarks and lower normalized terminal error over a range of compute budgets. A hopscotch execution on the Unitree Go2 further demonstrates hardware tracking of an optimized reference, with a joint-position RMS error of 0.0682 rad.

Improvements for AI systems

  1. The LEAP method can solve large, nonlinear, non-convex optimal control problems (OCPs) for dynamically feasible motions in robots with contact constraints by integrating a primal–dual gradient flow of a Powell–Hestenes–Rockafellar augmented Lagrangian. This allows the system to handle the dynamics, constraint, and initialization challenges that plague existing solvers.

  2. The improved AI system can generate optimal hopscotch trajectories for various robot platforms, from planar hoppers to 32-joint humanoids (like the Unitree Go2), achieving substantial speedups over Crocoddyl and Aligator on several benchmarks while reaching trackable references at smaller compute budgets.

  3. The trajectory optimization can be executed with high fidelity on physical hardware; for instance, a hopscotch execution on a Unitree Go2 quadruped showed a joint position RMS error of 0.0682 rad and centimeter-scale RMS position errors, guided by an optimized reference motion.

  4. The system incorporates an adaptive mesh refinement strategy based on the criterion: G(z) ≤ tol and F(z) ≤ tol, where G is the node gate (maximum nodal violation) and F is the fine-grid violation. This ensures that even when nodes have converged, the remaining error between them is addressed by refining the mesh.

  5. The solver employs a linearly implicit Gauss–Newton integrator with a step controller based on Lemma 10, ensuring that "LA(zk+1, γ) < LA(zk, γ) for every k, which guarantees that the accepted iterates satisfy the descent property necessary for convergence while being insensitive to the jumps" in the active set.

Abstract

Generating dynamically feasible motions for legged and manipulating robots requires solving a large, nonlinear, non-convex optimal control problem (OCP) in which contact wrenches must satisfy friction-cone constraints throughout the motion, not only at isolated instants. Existing solvers are sensitive to the initial guess and scale poorly with the number of joints. This paper introduces LEAP, which transcribes the OCP with pseudospectral collocation and, instead of a Newton or SQP solve, integrates a primal--dual gradient flow of a Powell--Hestenes--Rockafellar augmented Lagrangian to compute a solution. Because the flow is stiff, this paper designs a linearly implicit integrator with a Gauss--Newton metric, momentum, and a merit-based step controller that keeps the augmented Lagrangian monotone. Across locomotion benchmarks on five robot platforms, from planar hoppers to 32-joint humanoids, LEAP is the only method to solve every tested problem, achieves substantial speedups over Crocoddyl and Aligator on several benchmarks, and reaches trackable references at smaller compute budgets. The resulting trajectories are validated by tracking them in a high-fidelity simulator and on hardware. We will make the code public upon final acceptance of this paper.

Sources

Related papers