arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.06892cs.LGcs.ARcs.CVcs.ET
收藏

TiM-DNN:用于深度神经网络的三元内存加速器

TiM-DNN: Ternary in-Memory accelerator for Deep Neural Networks

Purdue University(普渡大学)

Shubham Jain, Sumeet Kumar Gupta, Anand Raghunathan

摘要:

使用较低的精度已经成为优化复杂深度神经网络(DNN)的计算和存储需求的流行技术。在追求更低精度的过程中,最近的研究表明,三元DNN(通过带符号的三元值表示权重和激活)代表了一个有希望的最佳点,在复杂任务中实现了接近全精度网络的精度。我们提出了TiM-DNN,一种专门设计用于执行三进制DNN的可编程内存加速器。TiM-DNN支持各种三进制表示,包括未加权{-1,0,1}、对称加权{-a,0,a}和非对称加权{-a,0,b}三进制系统。TiM-DNN的构建块是TiM瓦片-专用存储器阵列,可以通过一次访问执行大规模并行有符号三进制向量矩阵乘法。TiM瓦片又由三进制处理单元(TPC)组成,TPC是用作三进制存储单元和有符号三进制乘法单元的位单元。我们评估了TiM-DNN在32 nm技术中的实现,使用SPICE模拟和RTL合成校准的架构模拟器。我们在一套最先进的DNN基准测试中评估TiM-DNN,包括深度卷积和递归神经网络。TiM-DNN的32瓦片实例实现了114 TOP/s的峰值性能,消耗0.9W功率,占用1.96mm2芯片面积,与NVIDIA Tesla V100 GPU相比,TOPS/W和TOPS/mm 2分别提高了300倍和388倍。与专用DNN加速器相比,TiM-DNN在TOPS/W和TOPS/mm 2方面分别实现了55 - 240倍和160 - 291倍的改进。最后,当与用于三进制DNN的良好优化的近存储器加速器相比时,TiM-DNN在系统级能量和3.2倍-4.2倍加速方面表现出3.9倍-4.7倍的改进,强调了存内计算用于三进制DNN的潜力。

英文摘要:

The use of lower precision has emerged as a popular technique to optimize the compute and storage requirements of complex Deep Neural Networks (DNNs). In the quest for lower precision, recent studies have shown that ternary DNNs (which represent weights and activations by signed ternary values) represent a promising sweet spot, achieving accuracy close to full-precision networks on complex tasks. We propose TiM-DNN, a programmable in-memory accelerator that is specifically designed to execute ternary DNNs. TiM-DNN supports various ternary representations including unweighted {-1,0,1}, symmetric weighted {-a,0,a}, and asymmetric weighted {-a,0,b} ternary systems. The building blocks of TiM-DNN are TiM tiles -- specialized memory arrays that perform massively parallel signed ternary vector-matrix multiplications with a single access. TiM tiles are in turn composed of Ternary Processing Cells (TPCs), bit-cells that function as both ternary storage units and signed ternary multiplication units. We evaluate an implementation of TiM-DNN in 32nm technology using an architectural simulator calibrated with SPICE simulations and RTL synthesis. We evaluate TiM-DNN across a suite of state-of-the-art DNN benchmarks including both deep convolutional and recurrent neural networks. A 32-tile instance of TiM-DNN achieves a peak performance of 114 TOPs/s, consumes 0.9W power, and occupies 1.96mm2 chip area, representing a 300X and 388X improvement in TOPS/W and TOPS/mm2, respectively, compared to an NVIDIA Tesla V100 GPU. In comparison to specialized DNN accelerators, TiM-DNN achieves 55X-240X and 160X-291X improvement in TOPS/W and TOPS/mm2, respectively. Finally, when compared to a well-optimized near-memory accelerator for ternary DNNs, TiM-DNN demonstrates 3.9x-4.7x improvement in system-level energy and 3.2x-4.2x speedup, underscoring the potential of in-memory computing for ternary DNNs.

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

↑