Replacing Backpropagation with the Forward-Forward (FF) Algorithm in Transformer Models
This study proposes a novel integration of the Forward-Forward (FF) algorithm into Transformer architectures as an efficient and gradient-free alternative to Backpropagation (BP). Motivated by the computational limitations of BP-such as high memory usage and gradient instability-we aim to examine whether FF can maintain comparable model performance while improving training efficiency. We present both theoretical justifications and empirical evaluations on the IMDB sentiment analysis dataset. Our experiments show that FF reduces training time by approximately 20% and memory usage by 30%, with only a marginal decrease in BLEU score (27.8 vs. 28.3) and slight increase in Perplexity (13.2 vs. 12.5). Furthermore, we extend our evaluation across varying model depths and hardware platforms (desktop GPU, cloud GPU, SoC-based laptop), and perform statistical testing and ablation studies to investigate FF’s behavior within Transformer components. These results highlight the viability of FF for scalable, rethereforeurce-efficient Transformer training and provide a foundation for future research in hybrid and distributed deep learning frameworks.
Authors
- Hyun Jung Kim (ORCID: https://orcid.org/0000-0003-0448-7699)
- S. Yoo
Institutions
- Konkuk University (KR)
- Kyungmin University (KR)
- Convergence (US)
- Software (Spain) (ES)
Publication Details
- Journal
- Tehnički glasnik
- Published
- 2025-06-16
- DOI
- https://doi.org/10.31803/tg-20250225100638
- Primary Topic
- Magnetic Properties and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00