The Integrated Forward-Forward Algorithm: Integrating Forward-Forward and Shallow Backpropagation With Local Losses

Desmond Y. M. TangarXiv 2023 · DOI

Abstract

The Integrated Forward-Forward (IntFF) algorithm is proposed as a bridge between biologically plausible learning and high-performance deep learning. By combining Geoffrey Hinton’s Forward-Forward (FF) approach with shallow, local backpropagation, IntFF creates a training method that is more robust to noise than standard backpropagation and more scalable than the original FF algorithm. This paper demonstrates IntFF's efficacy on MNIST, showing superior accuracy and resilience to corruption compared to traditional methods.

Introduction: The Biological Plausibility Problem

Standard backpropagation (BP) is the engine of modern AI, but it faces a "biological plausibility" problem. In the human brain, neurons generally learn from local signals; they don't wait for a global error signal to travel back through hundreds of layers—a process known as "global weight transport."

While Hinton’s original Forward-Forward (FF) algorithm offered a more biological alternative by using two forward passes (positive and negative data) and local "goodness" functions, it struggled with performance, training speed, and scaling to complex architectures like Convolutional Neural Networks (CNNs). This paper addresses these limitations by proposing IntFF, which integrates local losses with shallow backpropagation to create a more flexible and robust training framework.

The IntFF Algorithm

The core of IntFF is the decomposition of a neural network into "hidden units," which are small blocks of 1–3 layers. This architecture allows for localized learning while maintaining the representational power of deeper networks.

Training Methodology

  1. Two Forward Passes: Like the original FF, IntFF uses a "positive" pass (real data with the correct label) and a "negative" pass (real data with a corrupted or incorrect label).
  2. Local Losses: Instead of one global loss at the end of the network, each "hidden unit" has its own local loss function based on the mean square of its activations. The goal is to maximize activations for positive data and minimize them for negative data.
  3. Shallow Backpropagation: Within each local unit, the algorithm uses backpropagation to update weights. However, it uses a stop_gradient mechanism to prevent these gradients from flowing back into previous units. This keeps the learning "local" while allowing the internal layers of the unit to learn complex features.
Figure 1: The Integrated Forward-Forward (IntFF) training architecture. Each hidden unit computes a local loss and performs shallow backpropagation, while stop-gradients ensure locality.

Classification and Inference

During classification, the model evaluates the "goodness" of different label guesses. Each unit contributes a local goodness score, and these are aggregated to determine the final prediction. This decentralized evaluation contributes to the model's overall robustness, as the final decision is based on a consensus across the network rather than a single global output.

Figure 2: Classification in IntFF. Local goodness scores from each unit are summed to evaluate different label guesses, leading to the final predicted label.

Experimental Results

The researchers evaluated IntFF using the MNIST database of handwritten digits and a "Handcrafted Noisy MNIST" benchmark designed to test robustness against Gaussian noise and pixel dropouts.

  • Superior Accuracy: On uncorrupted MNIST, a dense IntFF network achieved 98.00% accuracy, outperforming both the original FF (94.48%) and a standard BP network of the same size (97.27%).
  • Noise Resilience: In the presence of 75% corrupted data, IntFF maintained a high testing accuracy (approx. 94%), whereas standard BP showed a significant performance gap, proving less competitive under noisy conditions.
  • Scalability: Unlike the original FF, which often fails as networks get deeper, IntFF demonstrated the ability to scale to deeper architectures and support mechanisms like convolutions and attention.

Discussion and Key Insights

One of the most striking findings is that IntFF is more resilient to noise than standard BP. The authors hypothesize that because the evaluation is decentralized across multiple local losses, noise in the input doesn't "poison" a single global gradient. Instead, different parts of the network provide a "consensus" that filters out misleading signals. Furthermore, by forcing the network to distinguish between "positive" and "negative" data at every stage, the model learns representations that are inherently more discriminative and less prone to overfitting on noisy artifacts.

Conclusion and Future Work

IntFF represents a practical step toward creating AI that is as robust and efficient as the human cortex. While promising, the authors acknowledge that the performance of the algorithm depends heavily on the quality of the negative data. Future work will focus on finding optimal ways to generate negative samples for more complex datasets (like ImageNet) and exploring parallel computing architectures that could train these decentralized networks much faster than sequential BP.

Summary updated

BibTeX
@misc{tang2023integrated,
  author = {Desmond Y. M. Tang},
  title = {{The Integrated Forward-Forward Algorithm: Integrating Forward-Forward and Shallow Backpropagation With Local Losses}},
  year = {2023},
  eprint = {2305.12960},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12960},
}
Figure