利用整數線性規劃權重配置策略與三重激勵值記憶體架構之多層感知機加速器效能優化技術
Performance Optimization for MLP Accelerators via ILP-Based Weight Allocation and Triple Activation Memory
摘要
本論文提出針對多層感知機(MLP)利用整數線性規劃進行權重配置以提升效能之演算法以及支援該演算法且具有三重激勵值記憶體架構之高效能多層感知機硬體加速器設計。
受限於晶片上靜態記憶體的容量,多層感知機的權重無法全部置入其中,本演算法分析如何挑選較重要的權重存放於晶片上以最大幅度提升整體系統的效能。此問題首先會被轉化成整數線性規畫的形式,再利用既有之整數線性規畫工具得出最佳解。
本論文所提出的多層感知機硬體加速器乃以一現有多層感知機加速器架構為基礎,繼承其支援結構化剪枝及非對稱量化技術。除此之外,加速器尚新增三重激勵值緩衝記憶體設計及批次(batch)平行處理能力。此兩項技術能夠有效減少所需之晶片外動態記憶體之存取時間延遲以及增加權重被同批次內多筆激勵值重複使用之效率。
我們實作出一個具有256個處理單元的多層感知機加速器,輸出入資料採用8位元定點數格式。於台積電40奈米製程下,操作頻率可達1.25GHz,等價效能峰值為每秒15.36TOPS,面積效率則為2.21TOPS/mm2,而等價能源效率更高達12.2TOPS/W。
受限於晶片上靜態記憶體的容量,多層感知機的權重無法全部置入其中,本演算法分析如何挑選較重要的權重存放於晶片上以最大幅度提升整體系統的效能。此問題首先會被轉化成整數線性規畫的形式,再利用既有之整數線性規畫工具得出最佳解。
本論文所提出的多層感知機硬體加速器乃以一現有多層感知機加速器架構為基礎,繼承其支援結構化剪枝及非對稱量化技術。除此之外,加速器尚新增三重激勵值緩衝記憶體設計及批次(batch)平行處理能力。此兩項技術能夠有效減少所需之晶片外動態記憶體之存取時間延遲以及增加權重被同批次內多筆激勵值重複使用之效率。
我們實作出一個具有256個處理單元的多層感知機加速器,輸出入資料採用8位元定點數格式。於台積電40奈米製程下,操作頻率可達1.25GHz,等價效能峰值為每秒15.36TOPS,面積效率則為2.21TOPS/mm2,而等價能源效率更高達12.2TOPS/W。
In this thesis, we present an integer linear programming (ILP) based weight allocation algorithm that optimizes the system performance of algorithm for multi-layer perceptron (MLP) We also propose a high-performance MLP accelerator featuring the triple activation memory architecture.
It is generally not possible to store all weights of an MLP inside a chip due to limited on-chip SRAM capacity. The proposed algorithm can identify a portion of weights that should be allocated on-chip to maximize the system performance. The problem is first converted into the form of integer linear programming (ILP) and an existing ILP solver is then used to get optimal solutions.
The proposed MLP accelerator is based on an in-house MLP accelerator for edge computing, which supports structured pruning and asymmetric quantization. Besides, it further supports the triple activation SRAM architecture and the capability of batch-based parallel processing, which can reduce off-chip DRAM access latency as well as increase the on-chip weight reuse for better performance and lower power consumption.
We have implemented an accelerator instance that contains 256 processing units and I/O data are all in the 8-bit fixed-point format. Under TSMC 40nm technology, the maximum operating frequency is up to 1.25GHz, equivalent peak throughput is 15.36TOP/s, area efficiency is 2.21 TOPS/mm2, and energy efficiency is up to 12.2TOPS/W.
It is generally not possible to store all weights of an MLP inside a chip due to limited on-chip SRAM capacity. The proposed algorithm can identify a portion of weights that should be allocated on-chip to maximize the system performance. The problem is first converted into the form of integer linear programming (ILP) and an existing ILP solver is then used to get optimal solutions.
The proposed MLP accelerator is based on an in-house MLP accelerator for edge computing, which supports structured pruning and asymmetric quantization. Besides, it further supports the triple activation SRAM architecture and the capability of batch-based parallel processing, which can reduce off-chip DRAM access latency as well as increase the on-chip weight reuse for better performance and lower power consumption.
We have implemented an accelerator instance that contains 256 processing units and I/O data are all in the 8-bit fixed-point format. Under TSMC 40nm technology, the maximum operating frequency is up to 1.25GHz, equivalent peak throughput is 15.36TOP/s, area efficiency is 2.21 TOPS/mm2, and energy efficiency is up to 12.2TOPS/W.