應用於卷積神經網路的 625TOPS/W 之多位元管線化電阻式隨機存取記憶體內運算模組
A Multi-bit Pipeline RRAM CIM Macro with 625TOPS/W for CNN Application
摘要
In recent years, Artificial Intelligence (AI) has progressively established its pivotal
role in various applications, including speaker recognition, image processing, and
autonomous driving technologies, etc. However, when utilizing standard processors
based on the von Neumann architecture to execute AI applications, significant
challenges arise in energy and latency, largely due to the extensive data movement
between memory and computing units. To address the limitations of this von Neumann
bottleneck, the Computing-in-Memory (CIM) technique was developed.
For CIM based on non-volatile memory (NVM), Resistive Random-Access
Memory (RRAM) is the primary choice. However, pursuing higher precision and
efficiency in RRAM CIM introduces numerous technical challenges. In this paper, we
delve into a series of hardware-software co-optimization strategies, aiming to overcome
these hurdles and further enhance module performance. Using a 40nm process, we
successfully fabricated a 256Kb RRAM CIM module, equipped with 4-bit input, 4-bit
weights, and 4-bit output capabilities. This module is capable of processing 16 sets of
128 4-bit multiplications in a single operation and simultaneously accumulating their
results, achieving impressive computational efficiency. Simulation results indicate that
this module can complete CIM throughput in just 10 ns, with an outstanding energy
efficiency of 625.83 TOPS/W. We also implement this module in the convolutional
processes of the AI model Resnet18. Through our innovative methods, we effectively
minimized the non-ideal effects on the AI model, thereby improving its performance.
Ultimately, this model achieved accuracy of 84.99% on the CIFAR-10 dataset
role in various applications, including speaker recognition, image processing, and
autonomous driving technologies, etc. However, when utilizing standard processors
based on the von Neumann architecture to execute AI applications, significant
challenges arise in energy and latency, largely due to the extensive data movement
between memory and computing units. To address the limitations of this von Neumann
bottleneck, the Computing-in-Memory (CIM) technique was developed.
For CIM based on non-volatile memory (NVM), Resistive Random-Access
Memory (RRAM) is the primary choice. However, pursuing higher precision and
efficiency in RRAM CIM introduces numerous technical challenges. In this paper, we
delve into a series of hardware-software co-optimization strategies, aiming to overcome
these hurdles and further enhance module performance. Using a 40nm process, we
successfully fabricated a 256Kb RRAM CIM module, equipped with 4-bit input, 4-bit
weights, and 4-bit output capabilities. This module is capable of processing 16 sets of
128 4-bit multiplications in a single operation and simultaneously accumulating their
results, achieving impressive computational efficiency. Simulation results indicate that
this module can complete CIM throughput in just 10 ns, with an outstanding energy
efficiency of 625.83 TOPS/W. We also implement this module in the convolutional
processes of the AI model Resnet18. Through our innovative methods, we effectively
minimized the non-ideal effects on the AI model, thereby improving its performance.
Ultimately, this model achieved accuracy of 84.99% on the CIFAR-10 dataset
近年,人工智慧(AI)在語音識別、影像分析及自駕車技術等多方面的應用中,逐
漸顯露其關鍵地位。然而,當我們嘗試用基於馮諾依曼架構的標準處理器來執行 AI 應
用時,我們會發現在節能和減少延遲上存在不小的挑戰,這主要是由於大量的資料在記
憶體和計算模組間不斷移動。為了解決此馮諾依曼結構的限制,記憶體內計算(CIM)
技術因應而生。
針對基於非揮發性記憶體(簡稱 NVM)的記憶體內運算(CIM),電阻式隨機存取
記憶體(RRAM) 被廣泛視為主流選擇。但在追求 RRAM CIM 的更高精確度與能效時,
確實遭遇許多技術障礙。於本論文中,我們探索了一系列的硬軟體協同優化策略,以突
破這些限制,並進一步提升模組性能。採用 40nm 技術,我們成功製成了一個 256Kb 的
RRAM CIM 模組,擁有 4 位元的輸入、4 位元的權重以及 4 位元的輸出能力。此模組能
在一次運算中處理 16 組、每組 128 個 4 位元的乘法計算,並且並行累加其結果,實現
高度的計算效率。模擬結果展示,此模組在完成 CIM 運算時,只需 10 ns,且其能效達
到了驚人的 625.83 TOPS/W。我們亦將此模組應用於 AI 模型 Resnet18 的卷積過程中,
並透過我們的創新方法,成功減緩非理想效應對 AI 模型的干擾,進一步提高其效能,
最終在 CIFAR-10 資料集上取得了 84.99%的高度準確性。
漸顯露其關鍵地位。然而,當我們嘗試用基於馮諾依曼架構的標準處理器來執行 AI 應
用時,我們會發現在節能和減少延遲上存在不小的挑戰,這主要是由於大量的資料在記
憶體和計算模組間不斷移動。為了解決此馮諾依曼結構的限制,記憶體內計算(CIM)
技術因應而生。
針對基於非揮發性記憶體(簡稱 NVM)的記憶體內運算(CIM),電阻式隨機存取
記憶體(RRAM) 被廣泛視為主流選擇。但在追求 RRAM CIM 的更高精確度與能效時,
確實遭遇許多技術障礙。於本論文中,我們探索了一系列的硬軟體協同優化策略,以突
破這些限制,並進一步提升模組性能。採用 40nm 技術,我們成功製成了一個 256Kb 的
RRAM CIM 模組,擁有 4 位元的輸入、4 位元的權重以及 4 位元的輸出能力。此模組能
在一次運算中處理 16 組、每組 128 個 4 位元的乘法計算,並且並行累加其結果,實現
高度的計算效率。模擬結果展示,此模組在完成 CIM 運算時,只需 10 ns,且其能效達
到了驚人的 625.83 TOPS/W。我們亦將此模組應用於 AI 模型 Resnet18 的卷積過程中,
並透過我們的創新方法,成功減緩非理想效應對 AI 模型的干擾,進一步提高其效能,
最終在 CIFAR-10 資料集上取得了 84.99%的高度準確性。