Achieve Latency-Efficient Temporal-Coding Spiking LLMs via Discretization-Aware Conversion

Jinjie Fang, Tianxing Man, Chengxun Jin, Xiao Du, Haozhen Zhang, Yi Chang, Bin GuNeurIPS 2026

TL;DR

Large Language Models (LLMs) guzzle electricity, and brain-inspired Spiking Neural Networks (SNNs) offer a radical way to slash that energy bill—if only they weren't painfully slow when encoding complex numbers. By proving that discrete spike timings are mathematically identical to low-bit model quantization, the authors convert massive LLMs into ultra-fast, single-spike networks that cut energy consumption roughly in half with minimal accuracy loss.

What Problem Does This Paper Address?

Modern LLMs rely on dense matrix multiplications that require massive energy. Spiking Neural Networks (SNNs) offer a greener alternative by communicating asynchronously via discrete "spikes" (0s and 1s) rather than continuous floating-point numbers, saving immense power on neuromorphic hardware. Because training a spiking LLM from scratch is prohibitively expensive, researchers typically convert pre-trained standard ANNs into SNNs (ANN-to-SNN, or A2S conversion).

Most existing spiking LLMs use rate coding, where a number is represented by how frequently a neuron fires—more spikes mean a higher value, which still burns energy. Time-to-first-spike (TTFS) coding is much more efficient: each neuron fires at most once, encoding its value in when that single spike happens.

Here is the catch: existing TTFS conversion methods assume continuous time. To accurately mimic floating-point numbers without rounding errors, they require massive time windows (e.g., 4,096 discrete time steps per layer). Because each layer must wait for the previous layer's window to finish before emitting its own spikes, delays cascade across deep LLMs, creating unacceptable inference latency.

Figure 1: Inference delay across network layers.

Furthermore, shrinking the time window introduces severe discretization errors (coarse time steps) and outlier-induced range errors (LLM activations notoriously have heavy-tailed outliers that clip outside predefined time windows), causing model performance to collapse.

Discretization and outlier range errors in finite-latency TTFS coding

Methods

Instead of chasing idealized, continuous lossless conversion, the authors embrace finite-latency constraints and introduce Quantization-Consistent ANN-to-SNN (QC-A2S) conversion.

Overview of Continuous vs. Discretization-Aware Conversion Pipelines
  1. Discrete Error Framework & Equivalence: The authors formulate a discrete-time mathematical model of TTFS neurons and prove an exact equivalence between discrete TTFS-based SNNs and static quantized ANNs. A quantization bit-width of $n$ bits maps directly to a spike time window of $T = 2^n$ steps.
  2. Outlier-Aware Static Quantization (Standard + Adapted): To tame LLM activation outliers before conversion, they apply PrefixQuant, an existing post-training quantization (PTQ) method that isolates token-wise outliers without needing expensive dynamic runtime calculations.
  3. Parameter Mapping (Novel): Using their equivalence theorem, they directly translate the retrieved static quantization parameters (scale, zero-point, and quantization levels) into physical spiking neuron parameters: membrane time constants, firing thresholds, and emission/ending times.
  4. Spiking Nonlinearities (Novel): Standard LLM nonlinearities—SiLU, GELU, Softmax, and RMSNorm—are replaced with custom-derived discrete spiking equivalents (e.g., a log-sum-exp spiking neuron for Softmax).

Datasets

Because QC-A2S relies on post-training conversion rather than full retraining, evaluation focuses on zero-shot reasoning accuracy and language modeling perplexity across existing standard benchmarks (no new datasets are introduced):

  • Reasoning Accuracy: PIQA, HellaSwag, WinoGrande, ARC-Easy, and ARC-Challenge.
  • Language Modeling (Perplexity): C4, The Pile, WikiText-2, and RedPajama. (Note: The text mentions five perplexity datasets, though only these four are named and reported in the tables).

