arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.01230cs.NEcs.LG
收藏

SEENN:迈向时序脉冲早期退出神经网络

SEENN: Towards Temporal Spiking Early-Exit Neural Networks

Yale University(耶鲁大学)

Yuhang Li, Tamar Geller, Youngeun Kim, Priyadarshini Panda

AI总结:

针对脉冲神经网络(SNNs)时间步数量带来的精度-效率权衡问题,提出两种动态调整时间步的脉冲早期退出方法SEENN,可适配直接训练SNN与ANN-SNN转换模型,大幅降低推理平均时间步且保持高精度。

摘要:

脉冲神经网络(SNNs)作为传统人工神经网络(ANNs)的生物可信替代方案,近年来愈发受到关注。SNNs 利用二进制脉冲在时空维度上处理输入,因此具备成本高效、易于部署的特点。但我们观察到,SNNs 的信息容量受时间步数量影响,会带来精度与效率之间的权衡。\n本研究针对 SNNs 中时间步数量的精细化调整展开探索。具体而言,我们将时间步数量设为随不同输入样本变化的变量,以减少部分数据的冗余时间步,该方法被命名为 Spiking Early-Exit Neural Networks(SEENNs,脉冲早期退出神经网络)。为确定合适的时间步数量,我们提出两种方案:SEENN-I 采用置信度分数阈值过滤不确定预测,SEENN-II 则通过强化学习确定时间步数量。此外,我们验证了 SEENN 既适用于直接训练的 SNN,也兼容 ANN-SNN 转换模型。\n通过动态调整时间步数量,SEENN 在推理阶段的平均时间步数量显著降低。例如,基于 SEENN-II 的 ResNet-19 在 CIFAR-10 测试集上可达到 96.1% 的精度,且平均仅需 1.08 个时间步。代码已开源至 https://github.com/Intelligent-Computing-Lab-Yale/SEENN。

英文摘要:

Spiking Neural Networks (SNNs) have recently become more popular as a biologically plausible substitute for traditional Artificial Neural Networks (ANNs). SNNs are cost-efficient and deployment-friendly because they process input in both spatial and temporal manner using binary spikes. However, we observe that the information capacity in SNNs is affected by the number of timesteps, leading to an accuracy-efficiency tradeoff. In this work, we study a fine-grained adjustment of the number of timesteps in SNNs. Specifically, we treat the number of timesteps as a variable conditioned on different input samples to reduce redundant timesteps for certain data. We call our method Spiking Early-Exit Neural Networks (SEENNs). To determine the appropriate number of timesteps, we propose SEENN-I which uses a confidence score thresholding to filter out the uncertain predictions, and SEENN-II which determines the number of timesteps by reinforcement learning. Moreover, we demonstrate that SEENN is compatible with both the directly trained SNN and the ANN-SNN conversion. By dynamically adjusting the number of timesteps, our SEENN achieves a remarkable reduction in the average number of timesteps during inference. For example, our SEENN-II ResNet-19 can achieve 96.1% accuracy with an average of 1.08 timesteps on the CIFAR-10 test dataset. Code is shared at https://github.com/Intelligent-Computing-Lab-Yale/SEENN.

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

↑