Signed Relevance Through Spike Resets, Traced Back to the Raw Signal

Spiking neural networks (networks whose neurons communicate with all-or-nothing pulses over time) are increasingly deployed on low-power chips for continuous signals such as scalp EEG and muscle EMG. Before such a network can see anything, a temporal spike encoder has to turn the analog waveform into pulses. Common choices are a Poisson rate coder, a delta-sigma modulator that emits "up" or "down" events when the signal moves by a fixed step, or a coder that feeds the value in as a constant input current. A clinician asking "which part of this EEG made the chip flag a seizure?" wants the answer on the waveform, not on an abstract raster of pulses. Current explanation tools for spiking networks do not deliver that. They stop at the spike input, or they depend on the arbitrary smooth stand-in for the spike function that is used during training.

We propose a relevance-propagation method for spiking networks that is conservative end to end, from the class score back through the encoder to the analog signal. Relevance propagation (LRP) explains a prediction by splitting the output score backward, layer by layer, so that the input shares add up to the score. The method rests on one observation. Suppose a neuron uses a "soft reset," meaning it subtracts the firing threshold after each spike. Once its spike pattern is fixed, its membrane voltage is an exact affine function of its weighted inputs and of its own past spikes. The reset therefore behaves like a self-inhibitory synapse, and that makes it a natural, principled source of negative relevance. We expect this signed reset term both to close the conservation gap across spikes and to protect spiking explanations from the collapse into class-agnostic heatmaps that afflicts purely positive propagation rules.

Core Claim

Existing work establishes three things. EventRPG introduced spiking layer-time-wise relevance propagation, which traces relevance through leaky integrate-and-fire (LIF) membrane potentials and input currents. It was used to guide event-camera data augmentation and was shown more faithful than surrogate-gradient maps on its "Average Increase" metric. However, it works only on native event-camera streams, never crosses a continuous-to-spike encoder, and does not verify conservation across the threshold reset. Gradient-based feature-attribution explainability methods for spiking neural networks showed that the encoder changes the shape of attribution maps: time-to-first-spike coding gives tight clusters, while Poisson coding gives scattered noise. Its surrogate-gradient methods are bounded by the chosen surrogate shape, and the authors name relevance propagation as the missing alternative. When Explanations Lie proved that backward passes built from non-negative matrices converge to rank one, so heatmaps for different classes become nearly identical (cosine similarity above 0.99 on VGG-16 and ResNet-50). Binary spike streams are exactly the setting where a naive spiking rule would build such matrices.

Our claim has two parts. First, a rule that treats the soft reset as a signed self-connection and treats the encoder as an explicit backward layer yields relevance on the analog signal whose sum matches the class score to numerical precision. Second, the negative reset relevance keeps class-specific explanations distinct where a positive-only spiking rule collapses. The novelty is not "LRP for spiking networks," which EventRPG already did. It is the signed reset decomposition, the encoder-inverting step for derivative-based coders, and the test of both against the rank-one failure mode on continuous biomedical signals.

Mechanism

Consider neuron $j$ with leak factor $\beta$, threshold $\theta$, input weights $w_{ij}$ and binary input spikes $S_i[s]$. Under soft reset, $V_j[t] = \beta V_j[t-1] + \sum_i w_{ij} S_i[t] - \theta S_j[t-1]$. Unrolled over time, this gives

$$V_j[t] = \sum_{s \le t} \beta^{t-s}\Big(\sum_i w_{ij} S_i[s] \;-\; \theta\, S_j[s-1]\Big).$$

Here every term is either a past synaptic input, which may be positive or negative, or one of the neuron's own earlier spikes, which is always negative.

Relevance arriving at spike $S_j[t]$ passes to $V_j[t]$ under a take-all rule for the step function. This follows the "signal-take-all" treatment of gates in LRP-all from Evaluating Recurrent Neural Network Explanations. It is then split among the terms above in proportion to their contributions, using the ε-rule stabiliser of On Pixel-Wise Explanations. The reset terms receive negative shares, and those shares are added to the relevance of the neuron's own earlier spikes. The unrolled graph is acyclic in time, so a single reverse-time sweep conserves relevance exactly. This design borrows from MambaLRP, which obtains single-pass conservation in a gated recurrent model by fixing which paths carry relevance. It also borrows from the relevance splitting of Layer-Wise Relevance Propagation with Conservation Property for ResNet, which divides relevance at an additive junction by the size of each branch. Our junction is the addition of input current and reset inside the membrane.

A hard reset to a fixed value is not affine in this way, because it erases history. We will state that case explicitly: relevance for inputs that arrived before the last reset is exactly zero. We will then report how much this changes explanations compared with soft-reset networks trained on the same data.

The encoder becomes the final backward layer. For rate and direct coding this step is simple, because each spike or current has a single source pixel or sample. For a delta-sigma coder the step matters, because an event at time $s$ encodes that the signal changed by one step size since the previous event on that channel. We therefore assign each event's relevance to the waveform segment between consecutive threshold crossings, weighted by the absolute sample-to-sample change within that segment. The sum is still conserved, and relevance becomes visible as a time course on each electrode.

This mapping has a stated blind spot. A flat stretch of signal produces no events and therefore gets no relevance. The same silence problem is highlighted by Feature Attribution Explanations for Spiking Neural Networks, whose absent-spike variant reached completeness 1.00 on a logical OR task but flipped signs unstably in deeper networks. We will measure this blind spot directly rather than patch it.

Research Program

The work has three stages. The first is derivation and implementation. We will extend the released EventRPG code (myuansun/EventRPG) with the signed-reset rule and with encoder layers for Poisson, delta-sigma, time-to-first-spike and direct coding. We will write unit tests that check conservation error on random networks.

