~/projects/ff-algorithm-pytorch-implementation/

Forward-Forward Algorithm in PyTorch

May 3, 2023 #pytorch#deep-learning#research

An unofficial PyTorch implementation of Geoffrey Hinton's Forward-Forward algorithm, a backprop-free way to train neural networks.

IsmailKonak/FF-Algorithm-Pytorch-Implementation/README.md

cat README.md

The Forward-Forward Algorithm proposed by Geoffrey Hinton - Unofficial Pytorch Implementation

What is Forward Forward Algorithm?

The Forward-Forward algorithm is a learning procedure for neural networks that replaces the forward and backward passes of backpropagation by two forward passes, one with positive data and the other with negative data. Each layer has its own objective function which is simply to have high goodness for positive data and low goodness for negative data. The sum of the squared activities in a layer can be used as the goodness but there are many other possibilities.

For more information, see: The Forward-Forward Algorithm: Some Preliminary Investigations


Implementation

I have implemented the Forward-Forward algorithm for PyTorch, while attempting to stay faithful to the details outlined in the research paper. If you encounter any discrepancy or issue, please do not hesitate to contact me.


To Do



Contact

If you have any questions or advices, or you would like to discuss this work further, please do not hesitate to contact me via email or LinkedIn.

← cd ..