應用於人工智慧邊緣運算裝置之強健高能效記憶體內運算加速器

Robust Energy-Efficient Computing-In-Memory Accelerators for AI Edge Device

檔案

全文未公開。

日期

2023

類型

語言

英文

摘要

卷積神經網絡以在深度學習應用各領域中的出色表現而聞名。然而,為了提高卷積神經網絡模型的準確性,計算需求呈指數級增長。由於大量數據移動造成記憶體和運算單元之間的馮·諾依曼瓶頸,因而導致功耗增加。
為了應對這些挑戰,記憶體內運算架構提供了一種可行的解決方案,將存儲和計算結合在同一設備上,有效減少大量數據移動的需求。記憶體內運算架構利用高度並行計算來提高能量效率並最大限度地減少數據傳輸。
然而,當前的記憶體內運算架構面臨著三項重大挑戰。其中一個挑戰是目前電阻式記憶體內運算架構,受限於非線性效應與能耗限制,其平行計算能力非常有限,只有一小部分(0.8% - 10%)的運算單元同時被激活。此外,大多數記憶體內運算架構缺乏可編程性,導致模型部署困難並提升用戶使用難度。此外,若要進一步提升運算能效,現有的記憶體內運算架構剪枝框架忽略了非理想效應,導致CNN模型精度顯著下降。

為了解決電阻式記憶體內運算架構的低平行度問題,我們提出了一種用於人工智慧邊緣運算裝置的完全平行且強健的電阻式記憶體內運算架構處理器(以下簡稱FPCIM)。與之前基於電阻式記憶體內運算架構不同,FPCIM克服了低平行度問題,並實現了完全並行計算,同時最小化精度損失。此外,本研究還解決了電阻式記憶體內運算架構的非理想效應,包括傳感放大器的不匹配、電阻式記憶體內運算單元的變化、電阻式記憶體內運算單元上的堆棧故障、壓降以及非線性。
為了增強卷積神經網絡的強健性,我們提出了一種電阻式記憶體內運算感知訓練方法,該方法考慮完整的變化,並在CIFAR-10數據集上的VGG9模型中僅造成1.55%的準確率損失。此外,FPCIM通過可編程指令集支持執行各種2-D CNN模型。
所提出的設計採用台積電40奈米製程,在125 MHz工作頻率下實現了131.07 TOPS和3299.75 TOPS/W的卓越性能,優於最先進的設計。

為了實現可編程性,我們提出了一種基於靜態隨機存取記憶體內運算的端到端加速器,它是採用RISC-V架構且適用於人工智慧邊緣運算裝置(以下簡稱CIMR-V)。與其他記憶體內運算方法不同,CIMR-V通過緊密集成記憶體內運算和RISC-V架構,顯著增強了可編程性。CIMR-V為全棧流程提供全面支持,提供用戶友好的體驗。此外,它克服了特徵圖數據移動和權重更新導致的長延遲。通過將記憶體內運算的層融合、權重融合以及捲積層和最大池化層的平行管道處理,CIMR-V在使用關鍵字識別模型上的執行延遲顯著降低了85.14%。所提出的設計採用台積電28奈米製程,在50 MHz工作頻率下實現了3707.84 TOPS/W和26.21 TOPS的出色性能。

為了進一步提升運算能效並將非理想效應納入模型優化中,我們提出了一種專為記憶體內運算加速器設計的能量變化感知修剪框架(以下簡稱EV-CIM)。與之前的方法相比,EV-CIM利用變化感知訓練方法來增強CNN模型的強健性。此外,EV-CIM採用濾波器級(3-D)剪枝方法,通過有選擇性地關閉部分記憶體陣列來最大限度地降低功耗,特別是當行上的所有權重為零時。通過這些改進,EV-CIM顯著提高了能效,在三元靜態隨機存取記憶體內運算、三元電阻式記憶體內運算和多位元電阻式記憶體內運算中的性能分別提高了1.17倍 (1510.66 TOPS/W)、1.92倍 (6081.08 TOPS/W)和1.26倍 (582.51 TOPS/W),並僅有2.04%、3.81%和2.61%的最小精度損失。

