For largescale problems, it is necessary to adapt the basis functions to the data. An approach is to fix the number of basis functions in advance but allow them to be adaptive, in other words to use parametric forms for the basis functions in which the parameter values are adapted during training. The most successful model of this type in the context of pattern recognition is the feed-forward neural network, also known as the multilayer perception. For many applications, the resulting model can be significantly more compact than other model, support vector machine, having the same generalization performance. The price to be paid for this compactness is that the likelihood function, which forms the basis for network training, is no longer a convex function of the model parameters. In practice, however, it is often worth investing substantial computational resources during the training phase in order to obtain a compact model that is fast at processing new data.
Many error functions of practical interest one for each data point in the training set, so that
$$ E(\bold w)=\sum_{n=1}^NE_n(\bold w) $$
Here we shall consider the problem of evaluating $\nabla E_n(\bold w)$ for one such term in the error function. This may be used directly for sequential optimization, or the results can be accumulated over the training set in the case of batch methods.
In a general feed-forward network, each unit computes a weighted sum of its inputs of the form
$$ a_j=\displaystyle\sum_{i}w_{ji}z_i $$
where $z_i$ is the activation of a unit, or input, that sends a connection to unit $j$, and $w_{ji}$ is the weight associated with that connection. Note that biases are included in this sum by introducing an extra unit, or input, with activation fixed at +1. The value $a_j$ is transformed by a nonlinear activation function $h(\cdot)$ to give the activation $z_j$ of unit $j$ in the form
$$ z_j=h(a_j). $$
Note that one or more of the variables $z_i$ in the representation of $a_j$ of summation could be an input, and similarly, the unit $j$ could be an output.
For each pattern in the training set, we shall suppose that we have supplied the corresponding input vector to the network and calculated the activations of all of the hidden and output units in the network by successive application of the above equations $a_j$ with $z_i$ and $z_j$ with $a_j$. This process is often called forward propagation because it can be regarded as a forward flow of information through the network.
Now consider the evaluation of the derivative of $E_n$ with respect to a weight $w_{ji}$. The outputs of the various units will depend on the particular input pattern $n$. However, in order to keep the notation uncluttered, we shall omit the subscript $n$ from the network variables. First we note that $E_n$ depends on the weight $w_{ji}$ only via the summed input $a_j$ to unit $j$. We can therefore apply the chain rule for partial derivatives to give
$$ \frac{\partial E_n}{\partial w_{ji}}=\frac{\partial E_n}{\partial a_j}\frac{\partial a_j}{\partial w_{ji}}. $$
We now introduce a useful notation
$$ \delta_j\equiv\frac{\partial E_n}{\partial a_j} $$
where the $\delta$'s are often referred to as errors.
We can write
$$ \frac{\partial E_n}{\partial w_{ji}}=\frac{\partial E_n}{\partial a_j}\frac{\partial a_j}{\partial w_{ji}}=\delta_jz_i. $$
This implies that the required derivative is obtained simply by multiplying the value of $\delta$ for the unit at the output end of the weight by the value of $z$ for the unit at the input end of the weight (where $z = 1$ in the case of a bias).
For the output units, we have