Abstract
Spiking Neural Networks (SNNs) represent a significant advancement in energy-efficient neuromorphic computing by utilizing discrete, binary spikes for information processing. However, these networks often suffer from spike redundancy—firing more spikes than necessary—which degrades efficiency and obscures critical features. This paper introduces the Frequency-based Spatial-Temporal Attention (FSTA) module, a novel approach that optimizes SNNs by analyzing spike patterns in the frequency domain. By implementing DCT-based spatial attention and a learnable temporal scaling mechanism, FSTA-SNN achieves a ~34% reduction in redundant spike firing while simultaneously improving accuracy on major benchmarks including ImageNet and CIFAR.
Introduction
Unlike standard Artificial Neural Networks (ANNs) that rely on continuous values, SNNs are prized for their brain-inspired efficiency. Despite this potential, SNNs face challenges in architectural design due to a lack of theoretical understanding regarding how different layers prefer to learn spatial and temporal features. Existing optimization methods often rely on simple spike counting or standard attention mechanisms borrowed from ANNs, which ignore the underlying frequency characteristics of spike trains. This research addresses these limitations by introducing a frequency-domain perspective to SNN optimization.
Frequency Analysis and Theoretical Motivation
To understand the learning preferences of SNNs, the authors performed a Frequency Analysis using Discrete Fourier Transforms (DFT) on intermediate spike outputs. This analysis yielded two primary insights:
- Spatial Evolution: The network's focus shifts as it deepens. Shallow layers primarily concentrate on vertical variations in features, whereas deeper layers gradually transition toward horizontal variations.
- Temporal Stability: While increasing the number of time steps ($T$) can improve performance, it has diminishing returns on the type of features learned. The frequency distribution remains consistent across time; only the amplitude of the spikes changes. This suggests that spatial enhancement modules can share parameters across time steps to reduce computational redundancy.
Furthermore, the paper provides a formal mathematical proof that Global Average Pooling (GAP)—a standard component in modern AI—is essentially a low-pass filter that only captures the (0,0) frequency component of a Discrete Cosine Transform (DCT). By moving beyond GAP, the network can capture a broader spectrum of spatial variations.
The FSTA Module
The FSTA module is a "plug-and-play" component designed for integration into existing architectures like ResNet or VGG. It consists of two sub-modules:
DCT-based Spatial Attention (SA)
Instead of relying on the limited scope of GAP, the SA sub-module utilizes a full-spectrum DCT. This allows the network to effectively capture high-frequency details and both vertical and horizontal spatial variations. Because it uses precomputed, fixed DCT weights, the module avoids heavy floating-point calculations during inference, ensuring it remains hardware-friendly for neuromorphic deployment.
Temporal Attention (TA)
Recognizing that feature intensity varies over time while feature types remain stable, the TA sub-module employs learnable parameters ($\alpha$ and $eta$). these parameters balance global and local temporal information, regulating the amplitude of spikes across time steps to ensure that only the most informative temporal features are prioritized.
Experimental Results
The FSTA-SNN was evaluated on both static (CIFAR-10, CIFAR-100, ImageNet) and dynamic neuromorphic (CIFAR10-DVS) datasets. The results demonstrate superior performance across multiple metrics:
- Accuracy: On CIFAR-100, FSTA-SNN achieved 80.42% accuracy at $T=2$, outperforming the previous state-of-the-art (MPBN) by nearly 1%. On the large-scale ImageNet dataset, it reached 70.23% at $T=4$.
- Spike Reduction: The module significantly pruned unnecessary activity, resulting in an average 33.99% reduction in the total spike firing rate across the network.
- Energy Efficiency: The reduction in spikes leads directly to lower energy consumption on neuromorphic hardware, as synaptic operations (SOPs)—the primary source of energy drain—are minimized.
Conclusion and Future Work
FSTA-SNN demonstrates that frequency-domain analysis is a powerful tool for optimizing SNNs. By moving beyond simple spatial pooling and accounting for temporal stability, the FSTA module enhances both accuracy and energy efficiency. While the current work focuses on ResNet and VGG architectures, future research may extend these frequency-domain insights to Spiking Transformers or complex temporal tasks such as robotic control and video processing. Additionally, exploring automated methods to search for optimal frequency bands could further refine the balance between computational cost and accuracy gains.
Summary updated