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

Kyle R. Chickering
12/12/2024
cs.LGstat.ML

Official code: KyroChi/n_tangentprop (2 stars, last commit 2025-03-13).

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 $n$-TangentProp, the natural extension of the TangentProp formalism \cite{simard1991tangent} to arbitrarily many derivatives. $n$-TangentProp computes the exact derivative $d^n/dx^n f(x)$ in quasilinear, instead of exponential time, for a densely connected, feed-forward neural network $f$ 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.

View on arXivView PDF

Code Implementations(1)

Implementation for the n-TangentProp algorithm which can compute d^n/dx^n u in linear, rather than exponential, time.

20Shell, PythonDec 6, 20241 years ago
efficientneural-networkpinn

Similar Papers

Cite this paper

@article{chickering2024quasilinear,
  title  = {A Quasilinear Algorithm for Computing Higher-Order Derivatives of Deep Feed-Forward Neural Networks},
  author = {Kyle R. Chickering},
  year   = {2024},
  eprint = {2412.09752},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.09752v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.09752.svg)](https://codeofpaper.com/paper/2412.09752)

Discussion