Reusing Convolutional Neural Network Models through Modularization and Composition

被引:4
作者
Qi, Binhang [1 ]
Sun, Hailong [2 ]
Zhang, Hongyu [3 ]
Gao, Xiang [4 ]
机构
[1] Beihang Univ, Sch Comp Sci & Engn, SKLSDE, Xueyuan Rd,Haidian Dist 37, Beijing 100191, Peoples R China
[2] Beihang Univ, Sch Software, SKLSDE, Xueyuan Rd,Haidian Dist 37, Beijing 100191, Peoples R China
[3] Chongqing Univ, Sch Big Data Software Engn, 55 Univ Town South Rd, Chongqing 401331, Peoples R China
[4] Beihang Univ, Sch Software, Xueyuan Rd,Haidian Dist 37, Beijing 100191, Peoples R China
基金
中国国家自然科学基金;
关键词
Model reuse; convolutional neural network; CNN modularization; module composition;
D O I
10.1145/3632744
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
With the widespread success of deep learning technologies, many trained deep neural network (DNN) models are now publicly available. However, directly reusing the public DNN models for new tasks often fails due to mismatching functionality or performance. Inspired by the notion of modularization and composition in software reuse, we investigate the possibility of improving the reusability of DNN models in a more fine-grained manner. Specifically, we propose two modularization approaches named CNNSplitter and GradSplitter, which can decompose a trained convolutional neural network (CNN) model for N-class classification into N small reusable modules. Each module recognizes one of the N classes and contains a part of the convolution kernels of the trained CNN model. Then, the resulting modules can be reused to patch existing CNN models or build new CNN models through composition. The main difference between CNNSplitter and GradSplitter lies in their search methods: the former relies on a genetic algorithm to explore search space, while the latter utilizes a gradient-based search method. Our experiments with three representative CNNs on three widely used public datasets demonstrate the effectiveness of the proposed approaches. Compared with CNNSplitter, GradSplitter incurs less accuracy loss, produces much smaller modules (19.88% fewer kernels), and achieves better results on patching weak models. In particular, experiments on GradSplitter show that (1) by patching weak models, the average improvement in terms of precision, recall, and F1-score is 17.13%, 4.95%, and 11.47%, respectively, and (2) for a new task, compared with the models trained from scratch, reusing modules achieves similar accuracy (the average loss of accuracy is only 2.46%) without a costly training process. Our approaches provide a viable solution to the rapid development and improvement of CNN models.
引用
收藏
页数:39
相关论文
共 50 条
[31]   FocusedDropout for Convolutional Neural Network [J].
Liu, Minghui ;
Xie, Tianshu ;
Cheng, Xuan ;
Deng, Jiali ;
Yang, Meiyi ;
Wang, Xiaomin ;
Liu, Ming .
APPLIED SCIENCES-BASEL, 2022, 12 (15)
[32]   A Comparison of Quantized Convolutional and LSTM Recurrent Neural Network Models Using MNIST [J].
Kaziha, Omar ;
Bonny, Talal .
2019 INTERNATIONAL CONFERENCE ON ELECTRICAL AND COMPUTING TECHNOLOGIES AND APPLICATIONS (ICECTA), 2019,
[33]   Detection of plant leaf diseases using deep convolutional neural network models [J].
Singla, Puja ;
Kalavakonda, Vijaya ;
Senthil, Ramalingam .
MULTIMEDIA TOOLS AND APPLICATIONS, 2024, 83 (24) :64533-64549
[34]   Predicting Models for Local Sedimentary Basin Effect Using a Convolutional Neural Network [J].
Yang, Xiaomei ;
Hu, Miao ;
Chen, Xin ;
Teng, Shuai ;
Chen, Gongfa ;
Bassir, David .
APPLIED SCIENCES-BASEL, 2023, 13 (16)
[35]   Structural Damage Identification Using Ensemble Deep Convolutional Neural Network Models [J].
Barkhordari, Mohammad Sadegh ;
Armaghani, Danial Jahed ;
Asteris, Panagiotis G. .
CMES-COMPUTER MODELING IN ENGINEERING & SCIENCES, 2023, 134 (02) :835-855
[36]   Brain Stroke Detection Using Convolutional Neural Network and Deep Learning Models [J].
Gaidhani, Bhagyashree Rajendra ;
Rajamenakshi, R. ;
Sonavane, Samadhan .
2019 2ND INTERNATIONAL CONFERENCE ON INTELLIGENT COMMUNICATION AND COMPUTATIONAL TECHNIQUES (ICCT), 2019, :242-249
[37]   Classification of Plant Leaves Using New Compact Convolutional Neural Network Models [J].
Wagle, Shivali Amit ;
Harikrishnan, R. ;
Ali, Sawal Hamid Md ;
Faseehuddin, Mohammad .
PLANTS-BASEL, 2022, 11 (01)
[38]   Convolutional neural network models of V1 responses to complex patterns [J].
Zhang, Yimeng ;
Lee, Tai Sing ;
Li, Ming ;
Liu, Fang ;
Tang, Shiming .
JOURNAL OF COMPUTATIONAL NEUROSCIENCE, 2019, 46 (01) :33-54
[39]   Convolutional neural network models of V1 responses to complex patterns [J].
Yimeng Zhang ;
Tai Sing Lee ;
Ming Li ;
Fang Liu ;
Shiming Tang .
Journal of Computational Neuroscience, 2019, 46 :33-54
[40]   Relationship between Recognition Accuracy and Numerical Precision in Convolutional Neural Network Models [J].
Nakahara, Yasuhiro ;
Kiyama, Masato ;
Amagasaki, Motoki ;
Iida, Masahiro .
IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2020, E103D (12) :2528-2529