應用於深度卷積神經網路之高效能可重組加速器設計
Hardware and Bandwidth Efficient Reconfigurable Accelerators for Deep Convolutional Neural Networks
摘要
利用卷積神經網路的深度學習加速器可以即時應用人工智慧科技於邊緣裝置,然而記憶體頻寬與大量的運算成為在即時執行上的瓶頸,尤其是當高畫質的圖片作為其輸入更為困難。
本論文首先提出一個具有硬體效率之向量型加速器,它採用一維向量資料同時送入專門優化於3x3卷積的脈動陣列並執行卷積運算。在行陣列的輸入端,我們利用多工器讓二組向量資料交錯或三組向量單獨送入,這種方式可以支援不同卷積種類。除此之外,它有簡單且規律的資料流還可以有高硬體使用率。例如,我們可以支援VGG-16、ResNet-34、GoogLeNet、和MobileNet,這些網路有不同結構與卷積類型且它們分別有99%、97%、93%、和94%的高使用率。
我們前面的向量型加速器再針對向量稀疏、擴張、轉置卷積網路進行優化與執行,這三種卷積網路皆具有結構的稀疏性。可以搭配向量型加速器的向量型式輸入與簡單的索引系統去執行向量稀疏網路,所以它不需要太多額外的晶片面積。另外,向量型加速器可以利用拆解輸入圖片與二維的權重的方法省去擴張與轉置卷積中多餘的零運算且不需要改變硬體的結構。所以,比起不做任何省略的運算,我們向量型加速器在向量剪枝後的VGG-16可以加速1.93倍且在具有擴張與轉置網路的ENet中可以加速高達8.2倍。
最後,本論文基於我們的向量型加速器提出一個高硬體效率與低記憶體頻寬的深度學習晶片,它使用融合網路層與不重疊的切割輸入圖片 達到有融合網路層效果與卻沒有融合網路層的複雜控制,還不需要過多晶片內記憶體。此外,這種融合網路層搭配我們所提出的變型物件偵測路可以更優化。因此,我們的晶片用於高畫質圖片之變型物件偵測網路的頻寬需要1.275GB/s,這頻寬比起沒有融合網路層的方法可以下將8.1倍。最後的晶片實現在台積電40奈米 製程,它的能量效率執行在工作頻率300MHz可以高達1.42TOPS/W,還只需要約180萬個NAND gate與480KB的SRAM就可以即時應用物件偵測網路。
本論文首先提出一個具有硬體效率之向量型加速器,它採用一維向量資料同時送入專門優化於3x3卷積的脈動陣列並執行卷積運算。在行陣列的輸入端,我們利用多工器讓二組向量資料交錯或三組向量單獨送入,這種方式可以支援不同卷積種類。除此之外,它有簡單且規律的資料流還可以有高硬體使用率。例如,我們可以支援VGG-16、ResNet-34、GoogLeNet、和MobileNet,這些網路有不同結構與卷積類型且它們分別有99%、97%、93%、和94%的高使用率。
我們前面的向量型加速器再針對向量稀疏、擴張、轉置卷積網路進行優化與執行,這三種卷積網路皆具有結構的稀疏性。可以搭配向量型加速器的向量型式輸入與簡單的索引系統去執行向量稀疏網路,所以它不需要太多額外的晶片面積。另外,向量型加速器可以利用拆解輸入圖片與二維的權重的方法省去擴張與轉置卷積中多餘的零運算且不需要改變硬體的結構。所以,比起不做任何省略的運算,我們向量型加速器在向量剪枝後的VGG-16可以加速1.93倍且在具有擴張與轉置網路的ENet中可以加速高達8.2倍。
最後,本論文基於我們的向量型加速器提出一個高硬體效率與低記憶體頻寬的深度學習晶片,它使用融合網路層與不重疊的切割輸入圖片 達到有融合網路層效果與卻沒有融合網路層的複雜控制,還不需要過多晶片內記憶體。此外,這種融合網路層搭配我們所提出的變型物件偵測路可以更優化。因此,我們的晶片用於高畫質圖片之變型物件偵測網路的頻寬需要1.275GB/s,這頻寬比起沒有融合網路層的方法可以下將8.1倍。最後的晶片實現在台積電40奈米 製程,它的能量效率執行在工作頻率300MHz可以高達1.42TOPS/W,還只需要約180萬個NAND gate與480KB的SRAM就可以即時應用物件偵測網路。
Deep learning accelerators (DLA) for convolution neural networks (CNNs) enable real-time applications of artificial intelligence technology on edge devices. However, a large amount of memory bandwidth and computations have become the bottleneck to real time execute modern deep learning models, especially for high definition (HD) image input.
This dissertation proposes a hardware efficient vectorwise CNN accelerator, denoted as the VWA, that adopts a 3x3 filter optimized systolic array using 1-D broadcast data flow to generate partial sums. This enables easy reconfiguration for different kinds of kernels with interleaved input or elementwise input data flow. This simple and regular data flow results in high hardware utilization to gain high throughput for different deep learning models. For example, this design achieves 99%, 97%, 93.7%, and 94% hardware utilization for VGG-16, ResNet-34, GoogLeNet, and Mobilenet, respectively.
This hardware efficient accelerator becomes a basic design that optimizes and supports structurally sparse CNN, especially for vector sparse, dilated, and transposed CNNs. The vector sparse networks can be executed on the VWA with 1-D vector broadcasted input and a low overhead index system. Furthermore, our basic DLA can also support dilated and transposed convolutions by decomposing input or weight to skip redundant computations. The VWA can achieve 1.93x speedup for VGG-16 with vector pruning method and 8.2x speedup for the ENet, which consists of dilated and transposed convolution over a naive execution.
Finally, this dissertation proposes a high efficiency and low memory traffic DLA based on the VWA that uses layer fusion with non-overlapping tiles to enable simple layer-by-layer processing within fusion and low buffer cost requirement. The fused layer benefit is further maximized by morphing an object detection model to fit the proposed hardware design. Thus, the memory bandwidth of the object detection only needs 1.275GB/s for full HD input, which is an 8.1 times reduction compared to the layer-by-layer approach. The implementation with TSMC 40nm process can achieve 1.42TOPS/W when running at 300MHz operating frequency and execute an object detection model with HD input in real-time with 1.8M gate count and 480KB SRAM.
This dissertation proposes a hardware efficient vectorwise CNN accelerator, denoted as the VWA, that adopts a 3x3 filter optimized systolic array using 1-D broadcast data flow to generate partial sums. This enables easy reconfiguration for different kinds of kernels with interleaved input or elementwise input data flow. This simple and regular data flow results in high hardware utilization to gain high throughput for different deep learning models. For example, this design achieves 99%, 97%, 93.7%, and 94% hardware utilization for VGG-16, ResNet-34, GoogLeNet, and Mobilenet, respectively.
This hardware efficient accelerator becomes a basic design that optimizes and supports structurally sparse CNN, especially for vector sparse, dilated, and transposed CNNs. The vector sparse networks can be executed on the VWA with 1-D vector broadcasted input and a low overhead index system. Furthermore, our basic DLA can also support dilated and transposed convolutions by decomposing input or weight to skip redundant computations. The VWA can achieve 1.93x speedup for VGG-16 with vector pruning method and 8.2x speedup for the ENet, which consists of dilated and transposed convolution over a naive execution.
Finally, this dissertation proposes a high efficiency and low memory traffic DLA based on the VWA that uses layer fusion with non-overlapping tiles to enable simple layer-by-layer processing within fusion and low buffer cost requirement. The fused layer benefit is further maximized by morphing an object detection model to fit the proposed hardware design. Thus, the memory bandwidth of the object detection only needs 1.275GB/s for full HD input, which is an 8.1 times reduction compared to the layer-by-layer approach. The implementation with TSMC 40nm process can achieve 1.42TOPS/W when running at 300MHz operating frequency and execute an object detection model with HD input in real-time with 1.8M gate count and 480KB SRAM.