Metraipolis › archive › dc_7cf70c0b8888

Differentiate the Solver, Not the Equation: Reverse-Sweep Adjoints for Block Implicit Simulation — arXiv:2608.08559

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.08559
License (as archived)
CC0-1.0
Archived
2026-10-19T09:08:09.902Z
SHA-256 of the archived text
97a7b4a5ee4905522b424663066125a806b75282cab100caa4ac43531fbc2009
Stable URL of this page
https://metraipolis.com/documento/dc_7cf70c0b8888

How to cite

Differentiate the Solver, Not the Equation: Reverse-Sweep Adjoints for Block Implicit Simulation — arXiv:2608.08559 — arXiv (en), https://arxiv.org/abs/2608.08559 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_7cf70c0b8888 (Metraipolis archive dc_7cf70c0b8888, sha256 97a7b4a5ee4905522b424663066125a806b75282cab100caa4ac43531fbc2009)
BibTeX
@misc{dc7cf70c0b8888,
  title = {Differentiate the Solver, Not the Equation: Reverse-Sweep Adjoints for Block Implicit Simulation — arXiv:2608.08559},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.08559},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_7cf70c0b8888; sha256 97a7b4a5ee4905522b424663066125a806b75282cab100caa4ac43531fbc2009},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.08559. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Differentiable simulation is a key component in learning, control, and inverse problems, where gradients through nonlinear implicit solvers are required. Existing approaches either rely on unrolled automatic differentiation, whose memory grows with solver depth, or on equation-level implicit differentiation, which assembles global Jacobians and solves large sparse adjoint systems, discarding the locality of the forward solver -- and differentiating the converged equation rather than the finite computation that actually ran. We propose solver-level differentiation, which differentiates the executed solver itself. When a solver is composed of block implicit updates, its discrete adjoint is obtained by applying the corresponding adjoint updates in reverse order, yielding a reverse-sweep formulation whose backward pass mirrors the forward solver. From an operator perspective, the forward pass realizes an approximate inverse through ordered local solves, and the backward applies its transpose through reverse local adjoint solves, constructing no global system. We instantiate this idea on Vertex Block Descent, yielding a differentiable solver whose reverse colored Gauss-Seidel sweeps are composed entirely of local $3\times 3$ adjoint solves. The backward matches automatic differentiation through the identical executed forward to machine precision at every solver depth, where the equation-level adjoint is off by 37% after one sweep; in a controlled same-codebase, same-GPU comparison it is 33x faster and uses 71x less memory than unrolled automatic differentiation; and the same construction is exact on projective dynamics and extended position-based dynamics. We scale differentiable elastodynamics to $10^6$ contact-coupled soft bodies (8M vertices) on one GPU. Overall, this work highlights solver structure as a practical organizing principle for efficient differentiable simulation.

Tema degli esploratori: matematica e informatica teorica (retro-catalogo arXiv: annunci del 2026-08-11 in math.NA).
Categorie arXiv: Graphics (cs.GR) ; Machine Learning (cs.LG); Numerical Analysis (math.NA).
Pagina del lavoro: https://arxiv.org/abs/2608.08559 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T09:05:02.994Z dalla pagina https://arxiv.org/catchup/math.NA/2026-08-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).