Energy-Efficient and Dequantization-Free Q-LLMs: A Spiking Neural Network Approach to Salient Value Mitigation

Chenyu Wang, Zhanglu Yan, Zhi Zhou, Xu Chen, Weng-Fai WongarXiv 2025 · DOI

Abstract

Quantizing Large Language Models (LLMs) to 4-bit precision is vital for edge deployment but faces significant challenges from high-magnitude activation outliers (salient values) and the "dequantization tax" inherent in standard hardware. We present SpikeQuant, a framework that leverages brain-inspired Spiking Neural Networks (SNNs) to achieve energy-efficient, near-lossless 4-bit quantization. By employing Time-to-First-Spike (TTFS) encoding and embedding quantization scales directly into neural firing thresholds, SpikeQuant eliminates explicit dequantization steps. Our approach achieves up to a 4.6× reduction in energy consumption while maintaining the accuracy of FP16 models across diverse benchmarks.

Introduction

The deployment of Large Language Models (LLMs) on resource-constrained devices necessitates aggressive quantization, typically from 16-bit floating-point to 4-bit integer formats. However, two primary obstacles hinder efficient quantization:

  1. The Outlier Problem: LLM activations exhibit "salient values"—rare, high-magnitude outliers that disrupt standard quantization ranges. Clipping these values destroys accuracy, while accommodating them reduces precision for the majority of activations.
  2. The Dequantization Tax: Standard Multiply-Accumulate (MAC) operations require dequantizing 4-bit data back to higher precision to apply scaling factors, incurring significant energy and memory bandwidth costs.

Methods: The SpikeQuant Framework

SpikeQuant reimagines LLM inference using the temporal and thresholding properties of Spiking Neural Networks (SNNs). The framework introduces three core innovations:

MAD-Guided Dynamic Detection

Unlike static methods that use fixed ratios, SpikeQuant uses Median Absolute Deviation (MAD) to identify salient values dynamically during inference. This robust metric allows the model to adapt to varying token distributions across different layers, identifying fewer outliers (2-3%) while maintaining higher accuracy.

TTFS Encoding and Threshold-Based Dequantization

SpikeQuant utilizes Time-to-First-Spike (TTFS) encoding, where the magnitude of a value determines the timing of a single spike within a small window. This temporal representation enables "in-place" mixed precision without complex memory management.

Crucially, SpikeQuant achieves dequantization-free inference by mathematically embedding quantization scaling factors directly into the neuron's firing threshold ($V_{th}$). This transformation allows hardware to perform simple Accumulations (ACCs) instead of complex MACs, effectively offloading the "math" of dequantization to the spiking mechanism itself.

Overview of the SpikeQuant framework, illustrating TTFS spike encoding and threshold-based dequantization.

Experimental Evaluation

The framework was evaluated on LLaMA-2 (7B, 13B) and OPT (1.3B, 2.7B) models using WikiText-2 and C4 for perplexity, alongside zero-shot reasoning tasks (PIQA, ARC, BoolQ, HellaSwag, and Winogrande).

Key Results

  • Energy Efficiency: SpikeQuant reduces energy costs by up to 4.6× compared to standard quantization baselines. For the OPT-2.7B model, it achieved a 78.5% energy saving over the popular GPTQ algorithm.
  • Accuracy Preservation: Under W4A4 (4-bit weight/activation) settings, SpikeQuant's perplexity is nearly identical to FP16 models. For Llama2-7B, the average accuracy loss across zero-shot tasks was a negligible 0.09%.
  • Superiority over Baselines: It consistently outperformed other salient-aware methods like Atom and SpikeLLM, which often rely on fixed ratios that fail to capture the dynamic nature of LLM activations.
Energy cost comparison on OPT-1.3B, demonstrating SpikeQuant's significant efficiency gains.

Discussion and Future Work

SpikeQuant demonstrates that SNN properties can serve as powerful mathematical tools for standard ANN engineering. By shifting scaling logic to the firing threshold, it bypasses the need for floating-point hardware during core computation.

However, full realization of these benefits requires neuromorphic hardware or specialized accelerators optimized for event-driven accumulation. Future work will explore scaling SpikeQuant to "frontier" models (70B+ parameters) and managing the sequential latency introduced by the TTFS time window.

Summary updated

BibTeX
@misc{wang2025energy,
  author = {Chenyu Wang and Zhanglu Yan and Zhi Zhou and Xu Chen and Weng-Fai Wong},
  title = {{Energy-Efficient and Dequantization-Free Q-LLMs: A Spiking Neural Network Approach to Salient Value Mitigation}},
  year = {2025},
  eprint = {2510.19498},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.19498},
}
Figure