Contrastive Forward-Forward: A Training Algorithm of Vision Transformer
Not on the map. Why?
Abstract (arXiv)
Although backpropagation is widely accepted as a training algorithm for artificial neural networks, researchers are always looking for inspiration from the brain to find ways with potentially better performance. Forward-Forward is a novel training algorithm that is more similar to what occurs in the brain, although there is a significant performance gap compared to backpropagation. In the Forward-Forward algorithm, the loss functions are placed after each layer, and the updating of a layer is done using two local forward passes and one local backward pass. Forward-Forward is in its early stages and has been designed and evaluated on simple multi-layer perceptron networks to solve image classification tasks. In this work, we have extended the use of this algorithm to a more complex and modern network, namely the Vision Transformer. Inspired by insights from contrastive learning, we have attempted to revise this algorithm, leading to the introduction of Contrastive Forward-Forward. Experimental results show that our proposed algorithm performs significantly better than the baseline Forward-Forward leading to an increase of up to 10% in accuracy and accelerating the convergence speed by 5 to 20 times. Furthermore, if we take Cross Entropy as the baseline loss function in backpropagation, it will be demonstrated that the proposed modifications to the baseline Forward-Forward reduce its performance gap compared to backpropagation on Vision Transformer, and even outperforms it in certain conditions, such as inaccurate supervision.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 37 of its 60 references that are in the map. First posted on arXiv 1 Feb 2025.
Builds on
37 of 60 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2017Squeeze-and-Excitation Networkscited by 4,763
25 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2022A ConvNet for the 2020scited by 3,545
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
- 2020Supervised Contrastive Learningcited by 2,803
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2021EfficientNetV2: Smaller Models and Faster Trainingcited by 1,127
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
- 2023ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoderscited by 703
- 2018Exploring the Limits of Weakly Supervised Pretrainingcited by 604
- 2020A Metric Learning Reality Checkcited by 317
- 2014Discriminative Unsupervised Feature Learning with Exemplar Convolutional Neural Networkscited by 299
- 2016Large-Margin Softmax Loss for Convolutional Neural Networkscited by 296
- 2022The Forward-Forward Algorithm: Some Preliminary Investigationscited by 262
- 2022Patches Are All You Need?cited by 201
- 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 190
- 2022Better plain ViT baselines for ImageNet-1kcited by 97
- 2023SymBa: Symmetric Backpropagation-Free Contrastive Learning with Forward-Forward Algorithm for Optimizing Convergencecited by 27
- 2023Convolutional Channel-wise Competitive Learning for the Forward-Forward Algorithmcited by 23
- 2023Layer Collaboration in the Forward-Forward Algorithmcited by 19
- 2023Training Convolutional Neural Networks with the Forward-Forward algorithmcited by 13
- 2022An Analysis of Collocation on GPUs for Deep Learning Trainingcited by 6
- 2020Bidirectionally Self-Normalizing Neural Networkscited by 3
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretationcited by 9
- 2026Discriminative Flow Matching Via Local Generative Predictorscited by 2
- 2026Covariance-Aware Goodness for Scalable Forward-Forward Learningcited by 2
- 2025Learning without Global Backpropagation via Synergistic Information Distillationcited by 1
- 2026When Does Margin Clamping Affect Training Variance? Dataset-Dependent Effects in Contrastive Forward-Forward Learningcited by 0
- 2026Covariance-Aware Goodness for Scalable Forward-Forward Learning5 May 2026
- 2026Discriminative Flow Matching Via Local Generative Predictors14 Mar 2026
- 2026When Does Margin Clamping Affect Training Variance? Dataset-Dependent Effects in Contrastive Forward-Forward Learning1 Mar 2026
- 2025Learning without Global Backpropagation via Synergistic Information Distillation27 Sep 2025
- 2025DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretation17 Jun 2025