Elamur Research

Error-backpropagation in temporally encoded networks of spiking neurons

Paper · 2002 · Sander M. Bohté, Joost N. Kok and Han La Poutré

Summary

A neuron can represent a signal by how frequently it fires or by when it fires. If a network uses the second scheme, an output spike that arrives too early or too late is a measurable mistake. The hard part is working out which connections caused it. Each neuron fires when its internal voltage reaches a threshold, so a small change to a connection can move a spike, and a larger change can make the spike disappear. The authors derive SpikeProp, a supervised learning rule that uses the slope of the voltage near an observed crossing to estimate how a small change to a connection will shift the firing time.

The network runs forward from input spikes through hidden neurons to output neurons. Each connection carries several delayed versions of the same incoming event, with a separate weight for each delay. A neuron sums the resulting voltage contributions and fires at most once. During training, the output firing times are compared with their targets. The learning rule then works backward through the network, using the times and slopes at which downstream neurons fired to determine whether a hidden spike should arrive earlier or later. For real-valued data, groups of input neurons respond to different parts of each feature’s range. The best-matching neurons fire early, and weakly stimulated neurons can stay silent.

SpikeProp learned a version of exclusive-or, or XOR, in which both inputs and outputs were expressed as firing times. It also learned an interpolated XOR surface, with an average timing error of 0.2ms on the presented examples at the reported stopping criterion. On the Iris cross-validation test sets, SpikeProp achieved 96.1% classification accuracy, compared with 95.7% for the authors’ conventional back-propagation comparison. The corresponding Wisconsin Breast Cancer results were 97.0% and 96.7%. On the fixed Statlog Landsat test set, SpikeProp reached 85.3%. The conventional comparison scored 82.0% in the shorter reported run and 88.0% after extended training.

The XOR experiments also reveal when the learning rule is dependable. Smaller updates made convergence more reliable, and learning worked best when the response to an incoming spike rose over a timescale somewhat longer than the interval used to encode the inputs. For interpolated XOR, the authors used 9 spiking neurons and contrasted that count with the pool of some 200 spiking neurons reported for an earlier short-window rate code. That comparison concerns how the signal is represented. The authors’ own simulator was computationally intensive, and each delayed terminal added a weight to train. The experiments establish that individual spike times can support supervised nonlinear classification and expose the conditions that make the timing gradients useful.

Deep dive: Error-backpropagation in temporally encoded networks of spiking neurons

SpikeProp trains spiking neural networks by correcting when neurons fire, and the paper tests the method on XOR and classification benchmarks. · about 35 minutes to read

The problem and its context

What a firing time can represent

In the conventional neural networks the paper discusses, a neuron produces a real-valued output through a smooth, sigmoidal activation function. A stronger match to the inputs produces a higher activation. The biological interpretation is that this value represents a firing rate. A succession of spikes can support a rate estimate over time, and a population of neurons can support one over a short observation window by pooling its activity. A conventional artificial network works directly with the resulting value. Its training procedure can use the derivative of the smooth activation function to trace an output mistake back to the connections that influenced it.

A temporal code gives the time of an individual event a role in the computation. Consider a downstream neuron that receives input from several sources. If those input spikes arrive close together, their effects on its voltage can overlap. If they arrive farther apart, part of an early contribution may have subsided by the time a later one begins. The input sources can fire the same number of times in both cases. The receiving neuron can still respond differently because the temporal arrangement changes the voltage trajectory. A connection that imposes a delay can bring contributions together or separate them, giving the network a way to distinguish patterns through their timing.

The possibility mattered to the authors for computational and biological reasons. They describe theoretical work by Maass showing that networks of spiking neurons can simulate feedforward networks with sigmoidal units and approximate continuous functions. They also cite a theoretical comparison in which spiking neurons using individual event times have greater computational power than sigmoidal units. These results concern what suitable networks can represent. For supervised machine learning, a further question is how to find suitable connection weights from examples. A powerful representation offers little guidance about which connection to change when a particular example elicits the wrong response.

The paper also describes a possible implementation benefit. A spike can be treated as an event with a source and a time. When few neurons fire, a simulator organized around events can take advantage of that sparsity. The authors point to earlier simulation work and to proposals for hardware that computes with individual firing times. These motivations depend on both the encoding and the implementation. A representation with few active neurons can create opportunities for efficient computation even when a particular training program uses a costly simulation procedure.

What earlier systems could already do

The authors describe several ways in which prior work had made spike timing useful. One network used it to organize its responses in a way analogous to a Kohonen self-organizing map. Another grouped inputs through unsupervised clustering. The delayed connections in SpikeProp’s architecture come from the work of Natschläger and Ruf on spatial and temporal patterns. The paper also discusses a character recognition system that converted intensity into relative firing times. That system ultimately learned to discriminate histograms of the timing responses using conventional sigmoidal back-propagation. A network could therefore generate meaningful temporal responses while leaving the supervised decision to a separate procedure.

SpikeProp addresses the step between producing a timed response and training that response directly. The desired output is a firing time for each output neuron. The training algorithm has to use the discrepancy between desired and actual times to assign responsibility to connections throughout the network. A useful rule has to account for a hidden neuron’s timing even though the example supplies no target for that neuron. It must infer whether an earlier or later hidden spike would help by considering the downstream neurons that receive it.

Thresholding makes this difficult. At a given instant, the decision to emit a spike is discrete. A neuron below threshold remains silent, while one that reaches threshold emits an event. The voltage trajectory leading up to the event still changes continuously over suitable intervals. When the trajectory crosses the threshold on a rising slope, a small upward displacement tends to bring the crossing forward. A small downward displacement tends to postpone it. The paper builds its learning rule around that local relationship. It differentiates the time of a crossing the network has produced and uses the result to estimate how the crossing would move after a small weight change.

