Delta rule
Encyclopedia
The delta rule is a gradient descent
Gradient descent
Gradient descent is a first-order optimization algorithm. To find a local minimum of a function using gradient descent, one takes steps proportional to the negative of the gradient of the function at the current point...

 learning rule for updating the weights of the artificial neurons in a single-layer perceptron
Perceptron
The perceptron is a type of artificial neural network invented in 1957 at the Cornell Aeronautical Laboratory by Frank Rosenblatt. It can be seen as the simplest kind of feedforward neural network: a linear classifier.- Definition :...

. It is a special case of the more general backpropagation
Backpropagation
Backpropagation is a common method of teaching artificial neural networks how to perform a given task. Arthur E. Bryson and Yu-Chi Ho described it as a multi-stage dynamic system optimization method in 1969 . It wasn't until 1974 and later, when applied in the context of neural networks and...

 algorithm. For a neuron with activation function the delta rule for 's th weight is given by
,

where
is a small constant called learning rate
is the neuron's activation function
is the target output
is the weighted sum of the neuron's inputs
is the actual output
is the th input.


It holds that and .

The delta rule is commonly stated in simplified form for a perceptron with a linear activation function as

Derivation of the delta rule

The delta rule is derived by attempting to minimize the error in the output of the perceptron through gradient descent
Gradient descent
Gradient descent is a first-order optimization algorithm. To find a local minimum of a function using gradient descent, one takes steps proportional to the negative of the gradient of the function at the current point...

. The error for a perceptron with outputs can be measured as
.

In this case, we wish to move through "weight space" of the neuron (the space of all possible values of all of the neuron's weights) in proportion to the gradient of the error function with respect to each weight. In order to do that, we calculate the partial derivative
Partial derivative
In mathematics, a partial derivative of a function of several variables is its derivative with respect to one of those variables, with the others held constant...

 of the error with respect to each weight. For the th weight, this derivative can be written as
.

Because we are only concerning ourselves with the th neuron, we can substitute the error formula above while omitting the summation:


Next we use the chain rule
Chain rule
In calculus, the chain rule is a formula for computing the derivative of the composition of two or more functions. That is, if f is a function and g is a function, then the chain rule expresses the derivative of the composite function in terms of the derivatives of f and g.In integration, the...

 to split this into two derivatives:


To find the left derivative, we simply apply the general power rule:


To find the right derivative, we again apply the chain rule, this time differentiating with respect to the total input to , :


Note that the output of the neuron is just the neuron's activation function applied to the neuron's input . We can therefore write the derivative of with respect to simply as 's first derivative:


Next we rewrite in the last term as the sum over all weights of each weight times its corresponding input :


Because we are only concerned with the th weight, the only term of the summation that is relevant is . Clearly,
,

giving us our final equation for the gradient:


As noted above, gradient descent tells us that our change for each weight should be proportional to the gradient. Choosing a proportionality constant and eliminating the minus sign to enable us to move the weight in the negative direction of the gradient to minimize error, we arrive at our target equation:
.
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK