liveBook · Manning

Backpropagation

As explained in Evolutionary Deep Learning: Genetic algorithms and neural networks

Backpropagation is an algorithm that computes gradients of a neural-network objective with respect to parameters by propagating error signals backward through the network.

Backpropagation trains neural networks by pushing calculated loss backward through the network. It is the conventional alternative to evolutionary parameter search. section 6.1 section 6.2

The treatment positions backpropagation as a baseline for comparison:

  • Gradient descent and Adam optimize the network after loss is propagated backward. section 6.2
  • Neuroevolution removes train and back_prop functions, replacing gradient-based updates with direct weight assignment from genetic-algorithm individuals. section 6.2
  • Automatic differentiation and backpropagation suit continuous problems, while evolutionary optimization is presented for discontinuous problems. section 6.6

A simple MLP baseline

A NumPy multilayer perceptron trains on generated classification, moons, circles, blobs, or Gaussian-quantile datasets, then reports predictions and accuracy. The circles dataset provides a more difficult test than the simpler examples. section 6.1

Figure 6.1 Backpropagation vs. neuroevolution optimization

Compare the diagrammed flow of loss through an MLP with neuroevolution’s replacement of network weights. section 6.1

How Evolutionary Deep Learning: Genetic algorithms and neural networks covers it

How deep it goes
Explains backward loss propagation and contrasts optimization methods, but stops short of deriving gradients or implementing backpropagation internals.
Examples
Demonstrates the baseline with a NumPy MLP on classification, moons, circles, blobs, and Gaussian-quantile datasets.
What it assumes
Assumes a solid deep-learning background while reviewing the MLP structure and internal processes from a basic implementation.
What you can do after
Evaluate and understand when gradient-based backpropagation differs from evolutionary weight optimization.
How it connects
Connects backpropagation with neural networks, gradient descent, Adam, automatic differentiation, and neuroevolution.

Also explained in

Compare how 17 books explain backpropagation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Evolutionary Deep Learning: Genetic algorithms and neural networks. The section links point to the parts of the book it draws on.