可自我調整架構之晶載自主學習處理器設計
Self-Configurable On-Chip Autonomous Learning Processor Design
摘要
近年來,深度學習 (deep learning) 技術的廣泛發展帶動了各領域中特製化硬體的需求。目前大部份的研究著重在加速類神經網路的推論過程 (inference),而訓練過程 (training) 則需仰賴擁有大量資源的雲端伺服器。然而,這樣的機制對於需要隱私或通訊受限的應用則不盡合適。因此具有晶載學習 (on-chip learning) 能力的研究在邊緣運算 (edge computing) 場景中被廣泛需要及討論,其目標架構包含卷積神經網路(convolutional neural network),遞歸神經網路 (recurrent neural network) 以及深度人造網路 (deep artificial neural network)。儘管如此,先前的研究仍需針對不同應用手動調整模型架構以達到期望水準,而選擇類神經網路架構的過程常花費時間且易於出錯,也因此限制了相關硬體的實際應用。
在本論文中,我們提出了一個具有自我架構能力 (self-configurable) 的自主學習處理器 (autonomous learning processor)。為了解決當前深度學習的問題,此處理器結合了神經元數量決定演算法 (neural decision algorithm) 及逐層訓練方法(layer-wise training) 來動態且有彈性地針對不同應用建立類神經網路架構。此處理器支援晶載訓練及推論以進行自主學習,本論文中亦提出多種技術用於進行動態神經元分配,提升運算平行度以及降低記憶體成本。
在本論文中,我們使用 Xilinx Virtex-7 VX458T 現場可程式化閘陣列 (FPGA) 進行驗證,當處理器運作在 200 MHz 的工作頻率下時,其使用了 101.82K 個查找表 (LUT),47.65K 個正反器 (flip-flop) 以及 158.5 個區塊記憶體 (Block RAM)。此處理器亦使用TSMC 0.18um 製程進行實現,在 32.16mm2 的面積內包含了 640K 個邏輯閘及 67KB 內存記憶體。此晶片實現包含了 50 個神經運算單元 (neuron processing element) 的自主學習處理器,在 1.1-1.8V 的供電電壓下,本晶片可操作在最高 40 MHz 的工作頻率下以進行自主學習。
根據驗證系統的量測,本處理器在 1.1v 和 20 MHz 的工作頻率下僅需要5.42uJ/輸入神經元之能量以自主建構單層類神經網路架構,使其十分適合邊緣運算場景。
相較於使用高端多核處理器的軟體實現,本處理器可在更高的能源效率下達到 10 倍以上之加速效果。此處理器不同於傳統固定的類神經網路架構以及加速方法,其可以針對不同應用動態調整架構,向人工智慧之邊緣應用更向前推進一步。
在本論文中,我們提出了一個具有自我架構能力 (self-configurable) 的自主學習處理器 (autonomous learning processor)。為了解決當前深度學習的問題,此處理器結合了神經元數量決定演算法 (neural decision algorithm) 及逐層訓練方法(layer-wise training) 來動態且有彈性地針對不同應用建立類神經網路架構。此處理器支援晶載訓練及推論以進行自主學習,本論文中亦提出多種技術用於進行動態神經元分配,提升運算平行度以及降低記憶體成本。
在本論文中,我們使用 Xilinx Virtex-7 VX458T 現場可程式化閘陣列 (FPGA) 進行驗證,當處理器運作在 200 MHz 的工作頻率下時,其使用了 101.82K 個查找表 (LUT),47.65K 個正反器 (flip-flop) 以及 158.5 個區塊記憶體 (Block RAM)。此處理器亦使用TSMC 0.18um 製程進行實現,在 32.16mm2 的面積內包含了 640K 個邏輯閘及 67KB 內存記憶體。此晶片實現包含了 50 個神經運算單元 (neuron processing element) 的自主學習處理器,在 1.1-1.8V 的供電電壓下,本晶片可操作在最高 40 MHz 的工作頻率下以進行自主學習。
根據驗證系統的量測,本處理器在 1.1v 和 20 MHz 的工作頻率下僅需要5.42uJ/輸入神經元之能量以自主建構單層類神經網路架構,使其十分適合邊緣運算場景。
相較於使用高端多核處理器的軟體實現,本處理器可在更高的能源效率下達到 10 倍以上之加速效果。此處理器不同於傳統固定的類神經網路架構以及加速方法,其可以針對不同應用動態調整架構,向人工智慧之邊緣應用更向前推進一步。
Recent developments in deep learning algorithms heighten the need for specialized hardware in different applications. Most studies only demonstrate the ability to perform inference of network, while the training relies on the servers in cloud. However, the mechanism is not feasible for cases that privacy is required or communication is limited. Thus, in the arena of edge applications, there has been a recent surge in interest and research to show the on-chip training for different network architectures, ranging from convolutional neural network (CNN), recurrent neural network (RNN) and deep artificial neural network (DNN). Nevertheless, these works still need well-adjusted structures to learn in domain-specific applications. The process of neural architecture decision could be time-consuming and error-prone, which limited the usage of hardware in practical and general scenario.
In this thesis, a self-configurable autonomous learning processor (SC-ALP) is designed and implemented. To solve current problems in deep learning applications, the neuron-decision algorithm and layer-wise learning methods are combined to provide dynamical and flexible network structures for various of applications. The architecture is designed to perform on-chip learning and inference for autonomous learning process, and several features are proposed to facilitate dynamic neuron distribution, enhance the parallelism and reduce the memory overhead.
To implement the proposed SC-ALP, the design is first prototyped on Xilinx Virtex-7 VX485T FPGA. The proposed SC-ALP is operated at 200MHz and occupies 101.82K LUTs, 47.65K flip-flps, and 158.5 block RAM. The chip is then implemented in TSMC 0.18um technology, the proposed SC-ALP chip costs 640K gates and 67K SRAM with 36.12mm2 area. The chip implementation consists of 50 neuron processing elements (NPEs), and the maximal operating frequency of chip achieves 40 MHz at 1.1-1.8V supply voltage.
According to the measurement results, the SC-ALP chip operates at 1.1 and 20 MHz to achieve 5.42uJ/input neuron for the configuration of single layer in network.
Compared to the software solution implemented on high-end multi-core CPU, the proposed SC-ALP has at least 10 times acceleration effect with higher energy efficiency. The proposed system is different than traditional fixed network structures, and it can dynamically adjust the architecture to fit in different applications, which pushes a new milestone of AI-related edge applications.
In this thesis, a self-configurable autonomous learning processor (SC-ALP) is designed and implemented. To solve current problems in deep learning applications, the neuron-decision algorithm and layer-wise learning methods are combined to provide dynamical and flexible network structures for various of applications. The architecture is designed to perform on-chip learning and inference for autonomous learning process, and several features are proposed to facilitate dynamic neuron distribution, enhance the parallelism and reduce the memory overhead.
To implement the proposed SC-ALP, the design is first prototyped on Xilinx Virtex-7 VX485T FPGA. The proposed SC-ALP is operated at 200MHz and occupies 101.82K LUTs, 47.65K flip-flps, and 158.5 block RAM. The chip is then implemented in TSMC 0.18um technology, the proposed SC-ALP chip costs 640K gates and 67K SRAM with 36.12mm2 area. The chip implementation consists of 50 neuron processing elements (NPEs), and the maximal operating frequency of chip achieves 40 MHz at 1.1-1.8V supply voltage.
According to the measurement results, the SC-ALP chip operates at 1.1 and 20 MHz to achieve 5.42uJ/input neuron for the configuration of single layer in network.
Compared to the software solution implemented on high-end multi-core CPU, the proposed SC-ALP has at least 10 times acceleration effect with higher energy efficiency. The proposed system is different than traditional fixed network structures, and it can dynamically adjust the architecture to fit in different applications, which pushes a new milestone of AI-related edge applications.