spiking-implementation-of-the-recurrent-forward-forward-algorithm
An implementation of Recurrent Forward-Forward from Hinton's paper, later ported to the spike domain using SnnTorch.
https://github.com/nicola97/spiking-implementation-of-the-recurrent-forward-forward-algorithm
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.1%) to scientific vocabulary
Keywords
Repository
An implementation of Recurrent Forward-Forward from Hinton's paper, later ported to the spike domain using SnnTorch.
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md

In this repository, you will find:
An improved implementation of the Forward-Forward Algorithm, based on the repository Forward-Forward-Algorithm.
A recurrent architecture based on the Forward-Forward Algorithm.
A recurrent spiking architecture based on the Forward-Forward Algorithm.
This is a work in progress, so some parts of the code are not yet optimized. I'm actively working on it to improve the code.
Acknowledgements
- Geoffrey Hinton for developing the Forward-Forward Algorithm, which you can find here.
- @mpezeshki for his original implementation of the Forward-Forward Algorithm.
Theory Behind the Repository
Forward - Forward Algorithm

FF Algorithm - Loss Function

FF Algorithm - Goodnes Function

FF Algorithm - Recurrent Architecture

FF Algorithm - Metalayer

FF Algorithm - Spike Recurrent Architecture

FF Algorithm - Spike Metalayer

Owner
- Name: Nicola
- Login: Nicola97
- Kind: user
- Repositories: 1
- Profile: https://github.com/Nicola97
# AI Engineering # Flutter
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite our work!"
authors:
- family-names: "Quattrone"
given-names: "Nicola"
title: "Spike Implementation of the Recurrent Forward-Forward Algorithm"
version: "1.0.0"
date-released: "2025-02-10"
url: "https://github.com/Nicola97/Spike-Implementation-of-the-Recurrent-Forward-Forward-Algorithm"
GitHub Events
Total
- Watch event: 2
- Push event: 5
Last Year
- Watch event: 2
- Push event: 5
Dependencies
- ipython *
- matplotlib *
- numpy *
- pandas *
- scikit-learn *
- seaborn *
- snntorch *
- statistics *
- torch *
- torchvision *
- tqdm *