Exploring Loss Functions for Time-based Training Strategy in Spiking Neural Networks
Yaoyu Zhu, Wei Fang, Xiaodong Xie, Tiejun Huang, Zhaofei Yu
Abstract
Spiking Neural Networks (SNNs) are considered promising brain-inspired energy-efficient models due to their event-driven computing paradigm. The spatiotemporal spike patterns used to convey information in SNNs consist of both rate coding and temporal coding, where the temporal coding is crucial to biological-plausible learning rules such as spike-timing-dependent-plasticity. The time-based training strategy is proposed to better utilize the temporal information in SNNs and learn in an asynchronous fashion. However, some recent works train SNNs by the time-based scheme with rate-coding-dominated loss functions. In this paper, we first map rate-based loss functions to time-based counterparts and explain why they are also applicable to the time-based training scheme. After that, we infer that loss functions providing adequate positive overall gradients help training by theoretical analysis. Based on this, we propose the enhanced counting loss to replace the commonly used mean square counting loss. In addition, we transfer the training of scale factor in weight standardization into thresholds. Experiments show that our approach outperforms previous time-based training methods in most datasets. Our work provides insights for training SNNs with time-based schemes and offers a fresh perspective on the correlation between rate coding and temporal coding. Our code is available at https://github.com/zhuyaoyu/SNN-temporal-training-losses.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 481cc46d-3ef2-4a34-8d4d-fd747c9ae381Cited by top-tier papers6
- SpikingResformer: Bridging ResNet and Vision Transformer in Spiking Neural NetworksXinyu Shi, Zecheng Hao, Zhaofei YuCVPR 2024 · 53 citations
- Towards Energy Efficient Spiking Neural Networks: An Unstructured Pruning FrameworkXinyu Shi, Jianhao Ding, Zecheng Hao, Zhaofei YuICLR 2024 · 44 citations
- Efficient Spiking Neural Networks with Sparse Selective Activation for Continual LearningJiangrong Shen, Wenyao Ni, Qi Xu, Huajin TangAAAI 2024 · 42 citations
- Enhancing Adversarial Robustness in SNNs with Sparse GradientsYujia Liu, Tong Bu, Jianhao Ding, Zecheng Hao et al.ICML 2024 · 17 citations
- Temporal Misalignment in ANN-SNN Conversion and its Mitigation via Probabilistic Spiking NeuronsVelibor Bojkovic, Xiaofeng Wu, Bin GuICML 2025
Builds on3
- Temporal Efficient Training of Spiking Neural Network via Gradient Re-weightingShikuang Deng, Yuhang Li, Shanghang Zhang, Shi GuICLR 2022 · 361 citations
- Temporal Spike Sequence Learning via Backpropagation for Deep Spiking Neural NetworksWenrui Zhang, Peng LiNeurIPS 2020 · 264 citations
- Training Spiking Neural Networks with Event-driven BackpropagationYaoyu Zhu, Zhaofei Yu, Wei Fang, Xiaodong Xie et al.NeurIPS 2022 · 57 citations
Related papers
- Temporal Weighted Encoding: Towards Maximal-Capacity Spike Coding for ANN–SNN ConversionYiwen Gu, Junchuan Gu, Haibin Shen, Kejie HuangICML 2026
- Unifying Activation- and Timing-based Learning Rules for Spiking Neural NetworksJinseok Kim, Kyungsu Kim, Jae-Joon KimNeurIPS 2020 · 59 citations
- Advancing Training Efficiency of Deep Spiking Neural Networks through Rate-based BackpropagationChengting Yu, Lei Liu, Gaoang Wang, Erping Li et al.NeurIPS 2024 · 14 citations
- Ternary Spike: Learning Ternary Spikes for Spiking Neural NetworksYufei Guo, Yuanpei Chen, Xiaode Liu, Weihang Peng et al.AAAI 2024 · 70 citations
- Enabling Deep Spiking Neural Networks with Hybrid Conversion and Spike Timing Dependent BackpropagationNitin Rathi, Gopalakrishnan Srinivasan, Priyadarshini Panda, Kaushik RoyICLR 2020 · 347 citations
