arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.20355cs.NEcs.CRcs.CVcs.LG
收藏

利用稀疏梯度增强脉冲神经网络的对抗鲁棒性

Enhancing Adversarial Robustness in SNNs with Sparse Gradients

School of Computer Science, Peking University(北京大学计算机学院);Institution for Artificial Intelligence, Peking University(北京大学人工智能研究院)

Yujia Liu, Tong Bu, Jianhao Ding, Zecheng Hao, Tiejun Huang, Zhaofei Yu

AI总结:

本文提出一种通过梯度稀疏正则化增强脉冲神经网络(SNNs)对抗鲁棒性的方法,理论证明性能差距受梯度稀疏性上界限制,并在图像和事件数据集上验证了其有效性。

摘要:

脉冲神经网络(SNNs)因其高能效操作和生物启发的结构而备受关注,在能效和可解释性方面相较于人工神经网络(ANNs)具有潜在优势。然而,与ANNs类似,SNNs的鲁棒性仍然是一个挑战,特别是在面临对抗攻击时。现有技术无论是从ANNs改编而来还是专门为SNNs设计,在训练SNNs或抵御强攻击方面都存在局限性。在本文中,我们提出了一种通过梯度稀疏正则化来增强SNNs鲁棒性的新方法。我们观察到,与对抗扰动相比,SNNs对随机扰动表现出更强的抵抗力,即使在更大规模的扰动下也是如此。受此启发,我们旨在缩小SNNs在对抗扰动和随机扰动下的性能差距,从而提高其整体鲁棒性。为了实现这一目标,我们从理论上证明了这种性能差距受与输入图像真实标签相关的概率的梯度稀疏性上界限制,这为通过正则化梯度稀疏性来训练鲁棒SNNs的实际策略奠定了基础。我们在基于图像和基于事件的数据集上进行了大量实验,验证了该方法的有效性。结果表明,SNNs的鲁棒性得到了显著提升。我们的工作突出了梯度稀疏性在SNNs中的重要性及其在增强鲁棒性方面的作用。

英文摘要:

Spiking Neural Networks (SNNs) have attracted great attention for their energy-efficient operations and biologically inspired structures, offering potential advantages over Artificial Neural Networks (ANNs) in terms of energy efficiency and interpretability. Nonetheless, similar to ANNs, the robustness of SNNs remains a challenge, especially when facing adversarial attacks. Existing techniques, whether adapted from ANNs or specifically designed for SNNs, exhibit limitations in training SNNs or defending against strong attacks. In this paper, we propose a novel approach to enhance the robustness of SNNs through gradient sparsity regularization. We observe that SNNs exhibit greater resilience to random perturbations compared to adversarial perturbations, even at larger scales. Motivated by this, we aim to narrow the gap between SNNs under adversarial and random perturbations, thereby improving their overall robustness. To achieve this, we theoretically prove that this performance gap is upper bounded by the gradient sparsity of the probability associated with the true label concerning the input image, laying the groundwork for a practical strategy to train robust SNNs by regularizing the gradient sparsity. We validate the effectiveness of our approach through extensive experiments on both image-based and event-based datasets. The results demonstrate notable improvements in the robustness of SNNs. Our work highlights the importance of gradient sparsity in SNNs and its role in enhancing robustness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