[Paper Review] Extending the Forward Forward Algorithm
This paper extends Geoffrey Hinton's Forward Forward (FF) algorithm beyond computer vision by applying it to the IMDb sentiment analysis dataset, establishing the first baseline for FF in NLP. It introduces a novel pyramidal threshold optimization strategy that reduces test error by up to 8%, and reveals that FF networks learn weights with 10–20x larger magnitude than backpropagation-trained networks, suggesting distinct learning dynamics.
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
Motivation & Objective
- To evaluate the Forward Forward algorithm on non-CV tasks, specifically sentiment analysis using the IMDb dataset, to assess its generalizability beyond computer vision.
- To establish the first baseline performance of the Forward Forward algorithm on the IMDb movie reviews dataset.
- To investigate the impact of the loss threshold hyperparameter on network performance and propose an improved optimization strategy.
- To analyze the learned weight distributions in Forward Forward networks and compare them to backpropagation-trained models.
- To explore the effects of different activation functions on the Forward Forward training process.
Proposed method
- Replicated Hinton’s original MNIST experiments to validate the baseline performance of the Forward Forward algorithm.
- Applied the Forward Forward algorithm to the IMDb dataset using a feedforward neural network with ReLU activations and no weight decay.
- Proposed a pyramidal threshold optimization strategy, where the loss threshold increases monotonically across network layers, to improve generalization.
- Implemented a threshold scheduler that starts with lower thresholds and gradually increases them during training to adaptively adjust learning dynamics.
- Conducted ablation studies on various activation functions (ReLU, tanh, sigmoid) to evaluate their compatibility with the Forward Forward objective.
- Performed detailed weight matrix visualizations and statistical analysis to compare the magnitude and distribution of weights in FF versus backpropagation-trained networks.

Experimental results
Research questions
- RQ1Can the Forward Forward algorithm achieve competitive performance on a non-CV NLP task such as sentiment classification on the IMDb dataset?
- RQ2How does the choice of loss threshold hyperparameter affect the generalization error of Forward Forward networks?
- RQ3Does a structured, layer-wise increasing (pyramidal) threshold strategy outperform fixed or decreasing threshold schedules?
- RQ4How do the learned weight distributions in Forward Forward networks compare to those in backpropagation-trained networks in terms of magnitude and variance?
- RQ5Which activation functions are most effective within the Forward Forward training framework, and why do bounded activations like tanh and sigmoid underperform?
Key findings
- The Forward Forward algorithm achieved competitive performance on the IMDb sentiment analysis dataset, establishing the first known baseline for this task.
- The pyramidal threshold strategy—where thresholds increase from shallow to deep layers—reduced test error by up to 8% compared to baseline configurations.
- The use of a threshold scheduler that starts low and increases over time reduced error from 1.8% to 1.3%, indicating a promising adaptive tuning approach.
- Forward Forward-trained networks exhibited weight magnitudes 10–20 times larger than backpropagation-trained networks, with ranges from -14.36 to 18.19 versus -0.67 to 0.43, even without weight decay.
- Weights in deeper layers showed decreasing magnitude, suggesting a structured learning process where higher-level representations are learned with smaller weight scales.
- A strong spike in weights connected to the label-encoding input component was observed, indicating that this input carries critical information for correct classification.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.