Binary Event-Driven Spiking Transformer

Honglin Cao, Zijian Zhou, Wenjie Wei, Yu Liang, Ammar Belatreche, Dehao Zhang, Malu Zhang, Yang Yang, Haizhou Li

Abstract

Spiking Neural Networks (SNNs) offer high energy efficiency but face challenges in memory and computation when scaled with Transformer architectures. We present the Binary Event-Driven Spiking Transformer (BESTformer), which pushes SNNs to the 1-bit limit for both weights and attention maps. Through a novel Coupled Information Enhancement (CIE) method, BESTformer achieves a 10x reduction in memory and a 94% reduction in computational overhead while maintaining competitive accuracy on ImageNet and neuromorphic datasets.

Introduction

Spiking Neural Networks (SNNs) are brain-inspired models that communicate via sparse binary pulses, making them ideal for low-power neuromorphic hardware. Recent integrations of Transformer blocks into SNNs have achieved state-of-the-art performance but at the cost of high memory and computational demands. This limits their deployment on resource-constrained edge devices like drones or wearables.

Binarization—reducing 32-bit parameters to 1-bit—is a powerful compression technique, yet it often leads to a "performance cliff" in Transformers because 1-bit representations struggle to capture complex patterns. BESTformer addresses this by binarizing both weights and attention mechanisms while preserving information flow.

Methods

The core of BESTformer is the Coupled Information Enhancement (CIE) method, designed to mitigate the information loss inherent in binarization. The architecture consists of three primary components:

  1. SR-LIF for Attention Binarization: Standard "Hard Reset" neurons wipe their memory after firing. BESTformer employs a Soft Reset (SR-LIF) mechanism, allowing binarized attention maps to retain temporal information across time steps, thus overcoming the information bottleneck.
  2. Reversible Framework: To combat the natural decrease in information entropy as data moves deeper into a network, the authors implement a reversible architecture. This ensures that input can be mathematically reconstructed from output, preventing information leakage.
  3. Information Enhancement Distillation: A dual-head "Teacher-Student" approach is used. A full-precision teacher guides the binary student. By separating the classification head from the distillation head, the model avoids gradient interference, allowing for more accurate feature space mimicry.
Overview of the BESTformer architecture, featuring Binary Spiking Patch Splitting, Encoder Blocks with BSSA, and the dual-head distillation framework.

Experimental Evaluation

BESTformer was evaluated on static (CIFAR-10/100, ImageNet-1k) and neuromorphic (CIFAR10-DVS) datasets.

Key Results

  • ImageNet-1k Efficiency: The 1-bit BESTformer achieved 63.46% accuracy. Crucially, it is 10x smaller (5.57MB vs 59.36MB) and reduces the Neuromorphic Synaptic Arithmetic Computation Effort (NS-ACE) by 94.6% compared to full-precision counterparts.
  • Small-Scale Superiority: On CIFAR-100, it reached 79.80% accuracy, outperforming previous 2-bit models by nearly 4%.
  • Neuromorphic Performance: On CIFAR10-DVS, it achieved a state-of-the-art 80.80% accuracy, demonstrating robustness for native event-based data.
Comparison of Accuracy vs. NS-ACE(G) for BESTformer and other state-of-the-art SNN models. BESTformer achieves high accuracy with significantly lower computational effort.

Discussion and Conclusion

The success of BESTformer hinges on entropy preservation. By making the binary Transformer reversible, the network "traps" information, forcing 1-bit weights to represent data more effectively. Furthermore, binarizing attention is made possible by leveraging the temporal dimension of SNNs to compensate for reduced bit-depth.

While a performance gap remains between 1-bit and full-precision models (e.g., ~63% vs ~75% on ImageNet), BESTformer represents a significant step toward ultra-efficient neuromorphic AI. Future work will focus on closing this accuracy gap and deploying these models on physical neuromorphic chips like Loihi to validate real-world power savings.

Summary updated

BibTeX
@inproceedings{cao2025binary,
  author = {Honglin Cao and Zijian Zhou and Wenjie Wei and Yu Liang and Ammar Belatreche and Dehao Zhang and Malu Zhang and Yang Yang and Haizhou Li},
  title = {{Binary Event-Driven Spiking Transformer}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/458},
}
Figure