...
Addendum
Forward-Forward Algorithm
https://medium.com/@Mosbeh_Barhoumi/forward-forward-algorithm-ac24d0d9ffd
The forward-forward algorithm uses a custom loss function that compares the mean square value of the activations for positive and negative samples.
The network optimizes this loss function by performing gradient calculations and optimization steps on the trainable weights of the dense layer.
...