Papers › The Forward-Forward Algorithm: Some Preliminary Investigations

The Forward-Forward Algorithm: Some Preliminary Investigations

27 Dec 2022NA 2022 12arXiv:2212.13345archive 2025-07-28

Geoffrey Hinton

The aim of this paper is to introduce a new learning procedure for neural networks and to demonstrate that it works well enough on a few small problems to be worth further investigation. The Forward-Forward algorithm replaces the forward and backward passes of backpropagation by two forward passes, one with positive (i.e. real) data and the other with negative data which could be generated by the network itself. Each layer has its own objective function which is simply to have high goodness for positive data and low goodness for negative data. The sum of the squared activities in a layer can be used as the goodness but there are many other possibilities, including minus the sum of the squared activities. If the positive and negative passes could be separated in time, the negative passes could be done offline, which would make the learning much simpler in the positive pass and allow video to be pipelined through the network without ever storing activities or stopping to propagate derivatives.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2212.13345")

Code

Syntology Ran 9 of 20 code samples harvested from 7 repositories linked to this paper; 11 have no recorded run. Of those that ran: 2 ran · violated contract; 3 ran · our draft was wrong; 4 ran · fixture could not drive it.

By repository: community (archive-listed): 19 samples from 7 repositories, 8 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

19 repositories listed; official and paper-mentioned ones first.

ads-cmu/forwardforward mentioned on GitHubpytorchMIT report
ahmed-alllam/Forward-Forward-Algorithm mentioned on GitHubpytorch report
dah33/explore_forward_forward mentioned on GitHubpytorch report
dslisleedh/FF-jax mentioned on GitHubjax report
keitaroskmt/e2e-info mentioned on GitHubpytorch report
kfkarlsson/ffperceptron mentioned on GitHubpytorchMIT report
loewex/forward-forward mentioned on GitHubpytorchMIT report
tdooms/trifecta mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 9 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
3ran · our draft was wrong
4ran · fixture could not drive it
11unverified

Licence: 2 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 7 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

centroid_loss dah33/explore_forward_forward/ff_centroids.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · a19a77b09f9a85a0 · report
create_mask ghadialhajj/FF_unsupervised/utils.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 3d9cb0a5f1664e74 · report
create_negative_batch ghadialhajj/FF_unsupervised/utils.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 58385c5adf85ca32 · report
create_negative_image ghadialhajj/FF_unsupervised/utils.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 6046c45d26e6e0cb · report
distance_to_centroids dah33/explore_forward_forward/ff_centroids.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 111d222d62981510 · report
forward_layernorm dslisleedh/FF-jax/src/model.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · ace2602caf20f685 · report
norm JacksonWuxs/Forward-Forward-Network/forwardforward.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · a76b972fcaf75086 · report
superimpose_label dah33/explore_forward_forward/ff_hinton.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 4836aa139ad7993d · report
bytes_to_mib keras-team/keras-io/guides/int4_quantization_in_keras.py community (archive-listed) unverified Apache-2.0 (permissive) · 60054a37a716255b · report
collate_fn venkateshtantravahi/ForwardForwardAlgorithm/src/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · d342307ef9dbe378 · report
get_image_ids keras-team/keras-io/guides/keras_hub/object_detection_retinanet.py community (archive-listed) unverified Apache-2.0 (permissive) · 84ed89928efc3042 · report
get_input_layer_size ads-cmu/forwardforward/official_python_implementation/src/utils.py community (archive-listed) unverified MIT (permissive) · 95617e9a91fc12c3 · report
get_loaders ads-cmu/forwardforward/previous_implementation/utilities.py community (archive-listed) unverified MIT (permissive) · 4613748f89bf60c7 · report
get_y_neg ads-cmu/forwardforward/previous_implementation/utilities.py community (archive-listed) unverified MIT (permissive) · f2002874306f8d15 · report
overlay_y_on_x ads-cmu/forwardforward/previous_implementation/utilities.py community (archive-listed) unverified MIT (permissive) · a0e52ce3feaa9f9e · report
parse_annotation_data keras-team/keras-io/guides/keras_hub/object_detection_retinanet.py community (archive-listed) unverified Apache-2.0 (permissive) · 2482e50dc9cbad0a · report
parse_args ads-cmu/forwardforward/official_python_implementation/src/utils.py community (archive-listed) unverified MIT (permissive) · 27e4d18bafbf444d · report
test_step keras-team/keras-io/guides/keras_nnx_guide.py community (archive-listed) unverified Apache-2.0 (permissive) · d99d599f73e1e0e6 · report
transform_value_range keras-team/keras-io/guides/keras_cv/custom_image_augmentations.py community (archive-listed) unverified Apache-2.0 (permissive) · 21f9fa6e83ffc8c3 · report
sigmoid identical code first harvested elsewhere ran · violated contract fingerprinted licence of this copy not recorded · f35babe3912ec8b1 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections