低功耗物件偵測應用之混合定點數二值化深度學習神經網路設計方法與案例
Design Methodology for Hybrid Fixed Point/Binary Deep Neural Network for Low Power Object Detection
摘要
本論文將目標檢測技術與二元神經網絡相結合,實現了目標檢測的高壓縮率。在目標檢測網絡上,我們修改目標檢測網絡結構,以便能夠與二元神經網絡相結合。同時,結合動態量化和二值技術對我們的目標檢測模型進行極大壓縮,生成混合式定點數二進化的檢測神經網絡,利用較低的頻寬和較低的計算量來實現低功耗檢測神經網絡。此外,我們依據提出的方法開發完整的模型訓練過程,以生成混合式定點數二進化的檢測神經網絡。同時,我們為整個訓練網路過程開發自動化工具,用戶只需在整個過程開始時輸入參數和配置模型,此自動化工具可以使用我們提出的方法生成混合式定點數二進化的模型。以MobileNet SSD為例,使用本文所提方法,檢測精度可以保持在誤差的1%以內,內存記憶體空間可以減少91%,這是嵌入式系統所必需的。與浮點模型相比,由於使用動態定點數和二值化方法,數據存取頻寬可降低高達75.8%。總體而言,本文所提設計方法不僅可以實現相當高的模型壓縮率與降低數據頻寬,同時保持模型的準確度,在模型大小壓縮和特徵資料量壓縮上有良好的平衡。
This thesis combines object detection technique and binary neural network to achieve high compression rate on object detection. On an object detection network, we modify object detection network architecture to be integrated with the binary algorithm. Also, we combine dynamic quantization and binary technique to extremely compress the proposed object detection model to generate compact hybrid binary/fixed point detection neural network, which utilizes lower bandwidth and lower computational complexity to achieve the design goal of low power object detection. Additionally, we develop a complete training process for our proposed methodology to generate a compact hybrid binary/fixed point detection neural network. Furthermore, we develop the automation tool for this whole training process, users only have to input parameters and configure of the model in the beginning of the whole process, and the automation tool can exploit proposed methods to generate the final binary/fixed point model automatically.
Take MobileNet SSD as an example, using our methodology, the detection accuracy can be maintained within 1% of the quality degradation. The number of memory access times can be reduced by 91%, which is required for embedded system realization. Data access bandwidth can be reduced up to 75.8% compared to that of the floating-point model because of the use of fixed-point and “binarization” methods. Consequently, we achieve quite high model compression rate as well as reducing high data bandwidth, while maintaining acceptable accuracy based on the proposed model. The proposed hybrid binary/fixed point model achieves a good balance on accuracy, model size compression ratio and feature map reduction rate for deep learning object detection applications
Take MobileNet SSD as an example, using our methodology, the detection accuracy can be maintained within 1% of the quality degradation. The number of memory access times can be reduced by 91%, which is required for embedded system realization. Data access bandwidth can be reduced up to 75.8% compared to that of the floating-point model because of the use of fixed-point and “binarization” methods. Consequently, we achieve quite high model compression rate as well as reducing high data bandwidth, while maintaining acceptable accuracy based on the proposed model. The proposed hybrid binary/fixed point model achieves a good balance on accuracy, model size compression ratio and feature map reduction rate for deep learning object detection applications