Paper commentary
The Heidelberg spiking datasets for the systematic evaluation of spiking neural networks
Heidelberg spiking datasets let researchers compare spiking neural networks fairly
- Problem Spiking neural networks lack a shared benchmark, because existing tasks are saturated, license-restricted, or need heavy preprocessing. Converting rate-coded data like MNIST into spikes also leaves design choices to each modeler.
- Method The Heidelberg spiking datasets convert audio into spike trains with a fixed model of the inner ear. Users never choose the conversion, so results are comparable across groups.
- Results Classifiers trained on the spike timing reach 85.7 percent on the Spiking Heidelberg Digits with an LSTM. Spike count features alone reach only 20 percent on the Spiking Speech Commands.

Table 1 :Performance comparison
Original paper · CC BY 4.0 · Benjamin Cramer, Yannik Stradmann, Johannes Schemmel, Friedemann Zenke · The Heidelberg spiking datasets for the systematic evaluation of spiking neural networks · Original paper figure · Extracted the figure area from page 10 of the original PDF.Why shared spiking benchmarks are missing
Spiking networks are hard to compare because most groups test them on private tasks tailored to their own problem. The paper lists four reasons an existing benchmark may fall short: it may be unobtainable, tailored, saturated, or require extensive preprocessing.
Rate-coded tasks such as MNIST are easy to find, but MNIST has to be converted into spikes before an SNN can use it. That conversion step leaves fundamental design decisions to each modeler, which puts comparability at risk. Steady-state rate-coding networks can be tested on standard machine learning datasets such as MNIST, CIFAR10 and SVHN.
Temporal tasks fare no better, because the temporal XOR needs a hidden layer yet is already saturated. A simple SNN without hidden layers cannot solve the temporal XOR, which is why it is used to show hidden-layer learning. Its low dimensionality and small number of input patterns limit how well it can compare training methods. Tasks based on precisely timed output spike trains lack a non-random structure, so they offer limited real-world relevance.
Neuromorphic datasets fall short too, since Neuromorphic MNIST is nearing saturation because it builds on MNIST. The DASDIGITS dataset was created from TIDIGITS with a 64 channel silicon cochlea, but its license terms are unclear. The DVS128 Gesture stream needs extensive cutting, and its 128×128 pixel size is computationally expensive without downsampling.
The authors therefore turned to audio, whose natural temporal dimension and lower bandwidth keep computational demands modest.
From recorded audio to spike trains
The audio-to-spike conversion runs every recording through a model of the inner ear, so the spikes are fixed by the dataset rather than by each user. The model has three stages that copy parts of the early auditory pathway, and each stage feeds the next. The authors built the model to perform signal processing steps similar to customary spoken language processing applications.
Because the user never chooses the conversion, it sidesteps user-specific audio-to-spike transformations that can confound comparability.
A hydrodynamic basilar membrane model comes first and causes spatial frequency dispersion. The basilar membrane model passes its separated frequencies on to the hair cell stage.
A transmitter pool based hair cell model converts the separated frequencies into firing rates. The hair cell model adds refractory effects, and a refractory period denies any event within 1 ms of a previous event. At each position of the basilar membrane, the authors simulated 40 independent hair cells. The transmitter flow uses four pools: free transmitter, cleft, store and loss, with reprocessing and reuptake between them.
A layer of bushy cells integrates the 40 hair cell outputs of each channel, which increases phase locking. The bushy cell layer also reduces the total number of spikes. There are 700 bushy cells, and the authors implemented them as standard LIF neurons instead of the original bushy cell model. Each bushy cell has no recurrent connections, and its feed-forward weights are set to 0.54 divided by 40.
The model parameters were chosen to mimic biological findings rather than fitted to the classification task. Table 2 lists these parameters, and the authors use them as they are, so the number of free parameters stays small. The authors didn't tune the parameters on the classification task, so the spikes stay independent of the classifier.

