基於自適應浮點數以及數位記憶體運算之節能深度神經網路加速電路設計
Energy-Efficient Digital Computation-in-Memory Design with Adaptive Floating Point for Deep Neural Networks
摘要
隨著應用的情境愈來愈複雜雜,深度神經網路的參數和計算量也越來越大。而卷積在神經網路中占了大部分的計算量,因此加速卷積運算成為一個重要問題。另一方面,卷積所需的大量參數使系統受到Von-Neumann瓶頸的影響。這導致硬體在記憶體存取上消耗大量的能量,並使其能效降低。因此,最近發展出記憶體內運算的方法。它試圖通過將部分計算放在記憶體中來減少數據的傳輸量。
數位記憶體內運算解決了類比記憶內運算容易受到PVT變異以及被類比數位轉換器限制的缺點,提供了另一種高能源效率的設計選擇。然而,數位記憶體內運算目前大部採用了整數運算還有位元串進的方式,會使得吞吐量受到總位元數的限制。並且,進行累加的加法器樹造成了嚴重的面積消耗。因此我們提出了基於分時多工的架構,它能夠在不降低吞吐量的情況下降低面積,獲得更好的能源效率。我們也提出了低尾數的自適應浮點數量化,它能夠得到於整數量化差不多甚至更好的精準度。並且我們將低尾數的自適應浮點映射在我們的架構上,相比於整數,能夠得到約3.83倍的吞吐量,2.19倍的能源效率
數位記憶體內運算解決了類比記憶內運算容易受到PVT變異以及被類比數位轉換器限制的缺點,提供了另一種高能源效率的設計選擇。然而,數位記憶體內運算目前大部採用了整數運算還有位元串進的方式,會使得吞吐量受到總位元數的限制。並且,進行累加的加法器樹造成了嚴重的面積消耗。因此我們提出了基於分時多工的架構,它能夠在不降低吞吐量的情況下降低面積,獲得更好的能源效率。我們也提出了低尾數的自適應浮點數量化,它能夠得到於整數量化差不多甚至更好的精準度。並且我們將低尾數的自適應浮點映射在我們的架構上,相比於整數,能夠得到約3.83倍的吞吐量,2.19倍的能源效率
As the scenario of application become more complex, the parameters and computations of deep neural networks become more and more heavy. The convolution accounts for most of the computation in neural networks, so it becomes an important issue to accelerate the convolution operation. On the other hand, the large number of parameters required for convolution make the system to be suffered from a Von-Neumann bottleneck. It cause the hardware consume a lot of energy for memory access, and make it has less energy efficient. Therefore, the computation-in-memory has recently been developed. It try to reduce the amount of data to be transferred by putting some of the computation in the memory.
Unlike analog computation-in-memory, which is susceptible to PVT variations and limited by analog-to-digital converters, digital memory computing offers an alternative energy-efficient design strategy.However, most of the current digital in-memory computing uses the integer operation and bit-serial method, which limits the throughput to the total number of bits. Moreover, the adder tree for accumulation causes severe area overhead. Therefore, we propose an architecture based on time-division multiplexing, which can reduce the area without reducing the throughput and obtain better energy efficiency. And we also propose the quantizaion of the adaptive floating point (ADP) with low-bits mantissa, which can achieve about the same or better accuracy than integer quantization. Furthermore, we map the adaptive floating point (ADP) with low-bits mantissa on our architecture, we can get the 3.83x throughput and 2.19x energy efficiency than the integer.
Unlike analog computation-in-memory, which is susceptible to PVT variations and limited by analog-to-digital converters, digital memory computing offers an alternative energy-efficient design strategy.However, most of the current digital in-memory computing uses the integer operation and bit-serial method, which limits the throughput to the total number of bits. Moreover, the adder tree for accumulation causes severe area overhead. Therefore, we propose an architecture based on time-division multiplexing, which can reduce the area without reducing the throughput and obtain better energy efficiency. And we also propose the quantizaion of the adaptive floating point (ADP) with low-bits mantissa, which can achieve about the same or better accuracy than integer quantization. Furthermore, we map the adaptive floating point (ADP) with low-bits mantissa on our architecture, we can get the 3.83x throughput and 2.19x energy efficiency than the integer.