arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.00571cs.CVcs.LG
收藏

对比前向-前向:视觉变换器的一种训练算法

Contrastive Forward-Forward: A Training Algorithm of Vision Transformer

Faculty of Electrical and Computer Engineering(电气与计算机工程学院);Babol Noshirvani University of Technology(巴布尔诺希拉维尼技术大学)

Hossein Aghagolzadeh, Mehdi Ezoji

AI总结:

本文提出对比前向-前向算法,通过改进视觉变换器的训练方法,显著提升了准确率并加快了收敛速度。

摘要:

尽管反向传播被广泛接受为人工神经网络的训练算法,研究者始终在寻找灵感于大脑的方法以获得可能更好的性能。前向-前向是一种新颖的训练算法,更接近大脑中发生的过程,尽管其性能差距与反向传播相比仍然显著。在前向-前向算法中,损失函数放置在每个层之后,通过两次局部前向传递和一次局部反向传递来更新层。前向-前向仍处于早期阶段,并且已经设计和评估在简单的多层感知机网络上解决图像分类任务。在本工作中,我们扩展了该算法的应用到更复杂和现代的网络,即视觉变换器。受对比学习的启发,我们尝试修改该算法,从而引入对比前向-前向。实验结果表明,我们提出的算法在基准前向-前向基础上表现显著更好,导致准确率提高高达10%,并使收敛速度加快5到20倍。此外,如果我们以反向传播中的交叉熵作为基准损失函数,将证明对基准前向-前向的修改减少了其在视觉变换器上与反向传播的性能差距,并在某些条件下甚至优于反向传播,例如在监督不准确的情况下。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