Table 2 :Model parameters
Original paper · CC BY 4.0The Heidelberg Digits and Speech Commands datasets
The Heidelberg Digits (HD) consist of approximately 10k high-quality recordings of spoken digits, zero to nine, in English and German. Recordings took place in a sound-shielded room at the Heidelberg University Hospital, using three microphones.
A manual pre-selection and cutting step came first, followed by conversion to FLAC format and external mastering. Speaker-dependent thresholds and release times guided the cutting of the digit sequences, and the loss function aimed for 10 single files with the lowest possible threshold. Two speakers were held out exclusively for the test set, so the test set tests generalization across speakers.
The rest of the test set was filled with 5 % of the trials from speakers who also appear in the training set.
The authors used version 0.02, with 24 command words repeated about five times per speaker and ten auxiliary words repeated roughly once. The authors consider top-one classification over all 35 classes, which is harder than the original keyword spotting task with 12 classes. The data can still serve the original keyword spotting use, because the authors don't change the intended task design.
Both spiking datasets come from the same audio-to-spike conversion, so the spikes are fixed by the dataset, not by each user. The data is stored in the Hierarchical Data Format 5 (HDF5), with one file for each partition and dataset. Each file holds spike times and spike units as variable-length arrays, plus digit labels, and speaker information sits under extra.
The meta_info group with gender, age and body height exists only for the Spiking Heidelberg Digits (SHD).
Do spike times carry the signal?
The authors test whether timing matters by removing it first and training classifiers on what remains. They collapse each sample into spike count patterns, which by design hold no temporal information about the stimuli. Linear and nonlinear support vector machines are then trained on these counts and scored on the respective test sets. On the Spiking Speech Commands (SSC), overfitting is less pronounced, but the overall test accuracy drops to 20 %.
Polynomial kernels up to degree 3 overfit less, but they generalize across speakers worse than the linear kernel. The authors conclude that spike counts alone are not sufficient for high accuracy on these datasets.
Next, the authors give classifiers explicit access to spike times by training LSTMs on temporal histograms of spiking activity. On SHD, the LSTM reaches (85.7 ± 1.4) %, substantially higher than the best performing SVM. On SSC, the LSTM test accuracy of (75.0 ± 0.2) % is more than twice the best spike count classifier. The LSTM overfits slightly more on SSC than on SHD.
Timing information is therefore useful, and the datasets stay open for comparing SNNs up to these accuracy values. Next, the authors train SNNs of LIF neurons with BPTT, which requires surrogate gradients because spiking is discontinuous.
Training LIF networks with surrogate gradients
The core problem is that the spike threshold is a hard step, so its derivative is zero almost everywhere and gradients are ill-defined. The authors keep the hard spiking nonlinearity in the forward pass and replace only its derivative during backpropagation through time. Because the neuron model itself stays unchanged, the networks still spike in the forward pass exactly as the LIF model defines.
Each LIF neuron's membrane potential u(l)i decays toward the leak potential and integrates a synaptic current that is itself an exponentially decaying trace. A spike is emitted when the potential reaches the threshold, and the output spike train is the Heaviside function of the potential minus the threshold. In discrete time, with leak potential 0 and threshold 1, the update reads u(l)i[n+1] = λ u(l)i[n](1 − S(l)i[n]) + (1 − λ) I(l)i[n].
Here λ = exp(−δt/τmem), so the factor (1 − S(l)i[n]) resets the potential after each spike.
The surrogate derivative is a fast sigmoid, σ(u) = u / (1 + β|u|), with steepness parameter β. The weights W(l)ij are updated by gradient descent with learning rate η, where the goal is to minimize the cost function L over the dataset. The weights start from Kaiming's uniform initialization, drawn from U(−√k, √k) with k set to the inverse of the number of afferent connections.
The cross-entropy loss is applied to the readout layer and reads each readout unit at one chosen time step. The max-over-time loss picks the step of maximal membrane potential for each readout unit, while the last-time-step loss always uses the final step T. Two spike-count regularizers keep firing rates from becoming pathologically low or high.
The Adamax optimizer minimizes the cross-entropy loss.
The authors chose the max-over-time loss for SNNs and LSTMs, because the LSTM validation accuracy rose from (95.4 ± 1.7) % to (97.2 ± 0.9) % when they switched to it. Last-time-step training worked well for LSTMs but poorly for SNNs, which the authors read as a sign that the time constants were too short to hold the needed information.
How sensitive is training to β and the learning rate
Surrogate gradient learning adds a new hyperparameter, the steepness β of the surrogate derivative. Because a change in β may require a different optimal learning rate η, the authors ran a grid search over both. The search used a single-layer RSNN trained on SHD. Accuracy plateaus stayed stable over a large range of sensible β and η combinations.
Only for small β did accuracy drop dramatically, while it decreased only slowly for high values. The learning rate had hardly any effect on peak performance for the tested values.
Convergence speed, in contrast, depended heavily on both η and β. The number of epochs needed to reach an accuracy above 0.75 strongly depends on both β and η. With this choice, the RSNN's validation accuracy peaked after about 150 epochs. Additional training only raised training accuracy and did not improve generalization.
Which spiking architectures perform best
Feed-forward SNNs with one, two or three hidden layers of 128 LIF neurons were tested, and adding layers did not notably help on SHD. On the SSC, the feed-forward SNNs improved monotonically, from (32.5 ± 0.5) % for one layer to (41.0 ± 0.5) % for three layers. Feed-forward SNNs also reached slightly lower accuracy than the SVMs on SHD, so the spiking feed-forward baseline sits below the kernel machines there.
The single-layer RSNN reached (71.4 ± 1.9) % on SHD and (50.9 ± 1.1) % on SSC, above every feed-forward SNN. The RSNN still trailed the LSTM, which reached (85.7 ± 1.4) % on SHD and (75.0 ± 0.2) % on SSC. RSNNs showed higher overfitting than the LSTM, and they generalized less well across speakers.
Scaling the RSNN to 1024 neurons raised accuracy to (76.5 ± 1.0) % on SHD. Merging 10 neighboring channels, so that 700 inputs became 70, gave (72.2 ± 1.6) % on test. Rescaling all time constants by a factor of 4, to τmem = 80 ms and τsyn = 40 ms, lifted test accuracy to (79.9 ± 2.8) %. Input jitter with σu = 20 channels reached (78.7 ± 2.2) % on test, because the added noise reduced overfitting.
Combining the strategies gave (83.2 ± 1.3) % on SHD, above the effect of any single change.
The SNU, trained under the same best-effort conditions, reached (79.0 ± 1.6) % on SHD. That is slightly below the LIF network, although the SNU uses delta synapses and a different surrogate derivative.
Speaker and cross-dataset generalization
Speakers four and five appear only in the SHD test set, so their per-speaker accuracy shows how well a model generalizes. The authors compared each speaker's accuracy against all other speakers, and every classifier dropped for speakers four and five. CNNs generalized best with a drop of only 8 %, followed by the LSTMs with 10 %.
The authors take this to mean that the composition of the SHD test set carries information about speaker generalization.
For cross-dataset tests, networks trained on the full SHD were tested on the English digits of the SSC, and networks trained on SSC were tested on the English digits of SHD. The English digits zero to nine were the common subset used for testing, so both datasets were restricted to them. All SHD-trained architectures stayed above chance on the SSC digits, although accuracy on those digits was substantially lower than on the SSC test set.
SSC-trained networks generalized better to SHD, which the authors found somewhat surprising given the reverse direction. Recurrent architectures again reached the highest performance among all tested SNNs.
Limitations
Hyperparameter tuning was examined in depth only for β and η, using a single-layer RSNN trained on SHD. Accuracy stayed on plateaus over a large range of β and η, but convergence speed depended heavily on both values.
The SHD test set holds only two held-out speakers, so per-speaker conclusions rest on very few people. The SNU baseline was run only under the best-effort conditions, with 1024 neurons and data augmentation. The authors considered only SNNs with fixed, finite time constants on the order of milliseconds, and they note this is not a requirement.
They didn't evaluate the original 12-class keyword spotting setup, only top one classification over all 35 classes. The authors state that the present datasets may not prove final, since future developments are hard to foresee.
Paper info
- Authors
- Benjamin Cramer, Yannik Stradmann, Johannes Schemmel, Friedemann Zenke
- Venue
- arXiv · Preprint
- First published
- 2019-10-16
- Added
- 2026-11-6
- Updated
- 2020-10-23
- Version
- v3
- arXiv
- 1910.07407
- DOI
- 10.1109/tnnls.2020.3044364
- Category
- cs.NE · cs.LG · q-bio.NC
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
Spiking neural networks are the basis of versatile and power-efficient information processing in the brain. Although we currently lack a detailed understanding of how these networks compute, recently developed optimization techniques allow us to instantiate increasingly complex functional spiking neural networks in-silico. These methods hold the promise to build more efficient non-von-Neumann computing hardware and will offer new vistas in the quest of unraveling brain circuit function. To accelerate the development of such methods, objective ways to compare their performance are indispensable. Presently, however, there are no widely accepted means for comparing the computational performance of spiking neural networks. To address this issue, we introduce two spike-based classification datasets, broadly applicable to benchmark both software and neuromorphic hardware implementations of spiking neural networks. To accomplish this, we developed a general audio-to-spiking conversion procedure inspired by neurophysiology. Further, we applied this conversion to an existing and a novel speech dataset. The latter is the free, high-fidelity, and word-level aligned Heidelberg digit dataset that we created specifically for this study. By training a range of conventional and spiking classifiers, we show that leveraging spike timing information within these datasets is essential for good classification accuracy. These results serve as the first reference for future performance comparisons of spiking neural networks.
Quote from the paper
Benjamin Cramer, Yannik Stradmann, Johannes Schemmel, Friedemann Zenke (2019). The Heidelberg spiking datasets for the systematic evaluation of spiking neural networks. arXiv:1910.07407v3. https://doi.org/10.1109/tnnls.2020.3044364
BibTeX
@article{cramer2019heidelberg,
title = {{The Heidelberg spiking datasets for the systematic evaluation of spiking neural networks}},
author = {Benjamin Cramer and Yannik Stradmann and Johannes Schemmel and Friedemann Zenke},
year = {2019},
eprint = {1910.07407},
archivePrefix = {arXiv},
doi = {10.1109/tnnls.2020.3044364},
url = {https://arxiv.org/abs/1910.07407v3}
}