Abstract
In this paper, we study a novel task that enables partial knowledge transfer from pre-trained models, which we term as Partial Network Cloning (PNC). Unlike prior methods that update all or at least part of the parameters in the target network throughout the knowledge transfer process, PNC conducts partial parametric "cloning" from a source network and then injects the cloned module to the target, without modifying its parameters. Thanks to the transferred module, the target network is expected to gain additional functionality, such as inference on new classes; whenever needed, the cloned module can be readily removed from the target, with its original parameters and competence kept intact. Specifically, we introduce an innovative learning scheme that allows us to identify simultaneously the component to be cloned from the source and the position to be inserted within the target network, so as to ensure the optimal performance. Experimental results on several datasets demonstrate that our method yields a significant improvement of 5% in accuracy and 50% in locality when compared with parameter-tuning based methods.
Introduction
The proliferation of high-performing pre-trained models has led to a "model zoo" where researchers can access specialized networks for various tasks. However, effectively combining the strengths of these models remains a significant challenge. Traditional approaches to knowledge transfer, such as fine-tuning or continual learning, typically involve updating the weights of the target network. This leads to two primary drawbacks: catastrophic forgetting, where the model loses its original capabilities while learning new ones, and irreversibility, where the original state of the model is lost unless a full backup is maintained.
Partial Network Cloning (PNC) addresses these issues by treating neural network parameters as modular components. Instead of overwriting weights, PNC "copies" specific functional modules from a source model and "pastes" them into a target model. This plug-and-play approach ensures that the target model's original parameters remain frozen and untouched, preserving its initial competence while adding new functionality.
Methodology
The PNC framework is built upon two intertwined processes: Localization and Insertion. This dual-optimization strategy ensures that the most relevant knowledge is extracted and placed where it can be most effectively utilized.
1. Localization via Mask-Based Pruning
The first step is to identify which specific filters in the source network are responsible for the desired functionality. PNC employs a mask-based pruning scheme to isolate these "transferable modules." To ensure high precision, the authors utilize a local surrogate model—inspired by the LIME interpretability method—to identify the components that contribute most significantly to the target task's performance. This selective extraction is more effective than taking entire layers, as it isolates only the necessary features.
2. Positional Insertion and Adaptation
Once the module is cloned, the system must determine the optimal insertion point within the target network. PNC uses a positional search to identify the layer where the injected module yields the best performance.
To bridge the gap between different architectures (e.g., cloning from a ResNet to a MobileNet), PNC introduces lightweight adapters. These are typically 1x1 convolutional layers that align the feature dimensions of the source module with the target network. Crucially, throughout this entire process, the weights of both the source and target models remain frozen; only the binary masks and the tiny adapters are learned.
Experimental Evaluation
The authors evaluated PNC across several standard computer vision benchmarks, including MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet. These datasets provided a range of complexity from basic proof-of-concept to high-resolution image recognition with numerous classes.
Key Results
- Accuracy: PNC consistently outperformed traditional continual learning methods, showing an accuracy improvement of 5% to 10% across various benchmarks.
- Locality: A standout metric for PNC is "locality," which measures how well the model preserves its original task performance. PNC achieved a 50% improvement in locality compared to parameter-tuning methods, as the base weights are never modified.
- Data Efficiency: The framework proved robust even in data-constrained environments, maintaining effectiveness with only 30% of the training data typically required for standard transfer learning.
- Heterogeneous Transfer: The method successfully demonstrated cross-architecture cloning, such as transferring knowledge from a ResNet-18 to a ShuffleNetV2, proving its versatility beyond identical model structures.
Discussion and Sustainability
PNC introduces the concept of a "sustainable model zoo." By allowing models to be reused and reassembled without corruption, it moves AI development toward a more modular and efficient future. Because the "cloned" knowledge consists only of binary masks and tiny adapters, the overhead for transmitting new capabilities is minimal, making it an ideal candidate for edge computing and low-bandwidth updates.
While the method currently requires a layer-by-layer search for optimal insertion—which can be computationally intensive for very deep networks—the use of "block-wise" jumps helps mitigate this complexity. Future work may focus on optimizing multi-source merging, where multiple cloned modules are integrated into a single target network simultaneously.
Conclusion
Partial Network Cloning offers a paradigm shift in how we approach model reuse. By moving away from destructive weight updates and toward a modular "copy-and-paste" framework, PNC provides a path toward more flexible, reversible, and efficient AI systems that can grow in capability without losing their foundational knowledge.
Summary updated