Activity Pruning for Efficient Spiking Neural Networks

Tong Bu, Xinyu Shi, Zhaofei YuNeurIPS 2025

Spiking Neural Networks (SNNs) represent a "brain-inspired" evolution of standard deep learning models. Unlike traditional artificial neural networks that transmit continuous, high-precision values, SNNs communicate via discrete, binary "spikes." This event-driven characteristic makes them incredibly efficient on specialized neuromorphic hardware, as they only consume energy when a neuron actually fires.

However, fully realizing this efficiency requires training the networks to be highly sparse—meaning neurons fire as rarely as possible while still solving the task. Achieving this sparsity has proven to be a significant hurdle.

The Learning Dilemma in Sparse SNNs

Training SNNs to be truly sparse introduces a fundamental "learning dilemma." Existing methods typically add a penalty term to the loss function to discourage neurons from firing. This creates two major issues:

  1. Conflicting Objectives: The primary goal of learning a complex task (like image classification) often directly conflicts with the secondary goal of firing fewer spikes.
  2. Vanishing Gradients: As neuronal activity drops due to the penalty, the gradients used for backpropagation tend to vanish. The model gets trapped at "saddle points" where neurons simply stop communicating, halting the learning process entirely.
Comparison of pruning methods, highlighting the proposed AT-LIF for activity pruning.

The AT-LIF Solution

To address these challenges, the authors propose the Adaptive Threshold Leaky-Integrate-and-Fire (AT-LIF) neuron model. AT-LIF introduces two clever modifications to the standard SNN architecture to aggressively prune neuronal activity without stalling the training process:

  • Threshold Adaptation: Instead of relying on a fixed firing threshold, each neuron’s threshold ($\theta$) becomes a learnable parameter that evolves during training. If a neuron fires too frequently, its threshold increases to suppress future spikes.
  • Current-Based Scaled Output: In a standard SNN, a spike is simply a binary 1. In the AT-LIF model, a spike's value is scaled by its current threshold ($\theta$).

Mathematically, this separates the learning objectives. The network weights ($w$) are updated primarily to minimize the task loss (e.g., classification error), while the thresholds ($\theta$) are updated to minimize both the task loss and the firing rate. This decoupling allows the network to maintain its "signal strength" even as the absolute number of spikes decreases.

Key Insights: Solving the Gradient Vanishing Act

The most significant breakthrough of AT-LIF is its ability to prevent gradients from disappearing. In traditional sparse SNNs, fewer spikes mean less information flows backward during training. By using $\theta$ as the spike magnitude, the "importance" of a single spike increases as spikes become rarer. This keeps the learning process alive and stable.

The authors back this up with theoretical proof (Theorem 1), demonstrating that when activity is regularized too aggressively in standard models, the gradient becomes zero, trapping the model in a sub-optimal state. AT-LIF effectively bypasses these traps.

Gradient norms across layers during training. AT-LIF (blue) prevents the gradient vanishing seen in standard activation regularization (green).

Furthermore, the researchers highlight that activity pruning is complementary to traditional weight pruning. Because they operate on different axes of the network, they can be combined multiplicatively. A model can have very few parameters and very few spikes, leading to massive cumulative efficiency gains.

Performance and Results

The researchers evaluated AT-LIF across a variety of standard and neuromorphic benchmarks, including CIFAR-10, ImageNet-100, ImageNet (using SEW-ResNet18), and DVS-CIFAR10 (event-based data from a silicon retina). The results demonstrate state-of-the-art efficiency-accuracy trade-offs:

  • CIFAR-10: AT-LIF reduced the average firing rate by 89.4% and Synaptic Operations (SOPs) by 88.6% compared to a vanilla SNN, with only a negligible drop in accuracy.
  • ImageNet: The method successfully trained a highly scalable model with an average firing rate of just 0.06 (meaning a neuron fires only 6% of the time) using only 2.22M parameters.
  • Neuromorphic Efficiency: On the DVS-CIFAR10 dataset, AT-LIF achieved up to 45% fewer SOPs than standard models while maintaining higher accuracy than competing regularization techniques.

Limitations and Future Directions

While the algorithmic improvements of AT-LIF are clear, the authors note that this work currently exists at the algorithmic level. The next logical step is to deploy these AT-LIF neurons on actual neuromorphic hardware (such as Intel's Loihi or IBM's TrueNorth) to measure real-world power savings.

Additionally, while the threshold scaling mechanism is highly effective for stabilizing training, it requires a small adjustment for inference on certain hardware platforms that strictly support binary 0/1 spikes. Fortunately, this scale can often be absorbed into the network's weights post-training, preserving the model's efficiency gains during deployment.

Summary updated

BibTeX
@inproceedings{bu2025activity,
  author = {Tong Bu and Xinyu Shi and Zhaofei Yu},
  title = {{Activity Pruning for Efficient Spiking Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=zjOXZEXQKZ},
}
Figure