DaxBench: Benchmarking Deformable Object Manipulation with Differentiable Physics

Siwei Chen, Yiqing Xu, Cunjun Yu, Linfeng Li, Xiao Ma, Zhongwen Xu, David HsuICLR 2023

Introduction

Deformable Object Manipulation (DOM)—encompassing tasks such as folding laundry, knotting ropes, or pouring liquids—represents a "grand challenge" in robotics. These objects possess near-infinite degrees of freedom and exhibit complex, non-linear dynamics, making traditional control and planning methods difficult to apply. Differentiable physics simulators, which provide analytical gradients, have emerged as a powerful tool for optimizing control policies. However, the field has been hampered by the lack of a standardized, general-purpose benchmark, with existing simulators often specialized for single material types and frequently lacking differentiability.

The DaXBench Framework

To address these limitations, we introduce DaXBench, a high-performance, differentiable simulation benchmark integrated with JAX. By leveraging JAX's capabilities, DaXBench supports efficient auto-differentiation and massive parallelization across multiple GPUs, enabling rapid experimentation and large-scale learning.

A complex multi-material task in DaXBench: a bowl of soup containing tofu and vegetables simulated with particle-based dynamics.

DaXBench features nine challenging tasks across three primary categories:

  1. Liquid Manipulation: Pour-Water and Pour-Soup, the latter involving complex liquid-solid interactions.
  2. Rope Manipulation: Push-Rope (macro-actions) and Whip-Rope (high-frequency low-level control).
  3. Cloth Manipulation: Fold-Cloth, Fold-T-shirt, and Unfold-Cloth, with varying horizons and difficulty levels.

Methodology

The underlying simulator, DaX, employs a hybrid modeling approach to balance physical fidelity and computational efficiency. It utilizes the Moving Least Square Material Point Method (MLS-MPM) for liquids and ropes to handle severe deformations and topological changes. For cloth, it employs a more efficient mass-spring system.

To overcome the high memory requirements of backpropagating through long sequences, DaX implements a checkpointing method that recomputes segments of the forward pass during the backward pass. Additionally, "lazy dynamic updates" are used to simulate only the "active regions" where the robot interacts with the object, further optimizing performance. All tasks are wrapped in a standard OpenAI Gym API, ensuring compatibility with a wide range of RL and IL algorithms.

Experimental Evaluation and Key Insights

We benchmarked eight representative algorithms across the DaXBench tasks, leading to several key insights regarding the role of differentiable physics in DOM.

The Exploration vs. Gradient Trade-off

A critical finding is the "exploration trap" faced by differentiable RL methods like Analytic Policy Gradient (APG). Because these methods rely on local gradients, they can fail if the initial policy does not interact with the object, resulting in zero gradients. In contrast, non-differentiable methods like PPO, which utilize stochastic exploration, often perform better on high-level "macro-action" tasks such as T-shirt folding.

The Fold-T-shirt task in DaXBench, illustrating the complexity of long-horizon cloth manipulation.

Precision in Low-Level Control

Differentiable physics excels in tasks requiring precise momentum adjustment and fluid trajectories. In the "Whip-Rope" task, APG achieved a reward of 0.83, significantly outperforming PPO's 0.25. The smooth optimization landscape provided by the simulator allows gradient-based methods to discover effective strategies that standard RL struggles to find.

Sample Efficiency and Planning

Differentiable Imitation Learning (ILD) demonstrated superior sample efficiency, achieving high performance with as few as one expert demonstration. Furthermore, in planning, combining differentiable MPC with a global searcher (e.g., CEM) outperformed both standalone methods, using gradients to fine-tune the sequences discovered by the global search.

Conclusion and Future Directions

DaXBench provides a rigorous platform for evaluating DOM algorithms. While differentiable physics offers clear advantages in sample efficiency and precision, challenges remain in global exploration and handling discontinuous gradients. Future work should focus on developing robust "warm-start" strategies for differentiable solvers and exploring more efficient state representations, such as graph neural networks or latent embeddings, to better manage the complexity of deformable objects.

Summary updated

BibTeX
@inproceedings{chen2023daxbench,
  author = {Siwei Chen and Yiqing Xu and Cunjun Yu and Linfeng Li and Xiao Ma and Zhongwen Xu and David Hsu},
  title = {{DaxBench: Benchmarking Deformable Object Manipulation with Differentiable Physics}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=1NAzMofMnWl},
}
Figure