Implement activation events to reduce memory usage in the e-prop mechanism #3721
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the NEST implementation of the e-prop plasticity rule, all variables required to calculate weight updates are archived at every time step. When a spike activates an e-prop synapse, the archived history is retrieved from the postsynaptic neuron, and the used section is marked as no longer needed by that synapse in
update_history. Once no synapse requires a specific part of the postsynaptic history, that part is deleted and the memory is freed. In biologically plausible scenarios, neurons often fire infrequently or stop firing during the learning process, causing their histories to accumulate indefinitely because they are never released. This PR resolves the issue by introducing activation events that, similar to spike events, trigger synapse activation so that obsolete history segments can be deleted, while not being sent to the postsynaptic neuron unlike spike events. Users can configure the interval for sending these activation events since the last spike.