Spiking Neural Networks (SNNs) represent a promising frontier in neuromorphic computing, offering brain-like energy efficiency by processing information through discrete "spikes." This makes them ideal candidates for low-power edge devices. However, SNNs share a significant vulnerability with traditional artificial neural networks (ANNs): they are brittle under distribution shifts. Environmental changes, such as sensor degradation or varying lighting conditions, can cause performance to plummet.
To address this, researchers Kejie Zhao and colleagues have proposed Threshold Modulation (TM), a hardware-friendly framework for online test-time adaptation (OTTA) specifically designed for SNNs. TM allows models to adapt to new data distributions on-the-fly without requiring labels, source data, or high-energy backpropagation.
The Challenge of Edge Adaptation
When deploying pre-trained models to edge devices like drones or smart cameras, we typically assume test data will match the training distribution. In practice, "distribution shifts" are inevitable. While OTTA methods exist for ANNs—often involving updates to Batch Normalization layers or weight fine-tuning—these are poorly suited for neuromorphic hardware. On chips like Intel’s Loihi or Huawei’s Darwin, weights are often "fused" or difficult to update without significant energy expenditure. There is a critical need for an adaptation method that is "chip-friendly": low-power, source-free, and backpropagation-free.
The Proposed Method: Threshold Modulation
The core innovation of TM is a shift in perspective: if synaptic weights are difficult to change, adapt the firing thresholds instead.
The framework consists of three main components:
- Membrane Potential Batch Normalization (MPBN): During pre-training, MPBN normalizes the "membrane potential" (the internal state of a neuron) before the firing decision.
- Threshold Re-parameterization: The normalization parameters are mathematically integrated into the firing threshold ($V_{th}$), effectively "baking" the normalization into the neuron's firing logic.
- Threshold Modulation (TM): During deployment, the model monitors the statistics (mean and variance) of incoming data and modulates the firing threshold in real-time to compensate for shifts.
The authors propose two variants:
- TM-NORM: A feed-forward variant that updates thresholds based on running statistics. It requires no backpropagation, making it extremely efficient.
- TM-ENT: A variant that updates parameters via entropy minimization. While it requires a backward pass, it yields higher accuracy.
Restoring the "Rhythm" of Spikes
A key insight of the paper is the observation of "Firing Rate Shift." When data distributions change, the firing rates of neurons drift significantly from their trained states. TM acts as a corrective mechanism, "pulling" these firing rates back toward the distribution seen during training.
Experimental Results and Efficiency
The authors evaluated TM on several benchmarks, including CIFAR-10-C, CIFAR-100-C, and ImageNet-C, which simulate real-world corruptions like noise and weather.
- Robustness: On CIFAR-10-C, a ResNet-20 model's error rate dropped from 46.7% (no adaptation) to 24.8% with TM-ENT. The hardware-friendly TM-NORM achieved a comparable 25.2%.
- Scalability: On ImageNet-C, TM reduced the average error from 73.2% to 58.2%.
- Hardware Efficiency: Theoretical energy estimates on 45nm hardware show that TM-NORM adds only a 3% energy overhead compared to a non-adaptive model. In contrast, standard Batch Normalization calibration would add roughly 12%.
- Real-time Streaming: The method remains effective even with a batch size of 1, a critical requirement for real-time edge applications.
Conclusion
Threshold Modulation provides a viable path for deploying robust SNNs on neuromorphic hardware. By leveraging the firing threshold as a primary knob for adaptation, the method achieves significant robustness gains with minimal energy overhead. While currently dependent on MPBN pre-training, future work may extend these principles to other spiking architectures and explore additional hardware-friendly parameters, such as "leakage term" modulation.
Paper Link: Threshold Modulation for Online Test-Time Adaptation of Spiking Neural Networks (arXiv:2505.05375)
Summary updated