Papers › Gated Attention Coding for Training High-performance and Efficient Spiking Neural Networks

Gated Attention Coding for Training High-performance and Efficient Spiking Neural Networks

12 Aug 2023arXiv:2308.06582archive 2025-07-28

Xuerui Qiu, Rui-Jie Zhu, Yuhong Chou, Zhaorui Wang, Liang-Jian Deng, Guoqi Li

Spiking neural networks (SNNs) are emerging as an energy-efficient alternative to traditional artificial neural networks (ANNs) due to their unique spike-based event-driven nature. Coding is crucial in SNNs as it converts external input stimuli into spatio-temporal feature sequences. However, most existing deep SNNs rely on direct coding that generates powerless spike representation and lacks the temporal dynamics inherent in human vision. Hence, we introduce Gated Attention Coding (GAC), a plug-and-play module that leverages the multi-dimensional gated attention unit to efficiently encode inputs into powerful representations before feeding them into the SNN architecture. GAC functions as a preprocessing layer that does not disrupt the spike-driven nature of the SNN, making it amenable to efficient neuromorphic hardware implementation with minimal modifications. Through an observer model theoretical analysis, we demonstrate GAC's attention mechanism improves temporal dynamics and coding efficiency. Experiments on CIFAR10/100 and ImageNet datasets demonstrate that GAC achieves state-of-the-art accuracy with remarkable efficiency. Notably, we improve top-1 accuracy by 3.10\% on CIFAR100 with only 6-time steps and 1.07\% on ImageNet while reducing energy usage to 66.9\% of the previous works. To our best knowledge, it is the first time to explore the attention-based dynamic coding scheme in deep SNNs, with exceptional effectiveness and efficiency on large-scale datasets.The Code is available at https://github.com/bollossom/GAC.

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

Code

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

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

bollossom/GAC 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

12 samples harvested; 7 ran; 0 honoured the contract we drafted; 5 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.

2ran · our draft was wrong
5ran
5unverified

Licence: 12 of the 12 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 bollossom/GAC. “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.

TET_loss bollossom/GAC/CODE/ImageNet/functions.py official repository ran · our draft was wrong no licence file found · pointer only · e63c09a8d741cb95 · report
add_dimention bollossom/GAC/CODE/CIFAR/models/layers.py official repository ran fingerprinted no licence file found · pointer only · 13a0e034c03001ab · report
get_logger bollossom/GAC/CODE/ImageNet/functions.py official repository ran · our draft was wrong no licence file found · pointer only · 210ba8a40d178d14 · report
get_test_dataloader bollossom/GAC/CODE/ImageNet/utils.py official repository ran no licence file found · pointer only · 81dca27176dba617 · report
get_training_dataloader bollossom/GAC/CODE/ImageNet/utils.py official repository ran no licence file found · pointer only · c0ece177fe1403ab · report
normalizex bollossom/GAC/CODE/CIFAR/models/layers.py official repository ran fingerprinted no licence file found · pointer only · a93504b7fd3c8d98 · report
rand_bbox bollossom/GAC/CODE/ImageNet/train_amp.py official repository ran no licence file found · pointer only · fc20496120a56972 · report
build_cifar bollossom/GAC/CODE/CIFAR/data_loaders.py official repository unverified no licence file found · pointer only · 91445f58c19b833d · report
conv1x1 bollossom/GAC/CODE/CIFAR/models/MS_ResNet.py official repository unverified no licence file found · pointer only · de955f3e3ead10d1 · report
conv3x3 bollossom/GAC/CODE/CIFAR/models/MS_ResNet.py official repository unverified no licence file found · pointer only · 71d699d243383ea6 · report
eval_training bollossom/GAC/CODE/ImageNet/train_amp.py official repository unverified no licence file found · pointer only · 3003b736b22e1c18 · report
get_network bollossom/GAC/CODE/ImageNet/utils.py official repository unverified no licence file found · pointer only · 93ce720570d3d998 · report

Tasks

Efficient Neural NetworkImage Classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification CIFAR-10 GAC-SNN Percentage correct 96.46 #111 of 265 Archive leaderboard report
Image Classification CIFAR-100 GAC-SNN Percentage correct 80.45 #127 of 211 Archive leaderboard report
Image Classification ImageNet GAC-SNN MS-ResNet-34 Top 1 Accuracy 70.42 #1022 of 1060 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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