Summary
BESTformer is the first framework to successfully binarize Spiking Transformers, reducing model size by 10x and computational overhead by over 94% compared to full-precision counterparts. By utilizing a reversible architecture and a dual-head distillation strategy, it overcomes the massive accuracy drops typically associated with 1-bit quantization, achieving state-of-the-art performance on both static and neuromorphic datasets.
Introduction
Spiking Neural Networks (SNNs) represent a "green" alternative to traditional AI, mimicking the brain's energy efficiency by processing information as discrete binary pulses, or spikes. While integrating Transformer architectures into SNNs has boosted performance, these "Spiking Transformers" remain memory-intensive and computationally expensive, hindering their deployment on resource-constrained edge devices like wearables and IoT sensors.
The most aggressive approach to model compression is binarization—representing weights and activations with a single bit. However, this often leads to "representation collapse," where the drastic loss of information causes accuracy to plummet. This paper introduces BESTformer, a 1-bit Spiking Transformer designed to be both extremely compact and highly accurate.
Methods: The BESTformer Architecture
BESTformer employs several novel techniques to maintain high performance at a 1-bit resolution:
- Attention Binarization (SR-LIF): Unlike standard binarization that uses simple thresholds, BESTformer utilizes a Soft Reset Leaky Integrate-and-Fire (SR-LIF) mechanism to binarize the attention map. This allows the model to leverage the temporal dimension, retaining more information than a simple boolean function.
- Coupled Information Enhancement (CIE): This core component consists of two parts:
- Reversible Framework: Inspired by reversible networks, the encoder blocks are designed so that inputs can be mathematically reconstructed from outputs. This ensures that information entropy does not decay as the network deepens—a common failure mode in binary models.
- Information Enhancement Distillation (IED): During training, a full-precision "teacher" model guides the 1-bit "student" model using a dual-head architecture. One head focuses on classification, while the other mimics the teacher's feature distribution, preventing gradient interference between the two objectives.
Key Insights: Overcoming the Information Bottleneck
The authors identified a significant "information bottleneck" in binary models. By measuring the number of distinct values in feature maps, they found that full-precision models possess millions of distinct values, whereas binary models are limited to thousands. The CIE method specifically targets this gap.
Furthermore, the authors utilize reversibility as an "entropy guard." In deep binary networks, information tends to "wash out" across layers. By making the architecture reversible, the authors prove that information entropy remains invariant regardless of depth, preserving the model's representational capacity.
Experimental Results
BESTformer sets new benchmarks for quantized SNNs across several datasets, including CIFAR and ImageNet-1k.
- ImageNet-1k: Achieved 63.46% accuracy with 1-bit weights, significantly outperforming other quantized SNNs like CBP-QSNN.
- Extreme Compression: The model size for ImageNet was reduced from 59.36MB (full precision) to just 5.57MB (1-bit), a 10x reduction.
- Energy Efficiency: The model achieved a 94.6% reduction in Neuromorphic Synaptic Arithmetic Computation Effort (NS-ACE) compared to full-precision counterparts.
- CIFAR-100: Reached 79.80% accuracy, nearly 4% higher than the previous best 2-bit model.
Conclusion
While BESTformer significantly narrows the gap between binary and full-precision models, a performance delta still exists. Future work will focus on extending BESTformer to complex downstream tasks like object detection and segmentation, as well as optimizing the architecture for specific neuromorphic hardware like Intel's Loihi to measure real-world power savings.
Summary updated