Performance Comparison of the Digital Neuromorphic Hardware SpiNNaker and the Neural Network Simulation Software NEST for a Full-Scale Cortical Microcircuit Model
Paper · 2018 · Sacha Jennifer van Albada, Andrew G. D. Rowley, Johanna Senk et al.
Summary
A computer can simulate a network of spiking neurons quickly by updating them less often. For a cortical circuit, the risk is that a coarse update interval can change the activity the simulation is supposed to explain. The authors compare two ways of running the same circuit at a time resolution suited to its fast synaptic currents. SpiNNaker is a digital neuromorphic machine built to distribute neuron updates and spike delivery across many small processors. NEST is a simulation program that runs here on a high-performance computing cluster. The study asks how closely they agree on the circuit’s activity and how much time and energy each needs to reproduce it.
The circuit represents the neurons beneath 1 mm² of early sensory cortex. It contains 77,169 neurons and approximately 0.3 billion synapses, with different connection probabilities for excitatory and inhibitory populations across the cortical layers. SpiNNaker’s usual real-time setting advances the circuit by 1 ms per update. The authors instead use a biological timestep of 0.1 ms and give the hardware longer to finish each update. Running the circuit also requires changes to how the software builds its connections, represents delays and weights, and spreads spike transmissions through each update interval.
At 0.1 ms, both SpiNNaker and grid-based NEST closely reproduce the selected firing statistics from a NEST reference that can place spikes between update points. The comparison covers firing rates, the irregularity of intervals between spikes, and correlations between neurons. These statistics agree closely under either a steady external drive or independently fluctuating input. With fluctuating input, changing the random seed in the reference produces differences comparable in size to those seen when changing both the seed and the simulator. Tests on individual neurons reveal timing biases that are harder to see in population statistics. SpiNNaker tends to spike early and grid-based NEST tends to spike late relative to the reference, especially at 1 ms.
SpiNNaker ran the full circuit without spike loss at a slowdown of 20 relative to real time. NEST’s propagation time leveled off at around 3 times real time as more processors were added, but its lowest propagation energy with the cluster’s InfiniBand switch included occurred at 144 virtual processes and about 4.6 times real time. At that setting NEST used 5.8 µJ per synaptic event, close to SpiNNaker’s 5.9 µJ. The benchmark establishes that the tested SpiNNaker implementation can reproduce the selected statistics at full cortical density. It also identifies work on routing, synapse processing, and placement that would be needed to approach real time on this circuit.
Deep dive: Performance Comparison of the Digital Neuromorphic Hardware SpiNNaker and the Neural Network Simulation Software NEST for a Full-Scale Cortical Microcircuit Model
A benchmark of SpiNNaker and NEST for a full-scale cortical microcircuit compares spike accuracy, simulation time, and energy per synaptic event. · about 36 minutes to read
The problem and its context
Why the circuit is a demanding test
A spiking simulation has to update the state of each neuron and deliver the consequences of each spike to the connected neurons. A cell that fires infrequently can still generate a substantial amount of work if its spikes have many destinations. In a densely connected circuit, the receiving processors also have to keep track of when each input arrives and how strongly it affects each target. These obligations make connectivity, firing activity, and timing resolution important alongside the neuron count. The cortical microcircuit brings all of them into the same benchmark.
The circuit comes from earlier work by Potjans and Diesmann. Its connection probabilities vary with the cortical layers and the types of cells being connected. Using the full cell density lets the circuit represent both realistic connection probabilities and realistic numbers of synapses per neuron at the scale of a local cortical patch. Simply removing neurons would force a choice between preserving the probability of a connection and preserving the amount of input each cell receives. The full microcircuit had already served as a component in other cortical studies, so its implementation mattered both as a computational test and as a way to run an existing neuroscience workload on different hardware.
The authors also explain why this local patch is informative for larger simulations. About half of the synapses impinging on its cells arise within the microcircuit. Adding more cortical tissue therefore adds many cells, but the number of inputs to any one cell has only limited room to grow. Once the simulation supports a local circuit at full density, the authors expect the memory required for synaptic information to grow approximately with the size of the network, provided the software can distribute that information effectively. The expected behavior of the memory footprint motivates the benchmark. The cost of communication and the ability to distribute computation still have to be examined separately as the network grows.
The timing requirement comes from the circuit itself. Its synaptic currents decay with a time constant of 0.5 ms, shorter than SpiNNaker’s usual 1 ms real-time update interval. Neuroscience simulations also use finer steps to reduce the artificial alignment that can arise when a whole network is constrained to common update points. The authors use 0.1 ms, the step used in earlier simulations of this circuit. This puts the numerical control where the scientific question requires it. The hardware comparison then has to account for the work needed to support that choice.
What the platforms bring to the comparison
SpiNNaker was designed to run large spiking networks with low power consumption and to support real-time interaction, as in robotics. Its processors handle incoming spike messages as they arrive. Timed neuron updates and incoming traffic share processing capacity, so a processor that remains busy can miss an event. That design makes the conditions attached to a speed claim important. A run can appear fast while failing to deliver some of the activity that should have reached the neurons. With a dense cortical circuit, the question is whether each processor can complete its assigned work inside the interval available to it.
SpiNNaker could already simulate substantial networks before this work. The authors cite earlier runs with about 50 million and 86 million synapses. The full-density cortical microcircuit places different demands on the software because of its volume of connection data, the distribution of delays, and the way many sources reach targets spread across the hardware. Each board has limited resources for routing and for storing or processing synaptic input. Using several boards expands the available resources, while the software must still arrange the circuit so that the individual chips can communicate and finish their work.
NEST had already run the original cortical microcircuit and could simulate much larger networks on conventional computing systems. The authors describe a broader practical problem with those systems. Large simulations at cellular resolution can take tens of minutes of computation for a second of biological activity and consume substantial power. Processes such as development, learning, and synaptic change can unfold across much longer stretches of biological time. A simulator that produces an appropriate solution in less time or with less energy could make more of that activity practical to investigate.
Both platforms support PyNN, a language for specifying a neural simulation independently of the software or hardware that runs it. This gives the authors a common way to specify populations, connectivity, inputs, and settings. The actual computation still differs. NEST and SpiNNaker store numbers differently, handle the evolving synaptic current differently, and have different arrangements for parallel execution. The common specification makes those implementation choices easier to study because the comparison begins with the same description of the circuit.
What counts as an accurate result
The paper treats accuracy as part of evaluation and benchmarking. The relevant question is whether a run preserves the aspects of activity needed for the scientific use. For an isolated neuron driven by a known spike sequence, the authors can compare voltage traces and the timing of individual outputs. For a recurrent circuit with randomly drawn connections, initial voltages, and external input, they instead compare statistical properties of the finished runs. An event-by-event comparison across independently generated circuits would mix up numerical error and the ordinary variation between realizations.
The choice of statistics follows the scientific role of the circuit. A firing rate describes how active an individual neuron is over time. The variation in the intervals between its spikes measures how regularly it fires. Correlations between neurons help characterize whether their activity is coordinated. The paper connects the latter measures to the asynchronous, irregular activity of cortex, to the relationship between microscopic spiking and local field potentials, and to the relevance of spike timing for synaptic plasticity. A simulator that preserves firing rates alone could still alter the organization of the activity.
Earlier energy studies discussed in the paper frequently related power use to the number of operations performed or the number of synaptic events processed. The authors retain energy per synaptic event as a useful measure, while making comparable simulation accuracy a condition of the comparison. A unit of computation acquires its meaning from the solution it produces. Here, the accuracy tests and the energy benchmark therefore concern the same circuit and time resolution. The performance measurements use steady external input so the workload being timed is specified more narrowly than the full set of accuracy experiments.
The method, step by step
From one neuron to a cortical patch
The simulation starts with a leaky integrate-and-fire neuron. Its membrane voltage moves towards a resting level in the absence of current. Incoming spikes change the current abruptly, after which their contribution decays. As current acts on the membrane, the voltage can reach a threshold. The neuron then emits a spike, returns to a reset voltage, and stays there through a refractory period. This description retains the timing of a cell’s response and keeps the neuron’s state compact enough to repeat across a dense circuit.
From cortical circuit specification to performance comparison
The steps in order.
Below threshold, the voltage follows the first of the circuit’s dynamical equations.
τₘ dVᵢ/dt = −(Vᵢ − Eₗ) + Rₘ Iᵢ(t)
Here i identifies the receiving neuron, t is time, and Vᵢ is the neuron’s membrane voltage. The derivative dVᵢ/dt is its rate of change. The membrane time constant τₘ sets the pace of voltage relaxation, Eₗ is the leak or resting voltage, Rₘ is membrane resistance, and Iᵢ(t) is the total synaptic current at time t. The negative term moves the voltage towards Eₗ. The product of resistance and current describes the contribution from synaptic input.
τₛ dIᵢ/dt = −Iᵢ + τₛ ∑ⱼ Jᵢⱼ sⱼ(t − dⱼ)
The symbol τₛ is the synaptic time constant, and dIᵢ/dt is the rate of change of the current into neuron i. The sum runs over the presynaptic sources j, meaning the neurons sending input. The quantity Jᵢⱼ is the change in current at the synapse from j to i when a spike arrives. The spike train sⱼ enters with a transmission delay dⱼ. In the intervals between arrivals, the −Iᵢ term makes the current decay.
sⱼ(t) = ∑ₖ δ(t − tₖ)
The index k enumerates the spikes of source j. The time of spike k is tₖ, and δ is the impulse concentrated at the corresponding spike time. This representation lets the current equation describe both the sudden change at arrival and the subsequent decay. An excitatory contribution pushes the receiving neuron toward firing, while an inhibitory contribution opposes it.
The membrane time constant is 10 ms, and the synaptic time constant is 0.5 ms. The membrane resistance is 40 MΩ. The resting voltage and reset voltage Vᵣ are −65 mV, and the firing threshold θ is −50 mV. After firing, the neuron remains at the reset voltage for the refractory period τᵣₑ𝒻 of 2 ms. These parameters apply in the single-neuron tests as well as in the network, so the smaller test probes the dynamics of the same kind of cell that the platforms later simulate at scale.
NEST integrates the coupled subthreshold voltage and current dynamics using their analytical solution. In its grid-based mode, an output spike is assigned to an update point. The reference mode allows the spike time to be determined between those points. It thereby separates much of the timing error associated with placing spikes on the grid from the other properties of the simulation. The authors call it the precise-spike solution and use it as the reference for both the single-neuron and circuit experiments.
SpiNNaker separates the synaptic and membrane updates. In the membrane calculation it treats the input current as constant within each step, while applying exponential decay to the synaptic current separately. Each part can be advanced in closed form under that arrangement. The current passed to the neuron is adjusted so that an event contributes the same total charge as in the exact solution.
Q = Jτₛ
Here Q is the charge transferred by a synaptic event, J is the current jump caused by that event, and τₛ is the synaptic decay time constant. Matching this quantity controls the integrated current from an event. The voltage can still follow a different course within or across update intervals because of how that current is distributed over time. The single-neuron tests are designed to reveal those differences.
Building the workload and obtaining the spike data
The full circuit represents 1 mm² of generic early sensory cortex. Layers 2/3, 4, 5, and 6 each contain an excitatory and an inhibitory population. The layer labels identify the population’s location, and E or I identifies its type. The study uses a circuit of 77,169 neurons and approximately 3 × 10⁸ synapses. Connection probabilities for each pair of populations come from the earlier circuit specification, which drew on anatomical and physiological studies. For a given pair of populations, sources and targets are sampled with replacement. A pair of cells can therefore be joined by several synapses, a configuration called a multapse.
Weights are drawn from normal distributions. For most excitatory projections, the weight mean and standard deviation are 87.8 ± 8.78 pA. The projection from 4E to 2/3E is stronger, with 175.6 ± 8.78 pA. The inhibitory weight magnitudes are given as 351.2 ± 35.21 pA. Delay distributions also depend on the source. Excitatory delays have a mean and standard deviation of 1.5 ± 0.75 ms, and inhibitory delays have 0.75 ± 0.375 ms. Delays are bounded below by the simulation timestep. These distributions matter to the implementation because its stored delays must extend beyond the most common values and its numerical format must accommodate weights that can arrive together.
External inputs represent activity from surrounding cortex, other areas, and subcortical regions. In the original circuit specification, the external drives are independent Poisson spike trains, with rates that vary by target population. Poisson input gives a stochastic sequence of arrivals at a specified average rate. The authors also run the network with a direct-current, or DC, drive set to the mean of the corresponding Poisson current. This keeps the average external drive while removing its temporal fluctuations. Recurrent connections still generate spikes and produce variable activity within the circuit.
Each network simulation covers 10 s of biological time at a step of 0.1 ms. Analysis discards the first 1 s so the initial transient does not dominate the statistics. The Poisson inputs are drawn independently for the different network runs. Connectivity and starting membrane voltages can also differ between realizations. The resulting voltage traces and spike times are the data analyzed in the study. The procedure is a simulation of an existing circuit specification, with no parameter fitting to the resulting spike data and no training and test split.
The single-neuron protocol starts with a different degree of control. A cell receives excitatory Poisson input on the update grid, with a strength of 87.8 pA per input spike. The paper tests 8,000 spikes/s of input, which produces output around 17 spikes/s, and 10,000 spikes/s, which produces output around 47 spikes/s. The lower input rate is run for 16 s of biological time and the higher rate for 4 s so that the authors have comparable numbers of output spikes to analyze. They use 10 random seeds for each setting and test steps of 0.1 ms and 1 ms. This yields a comparison at the circuit’s resolution and at SpiNNaker’s standard real-time resolution, each with a different balance of subthreshold activity and firing.
Separating biological time from machine time
On SpiNNaker, independent timers keep its processors updating on a common schedule. The length of time the circuit advances at an update can differ from the wall-clock interval between updates. The paper uses h_b for the biological step and h_w for the wall-clock interval. Their relationship gives the slowdown.
slowdown = h_w / h_b
The slowdown is the wall-clock time required per unit of biological time. A choice of equal intervals corresponds to real time. For the microcircuit, the authors use h_b of 0.1 ms and h_w of 2 ms for reliable operation. This allows for the updates needed at the finer resolution as well as the work required to process the arriving spikes.
The distinction matters because different costs respond differently to a finer timestep. The neuron update runs every step even when a cell receives no spike. For a fixed stretch of biological time there are more such updates at a finer resolution. Synaptic work depends on the arriving events and the targets activated by each event. The amount of work in a step therefore also depends on the circuit’s fan-in, the number of synapses supplying each neuron. The paper contrasts the design assumption of 1,000 incoming synapses per neuron with a figure closer to 10,000 for the microcircuit. Its accounting of processor cycles suggests why a schedule based on the biological step alone would leave too little capacity. The authors then check the schedule directly by testing whether all spikes get through.
An additional restriction comes from routing. Assigning fewer neurons to each core would normally reduce the local work that has to fit in an update interval. It can also spread the circuit across more chips, requiring more routing entries so spikes can reach their targets. With the software’s routing-key assignment and the available table space, the authors use a setting of 80 neurons per neuron core. A core handles neurons from a single population, so a partly filled assignment at the end of a population cannot be combined with another population. Other cores handle external inputs and long delays. The run uses 6 SpiNN-5 boards, 217 chips, and 1934 ARM9 cores.
Preparing the circuit for SpiNNaker
The original circuit was written for NEST’s native simulation language. The authors create a PyNN implementation using version 0.7, with NEST 2.8 on the cluster and the SpiNNaker 4.0.0 software stack on the neuromorphic machine. Its PyNN interface, sPyNNaker, is extended to support the functions needed by the circuit. The host reads the machine configuration, including faults or unavailable resources, then decides where populations will run and how their messages will travel. The connection lists are generated and loaded once that layout is known.
Generating every synapse in advance would leave the host holding an elaborate in-memory representation of the whole circuit. The authors instead use the statistical information in PyNN’s connection specification to estimate the resources needed for placement. Once the placement is determined, the host generates the actual connections core by core before loading. A rule such as random sampling with replacement is therefore used both to characterize the resource demand and to produce the realized connection data. This preserves the multapses allowed by the original specification while reducing the amount of information the host must keep in memory at once.
Delay storage requires a separate change. SpiNNaker adds arriving weights into circular buffers. Each position represents a delivery time, and the interpretation of the positions advances along with the simulation clock. The local buffer has 16 positions, covering 1.6 ms with the 0.1 ms step. That window is close to the mean excitatory delay of 1.5 ms, so it cannot by itself cover the distributed delays. The implementation sends longer delays through an extension core, which handles the whole blocks of the delay. The receiving neuron core handles the remainder.
d_ext = 1.6 ms × ⌊d_total / (1.6 ms)⌋
Here d_total is the connection delay and d_ext is the part handled by the extension core. The floor brackets select the largest whole number of 1.6 ms blocks that fit in d_total.
d_rem = d_total − d_ext
The remainder d_rem is the delay still to be handled locally. An extension core supports up to 8 whole blocks, giving 12.8 ms of extended delay. With the local delay included, the authors deem the available total of 14.4 ms sufficient for this circuit. The paper describes chaining extensions as a possibility for longer delays.
Choosing how precisely to store weights
NEST uses double-precision floating-point values for its parameters and dynamic state. SpiNNaker uses signed fixed-point arithmetic for its neuron computation. The hardware also stores a synapse as a compact 32-bit word containing the target’s local index, its delay, its synapse type, and its weight. The weight occupies 16 bits. The positions available for the whole and fractional parts of a weight determine both the range and how finely a current can be represented. This matters for a single connection and for the accumulated input, since multiple weights can be added to the same buffer position.
The earlier implementation allocated enough range to hold the sum of all incoming weights, even if they arrived together. For a circuit with many synapses and relatively low firing rates, that rule can use substantial range for an extreme event and leave too little precision for everyday inputs. The revised method estimates how large an accumulation is likely to be. It uses a Poisson approximation for counts of incoming spikes in an update interval, a distribution of incoming weights, and a margin measured in standard deviations. This is a sizing assumption for the numerical representation. The recurrent circuit is free to produce other patterns of arrival.
The paper’s calculation separates variation in how many weights are added from variation in the weights themselves.
vᵣ = n w_mean²
Here vᵣ is the variance contribution from the varying number of spike arrivals, n is the expected count of incoming spikes per step, and w_mean is the mean incoming weight. This part reflects the change in the sum that would come from different numbers of arrivals even if every weight had its mean value.
U = round(n + 3√n)
The quantity U is the rounded cutoff used in the expression for the weight variance contribution. The function round returns the nearest integer, √ is the square root, and 3 sets the offset above n in units of the square root of the expected count.
v_w = e⁻ⁿ n w_var (−nᵁ + eⁿ Γ_inc(1 + U, n)) / Γ(1 + U)
The quantity v_w is the contribution used for variability in incoming weights. The symbol w_var is the variance of those weights, e is the base of the natural exponential, and nᵁ is n raised to the cutoff U. The function Γ is the gamma function, and Γ_inc is the incomplete gamma function used in the paper’s expression. The arguments of the latter are 1 + U and n. These terms bring the assumed distribution of arrival counts into the estimate of the variability of the accumulated weights.
M = n w_mean + σ√(vᵣ + v_w)
Here M is the estimated upper value to accommodate in a delay-buffer position. The first term is the expected weight sum. The square root converts the two variance contributions to a standard deviation of the sum, and σ is the safety margin expressed in standard deviations. The authors set σ to 5. For recurrent neurons they use an expected rate of 30 spikes/s in this sizing calculation. For the external Poisson generators they use the known rates.
A population’s incoming connectivity determines whether its weights use 6 integer bits and 10 fractional bits or 7 integer bits and 9 fractional bits. The authors illustrate the consequence using 0.0878 nA. It is stored as 0.0869140625 nA with 10 fractional bits and as 0.0859375 nA with 9. In the single-neuron tests all 16 weight bits are used for the fractional part, yielding 0.087799072265625 nA for the same example. The difference in bit allocation matters when interpreting the isolated-neuron test alongside the full network. To catch arrivals that exceed the estimate in practice, the software counts buffer overflows and reports them at the end of a run.
Delivering spikes and collecting recordings
A network can have enough capacity to carry its average traffic and still drop packets if the senders all transmit together. On SpiNNaker, timers and the ordering of work within a step made many processors likely to start sending at nearly the same time. The external Poisson generators and the cores that extend delays had particularly little incoming work to shift their transmission times. The authors give each core a random initial wait and pace subsequent sends, reserving part of the wall-clock interval for receivers to process the messages. This changes the timing of packet transmission inside the machine’s schedule while the circuit still advances at the chosen biological step.
The external inputs also need a placement adjustment. A Poisson source in this circuit supplies an individual neuron. The previous arrangement was better suited to a received spike that activated several local synapses, so that fetching a block of synaptic data served multiple targets. For one-to-one connections, the placement software now tries to put the source and target populations on the same chip. It stores their connection data in local processor memory, avoiding a transfer from shared memory for each such event. The software is also extended to allow more than one Poisson spike from a source within an update interval.
The final implementation issue is recording. SpiNNaker has a limited amount of memory for accumulating output. The run is divided according to the amount of recording that fits. When that memory is about to fill, execution pauses while the host retrieves the data and then resumes. This makes it possible to cover the requested biological duration without storing every recording on the boards at once.
Measuring error and energy
For a single neuron, the paper uses spike-train cross-correlations, Pearson correlations between membrane voltages sampled on the update grid, accumulated spike lead or lag, and residual timing error. Spike-train cross-correlation shows whether a spike in one run tends to be near a spike in the reference and whether the alignment is shifted. Its histogram bins have a width of half an integration step. Voltage correlation measures how closely the sampled traces vary together. The other measures directly compare ordinal spike times.
N = min(N_precise, N_discrete)
Here N_precise and N_discrete are the numbers of output spikes in the precise and grid-based runs, respectively. The grid-based run can be SpiNNaker or grid-based NEST. The function min selects the smaller count, so N is the number of spikes that can be paired in order.
L = (t_discrete(N) − t_precise(N)) / t_discrete(N)
The quantity L is the accumulated fractional lead or lag. The functions t_discrete and t_precise return the times of spikes by their order in each run. Evaluated at N, they give the final times included in the comparison. A positive L indicates that the grid-based run ended this sequence later than the reference. A negative L indicates a lead. The result can be expressed as a percentage.
t_discrete*(i) = t_discrete(i) × t_precise(N) / t_discrete(N)
The index i denotes an ordinal spike in the paired sequence. The asterisk marks its adjusted time. The scaling aligns the last paired spike with its counterpart in the reference and compensates for the accumulated timing difference before the residual error is measured.
RMSE = √(∑ᵢ₌₁ᴺ (t_discrete*(i) − t_precise(i))² / N)
RMSE is the root mean square error of the adjusted times. The summation covers all paired spikes from the first through N. Each squared difference contributes to the average inside the square root. This gives a timing error after removing the overall lead or lag by the specified time adjustment.
The network comparison works with distributions for each population. A neuron’s firing rate averages its observed spike count over the analysis interval. The coefficient of variation of interspike intervals, abbreviated CV ISI, divides the standard deviation of those intervals by their mean. Pearson correlations between spike trains are computed from spike counts in 2 ms bins for distinct pairs in a sample of 200 neurons per population. The bin duration matches the refractory period. The sample lets the authors measure pairwise activity without using every cell in the population for that calculation.
The authors construct histograms with bin widths based on the precise-spike reference. The Freedman–Diaconis rule adapts the width to both the spread of the observations and the size of the sample.
bin width = 2 IQR(x) / ∛n
Here x is the set of reference observations for one statistic in one population. IQR(x) is the interquartile range, the spread between the lower and upper quartiles. The n in this equation is the number of observations, and ∛n is its cube root. The authors smooth the empirical distributions with Gaussian kernel density estimation. The respective bandwidths are 0.3 s⁻¹ for firing rates, 0.04 for CV ISI, and 0.002 for correlations.
The Kullback–Leibler divergence, written D_KL(P‖Q), compares a reference distribution P with a comparator Q. Reference probability gives more influence to portions of the distribution that matter more to the reference. A mismatch is larger when a region with substantial reference probability has much less probability in the comparator. The direction matters because exchanging P and Q changes which distribution supplies that weighting. The authors ignore bins where the normalized values are below 10⁻¹⁵ to prevent very small values from dominating the calculation. They interpret the sizes of the divergences because the simulation methods already differ by design.
For performance, NEST runs with one MPI process per compute node and OpenMP threads inside the process. MPI handles communication between processes and OpenMP supplies parallel work within a node. NEST calls the resulting parallel workers virtual processes.
vp = m × p
Here vp is the total number of virtual processes, m is the number of MPI processes, and p is the number of threads per process. The workload stays fixed as the number of workers rises, a test known as strong scaling. Threads are placed on separate cores first. Once those are occupied, hyperthreading uses the second hardware thread on each core.
The authors match timestamps in the scripts to the cluster’s power readings. They read active power approximately once per second and distinguish construction, state propagation, and output. For SpiNNaker they measure energy at the rack mains socket, keep other boards off, and take readings for the execution phases. A rack measurement with all boards off establishes a baseline. The meter’s resolution is 0.01 kWh, so a short interval provides a less precise average power estimate than a long interval.
ΔP = ΔE / T
The symbol ΔE is the energy reading’s uncertainty from the meter’s resolution, T is the duration of the measured phase, and ΔP is the corresponding uncertainty in average power. Propagation receives a longer measurement interval to improve the estimate.
The normalized energy measure uses the energy during state propagation and the number of synaptic events in that phase.
energy per synaptic event = E_prop / N_tspikes
Here E_prop is the integrated power over the propagation interval. The denominator N_tspikes counts transmitted spike events by weighting each emitted spike by the number of outgoing connections from its sender. A spike from a neuron with many synapses contributes correspondingly more events. This denominator connects the energy measurement to the work performed within the circuit.
Experiments and results
The isolated neuron
At the 0.1 ms step, the example subthreshold voltage traces from SpiNNaker, grid-based NEST, and precise-spike NEST are almost superimposed. The measured voltage correlations also indicate close agreement at that resolution. At 1 ms the direction of the differences becomes easier to see. SpiNNaker usually reaches an output spike slightly before the reference, while grid-based NEST tends to place the spike slightly after it. In the spike cross-correlation histograms the coarser input grid also creates multiple peaks. The paper attributes them to the 1,000 Hz rhythm imposed by input spikes constrained to that grid.
The coarser timestep exposes a difference between the two input rates. Under the lower-rate setting of 8,000 input spikes/s, grid-based NEST does better on voltage correlation, accumulated timing displacement, and residual spike-timing precision. Under the higher-rate setting of 10,000 input spikes/s, SpiNNaker does better on all of those measures. The comparison is against precise-spike NEST in both cases. The paper shows the results as distributions across the 10 runs per setting, with the median and interquartile range. The ranking at the coarser step depends on how the neuron is driven, even with the same underlying electrical parameters.
The authors relate NEST’s lag to assigning a spike to the next grid point. They investigate SpiNNaker’s lead with an additional experiment on the voltage response to a single input spike. That comparison shows that a larger voltage excursion can come from the numerical representation and from the separate synaptic and membrane updates. The test helps explain why the timing behavior can differ, even with spike input held fixed and the same nominal voltage threshold.
The full cortical circuit
SpiNNaker ran the circuit without dropping spikes at a slowdown of 20 relative to real time. The chosen weight resolutions also avoided observed overflows in the input buffers during the reported runs. These checks matter to the accuracy comparison. An input that is lost in transit, or an accumulated weight that exceeds the buffer’s range, could change the activity even if the neuron integration itself is adequate. The reported comparisons concern a configuration in which those faults were absent.
The network experiments compare grid-based NEST and SpiNNaker with precise-spike NEST under both DC and Poisson input. The raster plots display spike times for 5% of the neurons as a visual sample. The quantitative distributions use firing rates over the last 9 s of the runs and the corresponding interspike-interval statistics. The correlations use the sample of 200 neurons per population and the 2 ms counting bins. The raster plots show similar overall activity across methods, and the distributions match closely for all populations in the reported comparisons. This includes the distinctions between the excitatory and inhibitory populations and between layers that the circuit is meant to preserve.
The authors then test how large a discrepancy is ordinary for this circuit. They run precise-spike NEST with Poisson input under different random seeds, varying the connection draws, starting membrane voltages, and external inputs. They use three runs, each lasting 10 s, again removing the first 1 s. The divergences across these runs are comparable in size to the divergences when one of the simulators or timing methods changes along with the seed. Thus the tested implementation differences have a small apparent effect on the selected population statistics relative to the variation already present in repeated simulations. The divergences measure distributions over a finite recording interval, so the result is most directly about the reproducibility of those statistics at that duration.
Propagation time and strong scaling
The performance experiments time the DC-driven circuit. On NEST the authors scale from a single worker up to 32 nodes, with 48 threads per node at the largest configuration. Giving the same circuit more workers shortens propagation at first. The improvement eventually levels off around 3 times real time. The curve has a jump after 24 virtual processes, coinciding with the start of hyperthreading on a node. Additional threads placed on already occupied cores change the kind of computing resource available to each worker.
Construction and propagation behave differently as the cluster allocation increases. Construction continues to get faster across the full range of nodes overall, although the paper reports an intermediate increase beginning at 15 virtual processes. Propagation reaches its plateau earlier. This difference is visible because the authors keep separate timestamps for building neurons and connections, moving the dynamical state forward, and writing output. For the measured traces on one and two nodes, the construction and propagation phases each account for a substantial portion of the energy during the script.
SpiNNaker takes 200 seconds to advance the state by 10 seconds of biological time. That is the propagation stage. The host time needed to map the circuit, generate the data, and load it is accounted for separately in the paper’s discussion of the execution phases. The NEST result at 144 virtual processes is included below because it is the setting that minimizes the measured propagation energy when the InfiniBand switch is counted. It also shows that NEST’s most energy-efficient allocation is slower than the plateau reached with more workers.
Propagation slowdown for the DC-driven cortical microcircuit
NEST reaches the shortest propagation time at its scaling plateau.
The numbers
| System or setting | times real time |
|---|---|
| NEST at the runtime plateau (this paper) | 3 |
| NEST at the energy minimum including InfiniBand | 4.6 |
| SpiNNaker without spike loss | 20 |
The SpiNNaker runtime also depends on steps before propagation that matter for practical turnaround. Creating connection data on the host took more than 8 h with the earlier organization. Generating the connections core by core reduced this phase to around 1 h. The timing pertains to data generation, as distinct from running the neuron equations or reading recordings back. It shows how much of the work of porting the circuit concerned making the initial configuration tractable.
Power and energy per event
The power drawn by the NEST compute nodes rises as the authors add virtual processes. More parallel resources finish the simulation sooner but can draw more power during that shorter time. To locate the energy minimum the paper integrates the power over the propagation interval. Counting only compute nodes, the smallest propagation energy occurs at 96 virtual processes on two nodes and corresponds to 4.4 µJ per synaptic event.
Including the InfiniBand switch changes that result. The switch adds power to the accounting throughout propagation, so a longer run incurs the added draw for longer. This is more consequential at low worker counts, when the switch forms a larger part of the total. With it included, the minimum occurs at 144 virtual processes, where propagation takes about 4.6 times real time and uses 5.8 µJ per synaptic event. The paper estimates the contributions of the service nodes and Ethernet switches separately. The InfiniBand-adjusted result is the one paired with SpiNNaker in the headline propagation comparison.
Energy per synaptic event during propagation of the DC-driven cortical microcircuit
The best NEST setting with InfiniBand included and the SpiNNaker run have similar event energy.
The numbers
| System or setting | µJ per synaptic event |
|---|---|
| NEST at 144 virtual processes including InfiniBand (this paper) | 5.8 |
| SpiNNaker without spike loss | 5.9 |
On SpiNNaker the authors derive average power by dividing the measured energy for an execution phase by its duration. To refine the estimate for propagation they use a run covering 1,000 s of biological time. They measure 277 W for that phase. An estimate based on the number of boards and chips used gives 289 W, close to the measurement at the level of that calculation. The estimate draws on earlier figures of approximately 1 W for a fully loaded chip and 12 W of overhead for a board apart from its chips. The authors take the agreement as evidence that unused chips make a small contribution to the measured draw, while the rack reading itself covers them.
The rack power profile also shows low activity during mapping and data generation, when much of the work takes place on the host. Power rises when the boards propagate the network. The combination of a longer run and a different level of power draw gives SpiNNaker a propagation energy per event close to NEST’s adjusted minimum. This similarity depends on which parts of each system are included and which NEST allocation is chosen. The comparisons answer distinct questions about the time to advance the circuit, the power while advancing it, and the energy charged to that work.
What the ablations show
Separating numerical representation from the integration rule
The paper’s most direct numerical control compares the voltage response to a single incoming spike under alternative implementations on SpiNNaker. The authors compare fixed-point and single-precision floating-point arithmetic while keeping the separated synapse and membrane updates. They then compare the separated update with exact coupled integration using the floating-point representation. Because the input is a single event, the resulting curves isolate changes in the voltage excursion without the complication of different recurrent spike sequences.
With the separated update, changing the numeric type changes the peak region of the voltage response. The isolated weight in the fixed-point implementation is slightly smaller than its floating-point counterpart, yet the membrane’s response can be larger. The authors attribute that behavior to the finite resolution of the other quantities in the neuron calculation. They also observe that the separated integration gives consistently higher voltages in response to the spike than exact integration. At the 0.1 ms timestep the numeric type appears to have the larger effect of the two in the portion of the trace they examine. Double-precision floating-point responses are visually indistinguishable from the single-precision responses in that comparison.
These controls give plausible sources for the early firing of the isolated SpiNNaker neuron. They also set the scope of that explanation. The excursion after a single input illustrates how a numerical change can move a voltage toward the threshold earlier. The study measures the resulting spike behavior separately under sustained Poisson drive, where threshold crossings, voltage resets, and refractory periods repeatedly affect the trace.
Varying the time step and the balance of activity
The single-neuron tests alter time resolution and input rate independently. With the finer step, the traces are close across methods and the grid contributes less visible displacement in the example. With the coarser step, the distinction between the low- and high-rate tests is important. A low-rate neuron spends more time evolving below threshold, where NEST’s exact subthreshold solution is an advantage. In the higher-rate setting, spike generation and reset contribute more heavily to the overall comparison, and SpiNNaker ranks better on the reported measures at 1 ms. The authors present the role of subthreshold activity as an explanation for the low-rate result.
This comparison also illustrates why the paper separates timing drift from residual timing variability. The accumulated lead or lag measures how far the paired sequences have separated by their last compared spike. Rescaling the grid-based sequence to align that spike gives a second measure of differences in the timing within the sequence. The voltage correlations ask a separate question about how the dynamics evolve between spikes. The three views make it possible to see whether an apparent difference comes from an overall rate discrepancy, local timing variation, or the trajectory of the membrane.
Changing external input and random realizations
Replacing Poisson input with its mean DC current removes externally generated fluctuations while retaining the same mean drive. Agreement across simulators appears under both versions of the workload. This is useful because the Poisson generator on SpiNNaker had required changes to placement, input processing, and support for sending multiple spikes in a step. The agreement under Poisson drive checks the finished system in the condition that exercises those components. The DC case provides a simpler input configuration for the main performance benchmark.
Changing the random seed while retaining precise-spike NEST gives the statistical accuracy result its scale. The authors calculate divergences using one precise-spike realization as the reference and summarize the comparisons to the other precise-spike runs. Then they compare divergences from grid-based NEST and SpiNNaker to a precise-spike reference. The spread associated with seeds in the reference solver is comparable to the differences associated with changing method and seed together. In the scope of the reported trials, the detectable method effect is small relative to variation between finite runs of the circuit.
This control changes the connection draws, starting voltages, and Poisson input together. It provides a baseline for the combined effect of those sources of variability. It cannot identify which source drives a particular difference in a population’s firing rates, irregularity, or correlations. Its strength is that it gives the cross-simulator differences a directly relevant point of comparison using the same recording duration and analysis.
Finding the operating point
The authors vary SpiNNaker’s slowdown to find a schedule that can handle the circuit’s traffic and computation. They also report a direct before-and-after outcome for packet pacing. Before the scheduling change, some packets were lost. After the change, the reported simulation lost none. The test shows why the schedule inside each update interval matters even when the average traffic looks manageable. The authors check buffer overflows separately because delivery of a packet and adequate storage for its resulting weight are distinct requirements.
The NEST scaling experiment controls the amount of biological work and changes the computing allocation. Its timing curve shows where more parallelism stops buying substantial propagation speed. Its energy curve has a minimum at an intermediate allocation. The comparison with and without the InfiniBand offset then shows that the measured minimum moves when shared infrastructure enters the accounting. Read together, these analyses identify which allocation answers a speed question and which answers an energy question under the specified measurement boundaries.
Limitations
Limits identified by the authors
The authors describe comparable accuracy for the measures they chose and the behavior expected of this microcircuit. A different simulation might require accurate timing of individual spikes, other statistics of correlated activity, or a more detailed treatment of how synaptic effects evolve. The paper treats the choice of accuracy measures and tolerances as specific to the scientific use. Its reference is a numerical solution of the same equations, with precise spike timing, so the comparison establishes agreement in simulation. The anatomical and physiological grounding of the circuit comes from its prior specification.
The circuit uses point neurons and static, current-based synapses. A point neuron has one membrane voltage in the simulation, and the synapses in this experiment retain fixed weights. More detailed cellular descriptions, conductance-dependent currents, and changing synaptic weights can increase the work per event and per neuron update. The authors cite prior research reporting that pairwise spike-timing-dependent plasticity with additive weight dependence cuts both the input rates and the neuron counts that each core can support sevenfold with the software stack in use at the time, and twofold.5 with a synapse-centric mapping. Those figures depend on the implementation and plasticity settings. They are context for why the cortical benchmark’s capacity and energy results cannot be applied directly to more complex circuits.
The authors also leave scaling with network size open. They expect that the limited increase in synapses per neuron beyond a full-density cortical patch could support larger networks by adding resources. They discuss the possibility of weak scaling, where the problem grows along with the amount of hardware and the local work per processor remains comparable. The paper measures strong scaling for NEST with the network size fixed and reports a particular SpiNNaker deployment. It does not measure memory, runtime, or energy across progressively larger cortical networks on SpiNNaker.
The energy accounting focuses on propagation. For SpiNNaker, the headline calculation excludes the host computer and external Ethernet network. For NEST, the per-event calculation excludes the service nodes, storage, and Ethernet switches, and the paper reports the effect of including InfiniBand separately. Both sides exclude room cooling. The SpiNNaker meter also cannot isolate each unused core or chip, and the cluster meters measure whole nodes, including cores that may be idle when a node is partly assigned. The paper explains these boundaries and points out that preliminary runs to find an efficient configuration would themselves add to the total energy spent on a new problem.
Generating and loading connection data remain large costs for SpiNNaker. The authors propose generating connectivity on its processors so that the host transmits a statistical description of the connections and the machine instantiates them in parallel. They also discuss placing synaptic work on separate cores from the cores carrying out neuron updates. They estimate that further optimization could permit the circuit to fit on around 320 cores and reach 30 nJ per event under their projected conditions. That figure belongs to a projected real-time configuration. The measured value of 5.9 µJ per event belongs to the six-board experiment at a slowdown of 20.
Limits of the comparisons
The network comparisons use independent realizations and summarize the resulting activity by population. Their most direct conclusion concerns the agreement of those distributions. Individual cells and specific cell pairs need not show the same patterns across realizations. Similar pairwise correlation distributions also leave room for differences in higher-order coordination or the organization of activity at other time scales. The isolated-neuron experiments provide a finer timing check, but their assumptions include grid-aligned inputs and a level of weight precision that differs from the dense network setup.
The seed control estimates the ordinary variability of the measured statistics using a small set of reference runs. The cross-method comparisons include seed variation as well as a change of solver or platform. They therefore indicate the scale of the combined differences, instead of a separate numerical error estimate for each platform with an identical connectivity realization and identical starting state. The correlation calculation also uses a sample from each population, and the divergence results depend on the chosen bins and smoothing. These are defined measurement choices that make the benchmark tractable. A rare event or a brief timing effect can have little influence on the resulting histograms.
The absence of reported packet loss and overflow establishes a reliable operating point for the tested workload and runs. The estimated range for accumulated synaptic input still allows the possibility of overflow. The authors note that synchronous input can require allocating more range at the expense of precision. Longer recordings or activity that concentrates arrivals differently may exercise this tradeoff in ways the benchmark does not test. Similarly, the fixed timestep and the population placement help explain the observed cost on this circuit, while other connectivity patterns could lead to different routing constraints and different throughput.
Finally, the close energy figures compare specific equipment and configurations under a specified accounting convention. The accuracy tests span both steady and fluctuating input, while the principal performance comparison uses DC. The paper does not give an equivalent energy comparison for the Poisson-driven condition, for a circuit with plastic synapses, or for other hardware allocations on SpiNNaker. An end-to-end timing or energy measurement would also have to include the parts of construction, loading, and output required by the scientific run being evaluated.
What came after
No later citing study is identified for this comparison. The paper describes follow-up work that was in progress or proposed at the time. One direction was to generate connections on the SpiNNaker processors. By transferring the parameters used to draw the synapses and distributing generation across the machine, the authors expected to reduce both the host’s preparation time and the amount of data that had to be loaded.
The other direction was to incorporate synapse-centric mapping into the SpiNNaker software. The authors point to earlier work by Knight and Furber showing that this organization could better accommodate a short timestep and high incoming synapse counts. Applied to the microcircuit, the proposed change would address both the work that must fit inside each update interval and the number of boards across which the circuit was spread. The follow-up questions were whether these changes could bring propagation to real time, preserve the measured firing statistics, and reduce the energy required for the same biological workload.
Cite
Cite as Sacha Jennifer van Albada, Andrew G. D. Rowley, Johanna Senk, Michael Hopkins, Maximilian Schmidt, Alan Barry Stokes, David Lester, Markus Diesmann and Steve B. Furber. 2018. Performance Comparison of the Digital Neuromorphic Hardware SpiNNaker and the Neural Network Simulation Software NEST for a Full-Scale Cortical Microcircuit Model. Frontiers in Neuroscience.
@inproceedings{albada2018performance,
title = {{Performance Comparison of the Digital Neuromorphic Hardware SpiNNaker and the Neural Network Simulation Software NEST for a Full-Scale Cortical Microcircuit Model}},
author = {Sacha Jennifer {van Albada}, Andrew G. D. Rowley, Johanna Senk, Michael Hopkins, Maximilian Schmidt, Alan Barry Stokes, David Lester, Markus Diesmann and Steve B. Furber},
booktitle = {Frontiers in Neuroscience},
year = {2018},
doi = {10.3389/fnins.2018.00291},
url = {https://doi.org/10.3389/fnins.2018.00291}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/albada-2018-performance-comparison-digital-neuromorphic-hardware/