Abstract
Inductive transfer learning aims to learn from a small amount of training data for the target task by utilizing a pre-trained model from the source task. Most strategies that involve large-scale deep learning models adopt initialization with the pre-trained model and fine-tuning for the target task. However, when using over-parameterized models, we can often prune the model without sacrificing the accuracy of the source task. This motivates us to adopt model pruning for transfer learning with deep learning models. In this paper, we propose PAC-Net, a simple yet effective approach for transfer learning based on pruning. PAC-Net consists of three steps: Prune, Allocate, and Calibrate (PAC). The main idea behind these steps is to identify essential weights for the source task, fine-tune on the source task by updating the essential weights, and then calibrate on the target task by updating the remaining redundant weights. Under the various and extensive set of inductive transfer learning experiments, we show that our method achieves state-of-the-art performance by a large margin.
Introduction
In inductive transfer learning, the goal is to leverage knowledge from a data-rich "source" task to improve performance on a data-scarce "target" task. While standard fine-tuning is the most common approach, it frequently suffers from catastrophic forgetting. When a high-capacity model is updated with a limited number of target samples, it often overwrites the fundamental logic learned from the source task to minimize error on the small target set. This leads to overfitting and, in scientific contexts, can result in models that violate basic physical principles.
PAC-Net addresses this by reframing model pruning. Instead of using pruning solely for model compression, PAC-Net uses it to partition a neural network into two distinct sets of weights: those that represent "core knowledge" and those available for task-specific adaptation.
The PAC-Net Framework
The PAC-Net approach follows a three-step pipeline: Prune, Allocate, and Calibrate.
- Prune: Starting with a model pre-trained on the source task, the framework identifies "essential" weights. This is achieved through simple magnitude-based pruning, where the weights with the largest absolute values are preserved.
- Allocate: The identified sparse sub-network is re-trained on the source task. This ensures that the essential weights are optimized to capture the foundational logic of the source domain while the "redundant" weights are kept at zero.
- Calibrate: During the transfer to the target task, the essential weights are frozen (a "hard" constraint). Only the previously redundant weights are updated using the target data. To prevent these new weights from deviating excessively, the authors employ $L^2$-SP regularization.
By partitioning the network, PAC-Net forces the model to maintain its foundational logic intact while using its remaining capacity to learn the specific nuances or discrepancies of the target task.
Experimental Evaluation
The authors evaluated PAC-Net across a diverse range of domains to demonstrate its robustness:
- Synthetic Regression (Modified Friedman #1): Used to test performance as the mathematical "distance" between source and target tasks increases.
- Computer Vision (CelebA): Tested high-dimensional attribute transfer (e.g., transferring knowledge from "Arched Eyebrows" to "Eyeglasses").
- Scientific Machine Learning (ODEs & PDEs): Evaluated using the Duffing oscillator and the Diffusion equation to determine if the model could maintain physical constraints (like energy conservation) during transfer.
- Industrial Application: A semiconductor manufacturing dataset involving doping profiles, where the model must bridge the gap between simulation (source) and reality (target).
Key Insights and Results
Pruning as Knowledge Partitioning
PAC-Net demonstrates that pruning is an effective way to identify the "Lottery Ticket"—the specific sub-network that holds the core logic of a task. Unlike previous methods that used "soft" constraints (penalizing weight changes), PAC-Net argues that for the most critical weights, a "hard" constraint (freezing) is necessary to prevent overfitting on small target datasets.
Superior Accuracy and Data Efficiency
On the Friedman regression task, PAC-Net consistently outperformed standard fine-tuning and specialized regularizers like DELTA or $L^2$-SP-Fisher. In the semiconductor task, PAC-Net achieved high accuracy with as few as 40 target samples, significantly outperforming models trained exclusively on target data.
Preserving Physical Laws
In Neural ODE experiments, PAC-Net was the only method that accurately predicted trajectories without violating energy principles. While other fine-tuning methods produced physically impossible results after being exposed to noisy target data, PAC-Net’s frozen essential weights ensured the model remained physically consistent.
Conclusion and Future Work
PAC-Net provides a novel paradigm for transfer learning by using pruning to manage knowledge. It achieves state-of-the-art performance by protecting core source knowledge from being overwritten. Future research may explore more sophisticated pruning techniques (such as gradient-based or structural pruning) and automated methods for tuning the pruning ratio ($K$), which remains a key hyperparameter in the current framework.
Summary updated