Modularizing while Training: A New Paradigm for Modularizing DNN Models
Not on the map. Why?
Abstract (arXiv)
Deep neural network (DNN) models have become increasingly crucial components in intelligent software systems. However, training a DNN model is typically expensive in terms of both time and money. To address this issue, researchers have recently focused on reusing existing DNN models - borrowing the idea of code reuse in software engineering. However, reusing an entire model could cause extra overhead or inherits the weakness from the undesired functionalities. Hence, existing work proposes to decompose an already trained model into modules, i.e., modularizing-after-training, and enable module reuse. Since trained models are not built for modularization, modularizing-after-training incurs huge overhead and model accuracy loss. In this paper, we propose a novel approach that incorporates modularization into the model training process, i.e., modularizing-while-training (MwT). We train a model to be structurally modular through two loss functions that optimize intra-module cohesion and inter-module coupling. We have implemented the proposed approach for modularizing Convolutional Neural Network (CNN) models in this work. The evaluation results on representative models demonstrate that MwT outperforms the state-of-the-art approach. Specifically, the accuracy loss caused by MwT is only 1.13 percentage points, which is 1.76 percentage points less than that of the baseline. The kernel retention rate of the modules generated by MwT is only 14.58%, with a reduction of 74.31% over the state-of-the-art approach. Furthermore, the total time cost required for training and modularizing is only 108 minutes, half of the baseline.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 25 of its 51 references that are in the map. First posted on arXiv 15 Jun 2023.
Builds on
25 of 51 references.
References · 25
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2014Going Deeper with Convolutionscited by 4,231
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2016Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learningcited by 1,509
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
- 2018Graph Convolutional Networks for Text Classificationcited by 345
- 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 307
13 more
- 2021Oriented R-CNN for Object Detectioncited by 230
- 2021On the Integration of Self-Attention and Convolutioncited by 74
- 2018Model-Reuse Attacks on Deep Learning Systemscited by 47
- 2020On the Predictability of Pruning Across Scalescited by 33
- 2021ModelDiff: Testing-Based DNN Similarity Comparison for Model Reuse Detectioncited by 33
- 2021Towards Real-world X-ray Security Inspection: A High-Quality Benchmark and Lateral Inhibition Module for Prohibited Items Detectioncited by 30
- 2018A Grammar-Based Structural CNN Decoder for Code Generationcited by 29
- 2022Compressing Pre-trained Models of Code into 3 MBcited by 21
- 2020Dynamic Slicing for Deep Neural Networkscited by 16
- 2021Decomposing Convolutional Neural Networks into Reusable and Replaceable Modulescited by 14
- 2021Measuring Discrimination to Boost Comparative Testing for Multiple Deep Learning Modelscited by 6
- 2022Patching Weak Convolutional Neural Network Models through Modularization and Compositioncited by 5
- 2023Reusing Deep Neural Network Models through Model Re-engineeringcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.