Key Insights and Ideas

  • Quantization in Space = Spiking in Time: This is the central "aha!" moment of the paper. Quantized ANNs compress numerical bit-width to save spatial memory; discrete TTFS SNNs transpose those exact same discrete levels into the temporal domain as precise spike timings. A 4-bit quantized activation is mathematically identical to a neuron firing within a 16-step time window ($T = 2^4 = 16$).
  • Fixing Quantization Outliers Fixes Spike Clipping: Previous TTFS methods failed on LLMs because extreme activation outliers fell outside calibrated firing windows. By realizing TTFS conversion is a quantization problem in disguise, decades of PTQ outlier-suppression tricks suddenly become tools for building better spiking networks.

Key Results

Evaluated across LLaMA-2 (7B, 13B, 70B), LLaMA-3 (8B, 70B), Qwen2-7B, and Mistral-7B v0.3, QC-A2S rescues temporal-coding LLMs from collapse under ultra-low latencies ($T=16, 32, 64$):

  • Crushing Prior TTFS Methods: On LLaMA-3-8B at $T=64$, standard continuous-assumption TTFSFormer collapses to 35.51% average accuracy and >100 perplexity. QC-A2S achieves 72.52% accuracy and 7.34 perplexity—nearly matching the FP16 baseline (72.75% accuracy, 7.01 perplexity).
  • Beating Rate-Coded Spiking LLMs: QC-A2S outperforms SpikeLLM (W8A6) across LLaMA models—for instance, on LLaMA-3-70B, SpikeLLM drops to 38.38% accuracy while QC-A2S ($T=16$) maintains 76.85% (vs. 79.99% FP16).
  • Theoretical Energy Savings: Using a 45nm CMOS theoretical energy model, QC-A2S ($T=16$) replaces expensive Multiply-Accumulate (MAC) operations with cheap Accumulate (AC) operations, cutting estimated inference energy by ~50% to 57% (e.g., dropping LLaMA-2-13B from 20.90 J to 9.04 J, and LLaMA-3-8B from 14.85 J to 6.87 J).

Limitations and Future Work

While the provided main text does not include a dedicated limitations section (often placed in the appendix), two practical constraints are apparent from the experiments:

  • Theoretical vs. Hardware Energy: Energy reductions are calculated via a theoretical operation-counting model (45nm CMOS MAC vs. AC costs) rather than measured on physical neuromorphic chips.
  • Latency-Precision Trade-off: Because $T = 2^n$, pushing for higher numerical precision still scales the time window exponentially. Interestingly, Table 4 shows that increasing $T$ from 256 to 1024 slightly decreases accuracy on LLaMA-2-7B (69.13% to 69.01%) and 13B (71.78% to 71.56%), suggesting diminishing returns at higher time steps.

Summary updated

Abstract

Large language models (LLMs) have achieved remarkable success while introducing critical energy bottlenecks that challenge sustainable deployment. Spiking neural networks (SNNs) provide a promising approach for energy-efficient spiking LLMs via ANN-to-SNN (A2S) conversion. Among various spike coding methods, time-to-first-spike (TTFS) coding is particularly appealing as it conveys information with a single spike, further reducing energy consumption. However, existing TTFS-based A2S conversion relies on continuous-time assumptions, requiring prohibitively large latencies (e.g., 4096 time steps) to approximate ANN's continuous values. This dependency leads to unacceptable inference delays in LLMs, posing significant challenges for developing practical temporal-coding spiking LLMs. In this paper, we propose a discrete analysis framework for TTFS-based LLMs, reformulating TTFS-based A2S conversion from continuous lossless conversion into discrete error-aware representation. Building on this analysis, we establish an equivalence between discrete TTFS-based SNNs and static quantized ANNs, allowing TTFS conversion to be handled through quantization techniques. Motivated by this equivalence, we introduce Quantization-Consistent ANN-to-SNN (QC-A2S) conversion, which combines static quantization with discretization-compatible TTFS neurons to achieve latency-efficient and high-performance temporal-coding spiking LLMs. Extensive evaluations on representative LLMs across multiple benchmarks demonstrate competitive performance with substantially reduced inference latency.
BibTeX
@inproceedings{fang2026achieve,
  author = {Jinjie Fang and Tianxing Man and Chengxun Jin and Xiao Du and Haozhen Zhang and Yi Chang and Bin Gu},
  title = {{Achieve Latency-Efficient Temporal-Coding Spiking LLMs via Discretization-Aware Conversion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=G3WiNUM5h1},
}
Figure