Answers.Body: <p><strong>Overview</strong></p>
  
  <p>The derivatives of functions are used to determine what changes to input parameters correspond to what desired change in output for any given point in the forward propagation and cost, loss, or error evaluation &amp;mdash whatever it is conceptually the learning process is attempting to minimize. This is the conceptual and algebraic inverse of maximizing valuation, yield, or accuracy.</p>
  
  <p>Back-propagation estimates the next best step toward the objective quantified in the cost function in a search. The result of the search is a set of parameter matrices, each element of which represents what is sometimes called a connection weight. The improvement of the values of the elements in the pursuit of minimal cost is artificial networking's basic approach to learning.</p>
  
  <p>Each step is an estimation because the cost function is a finite difference, where as the partial derivatives express the slope of a hyper-plane normal to surfaces that represent functions that comprise forward propagation. The goal is to set up circumstances so that successive approximations approach the ideal represented by minimization of the cost function.</p>
  
  <p><strong>Back-propagation Theory</strong></p>
  
  <p>Back-propagation is a scheme for distribution of a correction signal arising from cost evaluation after each sample or mini-batch of them. With a form of Einsteinian notation, the current convention for distributive, incremental parameter improvement can be expressed concisely.</p>
  
  <p><span class="math-container">$$ \Delta P = \dfrac {c(\vec{o}, \vec{\ell}) \; \alpha} {\big[ \prod^+ \! P \big] \; \big[ \prod^+ \!a'(\vec{s} \, P + \vec{z}) \big] \; \big[ c'(\vec{o}, \vec{\ell}) \big]} $$</span></p>
  
  <p>The plus sign in <span class="math-container">$\prod^+\!$</span> designates that the factors multiplied must be downstream in the forward signal flow from the parameter matrix being updated.</p>
  
  <p>In sentence form, <span class="math-container">$\Delta P$</span> at any layer shall be the quotient of cost function <span class="math-container">$c$</span> (given label vector <span class="math-container">$\vec{\ell}$</span> and network output signal <span class="math-container">$\vec{o}$</span>), attenuated by learning rate <span class="math-container">$\alpha$</span>, over the product of all the derivatives leading up to the cost evaluation. The multiplication of these derivatives arise through the recursive application of the chain rule.</p>
  
  <p>It is because the chain rule is a core method for feedback signal evaluation that partial derivatives must be used. All variables must be bound except for one dependent and one independent variable for the chain rule to apply.</p>
  
  <p>The derivatives include three types.</p>
  
  <ul>
  <li>All layer input factors, the weights in the parameter matrix used to attenuate the signal during forward propagation, which are equal to the derivatives of those signal paths</li>
  <li>All the derivatives of activation functions <span class="math-container">$a$</span> evaluated at the sum of the matrix vector product of the parameters and signal at that layer plus the bias vector</li>
  <li>The derivative of the cost function <span class="math-container">$c$</span> evaluated at the current output value <span class="math-container">$\vec{o}$</span> with the label <span class="math-container">$\vec{\ell}$</span></li>
  </ul>
  
  <p><strong>Answer to the Question</strong></p>
  
  <p>Note that, as a consequence of the above, the derivatives of both the cost (or loss or error) function and any activation functions are necessary.</p>
  
  <p><strong>Redundant Operation Removal for an Efficient Algorithm Design</strong></p>
  
  <p>Actual back propagation algorithms save computing resources and time using three techniques. </p>
  
  <ul>
  <li>Temporary storage of the value used for evaluation of the derivative (since it was already calculated during forward propagation)</li>
  <li>Temporary storage of products to avoid redundant multiplication operations (a form of reverse mode automatic differentiation)</li>
  <li>Use of reciprocals because division is more costly than multiplication at a hardware level</li>
  </ul>
  
  <p>In addition to these practical principles of algorithm design, other algorithm features arise from extensions of basic back-propagation. Mini-batch SGD (stochastic gradient descent) applies averaging to improve convergence reliability and accuracy in most cases, provided hyper-parameters and initial parameter states are well chosen. Gradual reduction of learning rates, momentum, and various other techniques are often used to further improve outcomes in deeper artificial networks.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-22T13:00:16.977Z
