Extending the Forward Forward Algorithm

Saumya Gandhi, Ritu Gala, Jonah Kornberg, Advaith Sridhar
7/9/2023
cs.LG

Official code: Ads97/ForwardForward (35 stars, MIT, last commit 2024-01-16).

Abstract

The Forward Forward algorithm, proposed by Geoffrey Hinton in November 2022, is a novel method for training neural networks as an alternative to backpropagation. In this project, we replicate Hinton's experiments on the MNIST dataset, and subsequently extend the scope of the method with two significant contributions. First, we establish a baseline performance for the Forward Forward network on the IMDb movie reviews dataset. As far as we know, our results on this sentiment analysis task marks the first instance of the algorithm's extension beyond computer vision. Second, we introduce a novel pyramidal optimization strategy for the loss threshold - a hyperparameter specific to the Forward Forward method. Our pyramidal approach shows that a good thresholding strategy causes a difference of up to 8% in test error. Lastly, we perform visualizations of the trained parameters and derived several significant insights, such as a notably larger (10-20x) mean and variance in the weights acquired by the Forward Forward network. Repository: https://github.com/Ads-cmu/ForwardForward

View on arXivView PDF

Code Implementations(1)

MIT

Explorations with Geoffrey Hinton's Forward Forward algoithm

3510PythonMar 19, 20232 years agoMIT

Similar Papers

Cite this paper

@article{gandhi2023extending,
  title  = {Extending the Forward Forward Algorithm},
  author = {Saumya Gandhi and Ritu Gala and Jonah Kornberg and Advaith Sridhar},
  year   = {2023},
  eprint = {2307.04205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.04205v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.04205.svg)](https://codeofpaper.com/paper/2307.04205)

Discussion