arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.03176cs.LGcs.NE
收藏

可扩展的 Forward-Forward 算法

Scalable Forward-Forward Algorithm

Polish Academy of Sciences(波兰科学院);Institute of Computer Science(计算机科学研究所)

Andrii Krutsylo

AI总结:

本文提出可扩展的 Forward-Forward 算法,通过逐层训练和新型卷积层损失计算将其扩展到现代 CNN,并结合块内反向传播,在保持训练速度的同时取得可比甚至更优性能。

摘要:

我们提出一种可扩展的 Forward-Forward(FF)算法,通过分别训练每一层来消除对反向传播的需求。与反向传播不同,FF 避免反向梯度,并且可以更模块化、更节省内存,因此对大型网络具有吸引力。我们通过引入一种为卷积层计算损失的新方法,将 FF 扩展到 MobileNetV3 和 ResNet18 等现代卷积架构。实验表明,我们的方法取得了与标准反向传播相当的性能。此外,当我们将网络划分为多个块(例如 ResNet 中的残差块),并仅在每个块内应用反向传播、而不在块之间应用反向传播时,我们的混合设计往往优于反向传播基线,同时保持相近的训练速度。最后,我们展示了在小型数据集和迁移学习上的实验,这些实验证实了我们方法的适应性。

英文摘要:

We propose a scalable Forward-Forward (FF) algorithm that eliminates the need for backpropagation by training each layer separately. Unlike backpropagation, FF avoids backward gradients and can be more modular and memory efficient, making it appealing for large networks. We extend FF to modern convolutional architectures, such as MobileNetV3 and ResNet18, by introducing a new way to compute losses for convolutional layers. Experiments show that our method achieves performance comparable to standard backpropagation. Furthermore, when we divide the network into blocks, such as the residual blocks in ResNet, and apply backpropagation only within each block, but not across blocks, our hybrid design tends to outperform backpropagation baselines while maintaining a similar training speed. Finally, we present experiments on small datasets and transfer learning that confirm the adaptability of our method.

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

↑