Manuscript Offprint

arXiv:2609.05151

Large Language Models with At Most One Spike per Neuron

Zhuoya Zhao, Parsa Omidi, Aref Jafari, Richard Naud

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Leveraging their inherent sparse event-driven computation, spiking neural networks (SNNs) offer a promising path toward energy-efficient large language models (LLMs). Time-to-first-spike (TTFS) coding generates at most one spike per neuron within a time window, yielding extremely low firing rates. However, conventional TTFS SNNs are restricted to specific structures, making it challenging to encode certain blocks in LLMs—such as layer normalization and matrix multiplications—using TTFS. To overcome this limitation, we introduce a reference-based strategy specifically to encode the four core LLM components: embedding layers, layer normalization, attention-related operations and dropout. We construct a fully TTFS-based SNN architecture and train it end-to-end. Experiments on modern LLMs like BERT and GPT-2 demonstrate that our approach achieves performance comparable to ANN counterparts on natural language understanding and commonsense reasoning, while a clear gap remains on language modeling perplexity. To the best of our knowledge, this is the first work to scale a spiking LLM to 1.5 billion parameters using TTFS coding. We also report an estimate of spike-related energy; this is a spike-count proxy under an established cost model rather than a measurement on neuromorphic hardware.

1 Introduction

As an alternative to conventional ANN-based computation, spiking neural networks (SNNs) have gained increasing attention because their event-driven processing relies on sparse and binary spikes, which makes them naturally compatible with energy-efficient neuromorphic hardware. In particular, neuromorphic chips designed for spiking computation leverage in-memory computing to avoid frequent data transfer between memory and processors, thereby accelerating computation Merolla et al. [2014]. This characteristic of energy efficiency gives SNNs the potential to scale large language models (LLMs) for practical implementation.

Compared to the time-average rate code Gerstner et al. [2014], the population average rate code DePasquale et al. [2023] and the temporal firing patterns Friedenberger et al. [2023], Time-to-First-Spike (TTFS) coding encodes information using strictly at most one spike per neuron, yet it enables SNNs to maintain high performance by leveraging precise spike timing Stanojevic et al. [2024]. Due to the sparsity and energy efficiency of TTFS coding, recent microelectronic research has demonstrated its computational advantages and developed dedicated mixed-signal vector-by-matrix multiplication (VMM) and neuron circuits that naturally align with the algorithmic principles of TTFS Bavandpour et al. [2019], Widmer et al. [2023], opening up broad prospects for the application of TTFS in edge intelligence. Despite its inherent sparsity, TTFS coding faces significant challenges when applied to LLMs. Prior works have demonstrated that TTFS can establish an exact mapping for

Preprint.

Figure

Figure 1: Comparison of performance, estimated spike-related energy consumption (refer to Section 6.1), and parameter size for TTFS-BERT, standard BERT, and other spiking BERTs on the GLUE benchmark.

a specific class of artificial neural networks, namely Multi-Layer Perceptrons (MLPs) with Rectified Linear Units (ReLUs) Rueckauer and Liu [2018], Stanojevic et al. [2023, 2024]. The first spike timing is not a continuous value, since the output spike timing is delayed relative to the input, and any infinite first spike timing is usually disregarded. Consequently, the first spike timing is inherently upper-bounded, and if it exceeds this limit, it is clipped to the predefined maximum value. This constitutes the first major limitation of TTFS: the restricted range of output spike timings. Moreover, because TTFS mapping is only feasible for specific network structures, it is challenging to implement more complex components Stanojevic et al. [2024], such as embedding layers, layer normalization (LayerNorm), and matrix multiplication, using conventional TTFS neurons.

Recent work has explored latency coding for converting ANNs into spiking transformers Jiang et al. [2024], Zhao et al. [2025]. These conversion-based approaches, may suffer from approximation errors, potentially impacting inference accuracy. To address this, we advocate for designing ANNs with inherent SNN-friendly properties—such as spike-compatible activations, which significantly enhances both accuracy and hardware efficiency. Consequently, we design a native TTFS-based LLM and train it from scratch. Our main idea is to construct an exact mapping between TTFS layers and certain components in LLMs (e.g., linear layers). For components that do not admit an exact mapping, we instead approximate them using TTFS layers (e.g., LayerNorm). Evaluating this architecture requires rigorous consideration of training dynamics, particularly as we scale from small networks to LLMs. To validate the scalability of our approach, we conduct comprehensive experiments on LLMs across varying parameter scales.

