TL;DR
SpikingBrain2.0 (SpB2.0) is a 5B hybrid spiking foundation model that bypasses the quadratic computational bottlenecks of standard Transformers during long-context inference. By combining sparse softmax attention with sparse linear attention and introducing dual-path quantization (FP8 for GPUs and INT8-Spiking for neuromorphic hardware), it achieves up to a 10.13× speedup and supports contexts exceeding 10 million tokens—all while recovering over 95% of its base model's capability with minimal training overhead.
What Problem Does This Paper Address?
As large language models (LLMs) scale up their context windows to handle massive documents and complex workflows, conventional full-attention Transformers hit a wall. Standard attention mechanisms suffer from quadratic computational complexity $O(n^2)$ and a linear growth in memory consumption due to the Key-Value (KV) cache. This makes long-context deployment prohibitively expensive, especially in resource-constrained or real-time edge environments.
While alternative architectures like Linear Attention (LA) or Sparse Attention (SA) exist, they present a difficult trade-off: linear attention struggles with precise information retrieval over long sequences, whereas sparse attention still requires preserving the entire uncompressed KV cache in memory. Furthermore, training these alternative architectures from scratch demands enormous computational budgets. SpikingBrain2.0 addresses this by establishing an efficient pipeline to convert pretrained Transformers into highly efficient, cross-platform hybrid spiking models.
Methods
SpikingBrain2.0 introduces architectural innovations and an optimized training pipeline to bridge the gap between biological efficiency and practical hardware acceleration.
1. Dual-Space Sparse Attention (DSSA)
Instead of relying on a single attention mechanism, SpB2.0 utilizes an inter-layer hybrid design combining two distinct sparse paradigms at a 1:3 ratio:
- Mixture of Block Attention (MoBA): An input-dependent, block-sparse softmax attention that computes exact attention over dynamically selected, uncompressed KV blocks.
- Sparse State Expansion (SSE): A recurrent linear attention variant that operates sparsely over compressed state representations.
This dual-space approach mimics brain-like memory gating, balancing high-fidelity long-context recall with low computational overhead. A single full-attention layer is retained at the very end to stabilize training.
2. Dual-Path Activation Coding
To ensure cross-platform compatibility, the model supports two distinct quantization pathways for linear projections:
- INT8-Spiking Path: Designed for event-driven neuromorphic hardware. It uses bitwise coding to expand integer activations into sparse, multi-timestep spike sequences, replacing dense matrix multiplications (MatMuls) with energy-efficient sparse integer accumulations.
- FP8 Path: Tailored for modern synchronous GPUs (like NVIDIA Hopper architectures), leveraging optimized Tensor Cores to accelerate inference with negligible precision loss.
3. Transformer-to-Hybrid (T2H) Conversion Pipeline
Rather than training from scratch, the authors initialize SpB2.0 from a pretrained Transformer base (Qwen3-4B). They employ a multi-stage conversion pipeline featuring short-context distillation, progressive three-stage long-context extension (up to 512k), general supervised fine-tuning (SFT), and reasoning-oriented SFT.
Datasets
The T2H conversion pipeline relies entirely on a curated mixture of open-source datasets:
- LLM Path: Distillation and continual pre-training (CPT) utilize subsets of Nemotron-Pretraining-SFT-v1 and Nemotron-CC-v2. Long-context extension uses the ProLong dataset. On-policy distillation for reasoning utilizes DAPO-Math-17k.
- VLM Path: Multimodal conversion leverages LLaVA-NeXT-Data, LLaVA-OneVision-1.5-Instruct-Data, and PixMo.
- Evaluation: The models are evaluated across a massive suite of standard benchmarks, including MMLU, GSM8K, HumanEval, RULER-32k, LongBench-32k, and various vision-language benchmarks like MMBench, MMStar, and DocVQA.
Key Insights and Ideas
- Sensitivity-Driven Layer Selection: Replacing Transformer layers uniformly degrades performance. The authors discovered that earlier layers dominate residual information flow; replacing them with linear attention causes severe capability drops. A greedy, training-free sensitivity analysis identifies exactly which layers must remain softmax-based (MoBA) to preserve model intelligence.
- The Necessity of a CPT Warm-Up: Moving directly from a Transformer to a hybrid architecture via pure SFT results in poor token efficiency and limited capability recovery. A Continual Pre-Training (CPT) warm-up phase with distillation is essential to smooth out the architectural transition.
- Surprisingly Small Token Budgets: While its predecessor (SpB1.0) required 100B tokens for conversion, SpB2.0 recovers 96.4% of the original MMLU score using just 3B CPT tokens, proving that high-quality data and precise layer selection drastically compress the required training budget.
Key Results
- Training Efficiency: The entire conversion process for both the LLM and VLM variants required fewer than 7k A100 GPU hours total, completing in under 9 days on 32 GPUs.
- Inference Speedups: Under HuggingFace sequence parallelism, SpB2.0 achieves a 10.13× Time-to-First-Token (TTFT) speedup at a 4M context length compared to the Qwen3 baseline.
- Massive Context Capacity: Serving via vLLM on 8 A100 GPUs, SpB2.0 successfully handles sequences beyond 10M tokens using chunked prefill, a regime where the full-attention baseline completely runs out of memory (OOM).
- Hardware Efficiency:
- On conventional GPUs, the FP8 path delivers a 2.52× TTFT speedup at 250k context with only a 0.24% accuracy drop.
- On neuromorphic chip simulations, the INT8-Spiking path achieves 64.31% spike-sequence sparsity, translating to a 70.6% area reduction and a 46.5% power reduction at 500MHz compared to a standard INT8 baseline.
Limitations and Future Work
Despite its strong performance, the authors note a few areas for improvement:
- Complex Reasoning Gap: While SpB2.0 approaches the capabilities of its base model on general tasks, a performance gap remains on highly advanced reasoning benchmarks like AIME, primarily due to a lack of high-difficulty training samples in the open-source data mixture.
- Short-Context Decoding Overhead: The decoding speedups are less pronounced at shorter context lengths because of the added overhead from auxiliary projections and tensor-parallel communications.
- Paged-Attention Bottlenecks: Under chunked prefill in vLLM, the measured speedup remains below the theoretical maximum due to current engineering limitations in MoBA paged-attention implementations, leaving room for deeper system-level optimizations.
Summary updated