Bundled Gradients Through Contact Via Randomized Smoothing

Hyung Ju Terry Suh, Tao Pang, Russ TedrakeIEEE RA-L 2021

Abstract

The empirical success of derivative-free methods in reinforcement learning for planning through contact seems at odds with the perceived fragility of classical gradient-based optimization methods in these domains. What is causing this gap, and how might we use the answer to improve gradient-based methods? We believe a stochastic formulation of dynamics is one crucial ingredient. We use tools from randomized smoothing to analyze sampling-based approximations of the gradient, and formalize such approximations through the gradient bundle. We show that using the gradient bundle in lieu of the gradient mitigates fast-changing gradients of non-smooth contact dynamics modeled by the implicit time-stepping, or the penalty method. Finally, we apply the gradient bundle to optimal control using iLQR, introducing a novel algorithm which improves convergence over using exact gradients. Combining our algorithm with a convex implicit time-stepping formulation of contact, we show that we can tractably tackle planning-through-contact problems in manipulation.

Introduction

Planning a robot's movement when it needs to touch and move objects—known as planning-through-contact—is notoriously difficult. Traditional gradient-based optimization is often "brittle" in these scenarios because contact dynamics are inherently non-smooth. This manifests in two primary ways: flat gradients when the robot is not in contact (leaving the optimizer with no direction) and sharp discontinuities during impact or transitions between sticking and sliding.

A jagged loss landscape illustrating the difficulty of optimizing non-smooth contact dynamics.

While Reinforcement Learning (RL) has shown success in these domains, it is often sample-inefficient. We hypothesize that RL's success stems from its stochastic nature, which implicitly smooths out these jagged dynamics. This paper introduces bundled gradients to bring this benefit to classical control theory.

Methodology: The Gradient Bundle

The core contribution is the formalization of the Gradient Bundle through Randomized Smoothing. Instead of calculating the gradient at a single point, the algorithm samples the dynamics in a small neighborhood around the current state and takes the average. This is mathematically equivalent to convolving the original non-smooth function with a smoothing kernel (like a Gaussian).

We integrate this into an iterative Model Predictive Control algorithm, iRS-MPC. At each step, the algorithm uses Monte-Carlo sampling to estimate the bundled gradient, solves a Quadratic Program (QP) for the optimal trajectory, and repeats. We also introduce a zero-order variant that uses finite differences across samples, which is particularly robust against discontinuous "jumps" in dynamics.

Experimental Results

We evaluated our approach using the Drake simulation environment across several contact-rich manipulation benchmarks, including planar pushing, box pivoting, and a two-fingered planar hand.

Comparison of exact gradients versus bundled gradients across various manipulation tasks. The bundled gradient approach (bottom row) successfully finds trajectories that exact gradients (top row) cannot.

As shown in the comparison above, standard iMPC using exact gradients failed to make progress from non-contact initial guesses in tasks like planar pushing and box pivoting. In contrast, iRS-MPC succeeded by finding a valid descent direction through the smoothed gradients. Key results include:

  • Efficiency: Using an implicit quasi-dynamic formulation resulted in a 36x speedup compared to traditional second-order penalty methods.
  • Sample Efficiency: The method achieved high-quality results with only N=100 samples per knot-point, making it viable for real-time applications when parallelized.
  • Convergence: iRS-MPC converged more tightly to local minima and faster than the Cross-Entropy Method (CEM), a popular derivative-free alternative.

Conclusion

Bundled gradients provide a way for robots to "feel" contact at a distance by creating a smoothed boundary layer. This approach prioritizes stability over local precision, leading to much more robust convergence in the noisy, non-smooth landscapes typical of physical interaction. By bridging the gap between stochastic RL and classical control, we enable more reliable planning for complex manipulation tasks.

Summary updated

BibTeX
@article{suh2021bundled,
  author = {Hyung Ju Terry Suh and Tao Pang and Russ Tedrake},
  title = {{Bundled Gradients Through Contact Via Randomized Smoothing}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2021},
  url = {https://openreview.net/forum?id=4DepcL0Z4qX},
}
Figure