事件驅動學習脈衝神經網路之穩定且具泛化能力之梯度傳遞方法
Stable and Generalizable Gradient Propagation for Event-Driven Learning in Spiking Neural Networks
摘要
近年來,脈衝神經網路 (Spiking Neural Networks, SNNs) 因其事件驅動特性與潛在高能效優勢而受到廣泛關注。然而,由於事件驅動學習 (event-driven learning) 的天性,梯度僅能於脈衝發生時進行傳遞,使得模型訓練過程變得困難,並對模型之學習效果帶來挑戰。因此,如何有效訓練事件驅動學習的 SNN 成為一項重要研究課題。
為解決上述問題,本論文針對事件驅動學習 SNN 中之梯度傳遞行為進行分析,探討其在反向傳播過程中可能產生之梯度放大現象,並進一步定位導致梯度數值放大之關鍵項。基於此觀察,本論文提出一種基於膜電位貢獻之脈衝時間梯度傳遞方法,考慮各輸入脈衝對發射瞬間膜電位之貢獻,藉此重新建構脈衝時間梯度之分配方式,使關鍵梯度項維持於較穩定之數值範圍內,同時保留梯度總量守恆之特性,進而提升事件驅動學習 SNN 之訓練穩定性。
實驗結果顯示,本論文所提出之方法能有效改善梯度在層間傳遞時之穩定性,使脈衝時間梯度與參數梯度之範數在不同層之間維持平穩的變化,避免隨網路深度增加而產生顯著放大現象。在分類效能方面,本論文所提出之方法在 MNIST 資料集上達到99.51% 之分類準確率,在 CIFAR-10 資料集上則達到 93.74% 之分類準確率,皆展現出具競爭力之分類能力。此外,本論文方法亦展現出良好的跨神經元模型泛用性,對於原始方法無法有效訓練之脈衝神經元模型,本論文方法亦能使模型成功完成訓練;而在原始方法已可訓練之神經元模型上,本論文方法則進一步帶來至少 3% 以上之分類準確率提升。
綜合而言,本論文從脈衝時間梯度傳遞之角度分析事件驅動學習 SNN 的訓練不穩定問題,並提出一種能同時改善梯度穩定性、提升分類效能,且適用於不同神經元模型之梯度傳遞方法。本論文方法為事件驅動學習 SNN 之穩定訓練提供一種可行且具實用性的解決方案。
為解決上述問題,本論文針對事件驅動學習 SNN 中之梯度傳遞行為進行分析,探討其在反向傳播過程中可能產生之梯度放大現象,並進一步定位導致梯度數值放大之關鍵項。基於此觀察,本論文提出一種基於膜電位貢獻之脈衝時間梯度傳遞方法,考慮各輸入脈衝對發射瞬間膜電位之貢獻,藉此重新建構脈衝時間梯度之分配方式,使關鍵梯度項維持於較穩定之數值範圍內,同時保留梯度總量守恆之特性,進而提升事件驅動學習 SNN 之訓練穩定性。
實驗結果顯示,本論文所提出之方法能有效改善梯度在層間傳遞時之穩定性,使脈衝時間梯度與參數梯度之範數在不同層之間維持平穩的變化,避免隨網路深度增加而產生顯著放大現象。在分類效能方面,本論文所提出之方法在 MNIST 資料集上達到99.51% 之分類準確率,在 CIFAR-10 資料集上則達到 93.74% 之分類準確率,皆展現出具競爭力之分類能力。此外,本論文方法亦展現出良好的跨神經元模型泛用性,對於原始方法無法有效訓練之脈衝神經元模型,本論文方法亦能使模型成功完成訓練;而在原始方法已可訓練之神經元模型上,本論文方法則進一步帶來至少 3% 以上之分類準確率提升。
綜合而言,本論文從脈衝時間梯度傳遞之角度分析事件驅動學習 SNN 的訓練不穩定問題,並提出一種能同時改善梯度穩定性、提升分類效能,且適用於不同神經元模型之梯度傳遞方法。本論文方法為事件驅動學習 SNN 之穩定訓練提供一種可行且具實用性的解決方案。
In recent years, Spiking Neural Networks (SNNs) have attracted increasing attention due to their event-driven nature and potential advantages in achieving high energy efficiency. However, under the SNN’s event-driven learning framework, gradients are propagated only when spike events occur, making the training process more challenging and limiting the learning performance of the model. Therefore, how to effectively train event-driven learning SNNs has become an important research issue.
To address this issue, this study analyzes gradient propagation in event-driven learning SNNs and investigates the gradient amplification phenomenon that may occur during backpropagation. It further identifies the critical gradient term that is responsible for numerical amplification. Based on this observation, we propose a spike-time gradient propagation method based on membrane-potential contribution. The proposed method considers the contribution of each input spike to the membrane potential at its firing time and accordingly reconstructs the allocations of spike-time gradients. This approach maintains the critical gradient term within a more stable numerical range while preserving the total gradient-sum invariance property, thereby improving the training stability of event-driven learning SNNs.
The experimental results show that the proposed method effectively improves the stability of the gradient propagation across layers. The norms of both spike-time gradients and parameter
gradients remain relatively stable across different layers, preventing significant amplification as the network depth increases. In terms of classification performance, the proposed method
achieves an inference accuracy of 99.51% on the MNIST dataset and 93.74% on the CIFAR-10 dataset, demonstrating competitive classification performance. In addition, the proposed
method shows good generalization over different SNN neuron models. The proposed method successfully trains the SNN neuron models that cannot be effectively trained with the original
methods. For neuron models that are already trainable using the original methods, the proposed method further improves the classification accuracy by at least 3%.
In summary, this study analyzes the training instability problem in event-driven learning SNNs from the perspective of spike-time gradient propagation and proposes a gradient propagation method that improves gradient stability, maintains classification performance, and is applicable to various neuron models. The proposed method provides a feasible and practical solution for stable training of event-driven learning SNNs.
To address this issue, this study analyzes gradient propagation in event-driven learning SNNs and investigates the gradient amplification phenomenon that may occur during backpropagation. It further identifies the critical gradient term that is responsible for numerical amplification. Based on this observation, we propose a spike-time gradient propagation method based on membrane-potential contribution. The proposed method considers the contribution of each input spike to the membrane potential at its firing time and accordingly reconstructs the allocations of spike-time gradients. This approach maintains the critical gradient term within a more stable numerical range while preserving the total gradient-sum invariance property, thereby improving the training stability of event-driven learning SNNs.
The experimental results show that the proposed method effectively improves the stability of the gradient propagation across layers. The norms of both spike-time gradients and parameter
gradients remain relatively stable across different layers, preventing significant amplification as the network depth increases. In terms of classification performance, the proposed method
achieves an inference accuracy of 99.51% on the MNIST dataset and 93.74% on the CIFAR-10 dataset, demonstrating competitive classification performance. In addition, the proposed
method shows good generalization over different SNN neuron models. The proposed method successfully trains the SNN neuron models that cannot be effectively trained with the original
methods. For neuron models that are already trainable using the original methods, the proposed method further improves the classification accuracy by at least 3%.
In summary, this study analyzes the training instability problem in event-driven learning SNNs from the perspective of spike-time gradient propagation and proposes a gradient propagation method that improves gradient stability, maintains classification performance, and is applicable to various neuron models. The proposed method provides a feasible and practical solution for stable training of event-driven learning SNNs.