arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.14117cs.NE
收藏

脉冲神经网络的Hessian感知Quantization

Hessian Aware Quantization of Spiking Neural Networks

Hin Wai Lui, Emre Neftci

摘要:

为了实现脉冲神经网络(SNN)的低延迟、高吞吐量和能效优势,在神经形态硬件上运行时降低内存和计算需求是重要的一步。神经形态架构允许具有可变和局部位精度的大规模并行计算。然而,应该如何将不同的比特精度分配给网络的不同层或连接并不是微不足道的。在这项工作中,我们演示了如何逐层Hessian迹分析可以测量损失对层权重的任何扰动的敏感性,这可以用来指导量化SNN时分配特定于层的位精度。此外,当前基于梯度的SNN训练方法使用具有多个状态变量的复杂神经元模型,这对于计算和存储器效率来说并不理想。为了解决这一挑战,我们提出了一个简化的神经元模型,它将状态变量的数量减少了4倍,同时仍然与基于梯度的训练兼容。我们发现,当使用逐层位精度时,对模型精度的影响与该层的Hessian迹相关。最优量化网络的精度仅下降了0.2%,但网络规模减少了58%。这减少了存储器的使用,并允许使用具有更简单的数字电路的定点运算,从而提高了总体吞吐量和能效。

英文摘要:

To achieve the low latency, high throughput, and energy efficiency benefits of Spiking Neural Networks (SNNs), reducing the memory and compute requirements when running on a neuromorphic hardware is an important step. Neuromorphic architecture allows massively parallel computation with variable and local bit-precisions. However, how different bit-precisions should be allocated to different layers or connections of the network is not trivial. In this work, we demonstrate how a layer-wise Hessian trace analysis can measure the sensitivity of the loss to any perturbation of the layer's weights, and this can be used to guide the allocation of a layer-specific bit-precision when quantizing an SNN. In addition, current gradient based methods of SNN training use a complex neuron model with multiple state variables, which is not ideal for compute and memory efficiency. To address this challenge, we present a simplified neuron model that reduces the number of state variables by 4-fold while still being compatible with gradient based training. We find that the impact on model accuracy when using a layer-wise bit-precision correlated well with that layer's Hessian trace. The accuracy of the optimal quantized network only dropped by 0.2%, yet the network size was reduced by 58%. This reduces memory usage and allows fixed-point arithmetic with simpler digital circuits to be used, increasing the overall throughput and energy efficiency.

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

↑