Why the timescale of a response matters

The authors also address a concern about the use of fine timing with biologically plausible voltage responses. An individual spike can change the receiving neuron’s voltage over a longer period than the timing differences that carry information. That prolonged effect can make temporal integration possible. A neuron whose first input is still affecting its voltage when another input arrives can respond to both together. A very brief response may lose much of the earlier contribution before the later one can interact with it. The authors connect this reasoning to Maass’s analysis of the relationship between the duration of a rising response and the timescale of the input pattern.

The paper’s biological discussion draws motivation from reports of precise firing in systems including the barn owl, the bat and electric fish, as well as from evidence concerning processing speed. The authors use these observations to explain why it is worth studying computations that can proceed with very few spikes per neuron. Their experimental question is narrower. They ask whether an artificial feedforward system whose neurons use threshold crossings and delayed inputs can be trained to perform useful computations within a short temporal code. The link to biology comes from the form of the neuron’s response and the timescale of integration.

The method, step by step

From an incoming spike to an output event

The easiest way to follow the method is to start with a single connection. An arriving spike initiates a postsynaptic potential, or PSP, which is a change in voltage at the receiving neuron. Its magnitude rises after the event and then decays. A weight determines the size of the contribution. The receiving neuron adds this contribution to the effects of its other incoming spikes. The first time the combined voltage reaches a shared threshold becomes the neuron’s firing time. Later layers receive the first threshold crossing as an event because each neuron can fire only once within the simulation interval.

The architecture uses several synaptic terminals for each connection between neurons. A terminal is a separate route by which the same presynaptic event can affect the receiver. Each route has its own delay and weight. An early terminal can begin contributing while a later terminal is still waiting for its delay to expire. Adjusting a weight can therefore strengthen an early or a late part of the voltage trajectory without changing any of the delay values. The different delays give the learning algorithm several ways to influence when a neuron reaches threshold.

For a training example, input neurons are assigned spike times by the encoding. Hidden and output neurons get their times from the simulation. Once the forward calculation has produced the output events, their times are compared with the desired times. SpikeProp first determines how sensitive the loss is to a change in the voltage at each output crossing. It then uses those sensitivities to determine what a shift in each hidden firing time would do. Connection weights are updated after the backward calculation.

A SpikeProp training example

The steps in order.

A SpikeProp training exampleStep 1: Encode input values as spike times1. Encode input values as spike timesStep 2: Sum weighted responses at their assigned delays2. Sum weighted responses at their assigned delaysStep 3: Record the first threshold crossings3. Record the first threshold crossingsStep 4: Compare output spike times with their targets4. Compare output spike times with their targetsStep 5: Propagate timing sensitivities through hidden layers5. Propagate timing sensitivities through hidden layersStep 6: Adjust each terminal weight using its gradient6. Adjust each terminal weight using its gradient

The voltage trajectory and its crossing

The paper starts with the voltage contributed by incoming spikes when there is one weight for each connection.

xⱼ(t) = ∑ᵢ∈Γⱼ wᵢⱼ ε(t − tᵢ)

Here xⱼ(t) is the membrane potential, or internal voltage, of receiver j at time t. The sum ∑ runs over each source neuron i in Γⱼ, the set of immediate predecessors of j. The symbol wᵢⱼ is the connection weight from i to j, tᵢ is the source’s firing time, and ε is the unweighted voltage response as a function of elapsed time. A source that has yet to fire makes no contribution.

With multiple terminals, the response starts after the corresponding delay.

yᵢ⁽ᵏ⁾(t) = ε(t − tᵢ − dₖ)

The quantity yᵢ⁽ᵏ⁾(t) is the unweighted response from source i through terminal k, evaluated at time t. The response function is ε, the source fires at tᵢ, and dₖ is the delay for terminal k. The argument of ε measures how much time has passed since that delayed event arrived. Before arrival, the response is zero.

ε(t) = (t/τ) exp(1 − t/τ) for t > 0, and 0 otherwise

In this formula, ε(t) is the standard PSP at elapsed time t, τ is the membrane-potential time constant, and exp denotes the exponential function. The response starts at 0, rises to its maximum when the elapsed time reaches τ, and then decays. The paper calls this shape an alpha function. Changing τ changes how long a delayed spike continues to influence a receiver and how long its contribution keeps increasing. With the shared response shape fixed, the terminal weight scales the contribution, while the delay moves it along the time axis.

xⱼ(t) = ∑ᵢ∈Γⱼ ∑ₖ₌₁ᵐ wᵢⱼ⁽ᵏ⁾ yᵢ⁽ᵏ⁾(t)

Here xⱼ(t) is again the voltage of receiver j at time t. The outer sum runs over sources i in its predecessor set Γⱼ, and the inner sum adds the contributions of terminals k from 1 through m, the number of terminals per connection. The weight of terminal k from i to j is wᵢⱼ⁽ᵏ⁾, and yᵢ⁽ᵏ⁾(t) is the response at that terminal. When the architecture assigns an inhibitory sign to a source, its response enters the sum with that sign while its adjustable weight remains positive.

tⱼ = first t at which xⱼ(t) ≥ ϑ

The firing time tⱼ of neuron j is the first time t at which its voltage xⱼ(t) reaches or exceeds the threshold ϑ. The authors hold the threshold constant across the network. Later voltage behavior does not generate another spike from that neuron in the same simulation interval. If a voltage trajectory never reaches the threshold, the first-crossing rule supplies no firing time.

The distinction between a terminal’s arrival time and a neuron’s firing time matters for learning. A presynaptic spike can arrive through a given terminal before a receiver fires, at which point the terminal’s weight can affect the crossing. It can also arrive after the receiver has fired. For the local gradient, a terminal whose response is still zero at the crossing has no immediate effect on that event. Delays therefore determine which weights are in a position to influence an observed firing time, as well as shaping the voltage that produces it.

