End-to-End Differentiable Smoothed Particle Hydrodynamics for Fluid--Rigid Optimization with Gradient Stabilization
Year: 2026
Type: article
Abstract: We introduce an end-to-end differentiable optimization framework for Smoothed Particle Hydrodynamics (SPH) with fluid–rigid body coupling. The central difficulty is not only to obtain local derivatives of SPH operators, but also to propagate useful sensitivities through long rollouts whose particle neighborhoods, contacts, and pressure responses change rapidly over time. These effects make reverse-mode gradients noisy and often cause adjoint variables to explode in long-horizon control and inverse-design tasks. We formulate an SPH-specific reverse-mode pipeline for IISPH-based fluid–rigid simulation and implement the required vector–Jacobian products within checkpointed simulation segments. To make the resulting gradients usable for optimization, we introduce a self-adaptive adjoint correction sequence that acts as a descent-preserving preconditioner: it bounds pathological adjoint amplification while keeping the update direction aligned with the original reverse-mode sensitivity. Our experiments cover a sequence of increasingly demanding tasks, from low-dimensional impulse and shape optimization to scalar-amplitude water actuation, multi-object water-jet balancing, and neural fluid-mediated pendulum control. These results demonstrate that stabilized reverse-mode differentiation can support challenging SPH-based optimization problems involving indirect momentum transfer, long-horizon event timing, and high-dimensional control.
Source: ACM Transactions on Graphics
DOI: 10.1145/3860999
Authors: Geng-Chen Cao, Bo Ren, Yanrui Xu, Zhe-Han Mo, Shi-min Hu
Institutions: Tsinghua University, Nankai University
Language: English
Subfield: Computational Mechanics
Field: Engineering
Domain: Physical Sciences
Open Access status: hybrid
Funder: Tencent
OpenAlex ID: W7227613682
