English

A Quasilinear Algorithm for Computing Higher-Order Derivatives of Deep Feed-Forward Neural Networks

Machine Learning 2024-12-16 v1 Machine Learning

Abstract

The use of neural networks for solving differential equations is practically difficult due to the exponentially increasing runtime of autodifferentiation when computing high-order derivatives. We propose nn-TangentProp, the natural extension of the TangentProp formalism \cite{simard1991tangent} to arbitrarily many derivatives. nn-TangentProp computes the exact derivative dn/dxnf(x)d^n/dx^n f(x) in quasilinear, instead of exponential time, for a densely connected, feed-forward neural network ff with a smooth, parameter-free activation function. We validate our algorithm empirically across a range of depths, widths, and number of derivatives. We demonstrate that our method is particularly beneficial in the context of physics-informed neural networks where \ntp allows for significantly faster training times than previous methods and has favorable scaling with respect to both model size and loss-function complexity as measured by the number of required derivatives. The code for this paper can be found at https://github.com/kyrochi/n\_tangentprop.

Cite

@article{arxiv.2412.09752,
  title  = {A Quasilinear Algorithm for Computing Higher-Order Derivatives of Deep Feed-Forward Neural Networks},
  author = {Kyle R. Chickering},
  journal= {arXiv preprint arXiv:2412.09752},
  year   = {2024}
}

Comments

11 pages, 10 figures

R2 v1 2026-06-28T20:33:15.851Z