From a voltage change to a firing-time change

The local approximation starts with a crossing that has already happened. Think of the voltage trajectory at that point as a rising line. Increasing the voltage at the original crossing time means that the perturbed trajectory would have reached threshold earlier. A steeper line needs less horizontal movement to compensate for the same vertical displacement. A shallower line needs more. The effective conversion from a voltage perturbation to a time perturbation is therefore the negative reciprocal of the slope.

αⱼ = (∂xⱼ(t)/∂t) evaluated at t = tⱼᵃ

The symbol αⱼ denotes the voltage slope of neuron j at its actual firing time tⱼᵃ. The expression ∂xⱼ(t)/∂t is the derivative of the voltage xⱼ with respect to the evaluation time t. When a crossing has a positive slope, the positive direction for voltage corresponds to the negative direction for a firing-time shift.

Δtⱼ ≈ −Δxⱼ/αⱼ

Here Δtⱼ is the small shift in neuron j’s firing time, Δxⱼ is the small change in its voltage measured at the original crossing time, and αⱼ is its slope there. The approximation sign indicates that the conversion holds locally. It depends on the trajectory retaining a nearby crossing on the same segment. A large weight update can move the trajectory into a region where the old slope gives a poor estimate. A nearly flat crossing also makes the conversion sensitive, because the slope is in the denominator.

The slope used in this calculation comes from the combined response of the incoming terminals.

αⱼ = ∑ₙ∈Γⱼ ∑ₗ wₙⱼ⁽ˡ⁾ (∂yₙ⁽ˡ⁾(t)/∂t) evaluated at t = tⱼᵃ

The quantity αⱼ is the total voltage slope at the actual firing time tⱼᵃ of receiver j. The source index n ranges over Γⱼ, the predecessors of that receiver, and l ranges over their terminals. The terms wₙⱼ⁽ˡ⁾ and yₙ⁽ˡ⁾(t) are the weight and response of the indicated terminal. The derivative with respect to t is the contribution’s unweighted slope at the evaluation time, with the source time held fixed. A terminal whose response is declining can contribute a negative slope even when its voltage contribution is positive. The backward calculation uses the slope of the sum.

This is the point where the paper makes its approximation to the threshold operation. The forward calculation still uses a first crossing. Back-propagation uses the locally linear relationship around that crossing to connect the output error to the adjustable weights. Put differently, the backward pass asks how much sooner or later the same event would occur after a small change. It can answer that question without assigning a smooth intermediate value to the decision to spike.

Turning output timing errors into weight updates

The outputs have desired firing times for each example, and the loss adds their squared timing errors.

E = ½ ∑ⱼ∈J (tⱼᵃ − tⱼᵈ)²

The symbol E is the loss for the example, J is the set of output neurons, and j identifies an output in that set. The observed time is tⱼᵃ, and its target is tⱼᵈ. The square makes errors in either direction contribute positively, and the factor ½ cancels the factor from differentiating the square. The result is a signed timing error for each output.

∂E/∂tⱼᵃ = tⱼᵃ − tⱼᵈ

The left side is the derivative of the loss E with respect to the actual firing time tⱼᵃ of output j. On the right, tⱼᵈ is its desired time. The derivative is positive for a late output and negative for an early one. It measures the effect of changing the firing time directly. To adjust a synaptic weight, SpikeProp still needs to determine how that weight affects the crossing.

∂xⱼ(t)/∂wᵢⱼ⁽ᵏ⁾ evaluated at t = tⱼᵃ = yᵢ⁽ᵏ⁾(tⱼᵃ)

This derivative holds the evaluation time t at the actual firing time tⱼᵃ of neuron j. The voltage is xⱼ(t), and wᵢⱼ⁽ᵏ⁾ is the weight for terminal k from source i. The value yᵢ⁽ᵏ⁾(tⱼᵃ) is the response through that terminal at the crossing. The relationship follows from the voltage sum because a weight multiplies its terminal’s response directly. The firing-time shift is accounted for separately, through the local slope calculation.

δⱼ = (tⱼᵈ − tⱼᵃ)/αⱼ

The output’s delta δⱼ is the sensitivity of the loss to a local voltage change at the crossing of neuron j. The desired time is tⱼᵈ, the actual time is tⱼᵃ, and αⱼ is the local voltage slope. The desired time comes first in the numerator because adding voltage near a rising crossing moves the actual time earlier. The delta combines the output’s signed timing error with the responsiveness of its crossing.

∂E/∂wᵢⱼ⁽ᵏ⁾ = yᵢ⁽ᵏ⁾(tⱼᵃ) δⱼ

Here ∂E/∂wᵢⱼ⁽ᵏ⁾ is the gradient of the loss E with respect to the weight for terminal k from source i into receiver j. The factor yᵢ⁽ᵏ⁾(tⱼᵃ) is the terminal response at the actual crossing, and δⱼ is the receiver’s sensitivity to a voltage change there. This form separates what a particular terminal can contribute from what the receiving neuron needs.

Δwᵢⱼ⁽ᵏ⁾ = −η yᵢ⁽ᵏ⁾(tⱼᵃ) δⱼ

The update Δwᵢⱼ⁽ᵏ⁾ is the change to the weight of terminal k from i to j. The positive learning rate η scales the adjustment. The other factors are the terminal response yᵢ⁽ᵏ⁾ at the actual firing time tⱼᵃ and the delta δⱼ of neuron j. The minus sign makes the update descend the estimated gradient. For a late output with a rising crossing, an active excitatory terminal receives an increase in weight under this rule. Its added voltage can bring the next crossing forward. An inhibitory response has the opposite sign and changes the effect of the update accordingly.

