Reproduce “Energy-Efficient and Dequantization-Free Q-LLMs: A Spiking Neural Network Approach to Salient Value Mitigation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Chenyu Wang, Zhanglu Yan, Zhi Zhou, Xu Chen, Weng-Fai Wong

SpikeQuant, a framework developed by researchers at Sun Yat-sen University and National University of Singapore, leverages Spiking Neural Networks to create energy-efficient and dequantization-free quantized Large Language Models. This approach dynamically mitigates salient values in activations, achieving near-FP16 accuracy for models like Llama2-7B and OPT-2.7B, while reducing energy consumption by up to 78.5%.

Key insights

  • Dynamically detecting and handling salient values in activations with a slightly higher bit-width (5-bit) via a robust statistical method like MAD is crucial for maintaining LLM accuracy under aggressive quantization.
  • Time-to-First-Spike (TTFS) encoding in SNNs provides a memory-efficient and hardware-compatible way to represent and store mixed-precision activation values as binary events, circumventing challenges of direct mixed-bit tensor storage.
  • Embedding quantization scales directly into the firing thresholds of SNN Integrate-and-Fire neurons enables dequantization-free linear transformations, fundamentally altering the computational paradigm to replace energy-intensive MACs with efficient accumulations.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.