[Paper Review] Matterhorn: Efficient Analog Sparse Spiking Transformer Architecture with Masked Time-To-First-Spike Encoding
Matterhorn proposes a masked time-to-first-spike encoding and a memristive in-memory synapse unit to build an energy-efficient spiking transformer, achieving state-of-the-art GLUE results among SNNs with substantially reduced energy consumption.
Spiking neural networks (SNNs) have emerged as a promising candidate for energy-efficient LLM inference. However, current energy evaluations for SNNs primarily focus on counting accumulate operations, and fail to account for real-world hardware costs such as data movement, which can consume nearly 80% of the total energy. In this paper, we propose Matterhorn, a spiking transformer that integrates a novel masked time-to-first-spike (M-TTFS) encoding method to reduce spike movement and a memristive synapse unit (MSU) to eliminate weight access overhead. M-TTFS employs a masking strategy that reassigns the zero-energy silent state (a spike train of all 0s) to the most frequent membrane potential rather than the lowest. This aligns the coding scheme with the data distribution, minimizing spike movement energy without information loss. We further propose a `dead zone' strategy that maximizes sparsity by mapping all values within a given range to the silent state. At the hardware level, the MSU utilizes compute-in-memory (CIM) technology to perform analog integration directly within memory, effectively removing weight access costs. On the GLUE benchmark, Matterhorn establishes a new state-of-the-art, surpassing existing SNNs by 1.42% in average accuracy while delivering a 2.31 times improvement in energy efficiency.
Motivation & Objective
- Motivate energy-efficient LLM inference with spiking neural networks by accounting for real hardware costs beyond MAC counts.
- Introduce M-TTFS encoding to reduce spike movement while preserving information.
- Propose a Memristive Synapse Unit (MSU) using compute-in-memory to eliminate weight access overhead.
- Demonstrate state-of-the-art GLUE accuracy for SNNs and quantify energy efficiency gains.
Proposed method
- Introduce masked time-to-first-spike (M-TTFS) encoding that remaps the silent state to the most frequent membrane potential time I_max and optional dead zone around I_max.
- Generalize M-TTFS with a dead zone radius k to maximize sparsity and reduce spike movement energy.
- Present a QNN-to-SNN conversion framework to train with a dead-zone-aware quantized network and map to M-TTFS SNNs.
- Design the Memristive Synapse Unit (MSU) based on an analog CIM crossbar (nT1R) to perform in-memory VMM with bit-serial processing.
- Provide energy decomposition equations for FC and attention Q/K/V computations incorporating spike processing, thresholding, and memory access.
- Evaluate energy with a hybrid digital/analog model on a 22 nm process and a spatial dataflow architecture.
Experimental results
Research questions
- RQ1How does M-TTFS encoding affect spike rate, spike movement energy, and accuracy in spiking transformers?
- RQ2What is the impact of the dead zone parameter k on sparsity, energy, and GLUE performance?
- RQ3Can a memristive in-memory synapse unit (MSU) eliminate weight access costs and further reduce energy without sacrificing accuracy?
- RQ4How does Matterhorn compare to prior SNNs and full-precision baselines on GLUE in terms of accuracy and energy efficiency?
Key findings
- Matterhorn achieves state-of-the-art accuracy among spiking transformers on GLUE, with 1-bit Matterhorn(k=0) averaging 85.87% and Matterhorn(k=1) averaging 84.64%.
- M-TTFS reduces spike movement energy and spike rate, e.g., SST-2 with dead zone k=1 yields energy reduction and negligible accuracy loss.
- Using dead zone k=1 with MSU yields an overall energy of 6.14 mJ per transformer block, a 2.7× reduction over a digital baseline and 57% lower than Spiking Otters.
- Matterhorn(k=1) delivers 2.31× energy efficiency improvement over the previous state-of-the-art, and 1.42% higher average accuracy than prior leading SNNs on GLUE.
- The QNN-to-SNN equivalence is maintained with a dead-zone-informed training loop, enabling identical accuracy but improved energy efficiency when deployed as Matterhorn.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.