針對YOLOv7-tiny設計之具捷徑結構層融合的深度學習加速器
A Deep Learning Accelerator for YOLOv7-tiny with Shortcut-Aware Layer Fusion
摘要
卷積神經網路已經廣泛應用於物件偵測任務,由於其巨大的計算需求以及對即時處理的要求,專用硬體加速器的需求日益增加。傳統的卷積神經網路加速器通常逐層進行卷積運算,大量的中繼特徵圖資料需要進行片外傳輸,進而在延遲和功耗方面產生瓶頸。近期研究探索了層融合技術,藉由連續運算多個卷積層,以減少外部資料訪問。然而,目前對模型中捷徑特徵圖的重複使用策略以及靈活的片上緩衝器設計的探索仍相對有限。
本論文提出了一款針對YOLOv7-tiny設計的深度學習加速器,具有兩項主要特色。首先,我們提出了捷徑結構層融合方法,將捷徑結構納入特徵圖緩存設計的考量,為YOLOv7-tiny開發了高效的資料重複使用策略。此外,我們也設計了一個多分區、統一的Activation SRAM控制方案,能有效管理所有特徵圖資料於統一的多分區片上記憶體中,避免不必要的資料複製,並提升記憶體資源的使用率。我們的層融合設計將總特徵圖資料傳輸量減少了32.27%,降至44.70 MB。此加速器採用TSMC 28 nm HPC+製程實現,面積僅2.19 mm²。我們的設計在500 MHz的時鐘頻率下,可達到34.5 FPS速度處理640×640影像輸入,且僅需160KB的Activation SRAM,並實現3.0 TOPS/W的能源效率
本論文提出了一款針對YOLOv7-tiny設計的深度學習加速器,具有兩項主要特色。首先,我們提出了捷徑結構層融合方法,將捷徑結構納入特徵圖緩存設計的考量,為YOLOv7-tiny開發了高效的資料重複使用策略。此外,我們也設計了一個多分區、統一的Activation SRAM控制方案,能有效管理所有特徵圖資料於統一的多分區片上記憶體中,避免不必要的資料複製,並提升記憶體資源的使用率。我們的層融合設計將總特徵圖資料傳輸量減少了32.27%,降至44.70 MB。此加速器採用TSMC 28 nm HPC+製程實現,面積僅2.19 mm²。我們的設計在500 MHz的時鐘頻率下,可達到34.5 FPS速度處理640×640影像輸入,且僅需160KB的Activation SRAM,並實現3.0 TOPS/W的能源效率
Convolutional Neural Networks (CNNs) have become main stream in object detection tasks. Driven by substantial computational requirements and the need for real-time processing, hardware CNN accelerators are in demand. Traditional CNN accelerators perform convolution in a layer-by-layer manner, requiring a significant amount of off-chip data transfer for intermediate feature maps, which becomes a performance bottleneck in terms of latency and energy consumption. Recent works have explored layer fusion techniques, processing multiple convolution layers together to reduce external data access. However, a lack of exploration exists regarding reuse strategies for shortcut feature maps within models and flexible on-chip buffer design.
In this thesis, we propose a deep learning accelerator specifically designed for YOLOv7-tiny with two main features. First, we propose a shortcut-aware layer fusion method that involves the consideration of shortcut connections into feature map caching, developing an efficient data reuse strategy for YOLOv7-tiny. Furthermore, we introduce a multi-bank unified Activation SRAM control scheme that efficiently manages all feature map data in one unified, multi-bank on-chip buffer, eliminating unnecessary data copying and improving the utilization of buffer resources. Our proposed layer fusion reduces feature map traffic by 32.27%, lowering the total feature map data transfer from 66.60 MB to 44.70 MB. Implemented in TSMC 28 nm HPC+process, the proposed accelerator occupies only 2.19 mm² area. Our proposed accelerator executes the modified YOLOv7-tiny at 34.5 FPS with 640×640 image inputs, requiring only 160KB of Activation SRAMs. Our design achieves an energy efficiency of 3.0 TOPS/W operating at a 500 MHz clock frequency.
In this thesis, we propose a deep learning accelerator specifically designed for YOLOv7-tiny with two main features. First, we propose a shortcut-aware layer fusion method that involves the consideration of shortcut connections into feature map caching, developing an efficient data reuse strategy for YOLOv7-tiny. Furthermore, we introduce a multi-bank unified Activation SRAM control scheme that efficiently manages all feature map data in one unified, multi-bank on-chip buffer, eliminating unnecessary data copying and improving the utilization of buffer resources. Our proposed layer fusion reduces feature map traffic by 32.27%, lowering the total feature map data transfer from 66.60 MB to 44.70 MB. Implemented in TSMC 28 nm HPC+process, the proposed accelerator occupies only 2.19 mm² area. Our proposed accelerator executes the modified YOLOv7-tiny at 34.5 FPS with 640×640 image inputs, requiring only 160KB of Activation SRAMs. Our design achieves an energy efficiency of 3.0 TOPS/W operating at a 500 MHz clock frequency.