A solution to the learning dilemma for recurrent networks of spiking neurons
Paper · 2020 · Guillaume Bellec, Franz Scherr, Anand Subramoney et al.
Summary
A recurrent network can use a brief sensory cue to guide a decision much later. Learning this behavior poses a separate problem. When feedback finally arrives, which connections should change because of what happened during the cue? Back-propagation through time, or BPTT, answers by retaining the network’s intermediate states and working backward through them. Bellec and colleagues ask how a network of spiking neurons could learn during its ordinary forward activity, with each connection updating from information available to it when the feedback arrives.
Their method, eligibility propagation or e-prop, starts from an exact factorization of the loss gradient. It assigns each synapse a running quantity called an eligibility trace, which records how that connection’s weight can influence the receiving neuron’s current activity through its internal state. A separate learning signal gives the current activity a value for the task. The exact learning signal includes consequences that unfold through other neurons in the future. E-prop substitutes feedback that can be computed online and preserves the locally computable trace. When a neuron’s firing threshold adapts slowly, the trace can still carry information about an early cue by the time a decision error appears.
On TIMIT speech, e-prop approaches BPTT on both framewise phoneme recognition and transcription of the phoneme sequence. In a delayed decision task, networks containing adapting neurons learn to choose the side that received more cues, even though supervised feedback arrives only during the final 150 ms of a 2250 ms example trial. A network without adapting neurons fails to learn that task even with BPTT. In a separate architectural test, routing the recurrent network’s output through intervening spiking layers prevents symmetric e-prop from learning the delayed decision, while BPTT still succeeds. The two comparisons show that a useful trace needs both a way to persist and a way for late feedback to reach the neurons that carry it.
A reward-based version combines local traces and neuron-specific feedback with a shared error in predicted reward. A single agent learns from the current game image in Pong and Fishing Derby, without replaying past episodes. Its Pong scores are competitive with the reported reference, and its Fishing Derby performance reaches the level of the recurrent offline reference. The paper offers a mathematical account of how synaptic traces and feedback could cooperate in the brain, along with a candidate learning rule for spike-based hardware. The experiments establish what simulated networks can learn under those rules.
Deep dive: A solution to the learning dilemma for recurrent networks of spiking neurons
Bellec and colleagues explain how e-prop trains recurrent spiking networks online for speech recognition, delayed decisions, and reinforcement learning. · about 38 minutes to read
The problem and its context
Why recurrence makes a synapse hard to credit
A spiking neuron receives pulses from other neurons. Each pulse contributes to its membrane potential according to the strength of the connection through which it arrives. The potential leaks over time, and the neuron emits a spike when it reaches a threshold. In a recurrent network a spike can influence neurons whose activity eventually comes back to affect the original neuron. The same connections can therefore participate at several stages of a computation, from registering an input to maintaining information and preparing a response.
Training means changing the strengths of these connections so that the network performs a task better. A loss is a numerical measure of how poorly it is doing. The gradient of the loss tells us how changes in the weights influence that measure. In an ordinary feedforward network, a weight can affect the output through a chain of subsequent layers. Back-propagation traces those effects through the layers. In a recurrent network, the chain can run through subsequent moments. An early change can alter a spike, the spike can alter activity elsewhere, and changed activity can come back through the network long after the initial event. The final output can depend on many such chains.
BPTT handles that structure by treating the successive states of the recurrent network as successive layers of a larger computation. Each layer represents the network at a different time. A physical connection becomes a series of links between consecutive copies, all sharing the same weight. During the backward pass, a contribution to the gradient arrives at each occurrence of that weight. Adding these contributions gives the gradient for the one recurrent connection. The paper treats BPTT as the performance reference because it accounts for indirect effects through the rest of the network as well as direct effects.
The cost of this procedure matters in the settings that motivate the paper. BPTT needs the intermediate neural states from the forward computation and uses them in a subsequent pass in the opposite temporal direction. A synapse in a living circuit has access to ongoing activity and to signals arriving through the circuit. The authors regard the machinery needed to preserve and revisit a detailed history as biologically implausible. Spike-based computing hardware poses a related engineering problem. Chips that implement recurrent spiking networks can be designed around activity arriving locally, while retaining the states of all neurons and running a separate reverse pass places extra demands on storage and processing.
Why the state inside a neuron matters
A neuron's membrane potential gives it a short memory of incoming spikes. The paper also considers spike-frequency adaptation. In the version studied here, each spike temporarily raises the neuron's firing threshold. As the threshold gradually returns towards its baseline, the neuron’s recent output continues to influence whether it will fire in response to subsequent input. The adapting threshold is a hidden state, meaning an internal quantity that changes the neuron’s observable spikes.
Earlier work cited by the authors had shown that adding adapting neurons makes recurrent spiking networks more capable of working with information over time. With BPTT, this arrangement could attain performance similar to networks of long short-term memory units, commonly called LSTMs. The paper calls the spiking arrangement an LSNN. An LSNN mixes adapting cells with ordinary leaky integrate-and-fire cells. It offers both a state in which a computation can retain information and, as the authors argue here, a state through which the consequences of changing a weight can remain relevant for learning. Those two functions are related. A variable can influence activity long after a weight first affected it, and that persistent influence can also enter the gradient calculation.
The authors connect this argument to two kinds of evidence from neuroscience. Experiments they cite suggest that a synapse can retain a fading record of recent activity, including the order in which its sending and receiving neurons fired. Molecular changes involving calcium or activated CaMKII provide examples of processes that can carry such a record. An eligibility trace is a record that can place a synapse in a condition to change when a later signal arrives. Neural activity and neuromodulators such as dopamine and acetylcholine also carry information related to outcomes. The paper notes evidence that dopamine signals can differ across the neuronal populations receiving them. This motivates a learning rule in which feedback can be specific to its recipients.
The mathematical problem is to decide which parts of a gradient these ingredients could support. A synapse’s record can reflect what that connection has been doing. Feedback to the receiving neuron can indicate whether its activity is useful for the task. The same neuronal feedback can apply to all of that cell’s incoming connections, while their traces distinguish their individual contributions. The paper seeks a principled way to divide the learning problem between these sources of information.
What earlier learning rules could do
The authors describe several lines of work that approach part of this problem. Some methods train recurrent spiking circuits by controlling an initially chaotic reservoir. FORCE training and related methods had been used, for example, to teach a network to generate temporal patterns. The paper points out that the FORCE rule for an individual connection needs information about other weights in the network. That dependency makes it a different proposal for how plasticity could be organized locally.
Work on feedforward spiking networks had already used products of learning signals and derivatives of neural activity with respect to weights. It had also used pseudo derivatives, smooth or piecewise substitutes employed during gradient calculations to deal with a discrete spike threshold. Extending the product rule to recurrent networks raises a question about the meaning of the derivative. The full influence of a weight on a spike can travel around a loop and change the activity of the neuron sending input to that very connection. A local quantity has to account for a delimited set of paths if it is to stay computable at the synapse.
For artificial recurrent networks with non-spiking units, real-time recurrent learning, or RTRL, offered a different way to calculate gradients as activity unfolds. Its forward calculation tracks sensitivities through the network and becomes expensive as the number of neurons grows. The authors describe stochastic and deterministic approximations that reduce that cost, including methods appearing around the time of the initial e-prop report. They identify differences in how feedback is routed, what additional weights must be learned, and which types of neurons and training objectives those papers address. They also draw on earlier feedforward work on feedback alignment, which motivated the use of fixed random weights to distribute error signals. E-prop brings these questions together for recurrent spiking networks and asks which sensitivity to keep exact and which task feedback to approximate.
The method, step by step
Separate the connection’s contribution from the neuron’s influence
Consider a synapse from a sending neuron to a receiving neuron. When the sender spikes, increasing the weight would change the input to the receiver. The immediate effect can be small, especially when the receiver is far from firing. A state change can nonetheless persist and affect a later spike. E-prop maintains a running sensitivity to represent that possibility. The sensitivity belongs to the connection because different incoming weights can have different effects on the same receiving cell.
The second quantity asks a different question. If the receiving neuron emitted a different spike now, how would that affect the loss? An exact answer includes effects through later spikes, including spikes from other cells. The practical answer uses signals available as the task unfolds. In supervised learning these signals are derived from output errors. The network feeds back a weighted mixture of them to each neuron. The product of that mixture and a connection’s trace gives the connection’s contribution to the update at that moment.
How e-prop turns ongoing activity into weight updates
The steps in order.
The distinction between calculating an update and applying it matters. E-prop can evaluate the contribution at each step and store an accumulated change for a trial or batch. The trace and the accumulating quantity are fixed pieces of state associated with the connection. The update can therefore be computed along the forward pass even in a setting where the actual weight is changed at intervals.
Describe the recurrent computation
The derivation uses a general description of a recurrent neuron. Each cell has a hidden state and an observable output. In the spiking simulations, the observable output is binary, with 1 for a spike and 0 for its absence. The paper advances its simulated networks at steps of 1 ms.
hⱼᵗ = M(hⱼᵗ⁻¹, zᵗ⁻¹, xᵗ, Wⱼ)
Here j indexes the receiving neuron and t indexes time. The vector hⱼᵗ is that neuron’s current hidden state, and hⱼᵗ⁻¹ is the same state at the preceding step. The vector zᵗ⁻¹ contains the network’s observable outputs one step earlier. The vector xᵗ contains the current external inputs. Wⱼ collects the weights entering j, and M is the function updating the hidden state.
zⱼᵗ = f(hⱼᵗ, zᵗ⁻¹, xᵗ, Wⱼ)
The scalar zⱼᵗ is the observable output of neuron j at time t. The function f converts the current hidden state hⱼᵗ and, in the general description, the preceding outputs zᵗ⁻¹, current input xᵗ, and incoming weights Wⱼ into that output. For the two spiking cell types, the current hidden state suffices to determine the threshold crossing, subject to the refractory rule. The more general form leaves room for other recurrent units, including the LSTM treated in the paper’s supplementary derivation.
To make the states concrete, start with a leaky integrate-and-fire neuron, or LIF neuron. Its state is its membrane potential. A fraction of the previous potential persists, arriving spikes add their weighted contributions, and the cell loses a fixed amount of potential following a spike.
vⱼᵗ⁺¹ = αvⱼᵗ + ∑ᵢ≠ⱼ Wʳᵉᶜⱼᵢ zᵢᵗ + ∑ᵢ Wⁱⁿⱼᵢ xᵢᵗ⁺¹ − zⱼᵗ vₜₕ
The current and next potentials of neuron j are vⱼᵗ and vⱼᵗ⁺¹. The factor α determines how much of the current potential carries forward. The first sum runs over recurrent source neurons i other than j. Each Wʳᵉᶜⱼᵢ is multiplied by the source’s spike indicator zᵢᵗ. The second sum runs over input channels i, with Wⁱⁿⱼᵢ the input weight and xᵢᵗ⁺¹ the arriving input for the new step. The final term subtracts the baseline threshold vₜₕ when the receiving cell spikes, as indicated by zⱼᵗ.
α = exp(−δt/τₘ)
Here α is the membrane decay factor, exp is the exponential function, δt is the duration of a simulation step, and τₘ is the membrane time constant. The authors give 20 ms as a typical value of τₘ. A time constant determines how quickly an effect decreases under repeated decay.
zⱼᵗ = H(vⱼᵗ − vₜₕ)
Here H is the Heaviside step function, used to turn the comparison of membrane potential vⱼᵗ and threshold vₜₕ into the spike indicator zⱼᵗ for cell j at time t. Immediately after a spike the simulation forces the output to remain at 0 for a refractory period, whose duration ranges from 2–5 ms across the simulations.
An adaptive leaky integrate-and-fire neuron, or ALIF neuron, has both a membrane potential and an adaptation variable. It uses the same membrane equation and a threshold that depends on the adaptation state.
Aⱼᵗ = vₜₕ + βaⱼᵗ
Here Aⱼᵗ is the effective threshold of cell j at time t, vₜₕ is its baseline, aⱼᵗ is its current adaptation state, and β determines how strongly that state raises the threshold. The paper describes β as usually of the order of 0.07 in its experiments.
zⱼᵗ = H(vⱼᵗ − Aⱼᵗ)
The output zⱼᵗ is the spike indicator of neuron j at time t. The step function H compares the membrane potential vⱼᵗ with the adaptive threshold Aⱼᵗ. The refractory constraint also applies to spiking activity.
aⱼᵗ⁺¹ = ρaⱼᵗ + zⱼᵗ
The next adaptation state aⱼᵗ⁺¹ retains a fraction ρ of the current state aⱼᵗ and increases when the neuron’s current spike indicator zⱼᵗ is active. The index j identifies the neuron, and t is the step before the update.
ρ = exp(−δt/τₐ)
Here ρ is the adaptation decay factor, exp is the exponential function, δt is the simulation step, and τₐ is the adaptation time constant. The authors choose τₐ on a timescale relevant to the task’s working memory. In their experiments, time constants usually range from hundreds of milliseconds to a few seconds, giving a value of ρ between 0.995 and 0.9995. The fraction of adapting neurons in their LSNNs is generally between 25 and 40%.
Replace the spike derivative for learning
The simulation emits binary spikes, so the threshold rule itself offers no usable ordinary derivative for gradient descent. The authors use a pseudo derivative that is largest near threshold and declines as the voltage moves away. This gives the learning calculation a continuous measure of how sensitive firing is assumed to be to a small change in voltage. The forward activity still follows the threshold rule.
ψⱼᵗ = (γₚd/vₜₕ) max(0, 1 − |(vⱼᵗ − Aⱼᵗ)/vₜₕ|)
Here ψⱼᵗ is the pseudo derivative for neuron j at time t. The constant γₚd scales it, vₜₕ is the baseline threshold used for normalization, vⱼᵗ is the current membrane potential, and Aⱼᵗ is the adaptive threshold. The absolute value measures the size of the voltage’s displacement from threshold, and max sets negative values of the interior expression to 0. The paper uses γₚd = 0.3 for ALIF neurons. For a LIF neuron, the threshold in place of Aⱼᵗ is vₜₕ. The pseudo derivative is assigned a value of zero throughout the refractory period.
Rearrange the gradient
The key mathematical statement divides the loss gradient into a contribution from the receiving neuron’s spike and a locally computable sensitivity of that spike to the incoming weight.
dE/dWⱼᵢ = ∑ₜ Lⱼᵗ eⱼᵢᵗ
E is the loss over the computation, Wⱼᵢ is the weight from source i to destination j, and dE/dWⱼᵢ is the total derivative used to choose a weight update. The sum runs through timesteps t. Lⱼᵗ is the learning signal of neuron j at that step, and eⱼᵢᵗ is the eligibility trace of the connection from i to j. The factorization is exact within the derivative calculation when the signal has its ideal value.
Lⱼᵗ = dE/dzⱼᵗ
The ideal Lⱼᵗ is the total derivative of the loss E with respect to the observable output zⱼᵗ of neuron j at step t. The total derivative follows the downstream consequences of that output through the computation, including later activity. A partial derivative with respect to the same output holds the other network outputs fixed. That distinction marks where the practical online method gives up information available to BPTT.
eⱼᵢᵗ = [dzⱼᵗ/dWⱼᵢ]ₗₒcₐₗ = (∂zⱼᵗ/∂hⱼᵗ) · ϵⱼᵢᵗ
Here eⱼᵢᵗ is the local contribution to the derivative of the output zⱼᵗ with respect to the incoming weight Wⱼᵢ, with j the destination, i the source, and t the timestep. The eligibility vector ϵⱼᵢᵗ has a component for each entry in the hidden state hⱼᵗ. The partial derivative ∂zⱼᵗ/∂hⱼᵗ describes the sensitivity of the current output to that state. The dot product turns the vector of state sensitivities into a single contribution measured at the output of the neuron.
ϵⱼᵢᵗ = (∂hⱼᵗ/∂hⱼᵗ⁻¹) · ϵⱼᵢᵗ⁻¹ + ∂hⱼᵗ/∂Wⱼᵢ
The current vector ϵⱼᵢᵗ carries forward the preceding vector ϵⱼᵢᵗ⁻¹. The matrix ∂hⱼᵗ/∂hⱼᵗ⁻¹ describes the direct effect of the preceding hidden state on the current one for neuron j, holding other inputs to the state update fixed. The dot indicates application of that matrix to the previous vector. The direct partial derivative ∂hⱼᵗ/∂Wⱼᵢ introduces the effect of the weight from source i on the current state update. Thus the recursion both propagates sensitivity already present and adds sensitivity created at the current step.
The proof starts from the form used when backpropagating through the unrolled recurrent network. Each use of the weight injects an effect into the receiving neuron’s hidden state. To evaluate that effect by BPTT, one multiplies this local derivative by the full derivative of the loss with respect to that hidden state. Summing over the uses of the shared weight accounts for the history of the computation.
dE/dWⱼᵢ = ∑ₛ (dE/dhⱼˢ) · (∂hⱼˢ/∂Wⱼᵢ)
Here s indexes the time at which the weight Wⱼᵢ acts, with i the connection’s source and j its destination. E is the loss, hⱼˢ is the hidden state at that step, and dE/dhⱼˢ is the total loss derivative there. The partial derivative ∂hⱼˢ/∂Wⱼᵢ captures the weight’s direct contribution to that state update. The dot combines the loss sensitivities of the state components with the weight sensitivities of those same components.
The total hidden-state derivative can itself be separated into the effect through the neuron’s current output and the effect through its next hidden state.
dE/dhⱼˢ = (dE/dzⱼˢ) · (∂zⱼˢ/∂hⱼˢ) + (dE/dhⱼˢ⁺¹) · (∂hⱼˢ⁺¹/∂hⱼˢ)
Here E is the loss, j is the neuron, and s is the step. The first product starts with the total derivative at the observable output zⱼˢ and uses the direct sensitivity of that output to hⱼˢ. The second product starts with the total derivative at the next hidden state hⱼˢ⁺¹ and uses the direct sensitivity of that next state to the current state. The dots denote multiplication or contraction over the relevant state components. At the end of the computation there is no further state contributing to the loss.
Repeated substitution expands the hidden-state derivative into contributions at later observable outputs. The proof then groups terms by the time of that observable output. For a fixed output time, the remaining factors tell how each earlier use of the incoming weight propagated through the neuron’s hidden states up to that point. Adding them gives the eligibility vector. This regrouping accounts for why the vector can run forward, even though the proof starts with derivatives normally evaluated backward. It also shows where paths through the surrounding network go. Once the selected path reaches an observable spike, the total derivative at that spike carries its network-wide consequences.
The paper describes the trace as collecting the gradient information available through this local forward recursion. Exactness here concerns the factorization and the chosen derivative calculation. The spike derivative has already been replaced by a pseudo derivative, and the online algorithm will replace the ideal learning signal as well. These are separate choices. A better online approximation for the learning signal could use the same eligibility vector.
Compute the traces for the two cell types
The trace formulas use a fading sum. Each step adds a new quantity and retains a specified fraction of what was already accumulated.
Fλ(u)ᵗ = λ Fλ(u)ᵗ⁻¹ + uᵗ
Here Fλ is a filtering operator with decay factor λ. The input time series is u, its current value is uᵗ, and Fλ(u)ᵗ is the filtered value at step t. The superscript t⁻¹ as written on the preceding filtered term denotes the previous timestep, t minus one. The initial filtered value is the initial input. Different uses of the filter in the paper choose λ from the membrane dynamics, the readout dynamics, or the reward discount.
For an ordinary LIF neuron, the paper’s main local calculation gives the eligibility vector as a filtered record of spikes from the sender. The main displayed trace uses a simplification for the derivative contribution of the membrane reset, with the reset-sensitive derivation discussed in the supplement.
eⱼᵢᵗ⁺¹ = ψⱼᵗ⁺¹ z̄ᵢᵗ
Here eⱼᵢᵗ⁺¹ is the trace on the connection from i to j at the next step. The term ψⱼᵗ⁺¹ is the receiving neuron’s pseudo derivative then, and z̄ᵢᵗ is the sending neuron’s spike train filtered with the membrane decay α up to step t. The time offset comes from the recurrent connection contributing its current spike to the next membrane update. For external input weights, the derivation uses the input spike at the time it enters the state update.
This trace combines two conditions for a connection to matter. Its sender must have supplied input recently enough for that input to affect the membrane, and the receiver’s voltage must be in a range where the learning calculation assigns sensitivity to firing. That form connects the derivation to earlier rules involving recent presynaptic firing and postsynaptic depolarization.
For an ALIF neuron, one component of the eligibility vector still follows the presynaptic spikes with the membrane decay. A second component records how the weight influences the adaptation state. The recursion for that component contains both an input from the membrane sensitivity and a term carrying its own past.
ϵⱼᵢ,ₐᵗ⁺¹ = ψⱼᵗ z̄ᵢᵗ⁻¹ + (ρ − βψⱼᵗ) ϵⱼᵢ,ₐᵗ
Here ϵⱼᵢ,ₐᵗ and ϵⱼᵢ,ₐᵗ⁺¹ are the current and next adaptation components for the synapse from i to j. The source term multiplies the receiving cell’s pseudo derivative ψⱼᵗ by z̄ᵢᵗ⁻¹, the filtered spike history of i ending at the preceding step. The decay of adaptation is ρ, and β determines the effect of adaptation on threshold. The correction −βψⱼᵗ reflects the fact that raising the threshold locally reduces the tendency to emit the spike that would add to adaptation.
eⱼᵢᵗ = ψⱼᵗ (z̄ᵢᵗ⁻¹ − βϵⱼᵢ,ₐᵗ)
The scalar eligibility trace eⱼᵢᵗ is for the connection from source i to receiver j at time t. The first term inside the parentheses is the membrane component, z̄ᵢᵗ⁻¹, and the second uses the adaptation component ϵⱼᵢ,ₐᵗ and threshold scaling β. The pseudo derivative ψⱼᵗ converts the net effect on distance from threshold into an effect on spike output. A stronger weight can help bring the membrane toward firing and also increase past firing enough to raise the current threshold. The opposing signs express these effects.
The paper also examines a simplified recursion in which the adaptation component decays with ρ and the feedback correction involving the pseudo derivative is omitted.
ϵ̂ⱼᵢ,ₐᵗ⁺¹ = Fρ(ψⱼ z̄ᵢ,previous)ᵗ
Here ϵ̂ⱼᵢ,ₐᵗ⁺¹ is the approximate adaptation component at the next step for the connection from i to j. The filter Fρ retains prior values with adaptation decay ρ. At each step the input to that filter is the product of the current postsynaptic pseudo derivative ψⱼ and the presynaptic spike trace z̄ᵢ,previous from the preceding step. The superscript t selects the filtered result through the current step. This form makes the slow component easy to interpret as an accumulation of local pre- and postsynaptic activity over the adaptation timescale.
Route supervised feedback online
The supervised networks compare their outputs with targets. These outputs come from readout neurons whose values combine the recurrent spikes with a fading copy of the preceding readout.
yₖᵗ = κyₖᵗ⁻¹ + ∑ⱼ Wᵒᵘᵗₖⱼ zⱼᵗ + bᵒᵘᵗₖ
Here yₖᵗ is the value of readout k at time t and yₖᵗ⁻¹ is its preceding value. The factor κ sets the readout leak. The sum combines spikes zⱼᵗ from recurrent neurons j through output weights Wᵒᵘᵗₖⱼ. The term bᵒᵘᵗₖ is the bias of readout k. The readouts have their own time smoothing and are outside the recurrent connections among the spiking neurons.
In regression, the error at a given output is the difference between the readout and its target. For classification, the readouts first become probabilities, with a larger readout assigning a larger probability to its class.
πₖᵗ = exp(yₖᵗ) / ∑ₖ′ exp(yₖ′ᵗ)
Here πₖᵗ is the probability of class k at time t. The corresponding readout is yₖᵗ, exp is the exponential function, and the sum over k′ normalizes the values across all classes. This transformation is the softmax. For categorical actions in reinforcement learning, the same transformation produces action probabilities.
E = ½ ∑ₜ,ₖ (yₖᵗ − yₖ*,ᵗ)²
Here E is the squared-error loss for the regression derivation. The sum runs over times t and readouts k. The difference is between the prediction yₖᵗ and target yₖ*,ᵗ. The square penalizes both signs of the error, and the factor ½ cancels the factor introduced by differentiating the square.
E = −∑ₜ,ₖ πₖ*,ᵗ log πₖᵗ
Here E is the cross-entropy loss for the classification derivation. The indices t and k run over times and classes, πₖ*,ᵗ is the target probability, πₖᵗ is the predicted probability, and log is the logarithm. With a one-hot target, only the intended class has a non-zero target entry. The loss increases when the network assigns that class a low probability.
A unit spike continues to influence a leaky readout after the spike occurs. Even the partial loss derivative for that spike can therefore contain later output errors. The paper resolves this with a change in summation order. Each arriving error can be paired with a trace that has already been filtered forward by the same decay κ. That gives the appropriate weighting to earlier eligible events without waiting for future errors to calculate a signal for each past spike.
ΔWʳᵉᶜⱼᵢ = −η ∑ₜ [∑ₖ Bⱼₖ (yₖᵗ − yₖ*,ᵗ)] ēⱼᵢᵗ
Here ΔWʳᵉᶜⱼᵢ is the accumulated change to the recurrent connection from i to j, and η is the learning rate. The outer sum runs over times t. The inner sum over readouts k builds the online learning signal from each regression error yₖᵗ − yₖ*,ᵗ and feedback weight Bⱼₖ to neuron j. The term ēⱼᵢᵗ is the synaptic eligibility trace filtered with readout decay κ. The negative sign gives a descent update. The rule also applies to input weights with their corresponding traces.
ΔWʳᵉᶜⱼᵢ = −η ∑ₜ [∑ₖ Bⱼₖ (πₖᵗ − πₖ*,ᵗ)] ēⱼᵢᵗ
Here ΔWʳᵉᶜⱼᵢ is the accumulated recurrent weight change from source i to destination j and η is the learning rate. The term ēⱼᵢᵗ is again the readout-filtered eligibility trace. For each step t, the sum over classes k projects probability errors, given by the predicted πₖᵗ and target πₖ*,ᵗ, through feedback weights Bⱼₖ. The result is a scalar teaching signal shared by the synapses entering j. The output weights and readout biases have their own update derivation.
Symmetric e-prop sets each feedback weight to the corresponding forward weight from the recurrent neuron to the output. With the readout’s temporal filtering handled as above, this retains the direct output path from the spike to the loss. In the absence of recurrent connections, the omitted indirect recurrent influences disappear. Random e-prop draws fixed feedback weights independently of the forward readout weights and can send errors even to cells without a direct connection to a readout. Adaptive e-prop also starts from random feedback, then uses a local rule to change feedback weights for connected cells in a way that mirrors changes in the corresponding readout weights. The fixed random and adaptive choices address the authors’ concern about requiring identical weights in opposing directions.
Train an actor and a critic from reward
In reinforcement learning, the network receives observations and sometimes a reward. It chooses an action by sampling from the probabilities represented by its readouts. That stochastic policy is the actor. A separate readout, the critic, predicts the value of the current situation in terms of its expected return. The two are trained together. The actor needs an indication that a sampled choice should become more or less likely, while the critic needs to improve its prediction of what the agent can obtain.
Rᵗ = ∑ₛ≥ₜ γˢ⁻ᵗ rˢ
Here Rᵗ is the discounted return starting at time t, s indexes the current and later steps, rˢ is the reward at step s, and γ is the discount factor. The exponent s minus t specifies how many steps separate the reward from the starting point. The aim is to maximize the expected return from the start, averaging over the experience generated by the interaction between agent and environment.
Eπ = −∑ₙ Rᵗⁿ log π(aᵗⁿ | yᵗⁿ)
Here Eπ is the loss used to express the policy-gradient calculation for a sampled trial. The index n runs over decision times tⁿ. At each such time, Rᵗⁿ is the return, aᵗⁿ is the action sampled, yᵗⁿ is the vector of policy readouts, and π(aᵗⁿ | yᵗⁿ) is the probability assigned to that action. The logarithm lets the gradient adjust the probability of the particular choice the agent made. Positive return favors increasing the likelihood of choices that occurred on that trial.
E = Eπ + cᵥ Eᵥ
Here E is the combined loss, Eπ represents the policy objective, Eᵥ is the critic’s value-prediction loss, and cᵥ sets the relative weight of the critic objective.
Eᵥ = ½ ∑ₜ (Rᵗ − Vᵗ)²
Here Eᵥ is the critic loss, t indexes time, Rᵗ is the return at that time, and Vᵗ is the critic’s estimate. The square penalizes the discrepancy, and the factor ½ simplifies differentiation. The derivation also uses Vᵗ as a baseline for the actor. At a given decision time, the value prediction is independent of which action is sampled at that moment. Subtracting it from the return in the policy-gradient estimator reduces variance while preserving the expected policy contribution. That property concerns the estimator at this stage of the derivation. The online replacement of the full recurrent gradient remains an approximation.
The return required by these expressions depends on rewards in the future. For online learning, the agent instead uses an error based on the reward it has just received and on the change in its value prediction.
δᵗ = rᵗ + γVᵗ⁺¹ − Vᵗ
Here δᵗ is the reward prediction error for the transition from time t to the next step. The reward is rᵗ, Vᵗ is the old value estimate, Vᵗ⁺¹ is the new one, and γ discounts the new estimate. This temporal-difference error becomes available once the new prediction and reward are available.
Lⱼᵗ = −cᵥ Bⱽⱼ + ∑ₖ Bᵖⁱⱼₖ (πₖᵗ − 𝟙[aᵗ = k])
Here Lⱼᵗ is the learning signal to recurrent neuron j at time t. The coefficient cᵥ weights the critic, and Bⱽⱼ transmits the contribution from its value readout. In the sum over actions k, Bᵖⁱⱼₖ is the feedback weight from the corresponding policy readout, πₖᵗ is its probability, and the indicator 𝟙[aᵗ = k] is 1 when the sampled action aᵗ is k and 0 otherwise. At steps without an action, the policy difference in the sum is set to 0. The difference shows how the sampled choice compares with the distribution that produced it.
ΔWⱼᵢᵗ = −η δᵗ Fγ(Lⱼ ēⱼᵢ)ᵗ
Here ΔWⱼᵢᵗ is the contribution to the update of the weight from i to j at time t. The factor η is the learning rate and δᵗ is the shared reward prediction error. The operator Fγ filters the time series formed by multiplying the neuron-specific learning signal Lⱼ by the readout-filtered synaptic trace ēⱼᵢ. The superscript t selects the current filtered result, and the negative sign follows the descent convention for the combined loss. Accumulating the contributions over time gives the trial or batch update.
This last filter adds a distinct memory to the synapse. The original eligibility trace describes the influence of its weight through the dynamics of the receiving neuron. The additional filtered quantity preserves recent products of that trace with a task-specific learning signal so that a later reward prediction error can act on them. Earlier reward rules discussed in the paper commonly multiplied a local trace by a reward prediction error. E-prop first uses feedback specific to the neuron, which directs the learning toward the policy and value readouts before the shared reward prediction error gates the update.
The Atari procedure also changes the length of training episodes over the course of learning. It starts with short episodes and later permits longer ones, using a learning rate inversely related to episode length. The authors describe the early schedule as a way to expose the single agent to varied experiences before refining its policy over longer stretches. A spiking convolutional front end processes the current image, and the recurrent network supplies the policy and value outputs. The authors released an implementation covering the main tasks. TIMIT and the Atari environment come from previously published benchmarks, while the delayed cue trials are generated by custom code.
Experiments and results
Recognizing phonemes from speech
The speech experiments use TIMIT, which contains recordings from 630 speakers. The authors examine two targets built from the same kind of acoustic input. In framewise classification, the network is asked which of 61 phonemes is present in each 10 ms interval. The timing labels specify which answer goes with each frame. In sequence transcription, the target is the ordered phoneme sequence for a whole utterance. The sequence evaluation concerns what was said in order, independently of the exact timing of individual phonemes. This distinction matters because the error measures describe different predictions.
The primary comparison uses LSNNs with 800 neurons for framewise recognition and 2400 for sequence transcription. The sequence system is arranged as a feedforward series of three recurrent networks. Its layers of recurrence make it a test of e-prop in a more elaborate speech architecture than the framewise system. Within each task, the paper compares symmetric e-prop with BPTT for LSNNs and includes a baseline that replaces neuron-specific feedback with a global learning signal.
LSNN framewise phoneme error on TIMIT
Symmetric e-prop approaches the framewise performance of BPTT.
The numbers
| System or setting | error % |
|---|---|
| BPTT | 32.9 |
| Symmetric e-prop (this paper) | 34.6 |
LSNN phoneme sequence error on TIMIT
Symmetric e-prop approaches the sequence performance of BPTT.
The numbers
| System or setting | error % |
|---|---|
| BPTT | 24.7 |
| Symmetric e-prop (this paper) | 26.4 |
For both measures, BPTT yields the lower error and symmetric e-prop comes close. The global-signal baseline performs worse. The authors report similar speech results for random and adaptive e-prop in a supplementary comparison. This matters because symmetric feedback has greater access to the network’s output weights. The speech comparison indicates that similar performance on these tasks is possible with other ways of providing neuron-specific error signals.
The supplementary comparisons also include LSTM networks trained with e-prop and with BPTT on the same tasks. The authors report that e-prop with the spiking LSNN comes fairly close to BPTT with an LSTM on both versions, and that e-prop is an effective online learning method for the LSTM itself in these tests. Those comparisons address different questions. The within-LSNN comparison focuses on replacing the learning algorithm. The LSTM comparison puts the spiking network’s speech results alongside those of a different recurrent architecture.
The authors also report that the framewise network completes its classification task with no neuron firing above 12 Hz when spike counts are taken over 32 spoken sentences. This is a measure of its activity during that speech sample. It shows that the network attained the reported performance with sparse spikes. The learning comparisons concern recognition error, while the activity measurement concerns how often the network’s neurons emit events.
Accumulating cues for a delayed decision
The second supervised experiment adapts the structure of a rodent task. Visual cues appear on either side of a virtual track. At a later junction, the correct choice is the side on which more cues appeared. A learner that follows the last cue or its position in the sequence would fail whenever those details disagree with the majority. The network has to preserve useful information about the earlier inputs and combine it into a decision.
The artificial task presents cue and noise spikes, then delays the choice. The figure shows a delay of 500–1500 ms. For the trial illustrated in the analysis, the input cues arrive during the first 1050 ms of a 2250 ms trial. Supervised learning signals are zero until the last 150 ms, with the loss becoming salient after 2100 ms. The teacher supplies the correct choice at the end. This schedule makes a distinction between when the network must process the input and when the feedback can tell its synapses what to change.
The main learning curves use decision error as the measure. The authors compare BPTT on the LSNN, BPTT on a network with simple LIF cells, and random and adaptive e-prop on LSNNs. They also show random e-prop for a sparse LSNN at 10% connectivity, with distinct excitatory and inhibitory neurons and stochastic rewiring. The caption reports 95% confidence intervals computed from 20 runs. The curves show that e-prop with adapting cells reaches the performance level attained by BPTT on the LSNN, with slower learning. The authors report success for all the e-prop feedback variants with adaptation. BPTT with the nonadapting network fails to solve the task in the comparison.
The recorded traces and activity help connect the decision errors to the proposed mechanism. Sample adaptation components persist from the cue period into the part of the trial where the network receives feedback. When the learning signal becomes active, these components still distinguish what happened at different synapses earlier in the trial. A supplementary experiment teaches the same decision from rewards. The supervised version isolates the timing of instruction more clearly because the correct decision is supplied directly and only at the end.
Learning from the screen in Pong and Fishing Derby
The reinforcement learning experiments use games from the Arcade Learning Environment. At each observation the agent receives the current screen image. The readouts of the recurrent network define action probabilities and a value estimate. The learning system updates from experience with a single agent and without replaying episodes. The paper compares reward-based symmetric e-prop with reference results from asynchronous actor-critic training, called A3C.
In Pong, the goal is to use the paddle to return the ball in a way the opponent fails to return. The game supplies reward for success, while the agent must discover useful movements through interaction. The paper measures episode return as the sum of rewards collected over an episode. The plot reports the e-prop learning curve averaged across five runs, with shading representing the standard deviation, and compares it with the recurrent A3C reference using LSTM units. The authors characterize the online result as competitive. A sample trial relates the screen, the action probabilities, the predicted value, and the activity of ordinary and adapting spiking neurons during play.
Fishing Derby gives the comparison a stronger temporal component. The agent competes to catch fish while preventing a shark from touching a fish it is bringing in. It has to combine movements that gather fish with movements appropriate when the shark threatens the catch. The authors selected the game because the prior work they compare against reported a substantially stronger result with recurrent A3C than with its feedforward approaches. In the paper’s comparison, reward-based e-prop on an LSNN reaches the performance level of the recurrent offline reference. The figure also includes the feedforward A3C result and presents episode return against frames in the environment.
The Fishing Derby trial illustrates changes in action probabilities during fishing and shark avoidance. The learning curve supplies the performance comparison across training. The individual trial supplies a behavioral example of what a trained policy can do. In both games, the demonstrated result concerns learning a useful policy while receiving one current image at a time, under the episode-length and learning-rate schedule used by the authors.
What the ablations show
Feedback differs across neurons for a reason
An eligibility trace can distinguish the contributions of multiple synapses to one cell. The learning signal brings in another distinction, between cells whose activity has different implications for the output. The TIMIT comparison tests this by replacing neuron-specific feedback with global feedback. The resulting increase in error shows that preserving specificity matters in these speech setups. A record of local input and postsynaptic activity can say which synapses affected a cell. The feedback supplies information about whether the resulting activity helps the task, and that answer can differ from one cell to another.
The random and adaptive variants probe how that specificity can be obtained. Similar speech performance across the variants suggests that copying the forward readout weights exactly is unnecessary to obtain useful differentiation in these experiments. Fixed random feedback supplies distinct mixtures of output errors. Adaptive feedback allows those mixtures to change during training. Their comparison with the symmetric variant concerns the performance of feedback schemes within the same broader division between traces and learning signals.
The delayed decision experiment provides a more direct look at the features that emerge with random feedback. For each neuron the authors compare its two broadcast weights with its eventual average firing responses to left and right cues. The difference in feedback weights is associated with the difference in the learned responses. Hence, even when the feedback weights are chosen randomly, their neuron-specific values help organize which cue a cell responds to. The output can then combine cells with different response preferences. This analysis links the feedback to specialization inside the network, alongside the global-signal comparison that measures the resulting task performance.
Adaptation helps feedback reach earlier events
Removing adapting neurons in the delayed decision task changes both the forward computation and the sensitivities available for learning. The simple LIF network fails even with BPTT under the tested conditions. That comparison establishes that the successful LSNN has an important architectural advantage for this task. It also rules out an explanation in which the difference between the two kinds of network comes solely from the e-prop approximation. The advantage is present when the training rule can backpropagate through the entire recorded computation.
The authors’ trace analysis shows how this architecture also helps e-prop. A cue can affect the firing of a neuron early in the trial. That firing alters its adaptive threshold and can change its activity near the eventual decision. Sensitivity can therefore travel within the neuron from the earlier event to a later spike. The eligibility trace follows this route. The other route goes through changes in the later output of other neurons. The exact learning signal includes that route, while the symmetric online learning signal uses the contribution available through the readout.
The distinction is about gradient paths. The simulated network can still communicate by recurrent spikes while it is making a decision. In learning, the online approximation leaves some effects of those spikes out of the gradient. With a slowly varying adaptation state, a weight can nonetheless remain eligible through the receiving neuron’s own state until there is an error to use. The plotted adaptation components illustrate this overlap between traces and the late learning signals. Their persistence explains how the method can assign some credit to the cue period even though the teacher sends feedback only at the decision.
The authors check whether all the terms in the adaptation recursion are necessary for this result. Most experiments use the full trace formula for the chosen spiking dynamics. In the delayed decision experiment they also use the simpler trace that filters the local pairing with the adaptation decay and omits the correction from the changing threshold sensitivity. The two versions of symmetric e-prop yield indistinguishable performance in this test. The controlled change suggests that retaining a slow component is sufficient to preserve the measured performance under these conditions. The comparison is specific to this task and feedback scheme.
Extra layers expose a missing gradient path
The paper changes the delayed decision architecture to test the explanation directly. In the standard setup, neurons in the recurrent network can influence the readouts through a direct connection. In the modified setup, intervening feedforward spiking layers carry the recurrent network’s activity to the output. An early event can still influence the eventual decision through these added neurons. Its effect on the loss now depends on activity beyond the original recurrent neuron.
BPTT can follow that effect through the intervening layers and still learns the task. Symmetric e-prop fails in the modified architecture. The recurrent neuron can preserve its own eligibility, but the direct readout feedback on which the symmetric rule relies is no longer available to it in the same way. The comparison separates persistence of a local sensitivity from availability of a useful learning signal. A long trace can bridge a temporal gap when appropriate feedback reaches the neuron. The extra layers create a gap in the gradient information supplied by the learning signal itself.
Random e-prop can send output errors to neurons that lack direct readout connections, so the authors distinguish that case from the demonstrated failure of the symmetric rule. They cite earlier results on difficult feedforward classification where related random feedback schemes fall short of back-propagation. This gives them reason to expect limitations for random e-prop too. The added-layer comparison establishes a failure for symmetric e-prop in the tested recurrent setup.
Check sensitivity to simulation and connectivity
The authors compare smaller simulation steps with the usual 1 ms step for the delayed decision task. They report no significant impact on e-prop performance in that control. The result addresses the numerical timing convention for a particular experiment. It helps show that successful learning in that setup does not depend sensitively on advancing the network at the paper’s standard step size.
The sparsely connected LSNN provides a different check. It learns with random e-prop even when the experiment uses 10% connectivity and imposes the distinction between excitatory and inhibitory neurons. Since the sparse setup also uses stochastic rewiring, its learning curve demonstrates a workable combination of restrictions and a training mechanism. It leaves the individual contributions of sparsity, the sign restriction, and rewiring unresolved. In particular, it is evidence that the dense LSNN is one implementation of the delayed decision experiment and that the authors also found a successful sparse implementation.
Limitations
Limits the authors identify
The authors explicitly distinguish the exact gradient identity from the learning rule used in the experiments. The exact signal at a spike depends on its future consequences, while the practical signal is an online approximation. A learning algorithm that uses current output errors can miss consequences routed through later activity elsewhere in the circuit. The failure with intervening spiking layers gives a specific case where that omission matters. The authors accordingly tie the quality of symmetric e-prop to whether locally carried sensitivities can still influence neuronal outputs when the task error becomes available.
For fixed random feedback, the paper is more cautious about locating a comparable failure within its recurrent experiments. The authors expect shortcomings on difficult tasks on the basis of earlier feedback-alignment studies, particularly for deep feedforward networks. They describe the search for corresponding failures in recurrent spiking networks as unresolved. The positive evidence is strongest for the architectures and tasks that they actually test.
The adaptation rule also introduces a timescale. The authors choose the decay of adaptation in relation to the working memory relevant to the task. Their explanation predicts that benefits will depend on whether the trace survives long enough to overlap with useful feedback. A trace can fade substantially before a late error, while a choice of feedback route can prevent that error from reaching the right cell even when a trace persists. Successful training in the cue experiment therefore establishes a solution under a particular relationship between the task timing, the neuronal state, and the route for feedback.
The biology claims are stated as possibilities and predictions. One prediction is that the persistence of a synapse’s eligibility trace should correlate with the persistence of history dependence in the receiving neuron’s firing. Another is that differences in such timescales across areas could affect the delays over which those areas can learn. The proposed role of distinct dopamine signals is similarly a hypothesis about how feedback could be targeted. Neuroscience findings motivate the ingredients, while the gradient derivation assigns those ingredients a functional role in the proposed learning mechanism.
The authors also conjecture that variants of the reward rule could cover many tasks within the reach of online actor-critic learning. The empirical reinforcement learning results concern the games and delayed-choice setup they study. Their schedule of increasing episode lengths is part of the solution for stable training with a single agent. The wider claim about what else the procedure could learn remains a conjecture.
Limits of the experimental evidence
The experiments show that the learning rule can operate with simulated spikes, adaptation, and approximated feedback. Establishing that a biological synapse computes the specified quantities would require a different kind of evidence. The traces in the simulations are derived from the assumed state dynamics and pseudo derivative. The simulations supply neither a measurement of those exact gradients in a brain nor a test of which biological feedback pathways implement the required projection of output information. The symmetric case in particular uses the readout weights for feedback, which is why the independent feedback variants matter to the biological argument.
The spike-rate observation in framewise speech establishes sparse activity over the measured sentences. Energy consumption, memory traffic, chip area, and training latency would require measurements from a hardware implementation. The paper’s asymptotic comparison concerns the learning calculation. For a recurrent network the authors give e-prop a time-step cost of O(S), with S the number of synaptic connections, and O(n²) in the dense setting, with n the number of neurons. They compare this with O(n⁴) for RTRL. The e-prop bound reflects the cost of visiting the synapses required for the update and is of the same order as the cost of simulating the recurrent network. An asymptotic bound leaves the constant costs of the trace state, feedback routing, and weight updates open.
The speech experiments compare two definitions of the target. The sequence result and the framewise result belong to their respective tasks, with different architectures and error measures. Their values are evidence about the comparison between learning methods within each speech setup. The delayed decision experiment, in turn, supplies a controlled temporal challenge in which there is a known useful relation between the early cues and the final choice. It isolates the interaction of delay and feedback routing more clearly than the game experiments, where the agent also has to learn representations and discover rewarding actions through exploration.
The Atari curves give a comparison of achieved return under different training arrangements. The e-prop agent uses recurrence, its own episode schedule, and the current screen input. The reference is drawn from prior actor-critic work. The comparison supports the claim that the e-prop agent can attain competitive returns under its online conditions. It does not isolate a performance difference caused by the recurrent gradient rule alone. The article’s strongest controlled evidence for that distinction comes from the supervised comparisons within a common recurrent architecture.
What came after
The later work linked to the paper is Hierarchical Reasoning Model, published in 2025. The citation establishes a connection, but its context is unspecified. Whether the later work uses e-prop’s eligibility traces, draws on its argument about slow internal state, or cites it for another reason remains open.
Bellec and colleagues also describe a related extension in their own discussion. In the work they cite on alternatives to back-propagation through time, e-prop traces were combined with synthetic gradients for LSTM training. A synthetic gradient supplies an estimate of learning information that would otherwise arrive through a later gradient calculation. The combination keeps the forward calculation of local eligibility and changes how the other factor in the weight update is supplied. The authors report improved performance on the copy-repeat task and on Penn Treebank word prediction. This connection follows directly from the paper’s factorization. The trace can be reused when a different estimator is chosen for the learning signal, as long as the signal still gives the trace a task-dependent role in the weight update.
Cite
Cite as Guillaume Bellec, Franz Scherr, Anand Subramoney, Elias Hajek, Darjan Salaj, Robert A. Legenstein and Wolfgang Maass. 2020. A solution to the learning dilemma for recurrent networks of spiking neurons. Nature Communications.
@inproceedings{bellec2020solution,
title = {{A solution to the learning dilemma for recurrent networks of spiking neurons}},
author = {Guillaume Bellec, Franz Scherr, Anand Subramoney, Elias Hajek, Darjan Salaj, Robert A. Legenstein and Wolfgang Maass},
booktitle = {Nature Communications},
year = {2020},
doi = {10.1038/s41467-020-17236-y},
url = {https://doi.org/10.1038/s41467-020-17236-y}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bellec-2020-solution-learning-dilemma-recurrent-networks/