arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.05098cs.NEcs.AI
收藏

探索脉冲神经网络中层同步的局限性

Exploring the Limitations of Layer Synchronization in Spiking Neural Networks

Machine Learning Group, Centrum Wiskunde & Informatica (CWI)(机器学习组,数学与信息学中心(CWI));Faculty of Electrical Engineering, Mathematics & Computer Science, University of Twente(电气工程、数学与计算机科学学院,乌得勒支大学);Donders Centre for Cognition, Radboud University(多纳尔斯认知中心,拉德堡德大学);Department of Advanced Computing Sciences, Maastricht University(高级计算科学系,马斯特里赫特大学);Innatera Nanosystems BV(Innatera纳米系统公司)

Roel Koopman, Amirreza Yousefzadeh, Mahyar Shahsavari, Guangzhi Tang, Manolis Sifalakis

AI总结:

本文探讨层同步对脉冲神经网络的影响,发现非同步执行可提升能效与速度,并提出基于反向传播泛化的训练方法以适应非同步处理,实现更少脉冲、更快推理和更高精度。

摘要:

机器学习应用中的神经网络处理依赖于层同步。即使在号称与神经生物学一致的人工脉冲神经网络(SNNs)中,这种做法也很普遍,尽管大脑中的处理实际上是非同步的。然而,一个真正非同步的系统将允许所有神经元在接收到任何突触前电流时并发评估其阈值并发放脉冲。省略层同步可能对延迟和能效有益,但对先前使用层同步训练的模型进行非同步执行可能会导致网络动力学和性能的不匹配。我们提出并量化了这个问题,并表明使用层同步训练的模型在缺乏同步的情况下要么表现不佳,要么在存在这种机制时无法从任何能量和延迟减少中获益。然后,我们探索了一个潜在的解决方案方向,基于反向传播训练的一种泛化,该训练整合了关于非同步执行调度策略的知识,以学习适合非同步处理的模型。我们在编码空间和时间信息的数据集上实验了两种非同步神经元执行调度策略,并展示了非同步处理使用更少脉冲(最多减少50%)、更快完成推理(最多快2倍)以及达到有竞争力甚至更高精度(最多提高10%)的潜力。我们的探索证实,非同步基于事件的人工智能处理确实可以更高效,但我们需要重新思考如何训练我们的SNN模型以从中受益。(源代码可在:https://github.com/RoelMK/asynctorch 获取)

英文摘要:

Neural-network processing in machine learning applications relies on layer synchronization. This is practiced even in artificial Spiking Neural Networks (SNNs), which are touted as consistent with neurobiology, in spite of processing in the brain being in fact asynchronous. A truly asynchronous system however would allow all neurons to evaluate concurrently their threshold and emit spikes upon receiving any presynaptic current. Omitting layer synchronization is potentially beneficial, for latency and energy efficiency, but asynchronous execution of models previously trained with layer synchronization may entail a mismatch in network dynamics and performance. We present and quantify this problem, and show that models trained with layer synchronization either perform poorly in absence of the synchronization, or fail to benefit from any energy and latency reduction, when such a mechanism is in place. We then explore a potential solution direction, based on a generalization of backpropagation-based training that integrates knowledge about an asynchronous execution scheduling strategy, for learning models suitable for asynchronous processing. We experiment with two asynchronous neuron execution scheduling strategies in datasets that encode spatial and temporal information, and we show the potential of asynchronous processing to use less spikes (up to 50%), complete inference faster (up to 2x), and achieve competitive or even better accuracy (up to 10% higher). Our exploration affirms that asynchronous event-based AI processing can be indeed more efficient, but we need to rethink how we train our SNN models to benefit from it. (Source code available at: https://github.com/RoelMK/asynctorch)

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

↑