Saved in:
Bibliographic Details
Main Authors: Lu, Yao, Zhang, Peixin, Wang, Jingyi, Ma, Lei, Yang, Xiaoniu, Xuan, Qi
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2411.10507
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909392511696896
author Lu, Yao
Zhang, Peixin
Wang, Jingyi
Ma, Lei
Yang, Xiaoniu
Xuan, Qi
author_facet Lu, Yao
Zhang, Peixin
Wang, Jingyi
Ma, Lei
Yang, Xiaoniu
Xuan, Qi
contents Deep learning has revolutionized computing in many real-world applications, arguably due to its remarkable performance and extreme convenience as an end-to-end solution. However, deep learning models can be costly to train and to use, especially for those large-scale models, making it necessary to optimize the original overly complicated models into smaller ones in scenarios with limited resources such as mobile applications or simply for resource saving. The key question in such model optimization is, how can we effectively identify and measure the redundancy in a deep learning model structure. While several common metrics exist in the popular model optimization techniques to measure the performance of models after optimization, they are not able to quantitatively inform the degree of remaining redundancy. To address the problem, we present a novel testing approach, i.e., RedTest, which proposes a novel testing metric called Model Structural Redundancy Score (MSRS) to quantitatively measure the degree of redundancy in a deep learning model structure. We first show that MSRS is effective in both revealing and assessing the redundancy issues in many state-of-the-art models, which urgently calls for model optimization. Then, we utilize MSRS to assist deep learning model developers in two practical application scenarios: 1) in Neural Architecture Search, we design a novel redundancy-aware algorithm to guide the search for the optimal model structure and demonstrate its effectiveness by comparing it to existing standard NAS practice; 2) in the pruning of large-scale pre-trained models, we prune the redundant layers of pre-trained models with the guidance of layer similarity to derive less redundant ones of much smaller size. Extensive experimental results demonstrate that removing such redundancy has a negligible effect on the model utility.
format Preprint
id arxiv_https___arxiv_org_abs_2411_10507
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle RedTest: Towards Measuring Redundancy in Deep Neural Networks Effectively
Lu, Yao
Zhang, Peixin
Wang, Jingyi
Ma, Lei
Yang, Xiaoniu
Xuan, Qi
Machine Learning
Computer Vision and Pattern Recognition
Deep learning has revolutionized computing in many real-world applications, arguably due to its remarkable performance and extreme convenience as an end-to-end solution. However, deep learning models can be costly to train and to use, especially for those large-scale models, making it necessary to optimize the original overly complicated models into smaller ones in scenarios with limited resources such as mobile applications or simply for resource saving. The key question in such model optimization is, how can we effectively identify and measure the redundancy in a deep learning model structure. While several common metrics exist in the popular model optimization techniques to measure the performance of models after optimization, they are not able to quantitatively inform the degree of remaining redundancy. To address the problem, we present a novel testing approach, i.e., RedTest, which proposes a novel testing metric called Model Structural Redundancy Score (MSRS) to quantitatively measure the degree of redundancy in a deep learning model structure. We first show that MSRS is effective in both revealing and assessing the redundancy issues in many state-of-the-art models, which urgently calls for model optimization. Then, we utilize MSRS to assist deep learning model developers in two practical application scenarios: 1) in Neural Architecture Search, we design a novel redundancy-aware algorithm to guide the search for the optimal model structure and demonstrate its effectiveness by comparing it to existing standard NAS practice; 2) in the pruning of large-scale pre-trained models, we prune the redundant layers of pre-trained models with the guidance of layer similarity to derive less redundant ones of much smaller size. Extensive experimental results demonstrate that removing such redundancy has a negligible effect on the model utility.
title RedTest: Towards Measuring Redundancy in Deep Neural Networks Effectively
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2411.10507