Abstract
Spiking Neural Networks (SNNs) offer a biologically inspired, energy-efficient alternative to traditional deep learning. However, integrating SNNs with Transformer architectures has historically been hindered by the "low-pass filter" effect of global self-attention, which tends to obscure high-frequency visual details. We introduce the Spiking Wavelet Transformer (SWformer), an attention-free architecture that employs a Frequency-Aware Token Mixer (FATM). By leveraging a spike-driven wavelet transform and ternary spike dynamics, SWformer effectively captures fine-grained textures and edges. Experimental results on ImageNet-1K and various neuromorphic datasets demonstrate that SWformer achieves state-of-the-art accuracy with significantly lower energy consumption and fewer parameters than existing Spiking Transformers.
Introduction
While SNNs excel at event-driven processing, their synergy with Transformers has faced a significant hurdle: global self-attention. This mechanism primarily captures global shapes while struggling with high-frequency information—the sharp edges and rapid pixel-level changes essential for neuromorphic vision. Furthermore, the computational cost of global attention often necessitates multiplications, undermining the efficiency of spike-based hardware. The SWformer addresses these limitations by replacing attention with a multi-resolution frequency analysis inspired by the multi-resolution breakdown of the human visual system.
Methods
The core of the SWformer is the Frequency-Aware Token Mixer (FATM), which processes information through three parallel branches: a Frequency Learner (FL), a Spatial Learner (SL), and a Channel Mixer (CM).
Technical Innovations
- Spiking Wavelet Transform: The Frequency Learner utilizes a Haar wavelet transform to decompose signals into spatial-frequency components, enabling the model to focus on high-frequency details natively.
- Ternary Spike Dynamics: To accommodate the subtractions inherent in wavelet transforms without losing information, the authors introduce ternary spikes (-1, 0, 1). This maintains compatibility with advanced neuromorphic chips like Loihi 2 while expanding signal representation capabilities.
- Efficiency Optimizations: A block-diagonal weight structure in the frequency learner reduces parameter complexity from $O(d^2)$ to $O(d^2/k)$. Additionally, a Membrane Shortcut connects neuron membrane potentials across layers to enhance training stability and biological plausibility.
Key Results
SWformer was evaluated on both static (ImageNet-1K, CIFAR) and neuromorphic (CIFAR10-DVS, N-Caltech101) datasets, showing superior performance across the board.
- ImageNet-1K Performance: SWformer achieved 75.29% top-1 accuracy, outperforming the vanilla Spiking Transformer (SpikFormer) by 2.52% while using 22.03% fewer parameters (23.14M vs. 29.68M).
- Neuromorphic Superiority: On the CIFAR10-DVS dataset, the model reached 83.9% accuracy, a 4% improvement over previous state-of-the-art SNNs.
- Energy Efficiency: By adjusting firing thresholds in the frequency domain, the model achieved a 58.4% to 60.1% reduction in power consumption with minimal accuracy loss, capitalizing on the inherent sparsity of wavelet representations.
Conclusion
The Spiking Wavelet Transformer demonstrates that incorporating multi-resolution frequency analysis into SNNs provides a powerful alternative to traditional attention mechanisms. By capturing high-frequency dynamics through ternary spikes and wavelet transforms, SWformer achieves a new state-of-the-art in energy-efficient vision. Future work will focus on physical hardware implementation and further refining the spiking representation of complex frequencies.
Summary updated