Papers › Ternary Spike: Learning Ternary Spikes for Spiking Neural Networks

Ternary Spike: Learning Ternary Spikes for Spiking Neural Networks

11 Dec 2023arXiv:2312.06372archive 2025-07-28

Yufei Guo, Yuanpei Chen, Xiaode Liu, Weihang Peng, Yuhan Zhang, Xuhui Huang, Zhe Ma

The Spiking Neural Network (SNN), as one of the biologically inspired neural network infrastructures, has drawn increasing attention recently. It adopts binary spike activations to transmit information, thus the multiplications of activations and weights can be substituted by additions, which brings high energy efficiency. However, in the paper, we theoretically and experimentally prove that the binary spike activation map cannot carry enough information, thus causing information loss and resulting in accuracy decreasing. To handle the problem, we propose a ternary spike neuron to transmit information. The ternary spike neuron can also enjoy the event-driven and multiplication-free operation advantages of the binary spike neuron but will boost the information capacity. Furthermore, we also embed a trainable factor in the ternary spike neuron to learn the suitable spike amplitude, thus our SNN will adopt different spike amplitudes along layers, which can better suit the phenomenon that the membrane potential distributions are different along layers. To retain the efficiency of the vanilla ternary spike, the trainable ternary spike SNN will be converted to a standard one again via a re-parameterization technique in the inference. Extensive experiments with several popular network structures over static and dynamic datasets show that the ternary spike can consistently outperform state-of-the-art methods. Our code is open-sourced at https://github.com/yfguo91/Ternary-Spike.

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="2312.06372")

Code

Syntology Ran 13 of 15 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 2 ran · fixture could not drive it; 10 ran with no contract checked.

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

yfguo91/ternary-spike officialmentioned in papermentioned on GitHubpytorch 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

15 samples harvested; 13 ran; 0 honoured the contract we drafted; 2 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
2ran · fixture could not drive it
10ran
2unverified

Licence: 15 of the 15 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 yfguo91/ternary-spike. “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.

MPR yfguo91/ternary-spike/models/spike_layer.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 84864b7304ea2f94 · report
accuracy yfguo91/ternary-spike/utils.py official repository ran · fixture could not drive it no licence file found · pointer only · 4134b8420b4c48b5 · report
conv3x3 yfguo91/ternary-spike/models/resnet.py official repository ran no licence file found · pointer only · dacc6812ec177540 · report
gradient_scale yfguo91/ternary-spike/models/spike_layer.py official repository ran fingerprinted no licence file found · pointer only · 6899805d3c9c6510 · report
init_bias yfguo91/ternary-spike/models/init.py official repository ran no licence file found · pointer only · 506029b9782311de · report
init_weights yfguo91/ternary-spike/models/init.py official repository ran no licence file found · pointer only · bc15a35a19eccd77 · report
is_absorbing yfguo91/ternary-spike/models/fold_bn.py official repository ran no licence file found · pointer only · bc1bf5bb29e60206 · report
is_bn yfguo91/ternary-spike/models/fold_bn.py official repository ran no licence file found · pointer only · 06ddc213753098ff · report
make_layers yfguo91/ternary-spike/models/vggcifar.py official repository ran no licence file found · pointer only · d816051f5a32a403 · report
plot_overlap yfguo91/ternary-spike/myutils/logger.py official repository ran · our draft was wrong no licence file found · pointer only · 50afa2863ffd9fde · report
search_fold_and_remove_bn yfguo91/ternary-spike/models/fold_bn.py official repository ran no licence file found · pointer only · d7cc95c193f0291c · report
spike_activation yfguo91/ternary-spike/models/spike_layer.py official repository ran no licence file found · pointer only · dc807df34e66cf20 · report
split_weights yfguo91/ternary-spike/models/init.py official repository ran no licence file found · pointer only · 314691fc56c14c2a · report
vgg11 yfguo91/ternary-spike/models/vggcifar.py official repository unverified no licence file found · pointer only · 9c695d51a5fdcc9e · report
vgg11_bn yfguo91/ternary-spike/models/vggcifar.py official repository unverified no licence file found · pointer only · ff89b5bc32b8bfd8 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SNN

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