A Contact Model based on Denoising Diffusion to Learn Variable Impedance Control for Contact-rich Manipulation

Masashi Okada, Mayumi Komatsu, Tadahiro Taniguchi

TL;DR

This paper introduces the Diffusion Contact Model (DCM), a generative approach that uses denoising diffusion to simulate complex contact dynamics in robotics. By framing contact force prediction as an iterative denoising process, DCM enables "robot-free" optimization of variable impedance control, achieving performance comparable to real-world trial-and-error while reducing optimization time by approximately 66%.

What Problem Does This Paper Address?

Contact-rich tasks, such as wiping a curved surface or assembling parts, are notoriously difficult for robots. These tasks typically rely on impedance control, where the robot's "stiffness" ($K$) is tuned to balance two competing goals: following a demonstrated path accurately (task objective) and remaining soft enough to handle unexpected contact safely (compliance objective).

Traditionally, finding the optimal time-varying stiffness requires Bayesian optimization performed directly on a real robot. This is slow, expensive, and risks damaging the hardware. While physics simulators like MuJoCo exist, the "sim-to-real gap"—caused by difficult-to-model friction, geometry, and elastic properties—often makes simulation-based tuning unreliable. Standard neural networks also struggle to capture the highly nonlinear, iterative nature of contact physics (often formulated as Nonlinear Complementarity Problems).

Methods

The authors propose the Diffusion Contact Model (DCM) to bridge this gap. The core idea is that the iterative denoising process in diffusion models mathematically mirrors the iterative optimization used in physics-based contact solvers.

The DCM framework replaces real-world robot trials with a learned diffusion model to evaluate task objectives during stiffness optimization.

Key Innovations:

  1. Iterative Denoising as Physics Simulation: DCM predicts contact force trajectories ($\mathcal{F}$) by starting with Gaussian noise and iteratively refining it over $T$ steps. The authors argue that this multi-step process acts as a learned optimization, providing a strong inductive bias for simulating contact dynamics.
  2. Conditional Score Function: The model is conditioned on the demonstrated trajectory ($\tau^{demo}$), the reference trajectory ($\tau^{attr}$), and the variable stiffness ($K$).
  3. RetNet Backbone: Instead of the standard U-Net or Transformer, the authors use a Retentive Network (RetNet). RetNet offers the performance of a Transformer with the computational efficiency of a recurrent neural network (RNN), which is critical for processing long time-series data in robotics.
DCM iteratively estimates the contact force trajectory through T denoising steps, conditioned on stiffness and trajectory inputs.

Datasets

The model was evaluated in two environments:

  • Simulated Environment: Built using MuJoCo and RoboSuite, featuring a wiping task on a curved bowl. The training set included 1,600 trajectories of spiral motions with varying bowl sizes and directions.
  • Real Environment: Conducted using a Franka Emika Panda robot. The dataset consisted of 80 training trajectories (spiral motions) and 20 test trajectories (line motions). To handle the scarcity of real-world data, the authors fine-tuned models pre-trained on simulated data.

The simulated (left) and real-world (right) wiping task setups used for data collection and testing. Real wiping task environment and demonstrated trajectories.

Key Insights and Ideas

  • Optimization Equivalence: The most profound insight is the link between the denoising objective ($-\nabla \log p_\theta(\mathcal{F} | \cdot)$) and the convex optimization objectives used in simulators like MuJoCo. This suggests that diffusion models aren't just "guessing" forces; they are learning the underlying structure of contact constraints.
  • Robustness to Data Scarcity: DCM showed significantly better performance than standard RNN baselines when training data was limited. This suggests the diffusion architecture is less prone to overfitting in complex dynamical systems.
  • RetNet Superiority: In their ablation studies, RetNet outperformed LSTMs, MLPs, and even standard Transformers for this specific time-series force prediction task.

Key Results

  • Prediction Accuracy: In simulation, DCM (at $T=30$ steps) significantly outperformed the baseline RNN in predicting force trajectories, especially as the amount of training data decreased.
  • Optimization Efficiency: In real-world experiments, the "robot-free" optimization using DCM took only 25 minutes (including 5 validation trials) compared to 80 minutes for traditional robot-based optimization.
  • Performance Parity: The Pareto solutions (the best trade-offs between accuracy and softness) found by DCM were comparable to those found through hours of real-world robot trials.

Limitations and Future Work

Despite the success, the authors note that DCM is still a "black-box" model. They suggest that "gray-boxing"—incorporating more explicit physics-based inductive biases—could further improve explainability and performance.

Additionally, while DCM found excellent compliant solutions in real-world settings, it struggled slightly to find the most extreme "task-oriented" (high accuracy) solutions compared to real-robot trials. The authors aim to address this by scaling up the training data, potentially leveraging large-scale foundational models for contact-rich manipulation.

Summary updated

BibTeX
@inproceedings{okada2024contact,
  author = {Masashi Okada and Mayumi Komatsu and Tadahiro Taniguchi},
  title = {{A Contact Model based on Denoising Diffusion to Learn Variable Impedance Control for Contact-rich Manipulation}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2024},
  doi = {10.1109/iros58592.2024.10801976},
}
Figure