多重混合式剪枝優化之深度學習模型設計方法與案例

Design Methodology for A Hybrid Pruning Method for Deep Neural Network Models

檔案

全文未公開。

日期

2021

類型

語言

中文

摘要

近年來,神經網路剪枝技術已蓬勃發展,但現階段大多數的剪枝方法都適用於圖像分類任務,且目前現有剪枝方法皆為單一型態之剪枝方式,如:通道剪枝、權重剪枝、神經網路結構搜尋剪枝等。本論文目的是將物件偵測技術與剪枝神經網演算法相結合,實現降低物件偵測運算複雜度並達到加速之效果,並同時結合權重剪枝和通道剪枝技術,以針對物件偵測模型進行精簡化,生成混合式剪枝方法之極簡化深度學習神經網絡,利用較少的通道數和較低的計算量來實現低運算成本的深度學習神經網絡。此外,本論文依據提出的演算法開發完整的模型剪枝訓練方法與工具,從預訓練的神經網路、到稀疏性訓練、到最後的模型重新訓練,以生成混合式剪枝方法的深度學習神經網絡。而本論文所提設計方法已實現為一自動化模型優化工具(ezModel),結合網頁 UI 介面,讓用戶僅需在整個過程開始時輸入對應參數和剪枝比例,便可依照本論文所提出的演算法生成混合式剪枝後之輕量化深度學習模型。以 VGG16-SSD 為例,使用本論文所提方法,檢測精度可以保持在誤差的 2%以內,與未剪枝之原模型相比運算複雜度(FLOPs)可以降低高達 76%,並在模型大小精簡化及準確度上達到良好的平衡。
Design Methodology for A Hybrid Multiple
Pruning Method for Deep Neural Network Models
In recent years, neural network pruning technology has developed vigorously, but most of the pruning methods at this stage are suitable for image classification tasks, and the existing pruning methods are all single-type pruning methods, such as channel pruning, weight pruning, neural network architecture search pruning, etc. The purpose of this paper is to combine object detection technology with pruning neural network
algorithms to achieve low complexity computation and acceleration effect of object detection. At the same time, the proposed method combines weight pruning and channel pruning technology to maximize slimming compression of the target object detection model, generates a hybrid pruning method that is an extremely simplified detection neural network, and adopts fewer channels and lower calculations to achieve low-
complexity object detection neural networks. In addition, we also develop a complete model pruning and retraining process based on the proposed algorithm, starting from the pre-trained neural network to the sparsity training, to the final model retraining, to generate the optimized object detection neural network based on the proposed hybrid pruning method. The proposed model pruning and retraining process has been implemented as an automation tool (called ezModel) equipped with the web UI interface so that users only need to enter the corresponding parameters and pruning ratio at the beginning of the entire process, and then one of the hybrid pruning lightweight models can be generated according to the proposed algorithm. Taking VGG16-SSD as an example, using the proposed method the detection accuracy can be kept within 2% of degradation, and the computational complexity in FLOPs can be reduced up to 76% compared with the non-pruned model, which achieves a good balance between model size/complexity reduction and accuracy degradation.

所屬典藏

電子研究所
顯示完整詮釋資料 統計資料

引用此條目

張恩誌 (2021). 多重混合式剪枝優化之深度學習模型設計方法與案例. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/77902

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/77902