BASC : Behavior-Aligned Quantization and Pruning for Low-Bit Spiking Neural Networks
Organizations: Hangzhou International Innovation Institute, Beihang University, Hangzhou 311115, China · School of Mathematical Sciences, Peking University, Beijing 100871, China · School of Electronic and Information Engineering; Beihang University, Beijing 100191, China · School of Integrated Circuit Science and Engineering, Beihang University, Beijing 100191, China
Abstract
Spiking Neural Networks (SNNs) encode information through binary spikes and compute in an event-driven manner, offering an energy-efficient paradigm for machine intelligence. However, high-performance SNNs incur substantial memory and timestep-wise computation costs that hinder deployment on resource-constrained devices. Quantization and pruning provide complementary routes to reducing these costs, yet both make their decisions with local criteria that overlook temporal task feedback in quantization and inter-channel dependencies in pruning. Consequently, optimizing either criterion can still yield suboptimal compression performance. We refer to this discrepancy as criterion-behavior mismatch and propose Behavior-Aligned SNN Compression (BASC), a unified framework with two lightweight modules. For quantization, the scale is applied to synaptic current at every timestep and therefore shifts spike timing. Temporal-Behavior Scale Correction (TSC) makes the scale learnable under a temporal loss, allowing firing behavior to inform scale optimization. For pruning, channel importance depends on how channels jointly drive the membrane potential across the firing threshold. Boundary-Level Inter-Channel Correction (BIC) uses channelwise importance scores for initial selection and inter-channel information to re-evaluate only channels near the pruning threshold. Extensive experiments on static and neuromorphic benchmarks show that lower-bit BASC models match or outperform higher-bit baselines and retain this accuracy advantage after structured pruning, while further reducing model storage and synaptic operations.
Figures & tables
| Scoring scheme | ICM evals | Rel. evals | Wall time (s) |
|---|---|---|---|
| SVS only | 0 | 0 | 0.88 |
| Full-channel CHIP-CI | 3,712 | 1.00 | 2,995 |
| Boundary-only (ours) | 572 | 0.154 | 480.35 |
| Dataset | Method | Arch. | Bit | T | Acc. (%) | Size (MB) |
| CIFAR-10 | Deng et al. [TNNLS 2023] | 7Conv2FC | 32/3 | 8 | 90.19/87.59 | 62.16/5.84 |
| Wei et al. [ICLR 2025] | ResNet20 | 8/4/2 | 2 | 95.92/95.74/95.69 | 17.10/8.59/4.33 | |
| BASC (Ours) | 4/3/2 | 96.54/96.40/96.30 | 8.59/6.46/4.33 | |||
| Wei et al. [ICLR 2025] | VGG-16 | 8/4/2 | 4 | 93.33/93.28/93.01 | 14.77/7.42/3.74 | |
| BASC (Ours) | 4/3/2 | 93.76/93.77/93.41 | 7.42/5.58/3.74 | |||
| CIFAR-100 | Deng et al. [TNNLS 2023] | 7Conv2FC | 3/1 | 8 | 57.83/55.95 | 11.75/5.99 |
| Configuration | Acc. (%) | Compared to | Acc. (pp) |
|---|---|---|---|
| A. Fixed scale + SVS | 74.68 | – | – |
| B. TSC + SVS | 75.94 | A. | +1.26 |
| C. Fixed scale + BIC | 74.93 | A. | +0.25 |
| D. TSC + BIC | 76.04 | A. | +1.36 |
| Dataset | Method | Arch. | Bit | T | Acc. (%) | Size (MB) |
| CIFAR-10 | Li et al. [ICML 2024] | VGG-16 | 32 | 4 | 91.67/90.26 | 17.32/5.68 |
| Wei et al. [ICLR 2025] | ResNet20 | 8/4/2 | 2 | 95.21/95.18/95.07 | 6.27/3.16/1.61 | |
| 93.92/93.77/93.53 | 3.92/1.98/1.02 | |||||
| BASC (Ours) | 4/3/2 | 95.61/95.53/95.40 | 3.16/2.38/1.61 | |||
| 94.82/94.50/94.27 | 1.98/1.50/1.02 | |||||
| Wei et al. [ICLR 2025] | VGG-16 | 8/4/2 | 4 | 91.61/91.61/91.22 | 4.28/2.16/1.10 |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Backbone | Downsample | Bit | T | Acc. (%) | Size (MB) |
|---|---|---|---|---|---|---|
| ImageNet | SEW ResNet | ReScaWConv+BN+SN | 4 | 4 | 62.81 | 7.71 |
| Conv+BN+SN | 4 | 4 | 63.40 | 8.31 | ||
| Conv+BN | 4 | 4 | 63.26 | 8.31 | ||
| Spiking ResNet | Conv+BN+SN | 4 | 4 | 61.66 | 8.31 | |
| Conv+BN | 4 | 4 | 62.02 | 8.31 | ||
| Padding | 4 | 4 | 61.89 | 7.61 |
| Code | Dataset | Backbone | Level | Params |
|---|---|---|---|---|
| V425 | CIFAR-10 | VGG-16 | standard | 4.25M |
| V142 | CIFAR-10 | VGG-16 | aggressive | 1.42M |
| V231 | CIFAR-100 | VGG-16 | standard | 2.31M |
| V168 | CIFAR-100 | VGG-16 | aggressive | 1.68M |
| V465 | TinyImageNet | VGG-16 | standard | 4.65M |
| V343 | TinyImageNet | VGG-16 | aggressive | 3.43M |
| Backbone | Stage (channels) | Standard | Aggressive |
|---|---|---|---|
| VGG-16 (C10) | layers 1–9 (64–256) | 0.45 | 0.49 |
| layers 11–16 (512) | 0.51 | 0.80 | |
| VGG-16 (C100) | layers 1–9 (64–256) | 0.45 | 0.45 |
| layers 11–16 (512) | 0.70 | 0.78 | |
| VGG-16 (Tiny) | layers 1–9 (64–256) | 0.45 | 0.45 |
| layers 11–16 (512) | 0.51 | 0.62 |
| Bit | Samples | Channels | Agreement (%) | Retained overlap (%) | Jaccard (%) | Spearman |
|---|---|---|---|---|---|---|
| 2 | 1,536 | 3,712 | 95.26 | 95.32 | 91.06 | 0.9864 |
| 3 | 1,536 | 3,712 | 94.29 | 94.36 | 89.33 | 0.9902 |
| 4 | 1,536 | 3,712 | 95.80 | 95.85 | 92.03 | 0.9964 |
| Dataset / Backbone | Spearman | Agreement | Retained ov. | Bound. capture |
|---|---|---|---|---|
| CIFAR-10 / ResNet20 | 0.9908 | 95.70% | 96.43% | 64.10% |
| CIFAR-100 / ResNet20 | 0.9692 | 94.19% | 95.18% | 63.29% |
| DVS-CIFAR10 / VGGSNN | 0.9614 | 89.64% | 84.72% | 49.14% |
| Best Acc. (%) | Final Acc. (%) | |
|---|---|---|
| 0.00 | 91.94 | 91.60 |
| 0.01 | 91.85 | 91.40 |
| 0.03 | 91.90 | 91.70 |
| 0.05 | 91.59 | 91.40 |
| 0.10 | 91.90 | 91.54 |
| 0.20 | 91.99 | 91.75 |
| Score | Pairwise Spearman | Top- overlap (%) |
|---|---|---|
| SVS | 0.9929 | 97.74 |
| ICM | 0.9932 | 97.68 |
| Seed | TSC+SVS | TSC+BIC | Gain |
|---|---|---|---|
| 0 | 75.94 | 76.04 | +0.10 |
| 1 | 75.99 | 76.16 | +0.17 |
| 2 | 76.00 | 76.24 | +0.24 |
| 3 | 76.34 | 76.49 | +0.15 |
| Mean std | 76.068 0.184 | 76.233 0.190 | +0.165 0.058 |
| Setting | Acc. at | Best Acc. | Acc. at | ||
|---|---|---|---|---|---|
| CIFAR-10 / ResNet20 / B2 | 0.800 | 90.45 | 1.025 | 96.22 | 96.19 |
| CIFAR-10 / ResNet20 / B3 | 0.900 | 95.90 | 0.975 | 96.25 | 96.12 |
| CIFAR-10 / ResNet20 / B4 | 0.900 | 96.26 | 1.000 | 96.47 | 96.47 |
| CIFAR-10 / VGG-16 / B2 | 0.800 | 58.11 | 1.000 | 93.41 | 93.41 |
| CIFAR-10 / VGG-16 / B3 | 0.800 | 86.76 | 1.000 | 93.79 | 93.79 |
| CIFAR-10 / VGG-16 / B4 | 0.900 | 93.27 | 1.000 | 93.75 | 93.75 |
| Setting | PrefixCE | Prefix margin | Acc. (%) | Acc. [95% CI] | |
|---|---|---|---|---|---|
| C100/VGG-16/T4 | 0.3183 0.4133 | 2.203 1.089 | 0.025 2.373 | 48.78 72.53 | +23.75 [22.73, 24.76] |
| C100/ResNet20/T2 | 0.3001 0.3869 | 2.477 0.916 | 0.449 5.277 | 45.06 79.51 | +34.45 [33.42, 35.48] |
| DVS-C10/VGGSNN/T10 | 0.3090 0.3729 | 1.009 0.678 | 2.518 3.950 | 74.90 83.90 | +9.00 [6.90, 11.10] |
| Setting | (M) | |||
|---|---|---|---|---|
| C100/VGG-16/T4 | 4/4 | 446.2 / 382.6 | 9/12 (75.0%) | 0.8315 |
| C100/ResNet20/T2 | 2/2 | 1748.0 / 1257.9 | 16/18 (88.9%) | 0.6617 |
| DVS-C10/VGGSNN/T10 | 10/10 | 172.4 / 126.3 | 6/7 (85.7%) | 0.7843 |
| Bit | Base LR | Scale LR | Best Acc. (%) |
|---|---|---|---|
| 4 | 61.96 | ||
| 4 | 62.39 | ||
| 2 | 59.88 | ||
| 2 | 60.78 |
| Seed | Layers | Mean shift | Min–max shift | |
|---|---|---|---|---|
| 0 | 12 | 12.08% | 5.00–40.00% | Yes |
| 1 | 12 | 8.75% | 5.00–15.00% | Yes |
| 2 | 12 | 8.33% | 5.00–20.00% | Yes |
| Bit | Learnable scale | Fixed scale | Gain |
|---|---|---|---|
| 2 | 72.87 | 69.26 | |
| 3 | 72.96 | 65.11 | |
| 4 | 73.23 | 59.93 |
| Bit | Setting | QP Top-1 | BASC Top-1 | Acc | QP SOP (M) | BASC SOP (M) | Energy |
|---|---|---|---|---|---|---|---|
| 2 | D146 | 79.1 | 79.1 | 0.0 | 279.801 | 269.886 | 3.43% |
| 2 | D090 | 80.0 | 78.8 | 1.2 | 230.228 | 218.547 | 4.58% |
| 2 | D025 | 73.5 | 73.6 | +0.1 | 44.678 | 42.814 | 2.73% |
| 3 | D146 | 79.0 | 79.7 | +0.7 | 280.579 | 270.407 | 3.50% |
| 3 | D090 | 79.5 | 77.0 | 2.5 | 229.530 | 222.302 | 3.11% |
| 3 | D025 | 73.4 | 76.9 | +3.5 | 44.489 | 46.024 | +2.26% |
| Schedule | Best (%) | Final (%) |
|---|---|---|
| One-shot (ours) | 73.65 | 73.24 |
| Progressive A: fixed final plan | 72.95 | 72.33 |
| Progressive B: stage-wise re-scoring | 72.78 | 72.06 |
| Prune / regrow | Epochs | Best (%) |
|---|---|---|
| SCA / instant BN- | 233 | 89.40 |
| SCA / EMA BN- | 233 | 90.69 |
| SVS / EMA BN- | 233 | 90.60 |
Spiking Neural Networks
Spiking neural networks process information through discrete, time-dependent neural events, aiming for efficient computation and biologically inspired learning.
See all 336 papers