arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1705.09283cs.LGcs.CVstat.ML
收藏

GXNOR-Net:在统一的离散化框架下训练具有三元权重和激活的深度神经网络,无需全精度记忆

GXNOR-Net: Training deep neural networks with ternary weights and activations without full-precision memory under a unified discretization framework

Tsinghua University(清华大学);University of California, Santa Barbara(加州大学圣巴巴拉分校)

Lei Deng, Peng Jiao, Jing Pei, Zhenzhi Wu, Guoqi Li

摘要:

迫切需要建立一个架构,可以在一个统一的框架下,实现更高的性能和更少的开销,这些网络submitted。为此,有两个基本问题尚待解决。第一个问题是当神经元的激活是离散的时,如何实现反向传播。第二个问题是如何在训练阶段去除全精度隐藏权重,以打破内存/计算消耗的瓶颈。为了解决第一个问题,我们提出了一个多步神经元激活离散化方法和一个导数近似技术,使离散DNN上的反向传播算法的实施。而对于第二个问题,我们提出了一个离散状态转换(DST)的方法来限制在一个离散空间的权重,而不保存隐藏的权重。通过这种方式,我们建立了一个统一的框架,包括二进制或三进制网络作为其特殊情况下,并在此基础上提供了一个启发式算法在网站https://github.com/AcrossV/Gated-XNOR。更具体地说,我们发现,当权重和激活都变成三进制值时,DNN可以简化为稀疏二进制网络,称为门控XNOR网络(GXNOR-Nets),因为只有非零权重和非零激活的事件才能使控制门启动原始二进制网络中的XNOR逻辑运算。这保证了事件驱动的硬件设计,以实现高效的移动智能。与最先进的算法相比,我们实现了先进的性能。此外,离散空间中的计算稀疏性和状态数可以灵活地修改,以使其适用于各种硬件平台。

英文摘要:

There is a pressing need to build an architecture that could subsume these networks under a unified framework that achieves both higher performance and less overhead. To this end, two fundamental issues are yet to be addressed. The first one is how to implement the back propagation when neuronal activations are discrete. The second one is how to remove the full-precision hidden weights in the training phase to break the bottlenecks of memory/computation consumption. To address the first issue, we present a multi-step neuronal activation discretization method and a derivative approximation technique that enable the implementing the back propagation algorithm on discrete DNNs. While for the second issue, we propose a discrete state transition (DST) methodology to constrain the weights in a discrete space without saving the hidden weights. Through this way, we build a unified framework that subsumes the binary or ternary networks as its special cases, and under which a heuristic algorithm is provided at the website https://github.com/AcrossV/Gated-XNOR. More particularly, we find that when both the weights and activations become ternary values, the DNNs can be reduced to sparse binary networks, termed as gated XNOR networks (GXNOR-Nets) since only the event of non-zero weight and non-zero activation enables the control gate to start the XNOR logic operations in the original binary networks. This promises the event-driven hardware design for efficient mobile intelligence. We achieve advanced performance compared with state-of-the-art algorithms. Furthermore, the computational sparsity and the number of states in the discrete space can be flexibly modified to make it suitable for various hardware platforms.

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

↑