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

用神经网络编译器弥补神经网络和神经形态硬件之间的差距

Bridging the Gap Between Neural Networks and Neuromorphic Hardware with A Neural Network Compiler

Tsinghua University(清华大学);University of California at Santa Barbara(加州大学圣塔芭芭拉分校)

Yu Ji, YouHui Zhang, WenGuang Chen, Yuan Xie

摘要:

与面向通用处理器的神经网络(NN)开发不同,NN芯片的开发通常面临着一些硬件方面的限制,如网络信号和参数的精度有限、计算规模受限、非线性函数的类型有限等。本文提出了一种应对挑战的一般方法。我们解耦的NN应用程序从目标硬件通过引入一个编译器,可以将现有的训练,不受限制的NN到一个等效的网络,满足给定的硬件的约束。我们提出了多种技术,使转换适应不同类型的神经网络芯片,并可靠的限制硬件的限制。我们已经建立了这样一个软件工具,既支持脉冲神经网络(SNN)和传统的人工神经网络(ANN)。我们已经证明了其有效性与制造的神经形态芯片和内存处理(PIM)的设计。实验表明,该方案引起的推理误差很小,且转换时间远短于再训练时间。此外,我们还研究了参数敏感性评估,以探索不同转换策略的网络错误和资源利用率之间的权衡,这可以为神经形态硬件和软件的协同设计优化提供见解。

英文摘要:

Different from developing neural networks (NNs) for general-purpose processors, the development for NN chips usually faces with some hardware-specific restrictions, such as limited precision of network signals and parameters, constrained computation scale, and limited types of non-linear functions. This paper proposes a general methodology to address the challenges. We decouple the NN applications from the target hardware by introducing a compiler that can transform an existing trained, unrestricted NN into an equivalent network that meets the given hardware's constraints. We propose multiple techniques to make the transformation adaptable to different kinds of NN chips, and reliable for restrict hardware constraints. We have built such a software tool that supports both spiking neural networks (SNNs) and traditional artificial neural networks (ANNs). We have demonstrated its effectiveness with a fabricated neuromorphic chip and a processing-in-memory (PIM) design. Tests show that the inference error caused by this solution is insignificant and the transformation time is much shorter than the retraining time. Also, we have studied the parameter-sensitivity evaluations to explore the tradeoffs between network error and resource utilization for different transformation strategies, which could provide insights for co-design optimization of neuromorphic hardware and software.

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

↑