What are forward and backward passes in neural networks?

40,644

The "forward pass" refers to calculation process, values of the output layers from the inputs data. It's traversing through all neurons from first to last layer.

A loss function is calculated from the output values.

And then "backward pass" refers to process of counting changes in weights (de facto learning), using gradient descent algorithm (or similar). Computation is made from last layer, backward to the first layer.

Backward and forward pass makes together one "iteration".


During one iteration, you usually pass a subset of the data set, which is called "mini-batch" or "batch" (however, "batch" can also mean an entire set, hence the prefix "mini")

"Epoch" means passing the entire data set in batches.
One epoch contains (number_of_items / batch_size) iterations

Share:
40,644
Shridhar R Kulkarni
Author by

Shridhar R Kulkarni

I love to work on application/product development, machine learning, distributed systems or any opportunities to do engineering at planet scale.

Updated on March 30, 2021

Comments

  • Shridhar R Kulkarni
    Shridhar R Kulkarni about 3 years

    What is the meaning of forward pass and backward pass in neural networks?

    Everybody is mentioning these expressions when talking about backpropagation and epochs.

    I understood that forward pass and backward pass together form an epoch.