TL;DR
Training Spiking Neural Networks (SNNs) for neuromorphic hardware requires ultra-fine time resolution, which causes traditional recurrent training methods to choke on memory limits and vanishing gradients. SpikingGamma bypasses this bottleneck entirely by replacing recurrent neural loops with a cascade of "leaky buckets" that compress past events into the present, paired with a clever continuous-to-spike encoding trick. The result is a feedforward SNN you can train online, timestep-by-timestep, at arbitrarily fine time resolutions without ever computing messy surrogate gradients across discrete spikes.
What Problem Does This Paper Address?
Spiking Neural Networks mimic the brain by communicating via sparse, discrete pulses (spikes), making them ideal for ultra-low-power, low-latency neuromorphic chips. However, mapping software-trained SNNs onto physical hardware requires simulating dynamics over thousands of tiny timesteps so the digital model matches physical device speeds.
Traditionally, spiking neurons are treated like tiny Recurrent Neural Networks (RNNs) that carry state forward step-by-step. Training them requires unrolling the network across time via Backpropagation Through Time (BPTT) and using "surrogate gradients"—mathematical smoothing hacks to push derivatives through non-differentiable binary spikes. As you slice time finer, sequences grow longer: memory explodes linearly, gradients vanish, and even modern online training approximations lose stability and collapse.
Methods
SpikingGamma reimagines how spiking neurons remember the past and talk to their neighbors, combining two core ideas to make training strictly feedforward in space and online in time:
- Cascading "Leaky Buckets" (Gamma Memory): Instead of relying on recurrent loops to remember past inputs, each neuron (or synapse) filters incoming spikes through a compact bank of $K$ cascading leaky "buckets" (based on the classic Gamma-model). Spike energy enters the first bucket and spills sequentially into downstream buckets at varying rates, naturally creating a multi-timescale, smoothed-delay summary of history right inside the current timestep.
- Sigma-Delta ($\Sigma\Delta$) Spike-Coding: Borrowed from electrical engineering, each neuron computes a continuous internal signal $y$, while simultaneously maintaining a running reconstruction $\hat{y}$ of what its own output spikes represent. Whenever the gap between $y$ and $\hat{y}$ exceeds an adaptive threshold, the neuron fires a spike to "top up" the reconstruction.
What’s novel in training: Because downstream synapses reconstruct the exact same $\hat{y}$ signal from incoming spikes, the authors pass the continuous $\hat{y}$ directly during training and use a straight-through identity estimator ($\partial \hat{y} / \partial y \approx 1$). Errors flow smoothly backward through the continuous reconstruction path at each independent timestep—completely sidestepping spikes, surrogate gradients, and temporal unrolling.
Datasets
The authors evaluate SpikingGamma on two synthetic timing tasks and three standard neuromorphic benchmarks:
- Synthetic Timing Tasks: A Learning Delays task (propagating a single spike at $t=0$ to fire precisely at $t=150$) and a Barn Owl Coincidence Detection task (classifying prey direction based on subtle interaural time differences between pairs of spikes).
- DVS Gesture: Event-based dynamic vision dataset of hand gestures (high spatial complexity, lower temporal complexity).
- Spiking Heidelberg Digits (SHD) & Spiking Speech Commands (SSC): Spoken audio benchmarks converted into spike trains, known for demanding rich, multi-timescale temporal reasoning.
Key Insights and Ideas
- Time without unrolling: By compressing temporal history into local delay buckets, temporal credit assignment becomes a spatial problem at the current timestep. Memory stays flat regardless of how long the sequence runs.
- Sharper timing than surrogate gradients: Because surrogate gradients smooth over spike discontinuities, BPTT tends to smear credit across neighboring timesteps. SpikingGamma’s exact reconstruction path allows it to pinpoint exact delay buckets, solving the synthetic delay task using the theoretical minimum of just two spikes.
- Immunity to the "curse of fine resolution": While competing online and offline SNN methods degrade or collapse completely when you slice audio or video into thousands of ultra-fine frames, SpikingGamma simply scales its bucket transfer rates and maintains rock-solid accuracy.
- Emergent "Time Cells": Without explicit biological constraints, hidden SpikingGamma neurons naturally learn delayed response profiles that qualitatively mirror biological "time cells" observed in the mammalian brain.
Key Results
SpikingGamma sets a high bar for online SNN training, closing the gap with heavy offline BPTT models while scaling effortlessly in time:
- SHD & SSC: Achieves 92.81% final test accuracy (93.55% peak) on SHD at 250 frames—approaching offline BPTT state-of-the-art (93.79%) and outperforming online methods like e-prop (80.79%) and OTPE (75.4%). On the tougher SSC dataset, it hits 75.63% online, beating ES-D-RTRL (66.63%).
- DVS Gesture: Reaches 95.08% (96.08% peak) with a 4-layer CNN at 2,000 frames, and scales cleanly up to a deeper VGG9 architecture.
- Extreme Time Scaling: When scaling SHD from 100 up to 3,000 frames, ES-D-RTRL collapses to chance-level accuracy by 250 frames, and offline BPTT (SE-adLIF) drops sharply while consuming ~30 GB of memory. SpikingGamma maintains ~92%+ accuracy across all resolutions while keeping memory usage nearly flat (under a few gigabytes).
- Synthetic Coincidence Detection: Achieves 100% accuracy with minimal spiking using time-to-first-spike coding.
Limitations and Future Work
- Extra local state: Avoiding BPTT isn't entirely free—each neuron or synapse must maintain and compute $K$ bucket states, meaning computational and local memory costs scale with $K$.
- Feedforward only (for now): The BPTT-free magic relies on feedforward topologies. Introducing recurrent network loops or feedback pathways would still require BPTT-style unrolling.
- Hardware realities: Using adaptive thresholds requires either sending graded (non-binary) spike payloads or duplicating threshold-tracking logic at every receiving synapse. Validating these local bucket and spike dynamics on physical neuromorphic silicon remains an open next step, alongside extending SpikingGamma to modern feedforward sequence architectures like Transformers.
Summary updated