Stochastic Forward-Forward Learning through Representational Dimensionality Compression

Zhichao Zhu, Yang Qi, Hengyuan Ma, Wenlian Lu, Jianfeng Feng

Abstract

Deep learning typically relies on backpropagation, which is biologically implausible and computationally expensive for neuromorphic hardware. This paper introduces a novel training method that replaces the global backward pass with local "dimensionality compression." By using noise to create input variations and optimizing for Effective Dimensionality (ED), the proposed Stochastic Forward-Forward (SFF) algorithm achieves competitive performance on standard computer vision benchmarks while aligning with biological constraints.

Introduction: Beyond Backpropagation

Backpropagation (BP) remains the gold standard for training deep neural networks, yet it faces significant hurdles in biological plausibility and hardware efficiency. The brain lacks global error signals and perfectly symmetric weight transport, making BP a poor model for biological learning. Furthermore, implementing BP on neuromorphic chips is challenging due to the global communication requirements of the backward pass.

While Geoffrey Hinton’s Forward-Forward (FF) algorithm offered an alternative by maximizing a "goodness" score layer-wise, it relied on generating high-quality "negative samples"—a task-specific and often difficult process. This research addresses these limitations by introducing a stochastic approach that utilizes noise as a resource for learning through dimensionality compression.

Methods: Learning through Dimensionality Compression

The core of the proposed method is a goodness function based on Effective Dimensionality (ED). Rather than simply measuring raw neuronal activity, the algorithm analyzes the statistical structure of a layer's response.

Architecture of the Stochastic Forward-Forward learning framework featuring layer-wise training and dimensionality compression.

The training process involves several key components:

  1. Dimensionality Compression: The objective is to minimize ED for noisy versions of the same input (ensuring consistency) while maximizing ED across different inputs (ensuring diversity).
  2. Noise as a Resource: Instead of complex negative samples, the authors use dropout to create multiple noisy "isologues" of a single input. This forces the network to identify robust, essential features.
  3. Layer-wise Training: Each layer is trained independently. To prevent representational collapse, a Fixed Orthonormal Projection (FOP) projects activity onto a lower-dimensional subspace before loss calculation.
  4. Energy-Based Inference: During testing, the model uses the mean of squared outputs ($E[Y^2]$) for prediction, effectively treating noise-induced variability as informative signal.

The geometric intuition is that minimizing ED within a class and maximizing it across classes naturally leads to orthogonal weights, turning neurons into diverse, non-redundant feature detectors.

Key Results

The researchers evaluated the method on MNIST, CIFAR-10, and CIFAR-100. The proposed approach achieved 99.31% accuracy on MNIST, nearly matching standard BP (99.33%). On more complex tasks like CIFAR-10 and CIFAR-100, it reached 76.96% and 53.29%, respectively.

Classification accuracy across datasets comparing the proposed method (α=0.5) against a baseline (α=0.0).

As shown in the results, the balance between diversity and consistency (controlled by the $\alpha$ parameter) is crucial. The method outperformed the original Forward-Forward algorithm and other biologically inspired variants like Direct Feedback Alignment (DFA). Notably, the "energy-based" inference strategy consistently yielded better results than standard mean-based methods, proving that neural response variance carries task-relevant information.

Discussion and Future Directions

While the results are promising, challenges remain. Performance tends to degrade when stacking more than three convolutional blocks due to representation collapse in deeper architectures. Additionally, while the method is competitive with other non-BP algorithms, a significant accuracy gap still exists compared to standard BP on complex datasets like CIFAR-100.

Future work will focus on scaling the architecture and exploring biological mechanisms, such as local "Winner-Take-All" (WTA) circuits, that might implement this dimensionality compression in the brain. Despite these hurdles, this stochastic forward-forward approach provides a robust framework for unsupervised and biologically plausible learning.

Summary updated

BibTeX
@inproceedings{zhu2025stochastic,
  author = {Zhichao Zhu and YANG QI and Hengyuan Ma and Wenlian Lu and Jianfeng Feng},
  title = {{Stochastic Forward-Forward Learning through Representational Dimensionality Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=RWkLsoLeuj},
}
Figure