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

一种支持硬件内训练的时空局部化基于脉冲的反向传播算法

A temporally and spatially local spike-based backpropagation algorithm to enable training in hardware

Indian Institute of Technology, Bombay(印度理工学院孟买分校)

Anmol Biswas, Vivek Saraswat, Udayan Ganguly

AI总结:

针对脉冲神经网络缺乏全脉冲通用训练机制、现有近似反向传播方法依赖外部存储计算难以适配神经形态硬件的问题,提出SSNN-BP算法,通过复合神经元和正负梯度流实现全脉冲反向传播,在多数据集上性能接近同架构ANN,支持纯脉冲硬件训练。

摘要:

脉冲神经网络(Spiking Neural Networks, SNNs)已成为分类任务中一种硬件高效的架构。基于脉冲的编码面临的挑战在于,缺乏完全使用脉冲执行的通用训练机制。目前已有多项研究尝试采用非脉冲人工神经网络(artificial neural networks, ANNs)中强大的反向传播(backpropagation, BP)技术:(1)SNN可通过外部计算的数值梯度进行训练;(2)实现原生基于脉冲的学习的一项重大进展,是采用结合脉冲时间依赖可塑性(spike-time dependent plasticity, STDP)与分阶段前向/反向传播的近似反向传播方法。然而,在这些阶段之间传递信息以计算梯度和权重更新,需要外部存储器和计算访问权限,这对标准神经形态硬件的实现构成了挑战。本文提出了一种基于随机SNN的反向传播(SSNN-BP)算法,该算法利用复合神经元,通过脉冲同时显式计算前向传播激活值和反向传播梯度。尽管带符号的梯度值对基于脉冲的表示而言是一项挑战,但我们通过将梯度信号拆分为正、负流解决了该问题。研究表明,当脉冲序列足够长时,我们的方法性能可接近BP ANN的基线水平。最后,我们证明性能优异的softmax交叉熵损失函数可通过执行赢家通吃(Winner Take All, WTA)规则的抑制性侧向连接实现。我们的两层SNN网络在静态图像数据集(如MNIST、Fashion-MNIST、Extended MNIST)以及时间编码图像数据集(如神经形态MNIST数据集)上,表现出优异的泛化能力,性能与具有等效架构和正则化参数的ANN相当。因此,SSNN-BP使得反向传播能够与纯基于脉冲的神经形态硬件兼容。

英文摘要:

Spiking Neural Networks (SNNs) have emerged as a hardware efficient architecture for classification tasks. The challenge of spike-based encoding has been the lack of a universal training mechanism performed entirely using spikes. There have been several attempts to adopt the powerful backpropagation (BP) technique used in non-spiking artificial neural networks (ANN): (1) SNNs can be trained by externally computed numerical gradients. (2) A major advancement towards native spike-based learning has been the use of approximate Backpropagation using spike-time dependent plasticity (STDP) with phased forward/backward passes. However, the transfer of information between such phases for gradient and weight update calculation necessitates external memory and computational access. This is a challenge for standard neuromorphic hardware implementations. In this paper, we propose a stochastic SNN based Back-Prop (SSNN-BP) algorithm that utilizes a composite neuron to simultaneously compute the forward pass activations and backward pass gradients explicitly with spikes. Although signed gradient values are a challenge for spike-based representation, we tackle this by splitting the gradient signal into positive and negative streams. We show that our method approaches BP ANN baseline with sufficiently long spike-trains. Finally, we show that the well-performing softmax cross-entropy loss function can be implemented through inhibitory lateral connections enforcing a Winner Take All (WTA) rule. Our SNN with a 2-layer network shows excellent generalization through comparable performance to ANNs with equivalent architecture and regularization parameters on static image datasets like MNIST, Fashion-MNIST, Extended MNIST, and temporally encoded image datasets like Neuromorphic MNIST datasets. Thus, SSNN-BP enables BP compatible with purely spike-based neuromorphic hardware.

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

↑