Answers.LastActivityDate: 2018-12-22T14:45:28.253Z
Answers.LastEditDate: 2018-12-22T14:45:28.253Z
Answers.UserDisplayName: Douglas Daseeco
Body: <p>I'm learning AI, but this confuses me. The derivative function used in backpropagation is the <strong>derivative of activation function</strong> or the <strong>derivative of loss function</strong>?</p>
  
  <p>These terms are confusing: derivative of act. function, partial derivative wrt. loss function??</p>
  
  <p>I'm still not getting it correct.</p>
  
Tags: <backpropagation><activation-functions><objective-functions>
Title: What is the derivative function used in backpropagration?
UserDisplayName: Dan D.
ThreadText: # What is the derivative function used in backpropagration?
  
  (Asked by: username_0 on 2018-12-18)
  
  I'm learning AI, but this confuses me. The derivative function used in backpropagation is the **derivative of activation function** or the **derivative of loss function**?
  
  These terms are confusing: derivative of act. function, partial derivative wrt. loss function??
  
  I'm still not getting it correct.
  
  **Tags:** backpropagation, activation-functions, objective-functions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-12-22. Score: 1 | Accepted answer
  
  **Overview**
  
  The derivatives of functions are used to determine what changes to input parameters correspond to what desired change in output for any given point in the forward propagation and cost, loss, or error evaluation &mdash whatever it is conceptually the learning process is attempting to minimize. This is the conceptual and algebraic inverse of maximizing valuation, yield, or accuracy.
  
  Back-propagation estimates the next best step toward the objective quantified in the cost function in a search. The result of the search is a set of parameter matrices, each element of which represents what is sometimes called a connection weight. The improvement of the values of the elements in the pursuit of minimal cost is artificial networking's basic approach to learning.
  
  Each step is an estimation because the cost function is a finite difference, where as the partial derivatives express the slope of a hyper-plane normal to surfaces that represent functions that comprise forward propagation. The goal is to set up circumstances so that successive approximations approach the ideal represented by minimization of the cost function.
  
  **Back-propagation Theory**
  
  Back-propagation is a scheme for distribution of a correction signal arising from cost evaluation after each sample or mini-batch of them. With a form of Einsteinian notation, the current convention for distributive, incremental parameter improvement can be expressed concisely.
  
  $$ \Delta P = \dfrac {c(\vec{o}, \vec{\ell}) \; \alpha} {\big[ \prod^+ \! P \big] \; \big[ \prod^+ \!a'(\vec{s} \, P + \vec{z}) \big] \; \big[ c'(\vec{o}, \vec{\ell}) \big]} $$
  
  The plus sign in $\prod^+\!$ designates that the factors multiplied must be downstream in the forward signal flow from the parameter matrix being updated.
  
  In sentence form, $\Delta P$ at any layer shall be the quotient of cost function $c$ (given label vector $\vec{\ell}$ and network output signal $\vec{o}$), attenuated by learning rate $\alpha$, over the product of all the derivatives leading up to the cost evaluation. The multiplication of these derivatives arise through the recursive application of the chain rule.
  
  It is because the chain rule is a core method for feedback signal evaluation that partial derivatives must be used. All variables must be bound except for one dependent and one independent variable for the chain rule to apply.
  
  The derivatives include three types.
  
  * All layer input factors, the weights in the parameter matrix used to attenuate the signal during forward propagation, which are equal to the derivatives of those signal paths
  * All the derivatives of activation functions $a$ evaluated at the sum of the matrix vector product of the parameters and signal at that layer plus the bias vector
  * The derivative of the cost function $c$ evaluated at the current output value $\vec{o}$ with the label $\vec{\ell}$
  
  **Answer to the Question**
  
  Note that, as a consequence of the above, the derivatives of both the cost (or loss or error) function and any activation functions are necessary.
  
  **Redundant Operation Removal for an Efficient Algorithm Design**
  
  Actual back propagation algorithms save computing resources and time using three techniques.
  
  * Temporary storage of the value used for evaluation of the derivative (since it was already calculated during forward propagation)
  * Temporary storage of products to avoid redundant multiplication operations (a form of reverse mode automatic differentiation)
  * Use of reciprocals because division is more costly than multiplication at a hardware level
  
  In addition to these practical principles of algorithm design, other algorithm features arise from extensions of basic back-propagation. Mini-batch SGD (stochastic gradient descent) applies averaging to improve convergence reliability and accuracy in most cases, provided hyper-parameters and initial parameter states are well chosen. Gradual reduction of learning rates, momentum, and various other techniques are often used to further improve outcomes in deeper artificial networks.
  
  
  ---
  
  