Papers › A Free Lunch From ANN: Towards Efficient, Accurate Spiking Neural Networks Calibration

A Free Lunch From ANN: Towards Efficient, Accurate Spiking Neural Networks Calibration

13 Jun 2021arXiv:2106.06984archive 2025-07-28

Yuhang Li, Shikuang Deng, Xin Dong, Ruihao Gong, Shi Gu

Spiking Neural Network (SNN) has been recognized as one of the next generation of neural networks. Conventionally, SNN can be converted from a pre-trained ANN by only replacing the ReLU activation to spike activation while keeping the parameters intact. Perhaps surprisingly, in this work we show that a proper way to calibrate the parameters during the conversion of ANN to SNN can bring significant improvements. We introduce SNN Calibration, a cheap but extraordinarily effective method by leveraging the knowledge within a pre-trained Artificial Neural Network (ANN). Starting by analyzing the conversion error and its propagation through layers theoretically, we propose the calibration algorithm that can correct the error layer-by-layer. The calibration only takes a handful number of training data and several minutes to finish. Moreover, our calibration algorithm can produce SNN with state-of-the-art architecture on the large-scale ImageNet dataset, including MobileNet and RegNet. Extensive experiments demonstrate the effectiveness and efficiency of our algorithm. For example, our advanced pipeline can increase up to 69% top-1 accuracy when converting MobileNet on ImageNet compared to baselines. Codes are released at https://github.com/yhhhli/SNN_Calibration.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2106.06984")

Code

Syntology Ran 5 of 13 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yhhhli/SNN_Calibration officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 5 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
4ran
8unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yhhhli/SNN_Calibration. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv3x3 yhhhli/SNN_Calibration/models/CIFAR/models/resnet.py official repository ran MIT (permissive) · dacc6812ec177540 · report
conv_bn yhhhli/SNN_Calibration/models/ImageNet/models/mobilenet.py official repository ran · our draft was wrong MIT (permissive) · 2f7853ff01cbbc29 · report
is_absorbing yhhhli/SNN_Calibration/models/fold_bn.py official repository ran MIT (permissive) · bc1bf5bb29e60206 · report
is_bn yhhhli/SNN_Calibration/models/fold_bn.py official repository ran MIT (permissive) · 06ddc213753098ff · report
quantile yhhhli/SNN_Calibration/models/spiking_layer.py official repository ran fingerprinted MIT (permissive) · 33aa9d7aced035c3 · report
build_imagenet_data yhhhli/SNN_Calibration/main_cal_imagenet.py official repository unverified MIT (permissive) · c31380755f356fae · report
conv1x1 yhhhli/SNN_Calibration/models/ImageNet/models/resnet.py official repository unverified MIT (permissive) · 02a6946a4c9814db · report
conv3x3 yhhhli/SNN_Calibration/models/ImageNet/models/resnet.py official repository unverified MIT (permissive) · 1ab65b82589cc9e7 · report
conv_dw yhhhli/SNN_Calibration/models/ImageNet/models/mobilenet.py official repository unverified MIT (permissive) · 67bde0c6505e6d67 · report
find_threshold_mse yhhhli/SNN_Calibration/models/spiking_layer.py official repository unverified MIT (permissive) · 75e3a80e27467439 · report
floor_ste yhhhli/SNN_Calibration/models/calibration.py official repository unverified MIT (permissive) · 7c22ced4eaf89920 · report
lp_loss yhhhli/SNN_Calibration/models/spiking_layer.py official repository unverified MIT (permissive) · 54ab1b5bf761f953 · report
validate_model yhhhli/SNN_Calibration/main_cal_imagenet.py official repository unverified MIT (permissive) · a0c40c8deb933e86 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections