심층 신경망의 전연결 레이어를 위한 저지연 CMOS 하드웨어 가속
Low Latency CMOS Hardware Acceleration for Fully Connected Layers in Deep Neural Networks
Low Latency CMOS Hardware Acceleration for Fully Connected Layers in Deep Neural Networks
@misc{iliev2020low,
title = {Low Latency CMOS Hardware Acceleration for Fully Connected Layers in Deep Neural Networks},
author = {Nick Iliev and Amit Ranjan Trivedi},
year = {2020},
eprint = {2011.12839},
archivePrefix = {arXiv},
primaryClass = {cs.AR},
url = {https://arxiv.org/abs/2011.12839}
}
Iliev, N., & Trivedi, A. R. (2020). Low Latency CMOS Hardware Acceleration for Fully Connected Layers in Deep Neural Networks [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.12839
ILIEV N, TRIVEDI AR. Low Latency CMOS Hardware Acceleration for Fully Connected Layers in Deep Neural Networks[EB/OL]. (2020-11-25)[2026-11-29]. https://arxiv.org/abs/2011.12839.
초록
우리는 심층 신경망 (DNN) 의 전연결 (FC) 레이어를 위한 새로운 저지연 CMOS 하드웨어 가속기를 제시한다. FC 가속기인 FC-ACCL 은 행렬-벡터 곱셈을 위해 128 개의 8x8 또는 16x16 처리 요소 (PE) 를 기반으로 하며, 사전 학습된 가중치를 저장하기 위해 128 개의 곱셈 - 축적 (MAC) 단과 128 개의 고대역폭 메모리 (HBM) 단이 통합되어 있다. CMOS ASIC 구현에 대한 마이크로 아키텍처 세부사항을 제시하고, AlexNet 과 VGG 16 을 위한 최근 하드웨어 가속기들과 비교하여 시뮬레이션 성능을 평가한다. 4096-1000 FC8 레이어의 시뮬레이션 처리 지연을 비교할 때, FC-ACCL 은 100 MHz 클럭에서 48.4 GOPS 를 달성하며, 최근 인용된 150 MHz 클럭에서 28.8 GOPS 인 FC8 레이어 가속기를 능가한다. 우리는 새로운 colum-row-column 스케줄을 통해 1 사이클 만에 열 특화 FC 레이어 가중치를 저장 및 읽기 위해 HBM 단을 완전히 활용하고, 해당 MAC 및 PE 단과 함께 이러한 가중치를 처리하기 위해 최대 병렬 데이터 경로를 구현함으로써 이러한 현저한 향상을 달성했다. 128 개의 16x16 PE 로 확장되어 16x16 가중치 타일 (tiles) 을 처리할 때, 대용량 FC6 레이어의 지연을 EIE 솔루션 (압축 사용) 과 비교했을 때 AlexNet 에서 60 %, VGG16 에서 3 % 감소시킬 수 있다.
We present a novel low latency CMOS hardware accelerator for fully connected (FC) layers in deep neural networks (DNNs). The FC accelerator, FC-ACCL, is based on 128 8x8 or 16x16 processing elements (PEs) for matrix-vector multiplication, and 128 multiply-accumulate (MAC) units integrated with 128 High Bandwidth Memory (HBM) units for storing the pretrained weights. Micro-architectural details for CMOS ASIC implementations are presented and simulated performance is compared to recent hardware accelerators for DNNs for AlexNet and VGG 16. When comparing simulated processing latency for a 4096-1000 FC8 layer, our FC-ACCL is able to achieve 48.4 GOPS (with a 100 MHz clock) which improves on a recent FC8 layer accelerator quoted at 28.8 GOPS with a 150 MHz clock. We have achieved this considerable improvement by fully utilizing the HBM units for storing and reading out column-specific FClayer weights in 1 cycle with a novel colum-row-column schedule, and implementing a maximally parallel datapath for processing these weights with the corresponding MAC and PE units. When up-scaled to 128 16x16 PEs, for 16x16 tiles of weights, the design can reduce latency for the large FC6 layer by 60 % in AlexNet and by 3 % in VGG16 when compared to an alternative EIE solution which uses compression.