Skip to main content
QUICK REVIEW

[Paper Review] Avoiding overfitting of multilayer perceptrons by training derivatives

Vsevolod I. Avrutskiy|arXiv (Cornell University)|Feb 28, 2018
Neural Networks and ApplicationsComputer Science19 references3 citations
TL;DR

This paper proposes an extended backpropagation method that trains multilayer perceptrons using target function derivatives up to the fourth order, significantly reducing overfitting. By minimizing both function values and their derivatives during training, the method achieves test-to-train cost ratio of 1.5 for large networks, compared to 2×10⁴ in classical backpropagation, even with sparse training grids.

ABSTRACT

Resistance to overfitting is observed for neural networks trained with extended backpropagation algorithm. In addition to target values, its cost function uses derivatives of those up to the $4^{\mathrm{th}}$ order. For common applications of neural networks, high order derivatives are not readily available, so simpler cases are considered: training network to approximate analytical function inside 2D and 5D domains and solving Poisson equation inside a 2D circle. For function approximation, the cost is a sum of squared differences between output and target as well as their derivatives with respect to the input. Differential equations are usually solved by putting a multilayer perceptron in place of unknown function and training its weights, so that equation holds within some margin of error. Commonly used cost is the equation's residual squared. Added terms are squared derivatives of said residual with respect to the independent variables. To investigate overfitting, the cost is minimized for points of regular grids with various spacing, and its root mean is compared with its value on much denser test set. Fully connected perceptrons with six hidden layers and $2\cdot10^{4}$, $1\cdot10^{6}$ and $5\cdot10^{6}$ weights in total are trained with Rprop until cost changes by less than 10% for last 1000 epochs, or when the $10000^{\mathrm{th}}$ epoch is reached. Training the network with $5\cdot10^{6}$ weights to represent simple 2D function using 10 points with 8 extra derivatives in each produces cost test to train ratio of $1.5$, whereas for classical backpropagation in comparable conditions this ratio is $2\cdot10^{4}$.

Motivation & Objective

  • To address overfitting in multilayer perceptrons by incorporating higher-order derivatives into the training process.
  • To investigate whether training derivatives improves generalization beyond classical backpropagation, especially with sparse training data.
  • To evaluate the impact of network capacity (up to 5×10⁶ weights) on overfitting when derivatives are included.
  • To compare performance on function approximation in 2D and 5D domains and solving Poisson’s equation in 2D using derivative-informed training.

Proposed method

  • Extends the cost function to include squared differences between network output and target function, as well as their derivatives up to the 4th order with respect to inputs.
  • Uses Rprop optimization until cost change is less than 10% over the last 1000 epochs or until 10,000 epochs are reached.
  • Applies the method to 2D and 5D function approximation and 2D Poisson equation solving using regular grids with varying spacing.
  • Compares test and train set performance by computing the root mean of the cost on dense test sets versus coarser training grids.
  • Incorporates derivatives via finite difference stencils when analytical derivatives are unavailable, particularly for first-order derivatives.
  • Evaluates overfitting via the ratio of average test cost to average training cost, with lower ratios indicating better generalization.

Experimental results

Research questions

  • RQ1Can training higher-order derivatives of the target function reduce overfitting in multilayer perceptrons?
  • RQ2How does including derivatives up to the 4th order affect the test-to-train cost ratio compared to classical backpropagation?
  • RQ3Does the benefit of derivative training diminish or persist as network size increases (up to 5×10⁶ parameters) and training data becomes sparse?
  • RQ4To what extent does synergy between derivatives improve generalization in function approximation and PDE solving tasks?
  • RQ5How does the overfitting ratio behave across different input dimensions (2D vs. 5D) and problem types (function approximation vs. PDE solution) when derivatives are included?

Key findings

  • For a 2D function approximation with 10 training points and 8 derivative terms per point, the test-to-train cost ratio was 1.5, compared to 2×10⁴ in classical backpropagation.
  • With 5×10⁶ network weights, the overfitting ratio remained below 1.03 (logarithm ≤ 0.03) even with only 11 training points for 2D Poisson equation solving.
  • The test-to-train cost ratio decreased significantly as the maximum order of trained derivatives increased, with higher-order training improving generalization.
  • Even with extremely sparse training grids (e.g., 11 points in 2D), networks trained with derivatives achieved test and train precisions within 8% of each other.
  • The method maintained low overfitting across all tested network sizes (from 2×10⁴ to 5×10⁶ weights), indicating robustness to model capacity.
  • The observed reduction in overfitting is attributed to both higher-order approximation and synergy between derivatives, which enhances precision of lower-order terms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.