硬體-資料流協同優化:數位記憶體內運算與數位處理單元之比較研究
Hardware-Dataflow Co-optimization: A Comparative Study between Digital Computing-in-Memory and Digital Processing Element
摘要
隨著人工智慧(AI)應用向邊緣裝置遷移,如何在嚴格的功耗、效能與面積(PPA)限制下實現高效運算是當前的一大挑戰。傳統基於馮·諾依曼(Von Neumann)架構的加速器受限於記憶體瓶頸,而數位記憶體內運算(Digital Compute-in-Memory, DCIM)雖能有效減少權重資料搬移,但其在不同應用場景下與傳統數位處理單元(Digital PE)的優劣對比仍缺乏系統性的量化分析。此外,傳統的 Roofline 模型往往忽略了晶片內記憶體(SRAM)階層與資料流策略對效能的影響,難以精確評估現代加速器架構。
為解決上述問題,本論文提出一套「考量資料流之階層式Roofline分析框架(Dataflow-Aware Hierarchical Roofline Framework)」。此框架明確解耦了晶片外DRAM與晶片內Activation SRAM及Weight SRAM的頻寬限制,並引入「有效運算強度(Effective Operational Intensity)」指標,以精確量化硬體資源限制下的實際資料傳輸行為。利用此框架,本研究深入探討 DCIM 架構與兩大資料流策略(Input Stationary 與 Weight Stationary)之間的適配性,並從應用角度進行定性分析,指出 DCIM 的主要優勢在於利用高內部權重存取頻寬緩解 weight-bound 問題,尤其適用於晶片外頻寬不再主導、且權重資料搬移成為主要瓶頸的工作負載。
最後,本研究選用四種代表性工作負載,涵蓋大規模/小規模及矩陣-矩陣/向量-矩陣乘法,進行量化驗證。結果顯示,在大規模生成式推論(Large-scale VMM)中,系統主要受限於晶片外介面頻寬,因此 DCIM 與 Digital PE 的效能差異有限;相較之下,在晶片內權重存取成為主要瓶頸的情境下,DCIM 可藉由直接於運算陣列中保留權重,有效降低重複資料搬移。特別是在 16-bit Iterative Solver 案例中,DCIM 消除了反覆 Weight SRAM 存取所造成的效能瓶頸,實現相較於 Digital PE 約 16.07 倍的效能提升。然而,多位元運算所需的 partial-product 加總電路增加了面積與運算能耗,使其能效與 PPA 效率分別降至 Digital PE 的 0.92 倍與 0.79 倍。本論文所建立之分析方法不僅可辨識 DCIM 的優勢情境,也能揭露其在高精度運算下的周邊成本與限制,為邊緣 AI 加速器的架構選擇、資料流設計與精度配置提供系統化分析依據。
為解決上述問題,本論文提出一套「考量資料流之階層式Roofline分析框架(Dataflow-Aware Hierarchical Roofline Framework)」。此框架明確解耦了晶片外DRAM與晶片內Activation SRAM及Weight SRAM的頻寬限制,並引入「有效運算強度(Effective Operational Intensity)」指標,以精確量化硬體資源限制下的實際資料傳輸行為。利用此框架,本研究深入探討 DCIM 架構與兩大資料流策略(Input Stationary 與 Weight Stationary)之間的適配性,並從應用角度進行定性分析,指出 DCIM 的主要優勢在於利用高內部權重存取頻寬緩解 weight-bound 問題,尤其適用於晶片外頻寬不再主導、且權重資料搬移成為主要瓶頸的工作負載。
最後,本研究選用四種代表性工作負載,涵蓋大規模/小規模及矩陣-矩陣/向量-矩陣乘法,進行量化驗證。結果顯示,在大規模生成式推論(Large-scale VMM)中,系統主要受限於晶片外介面頻寬,因此 DCIM 與 Digital PE 的效能差異有限;相較之下,在晶片內權重存取成為主要瓶頸的情境下,DCIM 可藉由直接於運算陣列中保留權重,有效降低重複資料搬移。特別是在 16-bit Iterative Solver 案例中,DCIM 消除了反覆 Weight SRAM 存取所造成的效能瓶頸,實現相較於 Digital PE 約 16.07 倍的效能提升。然而,多位元運算所需的 partial-product 加總電路增加了面積與運算能耗,使其能效與 PPA 效率分別降至 Digital PE 的 0.92 倍與 0.79 倍。本論文所建立之分析方法不僅可辨識 DCIM 的優勢情境,也能揭露其在高精度運算下的周邊成本與限制,為邊緣 AI 加速器的架構選擇、資料流設計與精度配置提供系統化分析依據。
As Artificial Intelligence (AI) applications migrate to edge devices, achieving high-performance computing under strict Power, Performance, and Area (PPA) constraints presents a significant challenge. While traditional accelerators based on the Von Neumann architecture suffer from the memory bottleneck, Digital Compute-in-Memory (DCIM) has emerged as a promising solution to reduce data movement overhead. However, a systematic quantitative comparison between DCIM and traditional Digital Processing Elements (PEs) across different workload regimes remains insufficient. Furthermore, standard Roofline models often overlook the impact of on-chip memory hierarchy and dataflow strategies, limiting their effectiveness in evaluating modern accelerator architectures.
To address these limitations, this thesis proposes a Dataflow-Aware Hierarchical Roofline Framework. The framework explicitly decouples off-chip DRAM bandwidth from on-chip Activation and Weight SRAM bandwidths and introduces the metric of Effective Operational Intensity to quantify actual data movement under hardware resource constraints. Using this framework, we investigate the interaction between DCIM and two representative dataflow strategies, Input Stationary and Weight Stationary. The qualitative analysis shows that the primary advantage of DCIM lies in alleviating weight-bound bottlenecks through high internal weight-access bandwidth, particularly when off-chip bandwidth is no longer dominant and on-chip weight movement becomes the major constraint.
Finally, the framework is quantitatively validated using four representative workloads spanning large-/small-scale and matrix-matrix/vector-matrix multiplication regimes. In large-scale VMM, both architectures are primarily limited by off-chip interface bandwidth, resulting in similar performance. In contrast, when on-chip weight movement becomes dominant, DCIM can effectively reduce repeated weight transfers. In the 16-bit Iterative Solver, DCIM achieves a 16.07× performance improvement over Digital PE by eliminating recurrent Weight SRAM accesses; however, the partial-product accumulation circuitry required for multi-bit computation reduces the energy- and PPA-efficiency ratios to 0.92× and 0.79×, respectively. These results demonstrate that the proposed framework can systematically identify both the advantageous regimes and the precision-dependent limitations of DCIM.
To address these limitations, this thesis proposes a Dataflow-Aware Hierarchical Roofline Framework. The framework explicitly decouples off-chip DRAM bandwidth from on-chip Activation and Weight SRAM bandwidths and introduces the metric of Effective Operational Intensity to quantify actual data movement under hardware resource constraints. Using this framework, we investigate the interaction between DCIM and two representative dataflow strategies, Input Stationary and Weight Stationary. The qualitative analysis shows that the primary advantage of DCIM lies in alleviating weight-bound bottlenecks through high internal weight-access bandwidth, particularly when off-chip bandwidth is no longer dominant and on-chip weight movement becomes the major constraint.
Finally, the framework is quantitatively validated using four representative workloads spanning large-/small-scale and matrix-matrix/vector-matrix multiplication regimes. In large-scale VMM, both architectures are primarily limited by off-chip interface bandwidth, resulting in similar performance. In contrast, when on-chip weight movement becomes dominant, DCIM can effectively reduce repeated weight transfers. In the 16-bit Iterative Solver, DCIM achieves a 16.07× performance improvement over Digital PE by eliminating recurrent Weight SRAM accesses; however, the partial-product accumulation circuitry required for multi-bit computation reduces the energy- and PPA-efficiency ratios to 0.92× and 0.79×, respectively. These results demonstrate that the proposed framework can systematically identify both the advantageous regimes and the precision-dependent limitations of DCIM.
所屬典藏
電子研究所引用此條目
Su, Y.-H. (2026). Hardware-Dataflow Co-optimization: A Comparative Study between Digital Computing-in-Memory and Digital Processing Element. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/89907
引用文字依 APA 第 7 版格式自動產生,使用前請再核對。
分享
永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/89907