concept forward propagation in category deep learning

appears as: forward propagation, forward propagation
Grokking Deep Learning

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

Everything we’ve done in this chapter is a form of what’s called forward propagation, wherein a neural network takes input data and makes a prediction. It’s called this because you’re propagating activations forward through the network. In these examples, activations are all the numbers that are not weights and are unique for every prediction.

This chapter is only somewhat theoretical. It’s mostly about commonly used engineering practices for learning deep neural networks. In particular, this notion of a graph that gets built during forward propagation is called a dynamic computation graph because it’s built on the fly during forward prop. This is the type of autograd present in newer deep learning frameworks such as DyNet and PyTorch. Older frameworks such as Theano and TensorFlow have what’s called a static computation graph, which is specified before forward propagation even begins.

In general, dynamic computation graphs are easier to write/experiment with, and static computation graphs have faster runtimes because of some fancy logic under the hood. But note that dynamic and static frameworks have lately been moving toward the middle, allowing dynamic graphs to compile to static ones (for faster runtimes) or allowing static graphs to be built dynamically (for easier experimentation). In the long run, you’re likely to end up with both. The primary difference is whether forward propagation is happening during graph construction or after the graph is already defined. In this book, we’ll stick with dynamic.