Scaling SNNs for computational purposes ultimately targets their deployment on neuromorphic chips. Therefore, two key questions must be addressed: first, how to realize TTFS-based LLMs; and second, how to maintain competitive performance comparable to their ANN version. To the best of our knowledge, this is one of the first works to explore TTFS coding for large-scale language models. Our main contributions are summarized as follows:

(1) We introduce a reference-time mechanism in LLMs that enhances the expressiveness of TTFS neurons, enabling signed activations.

(2) We extend reference-based TTFS (R-TTFS) encoding to four key modules (embedding layers, LayerNorm, matrix multiplication, dropout) in LLMs, enabling TTFS-based computation throughout the entire LLM pipeline.

(3) We show that our method scales effectively to LLMs such as BERT and GPT-2, reaching ANN-level performance on natural language understanding and commonsense reasoning benchmarks.

All these contributions point toward spiking LLMs whose spike count, and hence estimated spike-related energy, is substantially lower than that of rate-coded spiking baselines (Figure 1).

References (41)

  • Layer Normalization
  • Spikingbert: Distilling bert to train spiking language models using implicit differentiation
  • Energy-efficient time-domain vector-by-matrix multiplier for neurocomputing and beyond
  • Advancing neuromorphic computing with loihi: A survey of results and outlook
  • The centrality of population-level factors to network computation is demonstrated by a versatile approach for training spiking networks
  • Bert: Pre-training of deep bidirectional transformers for language understanding
  • Silences, spikes and bursts: Three-part knot of the neural code
  • Zenodo, 2021
  • Spiking neuron models: Single neurons, populations, plasticity
  • Neuronal dynamics: From single neurons to networks and models of cognition
  • Understanding the difficulty of training deep feedforward neural networks
  • Nature machine intelligence, 3 (9):823–835, 2021
  • Delving deep into rectifiers: Surpassing human-level performance on imagenet classification
  • Spikedattention: Training-free and fully spike-driven transformer-to-snn conversion with winner-oriented spike shift for softmax operation
  • Batch normalization: Accelerating deep network training by reducing internal covariate shift
  • Spatio-temporal approximation: A training-free snn conversion for transformers
  • A simple weight decay can improve generalization
  • Spikebert: A language spikformer learned from bert with knowledge distillation (opens arXiv in a new tab)
  • Science, 345 (6197):668–673, 2014
  • The brainscales-2 accelerated neuromorphic system with hybrid plasticity
  • Decanting the web for the finest text data at scale
  • OpenAI blog, 1(8):9, 2019
  • Conversion of analog to spiking neural networks using sparse temporal coding
  • Spikingssms: Learning long sequences with sparse and parallel spiking state space models
  • Dropout: a simple way to prevent neural networks from overfitting
  • An exact mapping from relu networks to spiking neural networks
  • High-performance deep spiking neural networks with 0.3 spikes per neuron
  • A burst-dependent algorithm for neuromorphic on-chip learning of spiking neural networks
  • Snn-bert: Training-efficient spiking neural networks for energy-efficient bert
  • Glue: A multi-task benchmark and analysis platform for natural language understanding (opens arXiv in a new tab)
  • Temporal-coded spiking neural networks with dynamic firing threshold: Learning with event-driven backpropagation
  • Design of time-encoded spiking neural networks in 7-nm cmos technology
  • Spikellm: Scaling up spiking neural network to large language models via saliency-based spiking (opens arXiv in a new tab)
  • SpikeLM: Towards general spike-driven language modeling via elastic bi-spiking mechanisms
  • National Science Review, 13(4):nwaf551, 2026
  • Attention spiking neural networks
  • Toward energy-efficient spike-based deep reinforcement learning with temporal coding
  • Ttfsformer: A tffs-based lossless conversion of spiking transformer
  • Spikformer: When spiking neural network meets transformer
  • Spikegpt: Generative pre-trained language model with spiking neural networks (opens arXiv in a new tab)
  • Aligning books and movies: Towards story-like visual explanations by watching movies and reading books