The second stage trains soft-reset spiking networks on each dataset under each applicable encoder, keeping architecture and training budget identical within a dataset.

The third stage is analysis. We will measure faithfulness, class sensitivity and cost against the baselines below. We will also run one applied study: whether signal-domain relevance predicts which EEG channels lose diagnostic information as the delta-sigma step size is raised. That step size is exactly the heuristic threshold that derivative coding is known to be sensitive to.

Baselines

The naive reference is a random attribution. The second reference is "input magnitude times spike count," which is essentially an activation map. Neither uses the decision, so any method that fails to beat them on deletion curves is not explaining anything.

The strongest existing competitor for class-faithful explanations is spiking integrated gradients (SNN-IG) from Gradient-based feature-attribution explainability methods for spiking neural networks. It also satisfies a completeness property and was shown there to cause a sharp accuracy drop when its top 5% of spikes were deleted. We will run it with the same trained networks and the same surrogate used in training, with 50 interpolation steps. Its composite with the encoder will be mapped to the analog signal by the same encoder layer we use, so that only the propagation rule differs. We will also run single-pass surrogate gradient-times-input (SNN-Grad) as the cheap gradient baseline.

The strongest existing relevance method is SLTRP from EventRPG. We will run it unchanged on the encoded spikes and then pass its output through our encoder layer. This comparison is the ablation that isolates our key ingredient, the signed reset. A second ablation runs our rule with the reset terms clipped to zero, which produces a positive-only chain and is the variant we predict will collapse.

The gold-standard reference is signal-domain occlusion, which masks sliding windows of the waveform per channel. We will use it only to score faithfulness, because it is too slow to be a practical competitor.

No reported faithfulness result found on Lacuna for any spiking attribution method on CHB-MIT, Siena, DVS-EMG or encoded CIFAR-10. EventRPG reports Average Increase gains, but the file gives no value. The nearest reported relevance numbers come from non-spiking settings: Insertion-Deletion 54.5% on ImageNet for conservative ResNet LRP versus 37.1% for Grad-CAM (Layer-Wise Relevance Propagation with Conservation Property for ResNet), and top-3 word deletion reaching 97% of occlusion for LRP-all (Evaluating Recurrent Neural Network Explanations). Our method will count as beating the baselines on three conditions. It must match or exceed SNN-IG's deletion-curve area within the across-seed spread at one-fiftieth of its cost. It must exceed SLTRP on deletion area and on class distinctness. It must keep the mean cosine similarity between explanations of different classes clearly below the 0.99 collapse level on networks where the clipped-reset ablation exceeds it.

Why not just…?

Why not just use surrogate-gradient integrated gradients, which already sums to the output? This is the real threat. On shallow networks SNN-IG may be as faithful as our rule. Our case rests on two measurable differences. First, IG needs tens of backward passes; MambaLRP reports that single-pass relevance runs 20–30× faster than IG in the recurrent setting. Second, IG's answer changes with the surrogate shape, as Bitar et al. themselves concede. We will retrain networks with three surrogate shapes and report how much each method's explanations move. If SNN-IG is equally faithful and equally stable across surrogates, our contribution shrinks to a speed result, and we will say so.

Why not just run EventRPG's SLTRP on the encoded spikes? That would reuse existing code, and it is precisely our main ablation. Our prediction is that SLTRP's treatment of the reset either leaks relevance, which conservation error will expose, or behaves like a positive chain, which the cosine-similarity test across classes will expose. If SLTRP already shows near-zero conservation error and class-distinct maps, the signed-reset contribution is unnecessary. The encoder-inversion step would then remain the only new piece.

Why not explain an equivalent ANN with the standard LRP toolbox? Rate-coded spiking networks approximate ReLU networks only over long windows ($T \ge 50$ according to Rate Coding or Direct Coding). Delta-sigma coded EEG models, such as the one in Real-time Sub-milliwatt Epilepsy Detection, have no static counterpart at all. On rate-coded CIFAR-10 we will nonetheless compute ANN-LRP on the source network, using The LRP Toolbox, and correlate it with our maps as a sanity check. Agreement at large $T$ and divergence at small $T$ is the expected pattern.

Why not just use occlusion on the waveform? It needs no internal access and serves as our faithfulness gold standard. Its cost, however, grows with channels times windows. The LIME-versus-gradient gap in Bitar et al. was 50 s against 26 ms per CIFAR-10 image. That rules occlusion out for the on-chip or bedside use that motivates spiking deployment.

Proposed Experiments

The task models will be anchored on the reported benchmarks. For CHB-MIT and Siena EEG we use delta-sigma coding, and our networks should reach accuracy near the 93.3% software figure reported by Li et al. before we explain them. For the DVS-EMG fusion benchmark of Hand-Gesture Recognition Based on EMG and Event-Based Camera Sensor Fusion we use delta-modulated EMG, with a GPU baseline of 95.4%. For CIFAR-10 we compare Poisson, time-to-first-spike and direct coding under a shared VGG-style network.

The metrics are conservation error, meaning the gap between summed signal relevance and the logit, normalised by the logit. The others are deletion and insertion area in the signal domain, correlation with occlusion, cosine similarity between explanations for different target classes, and wall-clock cost per explanation.

Three checks decide the proposal. The first is whether the clipped-reset ablation drives cross-class cosine similarity toward the collapse regime while the signed rule does not, as network depth grows from three to eight spiking layers. This is a direct test of the Sixt et al. mechanism in spiking networks. The second is whether our signal-domain maps track occlusion at least as well as SNN-IG on EEG, at single-pass cost. The third tests the silence blind spot on a synthetic task in which the label is carried by a flat segment. We expect our method to assign that segment near-zero relevance while occlusion flags it. Documenting that failure honestly is part of the result.