The memory that holds neural-network weights is becoming unreliable on a fixed schedule. As DRAM cells shrink, the charge separating a stored 1 from a 0 shrinks with them, and the number of row activations needed to flip a neighbor cell — the Rowhammer threshold $T_{RH}$ — has fallen roughly 30x in eight years, down to 1200 or even 512 activations in recent modules, as documented by Woo et al.. The same physical trend powers both accidental faults (undervolting DRAM to save energy randomizes bits) and deliberate ones: gradient-guided bit-flip attacks destroy a ResNet-18 by flipping 13 of 93 million bits, taking ImageNet accuracy from 70% to 0.1% Rakin et al., and Rowhammer plus kernel-allocator "massaging" makes such flips physically deliverable in under 100 seconds DeepHammer.
Spiking neural networks (SNNs) — networks of units that communicate with discrete, timed pulses rather than continuous values — are widely pitched as the answer for exactly the energy-constrained edge devices where this unreliable DRAM lives, and they are widely claimed to be fault-tolerant: enpheeph reports SNNs surviving random bit-upset rates "orders of magnitude higher" than those that cripple conventional networks, attributing this to "temporal redundancy." But that redundancy is not a property of spiking; it is a property of rate coding, where a neuron's meaning is its spike count over a long window and errors average out. The coding scheme that actually delivers the efficiency SNNs are deployed for — time-to-first-spike (TTFS) coding, where each neuron fires at most once and information lives in when it fires — deletes the averaging entirely. MT-Spike shows single-spike coding cuts power 42x versus rate-coded SNNs; Stanojević et al. reach 93.69% on CIFAR-10 with under 0.3 spikes per neuron. Whether DRAM fault tolerance survives this coding switch has never been measured: SparkXD and EnforceSNN, the only approximate-DRAM SNN studies, use rate-integrated STDP networks exclusively, and no reported result found on Lacuna for temporal-coded SNNs under injected DRAM bit errors.
Core Claim
The claim has three parts. First, the fault tolerance of SNNs is a property of the coding scheme, not of spiking: the bit error rate (BER) tolerance that EnforceSNN reports — zero accuracy loss up to $\text{BER} = 10^{-3}$ — will not transfer to TTFS networks under diffuse random faults, because temporal codes are known to be hypersensitive to timing perturbation Auge et al.. Second, and against the intuition that TTFS is simply fragile, temporal coding gains a structural robustness to adversarial outlier flips that rate coding lacks — the two codes fail in opposite directions. Third, that structural robustness can be finished into a working defense with a bounded readout, without touching memory.
The mechanism is compact. Under the B1-model of Stanojević et al., the membrane potential's slope at the firing threshold is fixed at 1, so a perturbation $\delta w$ on a synapse carrying input $x$ shifts the postsynaptic spike time by approximately
$$\delta t \;\approx\; -\,\delta w \cdot x ,$$
with the minus sign because larger input means earlier firing. Now flip a most-significant bit, which turns a small weight into an extreme outlier — the "outlier amplifier" mechanism analyzed by Stutz and FT-ClipAct. In a rate-coded network, the corrupted synapse drives its postsynaptic neuron to fire at maximum rate at every time step, saturating downstream units into the winner-take-all collapse that DeepHammer exploits. In a TTFS network, the same corrupted synapse does the least it can possibly do given the format: it pulls one spike to the front of the queue. The neuron still fires once, ever. Damage per corrupted bit is bounded by the code itself — provided the readout tolerates a single misplaced early spike, which is precisely what ranked N-of-M (R-NoM) codes were designed for: Bonilla et al. measure false-alarm rates after five spikes in a 20-neuron code of roughly 0.0003 for R-NoM versus 0.1 for rank-order and 0.7 for raw N-of-M.
This gives an attack-surface inversion worth testing on its own: random diffuse errors should hurt TTFS more than rate coding, while targeted outlier flips should hurt rate coding more than TTFS. Neither direction has a reported number anywhere in the literature we surveyed.
Research Program
The program has four components, each producing something reusable. The first is a matched-pair benchmark: for each architecture we train a rate-coded network and a TTFS network with matched weights, capacity, and tuning budget, following the B1-model for temporal coding Stanojević et al. and the delay-to-activation mapping of MT-Spike, and inject faults with enpheeph, which already handles up to 100,000 concurrent bit flips at under 20% runtime overhead. The second is an adversarial bit search adapted to SNNs (PBS-SNN): because the average-delay-response model maps spike delays to an implicit ReLU-like activation, gradients of the loss with respect to individual weight bits are computable, so the progressive bit search of Rakin et al. transfers with surrogate gradients through spike times — this is the first tool capable of testing whether adversarial search defeats SNN "temporal redundancy" at all. The third is a perturbation theory: extending Bonilla's rank-code discriminability analysis to predict, via Monte Carlo simulation, the probability that a given outlier magnitude flips a decision under each coding scheme, yielding falsifiable curves before any training run. The fourth is the defense itself: clamp decoded spike times to the valid window $[0, T]$ (bounding any corrupted weight's effect to one early spike regardless of which DRAM cell failed), read out decisions through an R-NoM ranked code, and — following the biological precedent that human somatosensory cortex switches from temporal to rate coding under noisy conditions Harris et al. — offer an optional fallback that re-runs a suspect input with a slow, rate-integrated readout, paying the 42x power penalty only when the fast readout's spike-order statistics look anomalous. A secondary extension, deferred until the core results land, is DRAM layout: TTFS accesses are ordered along the time axis of the spike wave, so subarray mapping tuned to arrival order (in the spirit of SparkXD's partitioning, but time-indexed) could reduce both row-activation energy and Rowhammer exposure.
Baselines
The naive reference point is doing nothing: fault-unaware trained models under identical injection. For TTFS this is the B1-model at its published clean accuracy of 93.69% on CIFAR-10 and 72.24% on CIFAR-100 with under 0.3 spikes per neuron Stanojević et al.; for the coding-gap reference on MNIST we use the matched pair from Auge et al., count-rate at 99.42% versus TTFS at 98.06%. This baseline establishes how much protection is actually needed before any defense is credited.
The strongest existing competitor is EnforceSNN's pipeline — incremental fault-aware training (reported 2.71x faster convergence than non-incremental fault-tolerant training) plus error-aware DRAM subarray mapping — which reports zero accuracy loss for BER values up to $10^{-3}$ on MNIST and Fashion-MNIST at 1.025V, with up to 84.9% DRAM energy savings EnforceSNN. To make the comparison fair we will re-implement incremental FAT for both our rate-coded and TTFS models, use the same enpheeph fault profiles, the same architectures, and the same tuning budget, and evaluate it at CIFAR and DVS-Gesture scale where its authors never did — no reported result found on Lacuna for EnforceSNN beyond MNIST and Fashion-MNIST. Beating it means matching or exceeding its BER tolerance while retaining the sub-0.3-spikes-per-neuron profile and TTFS energy footprint, or holding accuracy at CIFAR scale where no reported number exists for it.
The third baseline is weight clipping, which Stutz shows achieves a 20% energy reduction with under 1% accuracy loss on 8-bit CIFAR-10 models by removing outlier amplifiers; we run it under both random faults and PBS-SNN. The key ablation isolates the proposal's central ingredient: identical TTFS weights and training, swapping only the readout (plain first-spike versus clamped ranked readout) and toggling only the delay clamp. Any robustness gain that survives this ablation belongs to the readout design; any that does not was an artifact of training or architecture.
Why not just…?
Why not just keep rate coding and train with faults? This is the most serious alternative, and we treat it as such: EnforceSNN already demonstrates zero accuracy loss at BER $10^{-3}$, so if rate coding is tolerable, the entire temporal-coding angle is unnecessary. Three things argue it is not settled. The tolerance was shown only on MNIST-scale STDP networks, not at CIFAR scale. The 42x power penalty of rate coding MT-Spike and the resulting spike traffic cut directly into the off-chip DRAM energy that motivates approximate memory in the first place. And rate redundancy is exactly the resource an outlier-amplifier flip saturates DeepHammer. Our second experiment tests this head-on: if rate-coded FAT-trained networks survive PBS-SNN at CIFAR scale within a few dozen flips, the defense half of this proposal loses its motivation, and we will report that result as the finding.
Why not just add ECC or rely on memory-controller mitigations? Error-correcting memory adds storage and area overhead and does nothing for the transfer energy that approximate DRAM is trying to save Stutz, and Rowhammer routinely flips multiple bits within one wordline, exceeding SECDED correction Woo et al.. Controller-level defenses are themselves attack surface: randomized row swapping is broken by the Juggernaut attack in under 4 hours at $T_{RH}=4800$ Woo et al., and refresh-management mitigations open denial-of-service vectors on accelerators Not so Refreshing. Architectural tolerance is worth having precisely because the memory-level arms race is not converging.
Why not just clip weights? Clipping works for random faults — Stutz sustains performance at a 1% bit error rate with bounded ranges — but it is a parameter-range defense, and bounded ranges did not save quantized models from progressive bit search, which still took them to random guess with 13 to 25 flips Rakin et al., while code-section flips destroy models in 1.4 flips regardless of parameter bounds Compiled Models, Built-In Exploits. More fundamentally, clipping constrains what a weight should be at training time; it cannot repair a cell that is already corrupted in DRAM, and it requires knowing the parameter format. Our readout clamp bounds the damage after corruption, with no assumption about which cell failed or how it is formatted. Clipping still runs as a baseline; if it matches the clamped ranked readout under PBS-SNN at lower cost, it wins.
Why not just run an existing fault injector on a TTFS network? Because that produces one cell of the answer, not the answer. It is exactly the descriptive half of our first experiment — but it covers only random upsets, includes no adversarial search, no mechanism, and no defense, and the "temporal redundancy" conclusion it would nominally rest on is the very claim this proposal tests and refines.
Proposed Experiments and Decisive Checks
Experiment one sweeps random bit errors from $10^{-4}$ to $10^{-2}$ across matched rate/TTFS pairs on MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, and DVS Gesture, using enpheeph for injection on the VGG-11 and ResNet-18 architectures it already supports. The metric is $\text{BER}_{\text{th}}$, defined by EnforceSNN's own criterion of under 1% accuracy loss; the headline output is the first table of BER tolerance by coding scheme, testing whether $10^{-3}$ transfers to TTFS. Experiment two runs PBS-SNN and reports flips-to-random-guess (10% on CIFAR-10, the target PBS itself uses), against the published anchors of 13 of 93 million bits for ResNet-18 on ImageNet Rakin et al. and 13 of 138 million parameters for VGG-16 on CIFAR-10 DeepHammer; we also verify physical plausibility by confirming that address-geometry knowledge of the kind recoverable in software Pessl et al. more than doubles effective flip yield, as it does for blind hammering. Experiment three validates the perturbation theory against the measured curves, using $2 \cdot 10^5$ Monte Carlo runs per configuration as in Bonilla et al.. Experiment four evaluates the defense: accuracy-versus-BER and flips-to-collapse for the four ablation cells, plus energy per inference benchmarked against MT-Spike's 42x rate-coding penalty and EnforceSNN's 84.9% DRAM savings, with a target of within 1% accuracy at the BER where unprotected TTFS collapses, at no more than 10% energy overhead.
Three checks decide the proposal. If TTFS matches rate coding's $\text{BER}_{\text{th}}$ with no defense, the first claim is wrong and the study becomes a (still publishable) negative result about enpheeph's generalization. If PBS-SNN collapses TTFS as fast as it collapses rate-coded networks or DNNs, the second claim is wrong and the defense is moot. If both claims hold but the clamped ranked readout fails to close the gap, the fault is in the engineering, and the fallback readout becomes the honest fallback. Any of the three outcomes settles a question the field currently answers by assumption.
References
- Scalable and Secure Row-Swap: Efficient and Safe Row Hammer Mitigation in Memory Systems
- Bit-Flip Attack: Crushing Neural Network With Progressive Bit Search
- DeepHammer: Depleting the Intelligence of Deep Neural Networks through Targeted Chain of Bit Flips
- enpheeph: A Fault Injection Framework for Spiking and Compressed Deep Neural Networks
- MT-spike: A multilayer time-based spiking neuromorphic architecture with temporal error backpropagation
- High-performance deep spiking neural networks with 0.3 spikes per neuron
- EnforceSNN: Enabling resilient and energy-efficient spiking neural network inference considering approximate DRAMs for embedded systems
- A Survey of Encoding Techniques for Signal Processing in Spiking Neural Networks
- Bit Error Robustness for Energy-Efficient DNN Accelerators
- FT-ClipAct: Resilience Analysis of Deep Neural Networks and Improving their Fault Tolerance using Clipped Activation
- Analyzing time-to-first-spike coding schemes: A theoretical approach
- Factors Affecting Frequency Discrimination of Vibrotactile Stimuli: Implications for Cortical Encoding
- SparkXD: A Framework for Resilient and Energy-Efficient Spiking Neural Network Inference using Approximate DRAM
- Not so Refreshing: Attacking GPUs using RFM Rowhammer Mitigation
- Compiled Models, Built-In Exploits: Uncovering Pervasive Bit-Flip Attack Surfaces in DNN Executables
- DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks