Improving Gradient Computation for Differentiable Physics Simulation
with Contacts
- URL: http://arxiv.org/abs/2305.00092v1
- Date: Fri, 28 Apr 2023 21:10:16 GMT
- Title: Improving Gradient Computation for Differentiable Physics Simulation
with Contacts
- Authors: Yaofeng Desmond Zhong, Jiequn Han, Biswadip Dey, Georgia Olympia
Brikis
- Abstract summary: 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.
- Score: 10.450509067356148
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Differentiable simulation enables gradients to be back-propagated through
physics simulations. In this way, one can learn the dynamics and properties of
a physics system by gradient-based optimization or embed the whole
differentiable simulation as a layer in a deep learning model for downstream
tasks, such as planning and control. However, differentiable simulation at its
current stage is not perfect and might provide wrong gradients that deteriorate
its performance in learning tasks. In this paper, we study differentiable
rigid-body simulation with contacts. We find that existing differentiable
simulation methods provide inaccurate gradients when the contact normal
direction is not fixed - a general situation when the contacts are between two
moving objects. We propose to improve gradient computation by continuous
collision detection and leverage the time-of-impact (TOI) to calculate the
post-collision velocities. We demonstrate our proposed method, referred to as
TOI-Velocity, on two optimal control problems. We show that with TOI-Velocity,
we are able to learn an optimal control sequence that matches the analytical
solution, while without TOI-Velocity, existing differentiable simulation
methods fail to do so.
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) - Jade: A Differentiable Physics Engine for Articulated Rigid Bodies with
Intersection-Free Frictional Contact [5.70896453969985]
Jade is a differentiable physics engine for articulated rigid bodies.
It offers features including intersection-free collision simulation and stable LCP solutions for multiple frictional contacts.
arXiv Detail & Related papers (2023-09-09T07:39:36Z) - Differentiable Physics Simulations with Contacts: Do They Have Correct
Gradients w.r.t. Position, Velocity and Control? [9.883261192383612]
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)
arXiv Detail & Related papers (2022-07-08T19:30:09Z) - Accelerated Policy Learning with Parallel Differentiable Simulation [59.665651562534755]
We present a differentiable simulator and a new policy learning algorithm (SHAC)
Our algorithm alleviates problems with local minima through a smooth critic function.
We show substantial improvements in sample efficiency and wall-clock time over state-of-the-art RL and differentiable simulation-based algorithms.
arXiv Detail & Related papers (2022-04-14T17:46:26Z) - DiffCloud: Real-to-Sim from Point Clouds with Differentiable Simulation
and Rendering of Deformable Objects [18.266002992029716]
Research in manipulation of deformable objects is typically conducted on a limited range of scenarios.
Realistic simulators with support for various types of deformations and interactions have the potential to speed up experimentation.
For highly deformable objects it is challenging to align the output of a simulator with the behavior of real objects.
arXiv Detail & Related papers (2022-04-07T00:45:26Z) - 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) - Automatic Differentiation and Continuous Sensitivity Analysis of Rigid
Body Dynamics [15.565726546970678]
We introduce a differentiable physics simulator for rigid body dynamics.
In the context of trajectory optimization, we introduce a closed-loop model-predictive control algorithm.
arXiv Detail & Related papers (2020-01-22T03:54:00Z)
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.