Differentiable Physics Simulations with Contacts: Do They Have Correct
Gradients w.r.t. Position, Velocity and Control?
- URL: http://arxiv.org/abs/2207.05060v1
- Date: Fri, 8 Jul 2022 19:30:09 GMT
- Title: Differentiable Physics Simulations with Contacts: Do They Have Correct
Gradients w.r.t. Position, Velocity and Control?
- Authors: Yaofeng Desmond Zhong, Jiequn Han, Georgia Olympia Brikis
- Abstract summary: By making physics simulations end-to-end differentiable, we can perform gradient-based optimization and learning tasks.
A majority of differentiable simulators consider collisions and contacts between objects, but they use different contact models for differentiability.
In this paper, we overview four kinds of differentiable contact formulations - linear complementarity problems (LCP), convex optimization models, compliant models and position-based dynamics (PBD)
- Score: 9.883261192383612
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: In recent years, an increasing amount of work has focused on differentiable
physics simulation and has produced a set of open source projects such as Tiny
Differentiable Simulator, Nimble Physics, diffTaichi, Brax, Warp, Dojo and
DiffCoSim. By making physics simulations end-to-end differentiable, we can
perform gradient-based optimization and learning tasks. A majority of
differentiable simulators consider collisions and contacts between objects, but
they use different contact models for differentiability. In this paper, we
overview four kinds of differentiable contact formulations - linear
complementarity problems (LCP), convex optimization models, compliant models
and position-based dynamics (PBD). We analyze and compare the gradients
calculated by these models and show that the gradients are not always correct.
We also demonstrate their ability to learn an optimal control strategy by
comparing the learned strategies with the optimal strategy in an analytical
form. The codebase to reproduce the experiment results is available at
https://github.com/DesmondZhong/diff_sim_grads.
Related papers
- DeepSimHO: Stable Pose Estimation for Hand-Object Interaction via
Physics Simulation [81.11585774044848]
We present DeepSimHO, a novel deep-learning pipeline that combines forward physics simulation and backward gradient approximation with a neural network.
Our method noticeably improves the stability of the estimation and achieves superior efficiency over test-time optimization.
arXiv Detail & Related papers (2023-10-11T05:34:36Z) - Differentiable Turbulence: Closure as a partial differential equation constrained optimization [1.8749305679160366]
We leverage the concept of differentiable turbulence, whereby an end-to-end differentiable solver is used in combination with physics-inspired choices of deep learning architectures.
We show that the differentiable physics paradigm is more successful than offline, textita-priori learning, and that hybrid solver-in-the-loop approaches to deep learning offer an ideal balance between computational efficiency, accuracy, and generalization.
arXiv Detail & Related papers (2023-07-07T15:51:55Z) - Improving Gradient Computation for Differentiable Physics Simulation
with Contacts [10.450509067356148]
We study differentiable rigid-body simulation with contacts.
We propose to improve gradient computation by continuous collision detection and leverage the time-of-impact (TOI)
We show that with TOI-Ve, we are able to learn an optimal control sequence that matches the analytical solution.
arXiv Detail & Related papers (2023-04-28T21:10:16Z) - Rethinking Optimization with Differentiable Simulation from a Global
Perspective [20.424212055832676]
Differentiable simulation is a promising toolkit for fast gradient-based policy optimization and system identification.
We study the challenges that differentiable simulation presents when it is not feasible to expect that a single descent reaches a global optimum.
We propose a method that combines Bayesian optimization with semi-local 'leaps' to obtain a global search method that can use gradients effectively.
arXiv Detail & Related papers (2022-06-28T17:08:53Z) - Differentiable Simulation of Soft Multi-body Systems [99.4302215142673]
We develop a top-down matrix assembly algorithm within Projective Dynamics.
We derive a differentiable control framework for soft articulated bodies driven by muscles, joint torques, or pneumatic tubes.
arXiv Detail & Related papers (2022-05-03T20:03:22Z) - Efficient Differentiable Simulation of Articulated Bodies [89.64118042429287]
We present a method for efficient differentiable simulation of articulated bodies.
This enables integration of articulated body dynamics into deep learning frameworks.
We show that reinforcement learning with articulated systems can be accelerated using gradients provided by our method.
arXiv Detail & Related papers (2021-09-16T04:48:13Z) - PlasticineLab: A Soft-Body Manipulation Benchmark with Differentiable
Physics [89.81550748680245]
We introduce a new differentiable physics benchmark called PasticineLab.
In each task, the agent uses manipulators to deform the plasticine into the desired configuration.
We evaluate several existing reinforcement learning (RL) methods and gradient-based methods on this benchmark.
arXiv Detail & Related papers (2021-04-07T17:59:23Z) - DiffPD: Differentiable Projective Dynamics with Contact [65.88720481593118]
We present DiffPD, an efficient differentiable soft-body simulator with implicit time integration.
We evaluate the performance of DiffPD and observe a speedup of 4-19 times compared to the standard Newton's method in various applications.
arXiv Detail & Related papers (2021-01-15T00:13:33Z) - Scalable Differentiable Physics for Learning and Control [99.4302215142673]
Differentiable physics is a powerful approach to learning and control problems that involve physical objects and environments.
We develop a scalable framework for differentiable physics that can support a large number of objects and their interactions.
arXiv Detail & Related papers (2020-07-04T19:07:51Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.