Assigning responsibility to a hidden spike

A hidden neuron has no prescribed time of its own. The procedure assigns it a delta by asking how a shift in its firing time would affect its immediate successors. At a given downstream crossing, a later hidden spike leaves less elapsed time for its delayed PSP to develop. This tends to reduce the terminal’s voltage contribution if the response is still rising. If the response is already decaying, a later spike can leave a larger contribution at that same crossing. The slopes of the delayed PSPs are therefore needed to assess the effect. Their heights alone cannot tell which way the voltage moves.

For clarity, the derivative with respect to the hidden spike’s time can be distinguished from the derivative with respect to the time at which the response is evaluated.

∂yᵢ⁽ᵏ⁾(t)/∂tᵢᵃ = −∂yᵢ⁽ᵏ⁾(t)/∂t

The response yᵢ⁽ᵏ⁾(t) comes from terminal k of source i and is evaluated at time t. The symbol tᵢᵃ is the actual source firing time. On the left the source time shifts and the evaluation time stays fixed. On the right the evaluation time shifts and the source time stays fixed. These changes have opposite effects because the response depends on the elapsed time since the delayed source spike, with the terminal delay held fixed.

∂xⱼ(t)/∂tᵢᵃ = ∑ₖ wᵢⱼ⁽ᵏ⁾ ∂yᵢ⁽ᵏ⁾(t)/∂tᵢᵃ

The expression on the left is the sensitivity of receiver j’s voltage xⱼ(t) at a fixed time t to the actual firing time tᵢᵃ of source i. The sum adds the effects of its terminals k into j, each weighted by wᵢⱼ⁽ᵏ⁾. The derivative of yᵢ⁽ᵏ⁾(t) captures the effect of translating the terminal’s response in time. Each terminal is evaluated at the same receiver time, but its delay determines the part of the PSP that is present there.

∂E/∂tᵢᵃ = ∑ⱼ∈Sᵢ δⱼ [∂xⱼ(t)/∂tᵢᵃ evaluated at t = tⱼᵃ]

The left side is the effect on the loss E of shifting the hidden firing time tᵢᵃ. The set Sᵢ contains the immediate successors j of i, and δⱼ is the delta already calculated for each successor. The bracketed expression measures how the shift in i changes the voltage xⱼ(t) of j, holding the evaluation time at j’s actual crossing tⱼᵃ. Each contribution is evaluated at its own receiver’s crossing. The sum accounts for cases in which shifting the hidden spike would help some successors and hurt others.

δᵢ = −(∂E/∂tᵢᵃ)/αᵢ

The delta δᵢ converts the sensitivity to the hidden firing time tᵢᵃ into sensitivity to the voltage of neuron i at that time. The derivative ∂E/∂tᵢᵃ contains the combined downstream effect on the loss E, and αᵢ is the voltage slope at i’s own crossing. The negative sign again reflects that added voltage brings a rising crossing forward. When the contributions are written using slopes with respect to evaluation time, the negative from translating the outgoing response cancels this negative.

δᵢ = [∑ⱼ∈Sᵢ δⱼ ∑ₖ wᵢⱼ⁽ᵏ⁾ (∂yᵢ⁽ᵏ⁾(t)/∂t evaluated at t = tⱼᵃ)]/αᵢ

In this form, δᵢ is the delta of hidden neuron i, Sᵢ is its set of successors j, and δⱼ is the delta for each successor. The inner sum uses the outgoing weights wᵢⱼ⁽ᵏ⁾ and the evaluation-time slopes of their responses yᵢ⁽ᵏ⁾(t) at each successor’s actual time tⱼᵃ. The denominator αᵢ is the slope of the hidden neuron’s incoming voltage at its own crossing. This form makes the derivative convention explicit. The paper’s intermediate chain rule supplies the signs for the two conversions. A derivative taken with respect to the source’s firing time must keep the negative in the preceding conversion, while the form using evaluation-time slopes incorporates the cancellation.

Δwₕᵢ⁽ᵏ⁾ = −η yₕ⁽ᵏ⁾(tᵢᵃ) δᵢ

The change Δwₕᵢ⁽ᵏ⁾ applies to terminal k from predecessor h to hidden neuron i. The learning rate is η, yₕ⁽ᵏ⁾(tᵢᵃ) is the terminal’s response at the actual hidden firing time, and δᵢ is the hidden delta. The update has the same structure as the one for connections into outputs. The difference lies in the origin of the receiving neuron’s delta. Output deltas use target times, and hidden deltas use the effects of their timing on the following layer. Repeating that calculation in reverse layer order gives the paper’s extension to networks with more hidden layers.

Providing spikes for continuous measurements

A binary input can be expressed directly as an early or late spike. A continuous measurement presents a different problem. The timing window has to remain compatible with the PSP timescale. Packing increasingly fine distinctions into a single spike time within that window would force the simulator to use increasingly small timesteps. It would also demand precise timing from individual neurons. The paper cites cortical spike jitter on the order of 1-2ms as motivation to distribute the input across neurons. The scheme uses a separate group for each variable so that different values activate different overlapping subsets.

Each neuron in a group has a Gaussian receptive field. A receptive field describes how strongly the neuron responds to a value of the variable. Its response is strongest at its center and diminishes as the value moves away. A measurement between two centers can stimulate both neurons, with the stronger response giving an earlier spike. The pattern of times across the group conveys where the value falls in the variable’s range.

cᵢ⁽ⁿ⁾ = Iₘᵢₙ⁽ⁿ⁾ + i · (Iₘₐₓ⁽ⁿ⁾ − Iₘᵢₙ⁽ⁿ⁾)/(m − 2)

