NeurIPS 2025poster0 citations

Collapsing Taylor Mode Automatic Differentiation

Felix Dangel, Tim Siebert, Marius Zeinhofer, Andrea Walther

Abstract

Computing partial differential equation (PDE) operators via nested backpropagation is expensive, yet popular, and severely restricts their utility for scientific machine learning. Recent advances, like the forward Laplacian and randomizing Taylor mode automatic differentiation (AD), propose forward schemes to address this. We introduce an optimization technique for Taylor mode that 'collapses' derivatives by rewriting the computational graph, and demonstrate how to apply it to general linear PDE operators, and randomized Taylor mode. The modifications simply require propagating a sum up the computational graph, which could---or should---be done by a machine learning compiler, without exposing complexity to users. We implement our collapsing procedure and evaluate it on popular PDE operators, confirming it accelerates Taylor mode and outperforms nested backpropagation.

Automatic differentiationTaylor modeDifferential operatorsHigher-order derivativesPINNsVMCLaplacian
BibTeX
@inproceedings{
dangel2025collapsing,
title={Collapsing Taylor Mode Automatic Differentiation},
author={Felix Dangel and Tim Siebert and Marius Zeinhofer and Andrea Walther},
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
year={2025},
url={https://openreview.net/forum?id=XgQVL1uP34}
}
Collapsing Taylor Mode Automatic Differentiation · NeurIPS 2025