Abstract
Spiking Neural Networks (SNNs) offer significant energy efficiency by mimicking biological neural communication through sparse binary spikes. However, high-performing SNN Transformers have become increasingly large, limiting their deployment on edge devices. This paper presents the Quantized Spike-driven Transformer (QSD-Transformer), which utilizes a bi-level optimization strategy to compress models to ultra-low bit-widths. By addressing Spike Information Distortion (SID) through Information-Enhanced Leaky Integrate-and-Fire (IE-LIF) neurons and Fine-Grained Distillation (FGD), the QSD-Transformer achieves 80.3% top-1 accuracy on ImageNet. This represents an 8.1x reduction in parameters and a 6.0x reduction in power consumption compared to previous state-of-the-art SNN baselines.
Introduction
The integration of Transformer architectures into Spiking Neural Networks (SNNs) has significantly boosted performance on complex vision tasks. Despite these gains, modern "Spikformers" often require massive parameter counts, undermining the inherent energy advantages of SNNs for resource-constrained environments like IoT sensors or mobile devices. Standard quantization techniques—reducing 32-bit floating-point weights to low-bit integers (e.g., 2-4 bits)—typically cause catastrophic performance failure in SNN Transformers.
The authors identify Spike Information Distortion (SID) as the primary cause of this collapse. In quantized SNNs, self-attention maps tend to form bimodal distributions, which severely limits representational capacity compared to the smooth distributions found in Artificial Neural Networks (ANNs). Analysis reveals that while convolutional and fully connected layers are relatively robust to quantization, the attention mechanism is the critical bottleneck.
Methods
To mitigate SID and successfully quantize the network, the QSD-Transformer employs a bi-level optimization strategy grounded in information entropy theory:
- Baseline Architecture: The model uses quantized low-bit weights while maintaining 1-bit binary spike activations for inference.
- Neuron-Level Optimization (IE-LIF): The Information-Enhanced Leaky Integrate-and-Fire (IE-LIF) neuron is introduced to maximize the entropy of attention scores. During training, it utilizes multi-bit values to minimize quantization error. For inference, these are converted back to binary spikes across virtual timesteps, ensuring hardware efficiency. A Membrane Potential Rectify Function (MPRF) is also used to reshape output distributions.
- Network-Level Optimization (FGD): Fine-Grained Distillation (FGD) employs a full-precision ANN teacher to guide the quantized SNN student. The distillation loss encourages the SNN’s attention maps to statistically mimic the normal distribution of the teacher's maps, thereby recovering lost representational power.
Experimental Results
The QSD-Transformer was evaluated across several benchmarks, including ImageNet-1K for classification, COCO 2017 for object detection, and ADE20K for semantic segmentation. Key results include:
- Efficiency and Accuracy: On ImageNet, the model achieved 80.3% top-1 accuracy with only 6.8M parameters and 8.7mJ of theoretical power consumption. This marks a 0.6% accuracy improvement over SD-Transformer v2 while reducing parameters by 8.1x and power by 6.0x.
- Aggressive Compression: The model remains robust even at 2-bit weight quantization, maintaining 75.0% accuracy on ImageNet.
- Downstream Tasks: The architecture demonstrated dominance in complex tasks, reaching 57.0% [email protected] on COCO and 40.5% MIoU on ADE20K, outperforming previous SNN baselines with significantly fewer parameters.
Conclusion and Future Work
The QSD-Transformer successfully bridges the gap between high-performance Transformer architectures and energy-efficient SNN hardware. By framing quantization as an entropy maximization problem, the authors provide a robust framework for extreme model compression. Future research will focus on scaling this approach to larger models and validating theoretical energy savings through physical deployment on FPGA platforms to account for real-world memory access overhead.
Summary updated