🤖 AI Summary
Spiking neural networks (SNNs) suffer from training difficulties due to the non-differentiability of leaky integrate-and-fire (LIF) neurons, resulting in gradient vanishing across time steps and inferior accuracy compared to artificial neural networks (ANNs). To address this, we propose the complementary LIF (CLIF) neuron—a novel spiking unit featuring a hyperparameter-free dual-path integration-and-firing mechanism. CLIF preserves strictly binary spike outputs while introducing an auxiliary differentiable pathway to mitigate temporal gradient decay. The design is theoretically sound and plug-and-play compatible with existing SNN architectures. Extensive experiments using surrogate gradient learning demonstrate that CLIF consistently outperforms state-of-the-art spiking neuron models across multiple benchmark datasets. Notably, under identical network topologies and training protocols, CLIF-based SNNs achieve accuracy on par with—or slightly exceeding—that of their ANN counterparts. The implementation is publicly available.
📝 Abstract
Spiking neural networks (SNNs) are promising brain-inspired energy-efficient models. Compared to conventional deep Artificial Neural Networks (ANNs), SNNs exhibit superior efficiency and capability to process temporal information. However, it remains a challenge to train SNNs due to their undifferentiable spiking mechanism. The surrogate gradients method is commonly used to train SNNs, but often comes with an accuracy disadvantage over ANNs counterpart. We link the degraded accuracy to the vanishing of gradient on the temporal dimension through the analytical and experimental study of the training process of Leaky Integrate-and-Fire (LIF) Neuron-based SNNs. Moreover, we propose the Complementary Leaky Integrate-and-Fire (CLIF) Neuron. CLIF creates extra paths to facilitate the backpropagation in computing temporal gradient while keeping binary output. CLIF is hyperparameter-free and features broad applicability. Extensive experiments on a variety of datasets demonstrate CLIF's clear performance advantage over other neuron models. Furthermore, the CLIF's performance even slightly surpasses superior ANNs with identical network structure and training conditions. The code is available at https://github.com/HuuYuLong/Complementary-LIF.