應用於邊緣裝置遷移學習之28奈米列管線化加速器設計
顯示簡易詮釋資料 統計資料| 欄位 | 內容 | 語言 |
|---|---|---|
dc.contributor.advisor |
黃柏蒼 | |
dc.contributor.advisor |
Huang, Po-Tsang | |
dc.contributor.author |
余政融 | |
dc.contributor.author |
Yu, Jheng-Rong | |
dc.contributor.campus |
交大 | |
dc.contributor.college |
國際半導體產業學院 | |
dc.contributor.committee |
張錫嘉 | |
dc.contributor.committee |
管延城 | |
dc.contributor.committee |
黃柏蒼 | |
dc.contributor.committee |
Chang, Hsie-Chia | |
dc.contributor.committee |
Kuan, Yen-Cheng | |
dc.contributor.committee |
Huang, Po-Tsang | |
dc.contributor.department |
國際半導體產業學院 | |
dc.contributor.dpcode |
ITCST | |
dc.contributor.idpcode |
3591 | |
dc.contributor.studentid |
310591017 | |
dc.date.NCLavailable |
不公開 | |
dc.date.USTavailable |
2028/10/31 | |
dc.date.issued |
2023 | |
dc.date.issuedROC |
112 | |
dc.date.paperavailable |
立即公開 | |
dc.date.schoolyear |
112 | |
dc.description.abstract |
Current research aims to develop CNN training on edge devices, addressing challenges tied to limited memory storage, computational resources and high energy consumption. In this research, we propose three energy efficient circuits for training CNN models through transfer learning on resource-constrained edge devices, which are FXP4/8 simulated quantization, freezing weight updates in convolution and batch normalization layers and multi-bank buffer management to reduce redundant data storage in SRAM respectively. We demonstrate mathematically that floating-point convolution operations can be achieved using fixed-point calculations. Consequently, we design a row-based pipeline training accelerator that includes fixed-point MACs in the PE array and a dequantizer to replace the original floating-point MACs. Batch normalization units continue to use floating-point MACs for computation. To reduce on-chip SRAM size, we employ three key control logics: diagonal prefetch to prevent bank conflicts, data scheduling for PE columns, and address translation of IA/IG buffer. These control circuits collectively result in a 3.5× reduction in on-chip buffer size. Implemented in TSMC 28nm CMOS process, this accelerator boasts an energy efficiency of 2.18 TFLOPS/W and area efficiency of 74.22 GFLOPS/mm2. It outperforms state-of-the-art works with 3.3× energy efficiency and 5.9× area efficiency. | |
dc.description.abstract |
當前流行的研究趨勢旨在開發邊緣裝置上的卷積神經網路(Convolutional Neural Network)訓練,並解決有限的儲存空間、運算資源以及能耗問題。在此研究中,我們提出了三種在資源受限的邊緣裝置上進行遷移學習訓練卷積神經網路的高能效電路,分別是4/8位定點數的模擬量化、涉及凍結卷積層(Convolution)和批量標準化層(Batch Normalization)的權重更新和利用Multi-bank記憶體管理來減少SRAM中的重複資料儲存。我們從公式上證明了浮點卷積運算可以使用定點計算來實現。因此,我們為模擬量化遷移學習訓練模型設計了一個列管線化訓練加速器,其中包括使用運算單元陣列(Processing Elements Array)中的定點數乘加器和反量化器(Dequantizer)來取代原始的浮點數乘加器。而運算複雜的批量標準化則使用浮點數乘加器來實現。 為了減少晶片上記憶體的大小,我們採用了三個主要的控制邏輯:防止bank conflict的對角線資料預取(Diagonal Prefetch)設計、運算單元陣列行資料的數據排程(Scheduling)以及記憶體位址的轉譯(Address Translation)。以上這些控制電路總共使晶片上記憶體大小減少了3.5倍。 此模擬量化遷移學習訓練加速器採用台積電28nm製程實現,能源效率(Energy Efficiency)為2.18 TFLOPS/W,面積效率(Area Efficiency)為74.22 GFLOPS/mm2。能源效率相較於最先進的訓練加速器提高了3.4倍,面積效率提高了5.9倍。 | |
dc.description.abstract |
Current research aims to develop CNN training on edge devices, addressing challenges tied to limited memory storage, computational resources and high energy consumption. In this research, we propose three energy efficient circuits for training CNN models through transfer learning on resource-constrained edge devices, which are FXP4/8 simulated quantization, freezing weight updates in convolution and batch normalization layers and multi-bank buffer management to reduce redundant data storage in SRAM respectively. We demonstrate mathematically that floating-point convolution operations can be achieved using fixed-point calculations. Consequently, we design a row-based pipeline training accelerator that includes fixed-point MACs in the PE array and a dequantizer to replace the original floating-point MACs. Batch normalization units continue to use floating-point MACs for computation. To reduce on-chip SRAM size, we employ three key control logics: diagonal prefetch to prevent bank conflicts, data scheduling for PE columns, and address translation of IA/IG buffer. These control circuits collectively result in a 3.5× reduction in on-chip buffer size. Implemented in TSMC 28nm CMOS process, this accelerator boasts an energy efficiency of 2.18 TFLOPS/W and area efficiency of 74.22 GFLOPS/mm2. It outperforms state-of-the-art works with 3.3× energy efficiency and 5.9× area efficiency. | |
dc.description.abstract |
當前流行的研究趨勢旨在開發邊緣裝置上的卷積神經網路(Convolutional Neural Network)訓練,並解決有限的儲存空間、運算資源以及能耗問題。在此研究中,我們提出了三種在資源受限的邊緣裝置上進行遷移學習訓練卷積神經網路的高能效電路,分別是4/8位定點數的模擬量化、涉及凍結卷積層(Convolution)和批量標準化層(Batch Normalization)的權重更新和利用Multi-bank記憶體管理來減少SRAM中的重複資料儲存。我們從公式上證明了浮點卷積運算可以使用定點計算來實現。因此,我們為模擬量化遷移學習訓練模型設計了一個列管線化訓練加速器,其中包括使用運算單元陣列(Processing Elements Array)中的定點數乘加器和反量化器(Dequantizer)來取代原始的浮點數乘加器。而運算複雜的批量標準化則使用浮點數乘加器來實現。 為了減少晶片上記憶體的大小,我們採用了三個主要的控制邏輯:防止bank conflict的對角線資料預取(Diagonal Prefetch)設計、運算單元陣列行資料的數據排程(Scheduling)以及記憶體位址的轉譯(Address Translation)。以上這些控制電路總共使晶片上記憶體大小減少了3.5倍。 此模擬量化遷移學習訓練加速器採用台積電28nm製程實現,能源效率(Energy Efficiency)為2.18 TFLOPS/W,面積效率(Area Efficiency)為74.22 GFLOPS/mm2。能源效率相較於最先進的訓練加速器提高了3.4倍,面積效率提高了5.9倍。 | |
dc.description.abstract |
當前流行的研究趨勢旨在開發邊緣裝置上的卷積神經網路(Convolutional Neural Network)訓練,並解決有限的儲存空間、運算資源以及能耗問題。在此研究中,我們提出了三種在資源受限的邊緣裝置上進行遷移學習訓練卷積神經網路的高能效電路,分別是4/8位定點數的模擬量化、涉及凍結卷積層(Convolution)和批量標準化層(Batch Normalization)的權重更新和利用Multi-bank記憶體管理來減少SRAM中的重複資料儲存。我們從公式上證明了浮點卷積運算可以使用定點計算來實現。因此,我們為模擬量化遷移學習訓練模型設計了一個列管線化訓練加速器,其中包括使用運算單元陣列(Processing Elements Array)中的定點數乘加器和反量化器(Dequantizer)來取代原始的浮點數乘加器。而運算複雜的批量標準化則使用浮點數乘加器來實現。 為了減少晶片上記憶體的大小,我們採用了三個主要的控制邏輯:防止bank conflict的對角線資料預取(Diagonal Prefetch)設計、運算單元陣列行資料的數據排程(Scheduling)以及記憶體位址的轉譯(Address Translation)。以上這些控制電路總共使晶片上記憶體大小減少了3.5倍。 此模擬量化遷移學習訓練加速器採用台積電28nm製程實現,能源效率(Energy Efficiency)為2.18 TFLOPS/W,面積效率(Area Efficiency)為74.22 GFLOPS/mm2。能源效率相較於最先進的訓練加速器提高了3.4倍,面積效率提高了5.9倍。 | |
dc.description.abstract |
Current research aims to develop CNN training on edge devices, addressing challenges tied to limited memory storage, computational resources and high energy consumption. In this research, we propose three energy efficient circuits for training CNN models through transfer learning on resource-constrained edge devices, which are FXP4/8 simulated quantization, freezing weight updates in convolution and batch normalization layers and multi-bank buffer management to reduce redundant data storage in SRAM respectively. We demonstrate mathematically that floating-point convolution operations can be achieved using fixed-point calculations. Consequently, we design a row-based pipeline training accelerator that includes fixed-point MACs in the PE array and a dequantizer to replace the original floating-point MACs. Batch normalization units continue to use floating-point MACs for computation. To reduce on-chip SRAM size, we employ three key control logics: diagonal prefetch to prevent bank conflicts, data scheduling for PE columns, and address translation of IA/IG buffer. These control circuits collectively result in a 3.5× reduction in on-chip buffer size. Implemented in TSMC 28nm CMOS process, this accelerator boasts an energy efficiency of 2.18 TFLOPS/W and area efficiency of 74.22 GFLOPS/mm2. It outperforms state-of-the-art works with 3.3× energy efficiency and 5.9× area efficiency. | |
dc.description.abstractopendate |
2023/10/30 | |
dc.description.degree |
碩士 | |
dc.description.tableofcontents |
摘要 i Abstract ii Chapter1 Introduction 1 1-1 Motivation 1 1-2 Contribution 1 1-3 Thesis Organization 2 Chapter2 Previous and Related Works 3 2-1 CNN Training 4 2-1-1 Feed Forward Propagation (FF) 6 2-1-2 Backward Propagation (BW) 8 2-2 Transfer Learning 11 2-3 Low-bit Quantization and Low Precision Training 13 2-3-1 Basic Quantization Concepts for CNN Training 13 2-3-2 Low Precision Training 17 2-4 Summary 19 Chapter3 Row-based Pipelined Training Accelerator 20 3-1 Transfer Learning with Weight Frozen 21 3-2 Simulated Quantization 24 3-3 Overall Architecture 26 3-4 PE Array 27 3-5 Dequantizer 32 3-6 Batch Normalization Unit 35 3-7 Allocation of Fixed-point and Floating-point Units 40 Chapter4 Multi-bank Buffer Management for IA/IG Buffer 43 4-1 Motivation 43 4-2 Diagonal Prefetch for Bank Conflicts 44 4-3 The Arrangement of IA/IG Data for Multi-bank Buffer 46 4-4 Data Scheduling and Address Translation 53 4-5 1×1 Convolution Case 58 4-6 Results 59 Chapter5 Analysis and Simulation Results 61 5-1 Training Results of On-device Model 61 5-1-1 Dataset and Models of On-device Training 61 5-1-2 Training Procedure 62 5-1-3 Performance of the Training Model 62 5-2 Implementation Results of Training Accelerator 63 5-2-1 Implementation Results 63 5-2-2 External Data Bandwidth Analysis 64 5-2-3 Utilization 69 5-2-4 The Area and Power Analysis 70 5-3 Comparison with the State-of-the-art Training Accelerators 74 Chapter6 Conclusion and Future Work 75 6-1 Conclusion 75 6-2 Future Work 76 Reference 77 | |
dc.identifier.citation |
[1] H. Ge, W. Shan, Y. Lu and J. Yang, "A 28nm, 4.69TOPS/W Training, 2.34µJ/lmage Inference, on-chip Training Accelerator with Inference-compatible Back Propagation," 2022 IEEE International Conference on Integrated Circuits, Technologies and Applications (ICTA), Xi'an, China, 2022, pp. 98-99. [2] Ioffe, Sergey, and Christian Szegedy. "Batch normalization: Accelerating deep network training by reducing internal covariate shift." International conference on machine learning. pmlr, 2015. [3] F. Zhuang et al., "A Comprehensive Survey on Transfer Learning," in Proceedings of the IEEE, vol. 109, no. 1, pp. 43-76, Jan. 2021. [4] Iman, Mohammadreza, Hamid Reza Arabnia, and Khaled Rasheed. "A review of deep transfer learning and recent advancements." Technologies 11.2 (2023): 40. [5] Wu, Hao, et al. "Integer quantization for deep learning inference: Principles and empirical evaluation." arXiv preprint arXiv:2004.09602 (2020). [6] Zhang, Dongqing, et al. "Lq-nets: Learned quantization for highly accurate and compact deep neural networks." Proceedings of the European conference on computer vision (ECCV). 2018. [7] Jacob, Benoit, et al. "Quantization and training of neural networks for efficient integer-arithmetic-only inference." Proceedings of the IEEE conference on computer vision and pattern recognition. 2018. [8] Hubara, Itay, et al. "Quantized neural networks: Training neural networks with low precision weights and activations." The Journal of Machine Learning Research 18.1 (2017): 6869-6898. [9] Gholami, Amir, et al. "A survey of quantization methods for efficient neural network inference." Low-Power Computer Vision. Chapman and Hall/CRC, 2022. 291-326. [10] Zhuang, Bohan, et al. "Towards effective low-bitwidth convolutional neural networks." Proceedings of the IEEE conference on computer vision and pattern recognition. 2018. [11] Jung, Sangil, et al. "Learning to quantize deep networks by optimizing quantization intervals with task loss." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2019. [12] E. Park, J. Ahn and S. Yoo, "Weighted-Entropy-Based Quantization for Deep Neural Networks," 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 2017, pp. 7197-7205. [13] Park, Eunhyeok, Sungjoo Yoo, and Peter Vajda. "Value-aware quantization for training and inference of neural networks." Proceedings of the European Conference on Computer Vision (ECCV). 2018. [14] P. Wang, Q. Hu, Y. Zhang, C. Zhang, Y. Liu and J. Cheng, "Two-Step Quantization for Low-bit Neural Networks," 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 2018, pp. 4376-4384. [15] Wu, Jiaxiang, et al. "Quantized convolutional neural networks for mobile devices." Proceedings of the IEEE conference on computer vision and pattern recognition. 2016. [16] S. Macha et al., "Fixed-Point Quantization Aware Training for on-Device Keyword-Spotting," ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Rhodes Island, Greece, 2023, pp. 1-5 [17] F. Tu et al., "Evolver: A Deep Learning Processor With On-Device Quantization–Voltage–Frequency Tuning," in IEEE Journal of Solid-State Circuits, vol. 56, no. 2, pp. 658-673, Feb. 2021. [18] S. Yin and J. -S. Seo, "A 2.6 TOPS/W 16-Bit Fixed-Point Convolutional Neural Network Learning Processor in 65-nm CMOS," in IEEE Solid-State Circuits Letters, vol. 3, pp. 13-16, 2020 [19] Kummer, Lorenz, et al. "Adaptive precision training (adapt): A dynamic fixed point quantized training approach for dnns." arXiv preprint arXiv:2107.13490 (2021). [20] Naumov, Maxim, et al. "Deep learning recommendation model for personalization and recommendation systems." arXiv preprint arXiv:1906.00091 (2019). [21] J. Oh et al., “A 3.0 TFLOPS 0.62V scalable processor core for high compute utilization AI training and inference,” in Proc. IEEE Symp. VLSI Circuits, Honolulu, USA, 2020, pp. 1–2. [22] M. Horowitz, "1.1 Computing's energy problem (and what we can do about it)," 2014 IEEE International Solid-State Circuits Conference Digest of Technical Papers (ISSCC), San Francisco, CA, USA, 2014, pp. 10-14 [23] B. Fleischer et al., "A Scalable Multi-TeraOPS Deep Learning Processor Core for AI Training and Inference", IEEE Symp. VLSI Circuits, pp. 35-36, 2018. [24] J. Lee, J. Lee, D. Han, J. Lee, G. Park and H. -J. Yoo, "7.7 LNPU: A 25.3TFLOPS/W Sparse Deep-Neural-Network Learning Processor with Fine-Grained Mixed Precision of FP8-FP16," in 2019 IEEE International Solid- State Circuits Conference - (ISSCC), 2019, pp. 142-144. [25] C. -H. Lu, Y. -C. Wu and C. -H. Yang, "A 2.25 TOPS/W Fully-Integrated Deep CNN Learning Processor with On-Chip Training," in 2019 IEEE Asian Solid-State Circuits Conference (A-SSCC), Macau, Macao, 2019, pp. 65-68. [26] S. Kang et al., "7.4 GANPU: A 135TFLOPS/W Multi-DNN Training Processor for GANs with Speculative Dual-Sparsity Exploitation," 2020 IEEE International Solid- State Circuits Conference - (ISSCC), San Francisco, CA, USA, 2020, pp. 140-142. [27] C. Kim et al., "A 2.1TFLOPS/W Mobile Deep RL Accelerator with Transposable PE Array and Experience Compression," in 2019 IEEE International Solid- State Circuits Conference - (ISSCC), San Francisco, CA, USA, 2019, pp. 136-138. [28] The bfloat16 numerical format | Cloud TPU: https://cloud.google.com/tpu/docs/bfloat16 [29] A. Agrawal et al., "DLFloat: A 16-b Floating Point Format Designed for Deep Learning Training and Inference," 2019 IEEE 26th Symposium on Computer Arithmetic (ARITH), Kyoto, Japan, 2019, pp. 92-95. [30] Sun, Xiao et al., “Hybrid 8-bit floating point (HFP8) training and inference for deep neural networks,” in Proc. of Advances in Neural Information Processing Systems, pp. 4901–4910, 2019. [31] U. Köster et al., “Flexpoint: An adaptive numerical format for efficient training of deep neural networks,” in Proc. 31st Int. Conf. Neural Inf. Process. Syst. (NIPS). Red Hook, NY, USA: Curran Associates, 2017, pp. 1740–1750. [32] J. Park, S. Lee and D. Jeon, "9.3 A 40nm 4.81TFLOPS/W 8b Floating-Point Training Processor for Non-Sparse Neural Networks Using Shared Exponent Bias and 24-Way Fused Multiply-Add Tree," 2021 IEEE International Solid- State Circuits Conference (ISSCC), San Francisco, CA, USA, 2021, pp. 1-3. [33] S. Gupta, A. Agrawal, K. Gopalakrishnan, and P. Narayanan, “Deep learning with limited numerical precision,” in Proc. 32nd Int. Conf. Int. Conf. Mach. Learn., vol. 37, 2015, pp. 1737–1746. [34] D. Shin, J. Lee, K. Lee, and H.-J. Yoo, “DNPU: An 8.1TOPS/W reconfigurable CNN-RNN processor for general-purpose deep neural networks,” in IEEE Int. Solid-State Circuits Conf. (ISSCC) Dig. Tech. Papers, Feb. 2017, pp. 240–241. [35] D. Han et al., “HNPU: An adaptive DNN training processor utilizing stochastic dynamic fixed-point and active bit-precision searching,” IEEE J. Solid-State Circuits, vol. 56, no. 9, pp. 2858–2869, Sep. 2021. [36] D. Han, J. Lee, and H.-J. Yoo, “DF-LNPU: A pipelined direct feedback alignment-based deep neural network learning processor for fast online learning,” IEEE J. Solid-State Circuits, vol. 56, no. 6, pp. 1630–1640, May 2021. [37] S. Choi, J. Sim, M. Kang, Y. Choi, H. Kim, and L.-S. Kim, “An energy-efficient deep convolutional neural network training accelerator for in situ personalization on smart devices,” IEEE J. Solid-State Circuits, vol. 55, no. 10, pp. 2691–2702, Oct. 2020. [38] D. Han et al., “A 0.95 mJ/frame DNN training processor for robust object detection with real-world environmental adaptation,” in Proc. IEEE 4th Int. Conf. Artif. Intell. Circuits Syst. (AICAS), 2022, pp. 37–40. [39] J. Deng, W. Dong, R. Socher, L. -J. Li, Kai Li and Li Fei-Fei, "ImageNet: A large-scale hierarchical image database," 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA, 2009, pp. 248-255. [40] Donahue, Jeff, et al. "Decaf: A deep convolutional activation feature for generic visual recognition." International conference on machine learning. PMLR, 2014. [41] Cai, Han, et al. "Tinytl: Reduce activations, not trainable parameters for efficient on-device learning." arXiv preprint arXiv:2007.11622 (2020). [42] D. Han, J. Lee, J. Lee and H. -J. Yoo, "A Low-Power Deep Neural Network Online Learning Processor for Real-Time Object Tracking Application," in IEEE Transactions on Circuits and Systems I: Regular Papers, vol. 66, no. 5, pp. 1794-1804, May 2019. [43] Y. -T. Liu et al., "A 1.625 TOPS/W SOC for Deep CNN Training and Inference in 28nm CMOS," ESSDERC 2021 - IEEE 51st European Solid-State Device Research Conference (ESSDERC), Grenoble, France, 2021. [44] S. Yin et al., "A High Energy Efficient Reconfigurable Hybrid Neural Network Processor for Deep Learning Applications," in IEEE Journal of Solid-State Circuits, vol. 53, no. 4, pp. 968-982, April 2018. | |
dc.identifier.uri |
https://hdl.handle.net/20.500.14371/809 | |
dc.language.iso |
中文 | |
dc.relation.page |
80 | |
dc.subject.keyword |
邊緣裝置運算 | |
dc.subject.keyword |
終端裝置運算 | |
dc.subject.keyword |
卷積神經網路訓練 | |
dc.subject.keyword |
訓練加速器 | |
dc.subject.keyword |
模擬量化 | |
dc.subject.keyword |
Multi-bank 記憶體管理 | |
dc.subject.keyword |
On-Device Training | |
dc.subject.keyword |
Training Accelerator | |
dc.subject.keyword |
CNN Training | |
dc.subject.keyword |
Simulated Quantization | |
dc.subject.keyword |
Multi-bank Memory Management | |
dc.title |
應用於邊緣裝置遷移學習之28奈米列管線化加速器設計 | zh-TW |
dc.title |
A 28nm Row-based Pipelined Accelerator with Multi-bank Buffer Management for On-Device Transfer Learning | en |
dc.type |
Thesis | zh-TW |
檔案
全文未公開。
所屬典藏: 國際半導體產業學院