[Paper Review] Backpropagation generalized for output derivatives
This paper generalizes the backpropagation algorithm to train feedforward neural networks using derivatives of the network output with respect to inputs, enabling exact computation of differential operators. The method supports arbitrary-order derivatives in multi-dimensional inputs, uses matrix-vector operations for efficient parallelization, and enables solving PDEs without numerical approximations, offering a novel, exact alternative to finite difference methods.
Backpropagation algorithm is the cornerstone for neural network analysis. Paper extends it for training any derivatives of neural network's output with respect to its input. By the dint of it feedforward networks can be used to solve or verify solutions of partial or simple, linear or nonlinear differential equations. This method vastly differs from traditional ones like finite differences on a mesh. It contains no approximations, but rather an exact form of differential operators. Algorithm is built to train a feed forward network with any number of hidden layers and any kind of sufficiently smooth activation functions. It's presented in a form of matrix-vector products so highly parallel implementation is readily possible. First part derives the method for 2D case with first and second order derivatives, second part extends it to N-dimensional case with any derivatives. All necessary expressions for using this method to solve most applied PDE can be found in Appendix D.
Motivation & Objective
- To extend backpropagation beyond weight gradients to include derivatives of network outputs with respect to inputs, enabling training on derivatives.
- To provide a universal method for training feedforward networks to solve partial differential equations (PDEs) using exact differential operators.
- To support arbitrary-order derivatives (first, second, etc.) and multi-dimensional inputs (2D, N-D) with any smooth activation function.
- To enable high-performance, parallelizable implementation via matrix-vector formulations for scalable training.
- To offer a non-approximate alternative to classical numerical methods like finite differences, avoiding numerical viscosity and mesh-based discretization.
Proposed method
- Derives forward propagation of first and second-order derivatives through hidden layers using chain rule and recursive matrix-vector products.
- Introduces generalized differential operators, denoted as $\mathbb{D}^S$, to compute higher-order derivatives of activation functions via Faà di Bruno’s formula.
- Expresses derivative propagation as matrix-vector operations using Jacobian-like terms involving $W_{(n)(n-1)}^{\theta\kappa}\sigma'(z_{n-1}^\kappa)$.
- Applies Faà di Bruno’s combinatorial formula to decompose higher-order derivatives into sums over partitions of derivative indices.
- Derives weight and bias gradient expressions via chain rule on output derivatives, enabling use with standard optimization methods like RProp or gradient descent.
- Extends the framework from 2D to N-dimensional inputs by generalizing derivative indexing and operator structure.
Experimental results
Research questions
- RQ1Can backpropagation be generalized to train neural networks not only on output values but also on their derivatives with respect to inputs?
- RQ2Can this generalized method compute exact differential operators without numerical approximation, avoiding issues like numerical viscosity?
- RQ3Is it possible to derive a unified, scalable algorithm for arbitrary-order derivatives in multi-dimensional input spaces using standard feedforward networks?
- RQ4How can matrix-vector operations be used to enable efficient, parallelizable implementation of derivative training?
- RQ5Can this method be applied to solve PDEs by training networks to satisfy differential equations and boundary conditions?
Key findings
- The generalized backpropagation algorithm enables exact computation of arbitrary-order derivatives of a neural network’s output with respect to its inputs, avoiding numerical approximation.
- The method supports any number of hidden layers and any sufficiently smooth activation function, ensuring broad applicability.
- Derivative propagation is implemented via matrix-vector products, enabling efficient, highly parallelizable training on modern hardware.
- The framework provides explicit expressions for all required derivatives in Appendix D, covering all standard PDE operators in 2D and N-D cases.
- The approach allows solving PDEs by training networks to satisfy differential equations directly, offering a mesh-free alternative to finite difference methods.
- The method can be used to refine existing numerical solutions by training a network to correct residual errors, enhancing accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.