concept backpropagation in category deep learning

appears as: backpropagation, Backpropagation, backpropagation
Deep Learning with Python, Second Edition

This is an excerpt from Manning's book Deep Learning with Python, Second Edition.

The fundamental trick in deep learning is to use this score as a feedback signal to adjust the value of the weights a little, in a direction that will lower the loss score for the current example (see figure 1.9). This adjustment is the job of the optimizer, which implements what’s called the Backpropagation algorithm: the central algorithm in deep learning. The next chapter explains in more detail how backpropagation works.

Backpropagation is a way to use the derivative of simple operations (such as addition, relu, or tensor product) to easily compute the gradient of arbitrarily complex combinations of these atomic operations. Crucially, a neural network consists of many tensor operations chained together, each of which has a simple, known derivative. For instance, the model from our first example can be expressed as a function parameterized by the variables W1, b1, W2, and b2 (belonging top the first and second Dense layers respectively), involving the atomic operations dot, relu, softmax, and +, as well as our loss function loss, which are all easily differentiable:

Deep Learning with JavaScript: Neural networks in TensorFlow.js

This is an excerpt from Manning's book Deep Learning with JavaScript: Neural networks in TensorFlow.js.

The core ideas of neural networks were formed as early as the 1950s. The key techniques for training neural networks, including backpropagation, were invented in the 1980s. However, for a long period of time between the 1980s and the 2010s, neural networks were almost completely shunned by the research community, partly because of the popularity of competing methods such as SVMs and partly because of the lack of an ability to train deep (many-layered) neural networks. But around 2010, a number of people still working on neural networks started to make important breakthroughs: the groups of Geoffrey Hinton at the University of Toronto, Yoshua Bengio at the University of Montreal, and Yann LeCun at New York University, as well as researchers at the Dalle Molle Institute for Artificial Intelligence Research (IDSIA) in Switzerland. These groups achieved important milestones, including the first practical implementations of deep neural networks on graphics processing units (GPUs) and driving the error rate from about 25% down to less than 5% in the ImageNet computer vision challenge.

Loss function for Q-value prediction and backpropagation

With both predicted and target Q-values at hand, we use the familiar meanSquaredError loss function to compute the discrepancy between the two (figure 11.16). At this point, we’ve managed to turn our DQN training process into a regression problem, not unlike previous examples such as Boston-housing and Jena-weather. The error signal from the meanSquareError loss drives the backpropagation; the resulting weight updates are used to update the online DQN.

Figure 11.16. Putting the actionQs and targetQs together in order to calculate the online DQN’s meanSquaredError prediction error and thereby use backpropagation to update its weights. Most parts of this diagram have already been shown in figures 11.12 and 11.13. The newly added parts are the meanSquaredError loss function and the backpropagation step based on it, located in the bottom-right part of the diagram.

The schematic diagram in figure 11.16 includes parts we’ve already shown in figures 11.12 and 11.13. It puts those parts together and adds the new boxes and arrows for the meanSquaredError loss and the backpropagation based on it (see the bottom-right of the diagram). This completes the full picture of the deep Q-learning algorithm we use to train our snake-game agent.

Grokking Deep Learning

This is an excerpt from Manning's book Grokking Deep Learning.

As you can see, backpropagation is about calculating deltas for intermediate layers so you can perform gradient descent. To do so, you take the weighted average delta on layer_2 for layer_1 (weighted by the weights in between them). You then turn off (set to 0) nodes that weren’t participating in the forward prediction, because they couldn’t have contributed to the error.

Deep Learning with R

This is an excerpt from Manning's book Deep Learning with R.

The fundamental trick in deep learning is to use this score as a feedback signal to adjust the value of the weights a little, in a direction that will lower the loss score for the current example (see figure 1.9). This adjustment is the job of the optimizer, which implements what’s called the Backpropagation algorithm: the central algorithm in deep learning. The next chapter explains in more detail how backpropagation works.

9.3.2. Beyond backpropagation and differentiable layers

If machine-learning models become more like programs, then they will mostly no longer be differentiable—these programs will still use continuous geometric layers as subroutines, which will be differentiable, but the model as a whole won’t be. As a result, using backpropagation to adjust weight values in a fixed, hardcoded network can’t be the method of choice for training models in the future—at least, it can’t be the entire story. We need to figure out how to train non-differentiable systems efficiently. Current approaches include genetic algorithms, evolution strategies, certain reinforcement-learning methods, and alternating direction method of multipliers (ADMM). Naturally, gradient descent isn’t going anywhere; gradient information will always be useful for optimizing differentiable parametric functions. But our models will become increasingly more ambitious than mere differentiable parametric functions, and thus their automatic development (the learning in machine learning) will require more than backpropagation.

In addition, backpropagation is end to end, which is a great thing for learning good chained transformations but is computationally inefficient because it doesn’t fully take advantage of the modularity of deep networks. To make something more efficient, there’s one universal recipe: introduce modularity and hierarchy. So we can make backpropagation more efficient by introducing decoupled training modules with a synchronization mechanism between them, organized in a hierarchical fashion. This strategy is somewhat reflected in DeepMind’s recent work on synthetic gradients. I expect more along these lines in the near future. I can imagine a future where models that are globally non-differentiable (but feature differentiable parts) are trained—grown—using an efficient search process that doesn’t use gradients, whereas the differentiable parts are trained even faster by taking advantage of gradients using a more efficient version of backpropagation.

Deep Learning with Python

This is an excerpt from Manning's book Deep Learning with Python.

The fundamental trick in deep learning is to use this score as a feedback signal to adjust the value of the weights a little, in a direction that will lower the loss score for the current example (see figure 1.9). This adjustment is the job of the optimizer, which implements what’s called the Backpropagation algorithm: the central algorithm in deep learning. The next chapter explains in more detail how backpropagation works.

9.3.2. Beyond backpropagation and differentiable layers

If machine-learning models become more like programs, then they will mostly no longer be differentiable—these programs will still use continuous geometric layers as subroutines, which will be differentiable, but the model as a whole won’t be. As a result, using backpropagation to adjust weight values in a fixed, hardcoded network can’t be the method of choice for training models in the future—at least, it can’t be the entire story. We need to figure out how to train non-differentiable systems efficiently. Current approaches include genetic algorithms, evolution strategies, certain reinforcement-learning methods, and alternating direction method of multipliers (ADMM). Naturally, gradient descent isn’t going anywhere; gradient information will always be useful for optimizing differentiable parametric functions. But our models will become increasingly more ambitious than mere differentiable parametric functions, and thus their automatic development (the learning in machine learning) will require more than backpropagation.

In addition, backpropagation is end to end, which is a great thing for learning good chained transformations but is computationally inefficient because it doesn’t fully take advantage of the modularity of deep networks. To make something more efficient, there’s one universal recipe: introduce modularity and hierarchy. So we can make backpropagation more efficient by introducing decoupled training modules with a synchronization mechanism between them, organized in a hierarchical fashion. This strategy is somewhat reflected in DeepMind’s recent work on synthetic gradients. I expect more along these lines in the near future. I can imagine a future where models that are globally non-differentiable (but feature differentiable parts) are trained—grown—using an efficient search process that doesn’t use gradients, whereas the differentiable parts are trained even faster by taking advantage of gradients using a more efficient version of backpropagation.