Spike-Aware Gradient-Based Mixed-Precision Quantization of Spiking Neural Networks for Vision Applications
Organizations: Indian Institute Of Technology Madras, Chennai, India
Abstract
In recent years, Spiking Neural Networks (SNNs) have gained massive attention as an energy-efficient neural computing paradigm due to their event-driven and sparse computing capability. However, maintaining accuracy under low-precision constraints, necessary for practical deployment, has been largely unexplored for SNN models. In addition, existing Hessian-based approaches for quantization, such as HAWQ-V2, incur significant memory and computational overhead due to temporal unrolling across multiple SNN timesteps. We propose a spike-aware gradient-based mixed-precision quantization framework for SNNs that adaptively assigns bit-widths using first-order gradient information, avoiding costly second-order Hessian computations. We evaluate our method across various SNN-based architectures, including VGG, ResNet, and Vision Transformer models obtained from both ANN-to-SNN conversion and direct training frameworks, on CIFAR10/100, ImageNet, and DVS-CIFAR-10 datasets. Notably, on ResNet-34 evaluated on ImageNet, our method achieves 73.30% accuracy at 4.78 compression, which is comparable to that provided by HAWQ-V2, while reducing memory consumption by 2.31 and bit-allocation runtime by 100. We also present an energy analysis for mixed-precision SNNs showing that the proposed quantization strategy enables energy-efficient deployment without compromising performance.
Figures & tables
| Dataset | Architecture | Framework | Method | W-bits | T | W-ratio | Acc. (%) |
|---|---|---|---|---|---|---|---|
| CIFAR-10 | VGG-16 | QCFS-SNN | Full Prec. | 32 | 16 | 1.00 | 95.74 |
| HAWQ-V2 | 4.25 | 16 | 7.54 | 95.59 | |||
| Ours | 4.21 | 16 | 7.60 | 95.64 | |||
| PASCAL | Full Prec. | 32 | 8 | 1.00 | 95.58 | ||
| HAWQ-V2 | 4.01 | 8 | 7.99 | 95.19 | |||
| Ours | 4.01 | 8 | 7.99 | 95.01 |
| Dataset | Architecture | Method | W-bits | W-ratio | Acc (%) |
|---|---|---|---|---|---|
| CIFAR-10 | VGG-16 | Full Prec. | 32 | 1.00 | 92.00 |
| HAWQ-V2 | 4.15 | 7.71 | 91.92 | ||
| Ours | 4.07 | 7.87 | 91.89 | ||
| ResNet-18 | Full Prec. | 32 | 1.00 | 93.83 | |
| HAWQ-V2 | 4.10 | 7.81 | 93.74 | ||
| Ours | 4.09 | 7.82 | 93.81 |
| Dataset | Architecture | Method | W-bits | W-ratio | Acc (%) |
|---|---|---|---|---|---|
| CIFAR-10 | VGG-16 | Two-level | 2/8 | 4 | 91.55 |
| Ours | 2.46 | 13.02 | 91.88 | ||
| CIFAR-100 | ResNet-19 | Two-level | 2/8 | 4 | 72.23 |
| Ours | 2.89 | 11.07 | 72.00 | ||
| N-MNIST | 3-layer CNN | Hessian | 5.33 | 5.97 | 93.6 |
| Ours | 4.02 | 7.96 | 93.5 |
| Dataset | Architecture | Method | W-bits | W-ratio | Acc (%) |
|---|---|---|---|---|---|
| CIFAR-10 | VGG-16 | Full Prec. | 32 | 1.00 | 92.00 |
| Ours | 2.46 | 13.02 | 91.88 | ||
| ResNet-18 | Full Prec. | 32 | 1.00 | 93.83 | |
| Ours | 2.52 | 12.68 | 93.39 | ||
| CIFAR-100 | VGG-16 | Full Prec. | 32 | 1.00 | 67.90 |
| Ours | 2.47 | 12.98 | 66.41 |
| Dataset | Arch | Type | Method | W-bits | W-ratio | Acc (%) |
|---|---|---|---|---|---|---|
| CIFAR-10 | ResNet20 | ANN | Full Prec. | 32 | 1.00 | 92.90 |
| HAWQ-V2 | 13.11 | 92.22 | ||||
| Ours | 2.27 | 14.11 | 92.61 | |||
| ImageNet | Inception-V3 | ANN | Full Prec. | 32 | 77.45 | |
| HAWQ-V2 | 75.68 | |||||
| Ours | 2.35 | 13.61 | 76.11 |
| Dataset | Architecture | Grad | Grad + Threshold Margin | ||||
| W-bits | W-ratio | Acc (%) | W-bits | W-ratio | Acc (%) | ||
| CIFAR-10 | ResNet-18 | 2.72 | 11.73 | 93.72 | 2.76 | 11.56 | 94.24 |
| VGG-16 | 2.74 | 11.64 | 95.55 | 2.74 | 11.64 | 95.61 | |
| 2.49 | 12.83 | 95.46 | 2.46 | 13.01 | 95.49 | ||
| CIFAR-100 | ResNet-18 | 3.63 | 8.81 | 64.24 | 3.72 | 8.60 | 64.71 |
| 3.56 | 8.98 | 64.24 | 3.59 | 8.89 | 64.6 | ||
| Dataset | Architecture | Method | W-bits | W-ratio | Acc (%) |
|---|---|---|---|---|---|
| CIFAR-10 | VGG-16 | QP-SNN | 8 | 4 | 91.98 |
| QP-SNN | 4 | 8 | 91.90 | ||
| Ours | 4.07 | 7.87 | 91.89 | ||
| CIFAR-100 | VGG-16 | QP-SNN | 8 | 4 | 66.69 |
| QP-SNN | 4 | 8 | 66.21 | ||
| Ours | 4.35 | 7.36 | 67.69 |
| Layer | Ours | HAWQ-V2 |
|---|---|---|
| conv-1 | 8 | 8 |
| conv-2 | 8 | 8 |
| conv-3 | 8 | 8 |
| conv-4 | 8 | 8 |
| conv-5 | 8 | 4 |
| conv-6 | 8 | 8 |
| Layer | Ours | HAWQ-V2 |
|---|---|---|
| conv-1 | 8 | 8 |
| conv-2 | 8 | 8 |
| conv-3 | 8 | 8 |
| conv-4 | 8 | 8 |
| conv-5 | 8 | 8 |
| conv-6 | 4 | 8 |
| Layer | Ours | HAWQ-V2 |
|---|---|---|
| conv-1 | 8 | 8 |
| conv-2 | 8 | 8 |
| conv-3 | 8 | 8 |
| conv-4 | 4 | 4 |
| conv-5 | 4 | 4 |
| conv-6 | 4 | 4 |
| Stage | Layer(s) | Weight Bit |
|---|---|---|
| Stem | Conv2d_1a_3x3.conv – Conv2d_3b_1x1.conv | 8 |
| Conv2d_4a_3x3.conv | 4 | |
| Mixed_5b | branch1x1.conv – branch3x3dbl_2.conv | 6 |
| branch3x3dbl_3.conv | 4 | |
| branch_pool.conv | 8 | |
| Mixed_5c | branch1x1.conv – branch3x3dbl_1.conv | 6 |
Mixed-Precision Quantization
Mixed-precision quantization assigns different numeric precisions across a model to balance accuracy with memory, speed, energy, and hardware constraints.
See all 166 papers