mlsanityData to 7 Oct 2026

Contrastive Forward-Forward: A Training Algorithm of Vision Transformer

arXiv 2502.00571 ↗First posted 1 Feb 2025cs.CV cs.LGcited by 5

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  6. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  9. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  10. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  11. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  12. 2017Squeeze-and-Excitation Networkscited by 4,763
25 more
  1. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  2. 2022A ConvNet for the 2020scited by 3,545
  3. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
  4. 2020Supervised Contrastive Learningcited by 2,803
  5. 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
  6. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  7. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  8. 2021EfficientNetV2: Smaller Models and Faster Trainingcited by 1,127
  9. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  10. 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
  11. 2023ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoderscited by 703
  12. 2018Exploring the Limits of Weakly Supervised Pretrainingcited by 604
  13. 2020A Metric Learning Reality Checkcited by 317
  14. 2014Discriminative Unsupervised Feature Learning with Exemplar Convolutional Neural Networkscited by 299
  15. 2016Large-Margin Softmax Loss for Convolutional Neural Networkscited by 296
  16. 2022The Forward-Forward Algorithm: Some Preliminary Investigationscited by 262
  17. 2022Patches Are All You Need?cited by 201
  18. 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 190
  19. 2022Better plain ViT baselines for ImageNet-1kcited by 97
  20. 2023SymBa: Symmetric Backpropagation-Free Contrastive Learning with Forward-Forward Algorithm for Optimizing Convergencecited by 27
  21. 2023Convolutional Channel-wise Competitive Learning for the Forward-Forward Algorithmcited by 23
  22. 2023Layer Collaboration in the Forward-Forward Algorithmcited by 19
  23. 2023Training Convolutional Neural Networks with the Forward-Forward algorithmcited by 13
  24. 2022An Analysis of Collocation on GPUs for Deep Learning Trainingcited by 6
  25. 2020Bidirectionally Self-Normalizing Neural Networkscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 3.

5 papers.