Here cᵢ⁽ⁿ⁾ is the center of receptive field i for input variable n. The bounds Iₘᵢₙ⁽ⁿ⁾ and Iₘₐₓ⁽ⁿ⁾ are the minimum and maximum of that variable’s range, and m is the number of neurons allocated to its encoding. The index i locates the field along the sequence of evenly spaced centers. In this part of the method, m refers to neurons in an input group. In the voltage sum it refers to terminals per connection.

σ = β (Iₘₐₓ⁽ⁿ⁾ − Iₘᵢₙ⁽ⁿ⁾)/(m − 2)

The symbol σ is the width of the Gaussian receptive fields for variable n, whose bounds are Iₘᵢₙ⁽ⁿ⁾ and Iₘₐₓ⁽ⁿ⁾. The group contains m neurons, and β determines the width relative to the spacing used for the centers. The authors tried β values between 1.0 and 2.0 and chose 1.5 for the reported results. Overlap makes it possible for nearby neurons to convey graded evidence about the same input.

For each example, the receptive-field responses lie between 0 and 1. A response of 1 maps to time t = 0, and weaker responses map to later times up to t = 10. The simulator rounds the resulting times to its internal time grid. A response mapped later than t = 9 is treated as too weak to produce a spike. This makes the code sparse. A variable can be represented by several potential input neurons while only the subset responsive to its current value contributes spikes to the calculation. Missing measurements in the breast cancer experiment also produce no spikes from their corresponding group.

For classification, each class has a designated output neuron. The target time for the correct neuron is early, and the targets for the other neurons are later. The training loss uses the difference between actual and desired times at the outputs. Evaluation uses their order. The classification is correct if the designated neuron fires first, regardless of whether its time exactly matches the target. When multiple outputs cross within the same simulated timestep, the authors estimate a more precise ordering from the membrane potentials at the current and preceding steps. This tie-breaking calculation concerns the output decision, while the local crossing slope in back-propagation concerns how to change a weight.

Experiments and results

XOR with early and late spikes

The exclusive-or problem asks whether the binary inputs differ. Its positive examples sit at opposite corners of the input space, while its negative examples occupy the other corners. The task tests whether the hidden layer can turn a pattern with that structure into the desired timing. Both input symbols are represented by a spike. Logical 1 is early at 0, and logical 0 is late at 6. The paper writes the temporal input pairs as 00, 06, 60 and 66, with each digit denoting a firing time in milliseconds. Matching times have a target output of 16, and mismatched times have a target output of 10.

A reference input fires at t = 0 in every example. It anchors the times to a shared start. This matters because the two matching pairs would otherwise present synchronous feature spikes with the same relative arrangement, differing only in an overall time shift. The authors describe the reference as necessary to make the task meaningful in their setup. With it, the network sees an explicit event against which the feature spikes can be early or late. The encoding interval ΔT is 6ms.

The architecture has 3 input neurons, 5 hidden neurons and 1 output neuron. One of the hidden neurons produces inhibitory responses, so spikes from that source contribute negative PSPs even though its weights remain positive. The available synaptic delays span 1–16 ms, and the PSP time constant is 7 ms in the main setup. This network has 320 adjustable terminal weights. The authors report that it reliably learned the temporal XOR patterns within 250 cycles at a learning rate of 0.01. This gives a measure of training progress on the small set of repeated patterns. The learning-rate experiments use a specified sum-of-squares criterion to compare convergence across settings.

Learning a surface of target firing times

The interpolated version asks the network to reproduce intermediate outputs as well as the binary cases. The paper starts with an interpolated XOR function on the unit square and encodes its arguments as input times from 0 to 6 milliseconds. Output times range from 10 to 16 milliseconds. The geometry of the target is now a surface over pairs of times. A network that only learned to distinguish the corner patterns could still miss the required intermediate firing times.

The authors used 961 points on the target surface with 3 input neurons, 5 hidden neurons and 1 output neuron. Training examples were drawn randomly from those points. The stopping criterion was a sum squared error of 50.0, reached after 12,996 draws. The reported average error per instance was 0.2ms, and the internal integration step was 0.1 ms. These figures describe how closely the learned output followed the presented target times. The paper compares a picture of the target surface with the network’s fitted surface, giving a view of the timing relationship throughout the sampled domain. It reports no separate test split for this experiment.

For the same general interpolated XOR problem, the authors compare their representation with an earlier instantaneous rate-code example by Maass. Their temporal network uses 9 spiking neurons. In the comparison they cite, a rate code operating within 10ms used a pool of some 200 spiking neurons. A neuron’s individual firing time can carry a value in the temporal network. In a short rate code, a downstream signal can instead depend on a count accumulated across a pool, since a single sparsely firing neuron supplies little information about its average rate in that window. The authors illustrate the idea using a firing rate of 40Hz. The result compares neuron counts associated with those representations under the reported conditions. The 320 terminal weights required even for the binary timing task show why a small neuron count and a small number of adjustable parameters are separate questions.

The classification comparison

The other experiments compare SpikeProp with conventional error back-propagation in a sigmoidal multilayer perceptron. The authors used the Matlab v5.3 TRAINLM routine. In their direct comparisons, the preprocessing was shared, and each system had the same reported layer sizes within a dataset. This is important because expanding a variable through receptive fields changes the information available at the input. Giving both systems the same preprocessing helps focus the comparison on how the network uses that representation. The timing and conventional systems still differ in what they compute at each connection and in how many weights each connection carries.

The benchmark settings list a coding interval of 4ms, a response time constant of 7ms and a SpikeProp learning rate of 0.0075. The paper reports results averaged over 10 runs on each cross-validation set and uses the fixed Landsat split for that dataset. The percentages below are classification accuracies, as indicated by the discussion of the results and the direction of the reported improvements. The paper prints accompanying ± values but does not define the statistic they represent in the benchmark table. The charts give the central values for the test cases, while the accompanying prose reports the training results and the variation figures printed alongside them.

