應用於三元式脈衝神經網路及四位元乘四位元式卷積神經網路之靜態隨機存取記憶體內運算架構
SRAM-Based Computing-In-Memory Macro for Ternary Spiking Neural Network and 4-bit by 4-bit Convolution Neuron Network
摘要
Convolutional neural networks (CNNs) have been widely applied across various applications. However, if implemented using the traditional Von Neumann architecture, the weights of the CNN model need to be continuously accessed and computed. The extensive data transfer and computation result in massive energy consumption. By employing computing in memory (CIM) techniques, the model weights can be stored within the memory and computations can be performed directly inside the memory modules, greatly reducing data movement and thereby achieving higher energy efficiency. For simpler applications such as keyword spotting, binary or ternary architectures can be employed to minimize energy usage and achieve high efficiency. However, as applications become more complex, such as image classification, it is necessary to increase the precision of input data and weights to handle more intricate computations effectively. Moreover, spiking neural networks (SNNs), which are promising alternative to CNNs, are gradually gaining attention due to their sparse data characteristics, which can further reduce computational energy consumption.
In the thesis, we propose a ternary SNN CIM architecture with an automatic voltage regulation mechanism for keyword spotting. By incorporating distributed voltage regulators and monitors, the supply voltage of the memory array is lowered to reduce the current in memory bit-cells, ensuring that the current magnitude does not affect linearity, thereby enabling large-scale computations. This architecture includes a monitoring mechanism for memory bit-cell variations, which adjusts the supply voltage to mitigate the variation. Additionally, this thesis also introduces a 4-bit by 4-bit CNN CIM architecture for image classification systems. This architecture uses distributed voltage regulators, monitors and digital-to-analog converters to generate different voltage levels for producing binary-weighted read currents corresponding to different bit of weights, achieving multi-bit computation. The ternary CIM macro with keyword spotting system achieved an accuracy of 93.26% and an energy efficiency of 2254.9 TOPS/W by using 16nm TSMC process. The 4-bit by 4-bit CIM macro with image classification system achieved an accuracy of 86.43%. The energy efficiency of the proposed macro is 93.8 TOPS/W by using 28nm TSMC process.
In the thesis, we propose a ternary SNN CIM architecture with an automatic voltage regulation mechanism for keyword spotting. By incorporating distributed voltage regulators and monitors, the supply voltage of the memory array is lowered to reduce the current in memory bit-cells, ensuring that the current magnitude does not affect linearity, thereby enabling large-scale computations. This architecture includes a monitoring mechanism for memory bit-cell variations, which adjusts the supply voltage to mitigate the variation. Additionally, this thesis also introduces a 4-bit by 4-bit CNN CIM architecture for image classification systems. This architecture uses distributed voltage regulators, monitors and digital-to-analog converters to generate different voltage levels for producing binary-weighted read currents corresponding to different bit of weights, achieving multi-bit computation. The ternary CIM macro with keyword spotting system achieved an accuracy of 93.26% and an energy efficiency of 2254.9 TOPS/W by using 16nm TSMC process. The 4-bit by 4-bit CIM macro with image classification system achieved an accuracy of 86.43%. The energy efficiency of the proposed macro is 93.8 TOPS/W by using 28nm TSMC process.
卷積神經網路已被廣泛應用於不同用途。然而,如果使用傳統的范紐曼架構實行卷積神經網路,卷積神經網路模型之權重需要不斷的被讀取出並運算,其巨量的資料傳輸及運算會消耗大量的能量。透過使用記憶體內運算之技術,可將模型之權重存於記憶體內,並直接於記憶體模組內進行運算,此方法可以節省大量的資料搬運,進而達到高能效。對於較為簡易的應用,如關鍵字辨識,可以使用二元或三元式的架構運行,以減少能耗。然而,隨著應用越來越複雜,如物件辨識,則需要將輸入資料與權重的精度提高,才能較為精密的運算。目前有望替代卷積神經網路的脈衝神經網路逐漸受到關注,因其具有稀疏的資料特性,可以減少運算的能量消耗。
本論文提出一種為脈衝神經網路關鍵字辨識所設計的具電壓自動調節機制之記憶體內部三元運算架構。透過加入分散式電壓調節及偵測器,壓低記憶體陣列之供應電壓,用以降低記憶體單元之電流,從而進行更大規模的運算。該架構有對記憶體單元變異的監測機制,能調整供應電壓以緩和由變異性引起的效應。此外,本論文亦提出了一種應用於物件辨識系統的四位元乘四位元之記憶體內部運算架構,其透過分散式電壓調節器以及數位類比轉換器,可以使記憶體單元產生不同權重之讀取電流來達成多位元運算。此三元式關鍵字識別系統達到了93.26%的辨識準確率,同時系統在TSMC 16奈米製程下的能效達到了2254.9 TOPS/W。多位元式物件辨識系統之準確率則是達到86.43%,且模組在TSMC 28奈米製程下之能效達93.8 TOPS/W。
本論文提出一種為脈衝神經網路關鍵字辨識所設計的具電壓自動調節機制之記憶體內部三元運算架構。透過加入分散式電壓調節及偵測器,壓低記憶體陣列之供應電壓,用以降低記憶體單元之電流,從而進行更大規模的運算。該架構有對記憶體單元變異的監測機制,能調整供應電壓以緩和由變異性引起的效應。此外,本論文亦提出了一種應用於物件辨識系統的四位元乘四位元之記憶體內部運算架構,其透過分散式電壓調節器以及數位類比轉換器,可以使記憶體單元產生不同權重之讀取電流來達成多位元運算。此三元式關鍵字識別系統達到了93.26%的辨識準確率,同時系統在TSMC 16奈米製程下的能效達到了2254.9 TOPS/W。多位元式物件辨識系統之準確率則是達到86.43%,且模組在TSMC 28奈米製程下之能效達93.8 TOPS/W。
所屬典藏
前瞻半導體研究所引用此條目
Liu, B.-H. (2024). SRAM-Based Computing-In-Memory Macro for Ternary Spiking Neural Network and 4-bit by 4-bit Convolution Neuron Network. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/4119
引用文字依 APA 第 7 版格式自動產生,使用前請再核對。
分享
永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/4119