Decomposing Convolutional Neural Networks into Reusable and Replaceable Modules
Not on the map. Why?
Abstract (arXiv)
Training from scratch is the most common way to build a Convolutional Neural Network (CNN) based model. What if we can build new CNN models by reusing parts from previously build CNN models? What if we can improve a CNN model by replacing (possibly faulty) parts with other parts? In both cases, instead of training, can we identify the part responsible for each output class (module) in the model(s) and reuse or replace only the desired output classes to build a model? Prior work has proposed decomposing dense-based networks into modules (one for each output class) to enable reusability and replaceability in various scenarios. However, this work is limited to the dense layers and based on the one-to-one relationship between the nodes in consecutive layers. Due to the shared architecture in the CNN model, prior work cannot be adapted directly. In this paper, we propose to decompose a CNN model used for image classification problems into modules for each output class. These modules can further be reused or replaced to build a new model. We have evaluated our approach with CIFAR-10, CIFAR-100, and ImageNet tiny datasets with three variations of ResNet models and found that enabling decomposition comes with a small cost (1.77% and 0.85% for top-1 and top-5 accuracy, respectively). Also, building a model by reusing or replacing modules can be done with a 2.3% and 0.5% average loss of accuracy. Furthermore, reusing and replacing these modules reduces CO2e emission by ~37 times compared to training the model from scratch.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 18 of its 42 references that are in the map. First posted on arXiv 11 Oct 2021.
Builds on
18 of 42 references.
References · 18
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2016Matching Networks for One Shot Learningcited by 2,246
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2017Learning to Compare: Relation Network for Few-Shot Learningcited by 1,139
- 2017Dynamic Routing Between Capsulescited by 689
- 2017ThiNet: A Filter Level Pruning Method for Deep Neural Network Compressioncited by 438
- 2018A Survey on Deep Transfer Learningcited by 417
- 2015Neural Module Networkscited by 375
- 2018Meta-Transfer Learning for Few-Shot Learningcited by 306
- 2017Learning to Reason: End-to-End Module Networks for Visual Question Answeringcited by 125
- 2019Dense Classification and Implanting for Few-Shot Learningcited by 56
- 2020Do the Machine Learning Models on a Crowd Sourced Platform Exhibit Bias? An Empirical Study on Model Fairnesscited by 52
6 more
- 2021Fair Preprocessing: Towards Understanding Compositional Fairness of Data Transformers in Machine Learning Pipelinecited by 49
- 2016One-Shot Generalization in Deep Generative Modelscited by 44
- 2021DeepLocalize: Fault Localization for Deep Neural Networkscited by 37
- 2019Few-Shot Learning with Localization in Realistic Settingscited by 34
- 2019Recursive Sketches for Modular Deep Learningcited by 11
- 2018HSD-CNN: Hierarchically self decomposing CNN architecture using class specific filter sensitivity analysiscited by 2
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 5; 2024: 2; 2025: 3.
14 papers.
Sort:
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Visioncited by 11
- 2021Manas: Mining Software Repositories to Assist AutoMLcited by 5
- 2022Patching Weak Convolutional Neural Network Models through Modularization and Compositioncited by 5
- 2023Reusing Deep Neural Network Models through Model Re-engineeringcited by 5
- 2022Pruning for Feature-Preserving Circuits in CNNscited by 4
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2022Decomposing a Recurrent Neural Network into Modules for Enabling Reusability and Replacementcited by 3
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Modelscited by 3
- 2023Modularity in Deep Learning: A Surveycited by 3
- 2024DNN Modularization via Activation-Driven Trainingcited by 2
- 2024Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deploymentcited by 1
- 2025Speculative Automated Refactoring of Imperative Deep Learning Programs to Graph Executioncited by 0
- 2025An Empirical Framework for Evaluating Semantic Preservation Using Hugging Face8 Dec 2025
- 2025NeMo: A Neuron-Level Modularizing-While-Training Approach for Decomposing DNN Models15 Aug 2025
- 2025Speculative Automated Refactoring of Imperative Deep Learning Programs to Graph Execution7 Apr 2025
- 2024DNN Modularization via Activation-Driven Training1 Nov 2024
- 2024Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deployment26 Jan 2024
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023Modularity in Deep Learning: A Survey2 Oct 2023
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Models15 Jun 2023
- 2023Reusing Deep Neural Network Models through Model Re-engineering1 Apr 2023
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Vision13 Mar 2023
- 2022Decomposing a Recurrent Neural Network into Modules for Enabling Reusability and Replacement9 Dec 2022
- 2022Patching Weak Convolutional Neural Network Models through Modularization and Composition11 Sep 2022
2 more
- 2022Pruning for Feature-Preserving Circuits in CNNs3 Jun 2022
- 2021Manas: Mining Software Repositories to Assist AutoML6 Dec 2021
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Visioncited by 11
- 2021Manas: Mining Software Repositories to Assist AutoMLcited by 5
- 2022Patching Weak Convolutional Neural Network Models through Modularization and Compositioncited by 5
- 2023Reusing Deep Neural Network Models through Model Re-engineeringcited by 5
- 2022Pruning for Feature-Preserving Circuits in CNNscited by 4
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Modelscited by 4
- 2022Decomposing a Recurrent Neural Network into Modules for Enabling Reusability and Replacementcited by 3
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Modelscited by 3
- 2023Modularity in Deep Learning: A Surveycited by 3
- 2024DNN Modularization via Activation-Driven Trainingcited by 2
- 2024Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deploymentcited by 1
- 2025Speculative Automated Refactoring of Imperative Deep Learning Programs to Graph Executioncited by 0
12 most cited of 14 All 14 (JSON)
- 2025An Empirical Framework for Evaluating Semantic Preservation Using Hugging Face8 Dec 2025
- 2025NeMo: A Neuron-Level Modularizing-While-Training Approach for Decomposing DNN Models15 Aug 2025
- 2025Speculative Automated Refactoring of Imperative Deep Learning Programs to Graph Execution7 Apr 2025
- 2024DNN Modularization via Activation-Driven Training1 Nov 2024
- 2024Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deployment26 Jan 2024
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023Modularity in Deep Learning: A Survey2 Oct 2023
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Models15 Jun 2023
- 2023Reusing Deep Neural Network Models through Model Re-engineering1 Apr 2023
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Vision13 Mar 2023
- 2022Decomposing a Recurrent Neural Network into Modules for Enabling Reusability and Replacement9 Dec 2022
- 2022Patching Weak Convolutional Neural Network Models through Modularization and Composition11 Sep 2022
12 newest of 14 All 14 (JSON)