總之,本論文提出了FPCIM、CIMR-V和EV-CIM等方法,因應記憶體內運算加速器的三大挑戰,使作為人工智慧邊緣運算裝置的強大記憶體內運算加速器。能通過全並行計算、過濾器級剪枝和能量感知損失訓練方法來提高卷積神經網絡模型的強健性與運算能效,並能透過可編程性,使記憶體內運算具備容易使用性。
Convolutional neural networks (CNNs) are renowned for their outstanding performance in diverse domains, such as keyword spotting and image recognition. However, to enhance the accuracy of CNN models, the computational demands exponentially grow, resulting in increased power consumption due to the Von Neumann bottleneck caused by extensive data movement between memory and CPUs.
To address these challenges, Computing-in-Memory (CIM) architecture offers a viable solution by combining storage and computing on the same device, effectively reducing the need for extensive data movement. CIM architectures leverage high parallel computing to improve energy efficiency and minimize data transfer.
Nevertheless, current CIM architectures face certain challenges. One such challenge is resistance-based CIM, which exhibits limited parallelism as only a fraction (ranging from 0.8% to 10%) of cells activate simultaneously, leading to considerable variations. Additionally, most CIM architectures lack programmability, making model deployment difficult and hindering user adoption. Furthermore, existing pruning frameworks for CIM architectures overlook non-ideal effects, resulting in a significant decrease in CNN model accuracy.

To tackle non-ideal effects, we propose a fully-parallel robust ReRAM CIM (FPCIM) processor for edge AI devices. Unlike previous ReRAM-based CIM approaches, FPCIM overcomes the low parallelism problem, enabling fully parallel computing with minimal accuracy loss. Additionally, FPCIM addresses the non-ideal effects of ReRAM-based CIM, including sensing amplifier (SA) mismatch, ReRAM cell variation, stack-at-fault on ReRAM cell, IR drop with long bitline (BL), and nonlinearity on BL.
To enhance the robustness of the CNN model, we propose an in-ReRAM-computing (IRC) aware training method that considers full variations while achieving a mere 1.55% accuracy loss for the VGG9 model on the CIFAR-10 dataset. Moreover, FPCIM provides support for executing various 2-D CNN models through a programmable instruction set.
The proposed design, implemented using TSMC 40nm CMOS technology, achieves 131.07 TOPS and 3299.75 TOPS/W at a clock rate of 125 MHz, exhibiting superior energy efficiency compared to state-of-the-art designs.

For programmability, we introduce CIMR-V, an end-to-end SRAM-based CIM accelerator with RISC-V architecture for AI edge devices. Unlike other CIM approaches, CIMR-V significantly enhances programmability by tightly integrating CIM and RISC-V architecture.
CIMR-V provides comprehensive support for the full stack flow, offering a user-friendly experience. Moreover, it overcomes the long latency resulting from feature map data movement and weight updates.
By incorporating CIM layer fusion, weight fusion, and pipeline with convolution and max pooling, CIMR-V achieves an impressive 85.14% reduction in execution latency for the keyword spotting model.
The proposed design, implemented using TSMC 28nm CMOS technology, achieves outstanding performance with 3707.84 TOPS/W and 26.21 TOPS at a clock rate of 50 MHz.

To further incorporate non-ideal effects into model optimization, we propose EV-CIM, an energy-variation-aware pruning framework specifically designed for CIM accelerators.
In contrast to prior approaches, EV-CIM leverages variation-aware training methods to enhance the robustness of CNN models. Additionally, EV-CIM adopts a filter-level (3-D) pruning method, which is different from fine-grained (0-D), vector-level (1-D), or kernel-level (2-D) pruning methods. This filter-level approach minimizes power consumption by selectively powering off partial arrays based on the weight kernel, specifically when all weights on the bitline (BL) are zero.
Through these advancements, EV-CIM achieves significant improvements in energy efficiency, with 1.22 times (1581.83 TOPS/W), 1.98 times (6247.63 TOPS/W), and 1.35 times (625.83 TOPS/W) higher performance for ternary SRAM-based CIM, ternary ReRAM-based CIM, and multi-bit ReRAM-based NMC, respectively, while maintaining a minimal accuracy loss.

In summary, this thesis proposes robust energy-efficient computing-in-memory accelerators for AI edge devices through FPCIM, CIMR-V, and EV-CIM, which would enhance energy efficiency by leveraging fully-parallel computing, filter-level pruning, and energy-aware loss. Moreover, they improve the robustness of CNN models through CIM-aware training.

所屬典藏

電子研究所
顯示完整詮釋資料 統計資料

引用此條目

Guo, Y.-C. (2023). Robust Energy-Efficient Computing-In-Memory Accelerators for AI Edge Device. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/83288

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/83288