Iris

The Iris dataset has 150 cases with 4 input variables and three classes. The paper describes two of the classes as lacking a linear separation. Each variable is encoded through 12 Gaussian receptive-field neurons. The data is split into two sets of 75 items for cross-validation. Each set serves as the test cases when training uses the other one. Both networks are listed with 50 inputs, 10 hidden neurons and 3 outputs. The paper gives the layer sizes and per-variable encoding counts separately.

SpikeProp and Matlab backpropagation on Iris cross-validation test accuracy

SpikeProp has a slightly higher reported test accuracy in the matched comparison.

SpikeProp and Matlab backpropagation on Iris cross-validation test accuracyMatlab BP: 95.7Matlab BP95.7SpikeProp (this paper): 96.1SpikeProp (this paper)96.1
The numbers
System or settingaccuracy %
Matlab BP95.7
SpikeProp (this paper)96.1

SpikeProp’s reported test accuracy is 96.1% ± 0.1, and its training accuracy is 97.4% ± 0.1. The Matlab comparison has test accuracy of 95.7% ± 0.1 and training accuracy of 99.0% ± 0.1. The two procedures therefore have a different ordering on the training and test cases. The result supports the authors’ claim of similar classification performance. It gives little basis for a broad ranking of the two approaches.

The SpikeProp row lists 1,000 iterations. The Matlab iteration count is internally inconsistent. The results row lists 3,750, while the table caption gives 50 epochs or 1500 iterations for the Matlab routine on Iris. The accuracy figures can be read directly from their rows. The discrepancy prevents a precise comparison of the training budgets on this dataset.

Wisconsin Breast Cancer

The Wisconsin Breast Cancer dataset contains 699 entries labeled benign or malignant. Each entry has nine measurements, recorded as integers between 1 and 10. The authors encode each measurement with 7 equally spaced receptive-field neurons across the input range. For the 16 cases with missing data, a missing variable produces no spikes from its encoding group. This retains the cases and gives the network a specific representation for an absent measurement through the silence of that group.

Both networks are listed with 64 inputs, 15 hidden neurons and 2 outputs. The experiment uses two-fold cross-validation. SpikeProp is listed at 1500 iterations and Matlab back-propagation at 3,500, with the caption describing 10 epochs for the Matlab routine. The classification scores are close on both portions of the split. SpikeProp has a training accuracy of 97.6% ± 0.2 and test accuracy of 97.0% ± 0.6. Matlab back-propagation has a training accuracy of 97.7% ± 0.3 and test accuracy of 96.7% ± 0.6.

SpikeProp and Matlab backpropagation on Wisconsin Breast Cancer cross-validation test accuracy

The reported test accuracies are close, with SpikeProp slightly ahead.

SpikeProp and Matlab backpropagation on Wisconsin Breast Cancer cross-validation test accuracyMatlab BP: 96.7Matlab BP96.7SpikeProp (this paper): 97.0SpikeProp (this paper)97.0
The numbers
System or settingaccuracy %
Matlab BP96.7
SpikeProp (this paper)97.0

The authors also discuss an earlier result by Roy, Govil and Miranda on a version of the dataset with 608 cases. That study reported a test error rate of 2.96% for a multilayer perceptron trained with conventional back-propagation. It is context for the level of performance previously obtained. The dataset version and split make it a different comparison from the two systems evaluated together in the paper.

Statlog Landsat

The Landsat experiment is larger and uses a prescribed training and test split. It contains 4435 training cases, 2000 test cases and 6 classes corresponding to ground-cover types. A case represents a 3x3 pixel patch, and each pixel has values in 4 spectral bands. The raw case therefore has 36 inputs, with the class referring to the central pixel. The authors average each spectral band across the patch, then encode each band average with 25 input neurons. This preserves a summary of each band in the surrounding area. It removes information about which positions within the patch supplied particular spectral values.

The reported architectures each have 101 inputs, 25 hidden neurons and 6 outputs. The table compares one SpikeProp training budget with a shorter and an extended run of the Matlab routine. SpikeProp’s 60,000 iterations yield 87.0% ± 0.5 training accuracy and 85.3% ± 0.3 test accuracy. The Matlab run at 110,078 iterations has 83.6% ± 1.3 training accuracy and 82.0% ± 1.5 test accuracy. At 1,108,750 iterations, the Matlab routine reaches 91.2% ± 0.5 on the training set and 88.0% ± 0.1 on the test set. The reported comparison depends on how long training runs.

SpikeProp and Matlab backpropagation on Statlog Landsat test accuracy

SpikeProp leads the shorter Matlab run, and extended Matlab training reaches the highest reported accuracy in this comparison.

SpikeProp and Matlab backpropagation on Statlog Landsat test accuracyMatlab BP, shorter run: 82.0Matlab BP, shorter run82.0SpikeProp (this paper): 85.3SpikeProp (this paper)85.3Matlab BP, extended run: 88.0Matlab BP, extended run88.0
The numbers
System or settingaccuracy %
Matlab BP, shorter run82.0
SpikeProp (this paper)85.3
Matlab BP, extended run88.0

The authors also report results from the Statlog survey. Its conventional back-propagation system has 88.8% training accuracy and 86.1% test accuracy. The radial basis function system reaches 88.9% on the training set and 87.9% on the test set. The k-nearest neighbor method reaches 91.11% on the training set and 90.06% on the test set, and the paper identifies it as the strongest survey result. Those results place the experiment in the context of other methods on Landsat. The direct Matlab comparison is the one the authors run with the same reduced input representation as SpikeProp.

