Papers › Quantized Spike-driven Transformer

Quantized Spike-driven Transformer

23 Jan 2025arXiv:2501.13492archive 2025-07-28

Xuerui Qiu, Jieyuan Zhang, Wenjie Wei, Honglin Cao, Junsheng Guo, Rui-Jie Zhu, Yimeng Shan, Yang Yang, Malu Zhang, Haizhou Li

Spiking neural networks are emerging as a promising energy-efficient alternative to traditional artificial neural networks due to their spike-driven paradigm. However, recent research in the SNN domain has mainly focused on enhancing accuracy by designing large-scale Transformer structures, which typically rely on substantial computational resources, limiting their deployment on resource-constrained devices. To overcome this challenge, we propose a quantized spike-driven Transformer baseline (QSD-Transformer), which achieves reduced resource demands by utilizing a low bit-width parameter. Regrettably, the QSD-Transformer often suffers from severe performance degradation. In this paper, we first conduct empirical analysis and find that the bimodal distribution of quantized spike-driven self-attention (Q-SDSA) leads to spike information distortion (SID) during quantization, causing significant performance degradation. To mitigate this issue, we take inspiration from mutual information entropy and propose a bi-level optimization strategy to rectify the information distribution in Q-SDSA. Specifically, at the lower level, we introduce an information-enhanced LIF to rectify the information distribution in Q-SDSA. At the upper level, we propose a fine-grained distillation scheme for the QSD-Transformer to align the distribution in Q-SDSA with that in the counterpart ANN. By integrating the bi-level optimization strategy, the QSD-Transformer can attain enhanced energy efficiency without sacrificing its high-performance advantage.For instance, when compared to the prior SNN benchmark on ImageNet, the QSD-Transformer achieves 80.3% top-1 accuracy, accompanied by significant reductions of 6.0× and 8.1× in power consumption and model size, respectively. Code is available at https://github.com/bollossom/QSD-Transformer.

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

Code

Syntology Ran 13 of 25 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 2 ran · honoured contract; 11 ran with no contract checked.

By repository: official repository: 23 samples from 1 repository, 11 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

bollossom/qsd-transformer 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

25 samples harvested; 13 ran; 2 honoured the contract we drafted; 12 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 · honoured contract
11ran
12unverified

Licence: 25 of the 25 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/qsd-transformer. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

ActLSQ bollossom/qsd-transformer/classification/models.py official repository ran fingerprinted no licence file found · pointer only · 74d1ce63bd5f842a · report
BNAndPadLayer bollossom/qsd-transformer/classification/models.py official repository ran no licence file found · pointer only · f81565b0f74daf8b · report
Conv1dLSQ bollossom/qsd-transformer/classification/models.py official repository ran fingerprinted no licence file found · pointer only · fd8577cc6c4df32f · report
Conv2dLSQ bollossom/qsd-transformer/classification/models.py official repository ran fingerprinted no licence file found · pointer only · 1df040edf15964ac · report
LinearLSQ bollossom/qsd-transformer/classification/models.py official repository ran no licence file found · pointer only · a68f1f39a2897fde · report
Multispike bollossom/qsd-transformer/classification/models.py official repository ran fingerprinted no licence file found · pointer only · ff2a4847eb6e11d2 · report
Multispike_att bollossom/qsd-transformer/classification/models.py official repository ran fingerprinted no licence file found · pointer only · a9f9bdf13def2d6f · report
ReLUX bollossom/qsd-transformer/classification/models.py official repository ran fingerprinted no licence file found · pointer only · ad6a0ecd94a89ea2 · report
_Conv2dQ bollossom/qsd-transformer/classification/models.py official repository ran fingerprinted no licence file found · pointer only · 86dd02836653f2e0 · report
_LinearQ bollossom/qsd-transformer/classification/models.py official repository ran no licence file found · pointer only · ded10a8feeb6a5ef · report
multispike bollossom/qsd-transformer/classification/models.py official repository ran no licence file found · pointer only · 82ae397418643fa2 · report
MS_Attention_RepConv_qkv_id bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · 72e0098c41daeeaa · report
MS_Block bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · ec49ca703b82bffb · report
MS_ConvBlock bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · 080509523416f672 · report
MS_DownSampling bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · bcc18883fa271d08 · report
MS_MLP bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · d439a7665ba3b641 · report
Qmodes bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · bc17ca45511f79e4 · report
RepConv bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · dea3847a1c1fe943 · report
SepConv bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · f1954be367964988 · report
Spiking_vit_MetaFormer bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · 32f1b759bc59a1b8 · report
_ActQ bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · 3fbe93ab3bb68f7d · report
_Conv1dQ bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · a4c658c06c77fb94 · report
get_default_kwargs_q bollossom/qsd-transformer/classification/models.py official repository unverified no licence file found · pointer only · 1aaa70701617780d · report
grad_scale identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · d75564df9359ef7b · report
round_pass identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · 40027e5e78ca8837 · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNAbsolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSNNSoftmaxTransformer

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