SpikingBrain Technical Report: Spiking Brain-inspired Large Models

Yuqi Pan, Yupeng Feng, Jinghao Zhuang, Siyu Ding, Zehao Liu, Bohan Sun, Yuhong Chou, Han Xu, Xuerui Qiu, Anlin Deng, Anjie Hu, Peng Zhou, Man Yao, Jibin Wu, Jian Yang, Guoliang Sun, Bo Xu, Guoqi Li · DOI

Introduction

Mainstream Large Language Models (LLMs) built on the Transformer architecture face two primary bottlenecks: training computation scales quadratically with sequence length, and inference memory grows linearly. These constraints make processing ultra-long contexts prohibitively expensive. Furthermore, the AI industry's heavy reliance on NVIDIA-centric ecosystems creates significant engineering hurdles for alternative hardware.

SpikingBrain introduces a new family of large language models (up to 76B parameters) that address these challenges by integrating brain-inspired mechanisms. By utilizing sparse, event-driven "spikes" and linear attention, SpikingBrain aims to break the quadratic bottleneck and demonstrate high-performance LLM development on non-NVIDIA hardware, such as MetaX GPU clusters.

Overview of the SpikingBrain framework, including brain-inspired mechanisms, model architecture, and the development pipeline.

Architecture and Methodology

The SpikingBrain framework employs a multi-layered approach to efficiency through hybrid linear architectures and adaptive spiking mechanisms.

Hybrid Linear Architectures

Instead of standard Softmax attention, SpikingBrain uses a mix of Linear Attention for global context with constant memory and Sliding Window Attention (SWA) for precise local patterns. The researchers developed two primary variants:

  • SpikingBrain-7B: An inter-layer hybrid model.
  • SpikingBrain-76B: A massive Mixture-of-Experts (MoE) model utilizing an intra-layer hybrid design.
Detailed architecture of SpikingBrain-7B and SpikingBrain-76B, highlighting inter-layer and intra-layer hybrid designs and spiking coding.

Adaptive Threshold Spiking

To manage the "dead" or "over-active" neuron problem common in traditional Spiking Neural Networks (SNNs), the authors proposed a dynamic threshold ($V_{th}$) that adjusts based on membrane potential. This allows the model to handle high-magnitude outliers while maintaining a high spiking sparsity of approximately 69.15%.

Efficient Model Conversion ("Upcycling")

Rather than training from scratch, the team developed a pipeline to "upcycle" weights from the open-source Qwen2.5-7B model. By remapping quadratic attention maps to linear ones, the model inherits pre-trained knowledge, reaching high performance using less than 2% of the data typically required for a new model.

Training and Evaluation

The models underwent a three-stage training process:

  1. Continual Pre-training (CPT): Used the Matrix dataset (~150B tokens) to adapt the architecture and extend context length to 128k.
  2. Supervised Fine-Tuning (SFT): Utilized the Infinity Instruct datasets for general knowledge and dialogue capabilities.
  3. Reasoning Alignment: Employed high-quality reasoning data distilled via the DeepSeek-R1 method to enhance logical and mathematical performance.

Evaluation was conducted on standard benchmarks including MMLU, CMMLU, C-Eval, ARC-C, and LongBench.

Key Results and Insights

  • Performance Parity: SpikingBrain-7B recovered nearly 90% of its base model's performance, matching or exceeding Mistral-7B and Llama3-8B on several benchmarks. The 76B MoE version surpassed Llama2-70B and Mixtral-8x7B.
  • Massive Speedups: For a 4-million-token sequence, SpikingBrain-7B achieved a 100x speedup in Time to First Token (TTFT) compared to standard Transformers.
  • Constant Memory Footprint: Linear attention allows the memory footprint to stay partially constant, enabling the processing of massive sequences without system crashes.
  • Hardware Versatility: The team demonstrated stable training on MetaX GPUs, achieving a Model FLOPs Utilization (MFU) of 23.4%, proving viability outside the CUDA-only ecosystem.

Limitations and Future Work

While SpikingBrain achieves extreme efficiency, a performance gap remains between the pure linear version and the original quadratic base models. Furthermore, the full energy-saving potential of spiking mechanisms requires deployment on dedicated neuromorphic hardware, as current GPUs still simulate these spikes using standard math. Future work will focus on deeper alignment and transition to next-generation asynchronous chips to fully realize the low-power promise of brain-inspired computing.

Summary updated

BibTeX
@article{pan2025spikingbrain,
  author = {Yuqi Pan and Yupeng Feng and Jinghao Zhuang and Siyu Ding and Zehao Liu and Bohan Sun and Yuhong Chou and Han Xu and Xuerui Qiu and Anlin Deng and Anjie Hu and Peng Zhou and Man Yao and Jibin Wu and Jian Yang and Guoliang Sun and Bo Xu and Guoqi Li},
  title = {{SpikingBrain Technical Report: Spiking Brain-inspired Large Models}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=PNLShc0C6q},
}
Figure