Across the benchmarks, the authors frequently observe fewer learning iterations for SpikeProp. Their simulation modifies 16 times more weights in an epoch because of the delayed terminals. It also follows the voltage trajectory through small simulation steps. The paper reports that an individual learning iteration took longer for SpikeProp, and that extended Landsat training was infeasible within the authors’ time constraints. The accuracy comparison is thus evidence for the supervised timing approach on these tasks, while iteration counts describe only one part of its computational cost.

What the ablations show

Larger adjustments trade reliability for progress

The XOR analysis varies the learning rate and the response time constant. Its learning-speed plot reports how many iterations runs took, on average, to reach a sum squared error of 1.0. The average includes only runs that actually converged. The authors also plot convergence frequency separately, counting successful runs out of 10. Reading the two outcomes together matters. A setting can reach the criterion quickly on its successful runs and still be a poor choice if many of its runs fail to reach it.

For learning rates up to 0.01, increasing the learning rate was associated with faster learning. At larger rates the probability of convergence declined. This is consistent with the derivation. The gradient estimates the movement of a crossing near its current position, using the local voltage slope. When a weight update is large, the next crossing can occur where the slopes of the individual PSPs differ substantially. An estimated direction can still be useful locally even when taking a large step in that direction makes the timing worse or makes a crossing difficult to obtain. The plot establishes the empirical tradeoff for these XOR settings. It does not separate which changes to the voltage trajectories caused individual failed runs.

The coding interval and the learning rate address different aspects of the training problem. The coding interval governs which temporal patterns the network sees. The learning rate governs how far its weights move in response to an example. A suitable learning rate cannot supply overlapping responses when the PSPs have already decayed, and a suitable time constant cannot make a local derivative reliable for arbitrarily large updates. The paper’s sweeps give evidence about both settings because it examines learning speed and convergence across different response time constants as well as learning rates.

The duration of a response has to suit the code

For the main XOR setting with a coding interval of 6ms, the paper finds more reliable convergence when the time constant is somewhat larger than the interval. The authors repeat the comparison with different encodings. One places input times in [0, 3] and target times in [7, 10], with a sum squared error target of 0.7. The other uses input times in [0, 10] and target times in [15, 25], with a target of 3.0. Both plots count convergence out of 10 runs. Each encoding repeats the qualitative pattern that the response time constant should exceed the width of the code for reliable learning in the tested setup.

The comparison is informative because it changes the extent of the timing pattern. If one response time constant simply happened to work well with the architecture, changing the interval would give less reason to expect a similar relationship between convergence and the two scales. The authors observe the relationship across the different encodings and connect it to the earlier theoretical argument about integrating inputs over time. The stopping criteria differ between the interval experiments. The useful comparison is how convergence changes with the response time constant within each encoding.

The authors also report that the same choice helped on the real-valued benchmarks. They observed faster learning and somewhat better results when the PSP time constant was slightly larger than the coding interval. The detailed convergence evidence concerns XOR, while the benchmark observation explains the reported choice of settings. Taken together, the experiments suggest that having responses overlap across the relevant temporal pattern helps the gradient procedure produce reliable learning. They leave the exact best choice dependent on the task and training setup.

Inhibition and excitation affect whether learning converges

The authors compare a sign-constrained network with an arrangement that lets a connection contain both positive and negative terminal weights. They report that SpikeProp failed to converge in their tests with mixed-sign connections. The reported XOR network instead assigns the sign to a source neuron. An inhibitory neuron produces negative PSPs, an excitatory neuron produces positive ones, and the trainable weights stay positive. The paper reports that including one or two inhibitory neurons was sufficient in its experiments.

Their proposed explanation concerns the voltage trajectory built by a single connection. Several delayed terminals with opposing signs can make that trajectory more complicated. In particular, contributions of different signs can cancel while other terminals are beginning to act. The paper suggests that this disrupts the increasing response obtainable with a sufficiently long time constant. This is an explanation for the observed failure, and the sign comparison itself is qualitative. The authors give no corresponding run counts or error trajectories that identify cancellation as the cause. They also point out that paired excitatory and inhibitory neurons can reproduce effects associated with a mixed-sign connection, at the cost of expanding the network.

What the other comparisons isolate

The receptive-field experiment includes a width choice. The authors tried values of β between 1.0 and 2.0, and the reported configuration uses 1.5 because it gave the best results. The paper does not show separate benchmark scores at each width. The observation gives a reason for the chosen encoding but leaves open how sensitive the benchmark accuracies are to width or how much of the performance comes from population coding itself. The paper’s example of an input represented by overlapping fields illustrates the mechanism and the resulting sparsity.

The Landsat comparisons isolate a different factor. Running the Matlab routine longer increases both its reported training and test accuracy, eventually putting it ahead of the SpikeProp run. That comparison establishes the effect of extended training for the Matlab procedure under the reported setup. No corresponding extended SpikeProp result is given. The paper also compares its averaged-patch input with published results from the Statlog survey, but it does not report an internal comparison between averaged and spatially separate pixel values. The reduced representation works well enough to support the reported scores. The experiment does not quantify the accuracy attributable to that preprocessing choice.

Limitations

Limits the authors state

The authors explicitly restrict the learning argument to a small neighborhood around a firing event. The local voltage slope is useful for estimating a small displacement of the crossing. If a weight change is large, the new crossing can be far enough away that the slope used to predict it no longer describes the trajectory. The observed dependence on learning rate supports the practical importance of this restriction. The authors also acknowledge that they did not search exhaustively for optimal parameters. Their chosen settings establish that training can work and show how convergence varies in particular experiments.

