應用於卷積神經網路之具可調位元寬度及以混和類比數位設計的電阻式隨機存取記憶體內運算模組
A Reconfigurable 4/8-bit RRAM based Hybrid Analog-Digital Computing Macro for CNN Application
摘要
In recent years, artificial intelligence (AI) has become a key technology in many areas, including speak recognition, image processing, and self-driving cars. However, using traditional processors based on the von Neumann architecture to run AI algorithms comes with significant challenges, particularly in terms of energy consumption and speed. This is mainly due to the large amount of data that needs to be transferred between memory and processing units, which creates what's known as the von Neumann bottleneck. To solve this problem, computing-in-memory (CIM) has been developed.
One promising type of CIM is based on non-volatile memory (NVM), with resistive random-access memory (RRAM) being a promising option. However, designing high-precision RRAM CIM systems in the analog domain comes with several difficulties. In this thesis, we propose solutions to these challenges by optimizing both hardware and software. We developed a 256Kb hybrid analog-digital RRAM CIM system using a 40nm process, which can handle either 4-bit or 8-bit precision for inputs and weights. The system can perform 128 parallel 4-bit by 4-bit multiplications and accumulations, or 64 parallel 8-bit by 8-bit operations.
Our simulations show that the proposed system achieves a fast 4ns clock period for its operations and high energy efficiency, reaching 58.4 TOPS/W for 4-bit precision and 20.21 TOPS/W for 8-bit precision. This system is used to speed up convolution operations in a proposed hardware-efficient version of the ResNet18 model, achieving an accuracy of 89.61% for 4-bit precision and 90.82% for 8-bit precision on the CIFAR-10 dataset.
One promising type of CIM is based on non-volatile memory (NVM), with resistive random-access memory (RRAM) being a promising option. However, designing high-precision RRAM CIM systems in the analog domain comes with several difficulties. In this thesis, we propose solutions to these challenges by optimizing both hardware and software. We developed a 256Kb hybrid analog-digital RRAM CIM system using a 40nm process, which can handle either 4-bit or 8-bit precision for inputs and weights. The system can perform 128 parallel 4-bit by 4-bit multiplications and accumulations, or 64 parallel 8-bit by 8-bit operations.
Our simulations show that the proposed system achieves a fast 4ns clock period for its operations and high energy efficiency, reaching 58.4 TOPS/W for 4-bit precision and 20.21 TOPS/W for 8-bit precision. This system is used to speed up convolution operations in a proposed hardware-efficient version of the ResNet18 model, achieving an accuracy of 89.61% for 4-bit precision and 90.82% for 8-bit precision on the CIFAR-10 dataset.
近年來,人工智慧(AI)已成為眾多領域中的關鍵技術,例如語音識別、圖像處理及自動駕駛等。然而,使用基於馮·諾伊曼架構的傳統處理器來執行AI算法,面臨著能耗和速度方面的挑戰。這主要是因為記憶體與處理單元之間的大量數據傳輸,導致所謂的馮·諾伊曼瓶頸。為了解決這一瓶頸,記憶體內運算(Computing-in-Memory, CIM)的概念被提出,並在近年受到關注及研究。
其中,非揮發性記憶體(NVM)的CIM技術備受關注,而電阻式隨機存取記憶體(RRAM)是NVM中最有潛力的選擇之一。在設計高精度的RRAM CIM模組時往往會選擇以類比電路實現以達到低能耗,然而在設計中存在許多挑戰。在本論文中,我們通過類比及數位設計的結合及軟硬體的協同設計與優化,提出了應對這些挑戰的方法。我們設計並實現了256Kb 40奈米製程RRAM based運算模組,並且具有可調4位元或8位元精度的彈性設計。此模組可以一次執行128組4位元的乘積累加運算或64組8位元的乘積累加運算,以達高運算平行度。
所提出的模組模擬可運算在4ns的時脈週期並在4位元精度下可達到58.4 TOPS/W的高能效及在8位元的精度下達到20.21 TOPS/W。該系統用於加速AI模型ResNet18中的卷積運算,並在CIFAR-10數據集中,分別實現了89.61%(4位精度)和90.82%(8位精度)的準確率。
其中,非揮發性記憶體(NVM)的CIM技術備受關注,而電阻式隨機存取記憶體(RRAM)是NVM中最有潛力的選擇之一。在設計高精度的RRAM CIM模組時往往會選擇以類比電路實現以達到低能耗,然而在設計中存在許多挑戰。在本論文中,我們通過類比及數位設計的結合及軟硬體的協同設計與優化,提出了應對這些挑戰的方法。我們設計並實現了256Kb 40奈米製程RRAM based運算模組,並且具有可調4位元或8位元精度的彈性設計。此模組可以一次執行128組4位元的乘積累加運算或64組8位元的乘積累加運算,以達高運算平行度。
所提出的模組模擬可運算在4ns的時脈週期並在4位元精度下可達到58.4 TOPS/W的高能效及在8位元的精度下達到20.21 TOPS/W。該系統用於加速AI模型ResNet18中的卷積運算,並在CIFAR-10數據集中,分別實現了89.61%(4位精度)和90.82%(8位精度)的準確率。