Forward Forward Algorithm in Python
Training Neural Networks Without Backprop via Hinton's Forward Forward Algorithm
Quick Summary
We code the paper that introduced the Forward-Forward deep learning algorithm in Python.
Here are some free gpu credits.
Here’s 10 dollars off your next international transfer.
1.0 Paper Introduction
Forward-Forward (Hinton, 2022)1 is a biologically-plausible backpropagation alternative that achieves ~96% (Löwe, 2023)2 accuracy on MNIST without flowing gradients.
It vastly outperforms Target Propagation (Bengio, 2014)3, another biologically plausible backprop alternative, that reaches ~39% accuracy on MNIST.
This is the third part in our Alternatives To Backpropagation series:
1.1 Hinton’s Algorithm
Hinton’s idea is super simple: we run two forward passes. The first pass permits the network learn correct data points. The second pass is inundated with incorrect data to permit the network conceptualize false data*.
*It’s somewhat analogous to training a GAN that discriminates between good and bad inputs.
Each layer is trained in isolation (using gradient descent), so gradients don’t flow backwards through the network.
(Hinton, 2022) proposes goodness as a metric for measuring an individual layer’s ability to contrast correct and false data.
Keep reading with a 7-day free trial
Subscribe to LeetArxiv to keep reading this post and get 7 days of free access to the full post archives.







