PTQ4SNN: Membrane-Aware Post-Training Quantization for Spiking Neural Networks

Hui Xie, Tong Shi, Haotong Qin, Aishan Liu, Xiaode Liu, Jinyang GuoarXiv 2026

TL;DR

Spiking Neural Networks (SNNs) save energy via binary spikes, but their internal "membrane potentials" are typically left unquantized in power-hungry floating-point formats. This paper introduces PTQ4SNN, a post-training quantization framework that jointly compresses weights and membrane states to 4 bits without retraining. By using a hardware-friendly scale bridge and mixed-precision channel allocation, it slashes memory overhead while preserving near-lossless accuracy across diverse vision tasks.

What Problem Does This Paper Address?

SNNs mimic biological brains by communicating via discrete, binary spikes, making them highly energy-efficient. However, behind these binary spikes lies a hidden cost: the membrane potential. At each timestep, Leaky Integrate-and-Fire (LIF) neurons accumulate inputs into this internal state. While weights are frequently quantized to low bit-widths (like 4-bit), these membrane states are traditionally kept in 32-bit floating point. As models grow, storing and moving these high-precision states creates a massive memory bottleneck, especially for long sequences or large batches.

Figure 1: Membrane-state cost for SDT-8-768 at 224 × 224 under ideally packed W4 Conv/Linear weights. (a) Peak weight-plus-state storage versus batch size B. (b) Logical state read/write volume versus T at B = 1. M4 reduces the membrane contributions by 8×; actual traffic depends on caching and scheduling.

Quantizing membrane states is notoriously difficult because their distributions vary wildly across channels compared to weights. Furthermore, even tiny quantization errors near the firing threshold can completely flip a spike decision, causing errors to cascade and accumulate over time.

Weight and membrane distributions across three representative channels of a paired projection-LIF unit.

Methods

The authors propose PTQ4SNN, which operates on reusable "projection-LIF pairs" (a convolutional or linear layer followed by an LIF neuron) and introduces two core components:

  1. Unified Scale Bridge: Instead of independently quantizing weights and membranes (which requires expensive hardware multipliers to align scales), this bridge couples the membrane scale directly to the preceding weight scale using a power-of-two factor ($s_{mem,c} = s_{w,c} \cdot 2^{k_c}$). This allows the quantization range to adapt to the membrane's distribution while keeping the hardware implementation restricted to simple bit-shifts.
  2. Mixed-Precision Bit Allocation (MPBA): Not all neuron channels are equally important. MPBA dynamically assigns 2, 4, or 8 bits to different membrane channels based on a combined score of their firing rate and quantization sensitivity, all while adhering to a strict average bit budget (e.g., 4 bits).

Datasets

The framework was evaluated across a variety of standard architectures and tasks using:

  • ImageNet-1K: For large-scale static image classification.
  • CIFAR-10 & CIFAR-100: For standard image classification.
  • CIFAR10-DVS: An event-based neuromorphic dataset to test temporal state tracking.
  • Pascal VOC2012: For dense semantic segmentation.

No new datasets were introduced in this work.

Key Insights and Ideas

  • The Shift-Only Advantage: Directly reusing weight scales causes severe clipping, but independent scales add hardware overhead. The Unified Scale Bridge finds the sweet spot: by enforcing a power-of-two relationship, it tracks optimal scales closely using only hardware-friendly bit shifts.
  • Channel Heterogeneity Matters: Forcing a uniform 4-bit width across all channels is highly inefficient. Some channels rarely fire, while others are incredibly sensitive to threshold perturbations. Allocating more bits to sensitive/active channels and fewer to quiet ones yields massive accuracy gains under the same memory budget.
Mixed-precision membrane allocation on SEW-ResNet18/CIFAR-10.
  • Retraining-Free Versatility: PTQ4SNN works purely via calibration on a tiny subset of data, making it easily transferable to different backbones (convolutional SNNs and spike-driven Transformers) and downstream tasks like semantic segmentation without any backbone fine-tuning.

Key Results

  • ImageNet-1K Classification: On the SDT-8-768 backbone, PTQ4SNN achieved 75.16% accuracy under W4/M4 quantization—just a 0.74% drop from the floating-point baseline, vastly outperforming previous state-of-the-art methods like FlowQ (which dropped 12.16%). On Meta-SpikeFormer, the accuracy drop was a mere 0.38%.
  • Event-Based Classification: For CIFAR10-DVS, it limited the accuracy drop to 1.00% (achieving 70.80% accuracy).
  • Semantic Segmentation: On Pascal VOC2012, it achieved 59.77 mIoU, only 0.67 points below the full-precision model, proving its capability in dense prediction tasks without task-specific retraining.

Limitations and Future Work

  • Theoretical vs. Physical Metrics: The memory savings and data movement reductions reported are theoretical tensor storage estimates. They do not account for low-level hardware allocator fragmentation or specific mixed-precision packing metadata overhead.
  • Lack of Hardware Deployment: The paper does not provide measured hardware latency or physical energy consumption on actual neuromorphic chips or FPGAs. Realizing these practical gains requires target-specific packed integer hardware implementations, which remains an open direction for future work.

Summary updated

BibTeX
@misc{xie2026ptq,
  author = {Hui Xie and Tong Shi and Haotong Qin and Aishan Liu and Xiaode Liu and Jinyang Guo},
  title = {{PTQ4SNN: Membrane-Aware Post-Training Quantization for Spiking Neural Networks}},
  year = {2026},
  eprint = {2608.07066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.07066},
}
Figure