Large Language Models Inference Engines based on Spiking Neural Networks
Not on the map. Why?
Abstract (arXiv)
Foundational models based on the transformer architecture are currently the state-of-the-art in general language modeling, as well as in scientific areas such as material science and climate. However, training and deploying these models is computationally challenging as the time and space complexity has a quadratic relation to the input sequence length. Several efforts exploring efficient computational paradigms and model architectures to address these limitations have been made. In this work, we explore spiking neural networks (SNNs) to design transformer models. A challenge in training large-scale SNNs, using existing surrogate learning methods is inefficient and time-consuming. On the other hand, techniques to convert existing transformer-based models to their SNN equivalent are not scalable, as achieving optimal performance comes at the cost of a large number of spike time-steps, i.e. increased latency. To address this, we propose NeurTransformer, a methodology for designing transformer-based SNN for inference using a supervised fine-tuning approach with existing conversion methods. The proposed methodology works by: (1) replacing the self-attention mechanism with a spike-based self-attention (SSA), (2) converting the feed-forward block of the trained transformer model to its equivalent SNN, and (3) fine-tuning the SSA block using SNN-based surrogate learning algorithms. We benchmark the proposed methodology and demonstrate its accuracy and scalability using three variants of the GPT-2 model of increasing model size. We observe that the converted GPT-2 small models demonstrate a 5-12% loss in cosine similarity and a 9.7% reduction in perplexity. Finally, we demonstrate the energy efficiency of the SSA block compared to the ASA block and show between 64.71% and 85.28% reductions in estimated energy consumption when implementing the self-attention mechanism on a digital hardware.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 26 references that are in the map. First posted on arXiv 30 Sep 2025.
Builds on
13 of 26 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2023ClimaX: A foundation model for weather and climatecited by 337
- 2021Training Spiking Neural Networks Using Lessons From Deep Learningcited by 259
- 2023Spike-driven Transformercited by 146
- 2022Attention Spiking Neural Networkscited by 107
- 2021Temporal-wise Attention Spiking Neural Networks for Event Streams Classificationcited by 106
- 2017Deep supervised learning using local errorscited by 41
- 2016Theory and Tools for the Conversion of Analog to Spiking Convolutional Neural Networkscited by 31
- 2020TCL: an ANN-to-SNN Conversion with Trainable Clipping Layerscited by 20
- 2022STSC-SNN: Spatio-Temporal Synaptic Connection with Temporal Convolution and Attention for Spiking Neural Networkscited by 20
- 2023Enhancing Large Language Models with Climate Resourcescited by 18
- 2023Inherent Redundancy in Spiking Neural Networkscited by 13
1 more
Built on by
Not cited yet.