They also describe the cost of their implementation. The network state is advanced through small timesteps, even though its communication takes the form of individual events. Meanwhile, each connection in the experiments has multiple trainable weights. The authors propose that an event-based implementation could exploit the sparse input representation more effectively. They provide no timing benchmark for such an implementation in the paper. The distinction matters on Landsat, where the conventional routine could be run for a longer training schedule and the authors stopped the SpikeProp experiments because of time constraints. They observed further improvement as SpikeProp training continued, but they did not establish its eventual accuracy under a longer schedule.

Their convergence comparison on real-world datasets is qualitative. They report no convergence failures for SpikeProp in those experiments and occasional failures for the conventional multilayer perceptron, at a rate of <10%. Those observations apply to the runs they carried out. The paper treats parameter optimization as an open question. In particular, the convergence of the two training procedures could depend on their settings, the feature encoding, and how long a run is allowed to continue.

The authors also distinguish the tasks they completed from an area they expected to pursue. The real-valued benchmarks consist of measurements encoded as spike times before training. They suggest that an architecture operating directly on time might be well suited to patterns whose temporal structure is already part of the input, especially in the absence of reference spikes. They report an initial character-recognition application in the discussion. A broader evaluation of such temporal applications remains outside the benchmark program in the paper.

Limits visible in the derivation and setup

The timing objective assumes an actual firing time is available where a crossing derivative is needed. The paper’s single-spike rule gives a clear treatment of input neurons deliberately left silent by the encoder. Their missing events simply contribute no PSP. A different situation occurs when an output with a desired firing time remains silent. The loss and derivative as written require an actual time and a local slope. They do not specify a general update that would create a missing output spike or an arbitrary missing hidden spike. The same issue arises in a milder form near a marginal crossing. If the slope is very small, the reciprocal in the gradient is sensitive. If a perturbation causes a different crossing to become the first one, the original local calculation may no longer track the emitted event.

The network also uses a feedforward architecture with fixed delays, a common threshold and at most one spike per neuron in the simulation interval. Training adjusts terminal weights. The same backward rule can be described layer by layer for deeper feedforward networks, as the authors do, but the experiments reported here have a single hidden layer. The study therefore does not determine how reliably optimization behaves as depth grows. Recurrent connections, trains of several spikes and changes to the synaptic delays would introduce further timing relationships. The training equations here address the specified single-spike feedforward setup.

The loss and evaluation also answer different questions. Squared timing error penalizes every deviation from the assigned target times. Winner-take-all accuracy depends only on which output is earliest. A network can classify an example correctly while missing several of its exact timing targets. The reverse comparison can also matter at close crossings, where a modest timing change could reverse the class decision. The benchmark tables show classification accuracy, while the interpolated XOR experiment provides a direct test of timing fit. The classification results alone leave open how accurately the network reproduces all the desired output times.

How far the empirical comparisons extend

The benchmark results are close to those of the authors’ conventional back-propagation comparison, with the ordering dependent on the dataset, split and training schedule. The paper does not report a formal test of the small gaps on Iris and Wisconsin Breast Cancer, and the meaning of the reported ± quantity is unspecified. Similar central accuracies support the paper’s feasibility claim. The experiments leave uncertainty about whether one training rule would consistently win with additional runs or revised settings. Iris also contains the conflicting Matlab iteration counts, and Landsat has unequal training budgets and no extended SpikeProp comparison.

For Landsat, the averaged-band inputs deliberately trade spatial information for a smaller representation. The published Statlog scores provide context, while the authors’ Matlab comparison is controlled for that preprocessing. Neither comparison shows what SpikeProp would have achieved with the original spatial arrangement of the patch. For Wisconsin Breast Cancer, the encoding gives missing values a clear computational treatment, but the reported classification scores are pooled over the dataset. There is no separate result for the cases with missing measurements.

The neuron-count comparison for interpolated XOR uses specific implementations of two codes. It shows that the target function can be fit with a small temporal network and gives an earlier example of the larger pool that can be needed to estimate a short-window rate. The paper does not compare matched hardware, measured latency or total cost at a common error target. Each temporal connection can carry many adjustable weights, and the training simulator has to track voltage over time. The count of neurons is a result about representational economy in that example. It leaves the computational cost, including the time required to train the system, as a separate empirical question.

The biological argument has a similar scope. The response timescales and threshold dynamics make it meaningful to ask whether longer membrane responses preclude fine timing computations. The experiments demonstrate an artificial network in which the two are compatible. The authors train that network with externally supplied firing-time targets and a backward calculation that uses slopes and downstream errors. The experiments do not establish that biological circuits use SpikeProp or learn by the same process. The paper cites observations about timing precision and noise, but it does not report a controlled jitter experiment on the trained networks. Its evidence concerns the capabilities of the architecture and learning rule under the reported conditions.

What came after

The paper describes an early follow-on application by Pieri to handwritten character recognition. That work uses the temporal pattern-recognition capability discussed by the authors, who place it alongside their suggestion that firing-time networks could handle patterns directly in time. In their account, a network trained with SpikeProp achieved better recognition rates than simple statistical methods for a subset of characters. They give no numerical scores or full-dataset comparison for that application. It extends the use of the learning rule beyond the benchmark setups described in detail, with the evidence confined to the subset the authors mention.

Cite

Cite as Sander M. Bohté, Joost N. Kok and Han La Poutré. 2002. Error-backpropagation in temporally encoded networks of spiking neurons. Neurocomputing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1016/s0925-2312(01)00658-0

@inproceedings{bohte2002error,
  title = {{Error-backpropagation in temporally encoded networks of spiking neurons}},
  author = {Sander M. Bohté, Joost N. Kok and Han {La Poutré}},
  booktitle = {Neurocomputing},
  year = {2002},
  doi = {10.1016/s0925-2312(01)00658-0},
  url = {https://doi.org/10.1016/s0925-2312(01)00658-0}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bohte-2002-error-backpropagation-temporally-encoded-networks/