使用超網路與強化學習進行模型剪枝結合部分權重訓練與半監督多任務學習

Hypernetwork-based model pruning with partial weight training and semi-supervised multi-task learning using reinforcement learning

檔案

日期

2024

類型

語言

英文

摘要

隨著深度學習模型精度的要求日益增加,隨之帶來的是模型的運算量及參數
數量的大幅增加。當我們嘗試將參數量龐大的模型應用於智慧手機等邊緣設備時,
往往會面臨硬體資源不夠的問題。為了突破這個挑戰,模型壓縮等技術被重視的
程度也跟著上升。如果能夠在大量微縮模型運算量及參數數量並且又能夠保持或
甚至是提升準確率,機器學習等技術將能夠獲得更廣大的應用空間。為此,我們
在模型壓縮的研究中提出了一種基於半監督式多任務學習與部分權重凍結訓練
的超神經網路,並應用於全自動化全連接層及卷積層的剪枝演算法。此方法透過
超神經網路來生成對應輸入架構的模型權重,供主模型進行準確率評估。接著會
透過強化學習以及近端策略優化代理來找出同時最大限度減少冗餘參數並保持
高預測準確度的一組剪枝模型架構。實驗中,我們採用了 5 層的 MLP 架構,並
在 CIFAR-10/100 及 SVHN 數據集上進行驗證。在 CIFAR-100 數據集上,我們的
方法相比基準模型,減少了 4.93%的浮點數運算量且準確率微幅上升了2.32%。
With the growing demand for more accurate predictions in deep learning, the
models' parameter counts and computational complexity have surged significantly.
Challenges related to limited hardware resources arise when applying large models to
edge devices like smartphones. To tackle this challenge, methods for compressing
models have gained increasing importance. Reducing parameters and FLOPs
significantly, without compromising or improving accuracy, could expand the potential
applications of machine learning technologies. Therefore, we propose a fully automated
pruning algorithm for fully connected and convolutional layers based on a
hypernetwork with semi-supervised multi-task learning and partial weight freeze
training. This method, which uses the hypernetwork to generate model weights
corresponding to the input architecture, is the key to our proposed solution. The primary
model then uses these weights for accuracy evaluation. Subsequently, reinforcement
learning and Proximal Policy Optimization are employed to identify a pruned model
architecture that maximally reduces redundant parameters while maintaining high
prediction accuracy. Our experiments employed the 5-layer MLP architecture with the
CIFAR-10/100 and SVHN data. Using the CIFAR-10 dataset, our method SSMTL
reduced FLOPs by 4.93% compared to the baseline while rising accuracy by 2.32%

所屬典藏

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

引用此條目

Chen, P.-H. (2024). Hypernetwork-based model pruning with partial weight training and semi-supervised multi-task learning using reinforcement learning. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/84243

BibTeX RIS

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

分享

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