Abstract
Transfer learning often results in over-parameterized models when large pre-trained networks are adapted to specialized, narrower domains. We introduce Fine-Pruning, a novel framework that jointly fine-tunes and compresses a network in a single iterative loop. By leveraging Bayesian Optimization (BO) to automatically search for optimal layer-wise pruning thresholds, Fine-Pruning achieves significant model size reduction without sacrificing accuracy. On specialized tasks like remote sensing and texture classification, our method achieves up to 48.8x compression, outperforming traditional post-processing pruning methods.
Introduction
The current paradigm in computer vision involves fine-tuning massive models pre-trained on broad datasets like ImageNet for specific downstream tasks. However, these specialized domains (e.g., satellite imagery) often require far fewer parameters than the original model provides. This results in bloated models that waste memory and computational power.
While pruning—deleting unimportant connections—is a common solution, it is typically treated as a separate post-processing step. This approach suffers from several drawbacks: fine-tuning and pruning are decoupled, pruning parameters are often static, and manually searching for layer-wise thresholds in deep networks is computationally prohibitive.
The Fine-Pruning Framework
Fine-Pruning addresses these issues by integrating pruning directly into the fine-tuning process. The framework operates in an iterative three-step cycle:
- Fine-tuning: The network is trained on the target domain to adapt its weights.
- Pruning Module Adaptation: A Bayesian Optimization (BO) controller searches for the best layer-wise pruning parameters. BO treats pruning as a "black box" optimization problem, using a Gaussian Process to model the trade-off between model sparsity and accuracy.
- Network Pruning: Weights are removed based on the thresholds identified by the BO controller.
The key advantage of this joint approach is that the model can "recover" from aggressive pruning. If critical connections are removed, subsequent fine-tuning phases allow the remaining weights to compensate, maintaining overall performance.
Experimental Evaluation
The researchers evaluated Fine-Pruning on two distinct specialized datasets: the UCMerced Land Use Dataset (aerial imagery) and the Describable Textures Dataset (DTD).
Key Results
Fine-Pruning demonstrated superior performance compared to both standard fine-tuning and independent pruning baselines.
- High Compression Ratios: On the UCMerced dataset, Fine-Pruning achieved a 48.8x compression rate, reducing the parameter count from 57 million to 1.17 million while maintaining accuracy within 1% of the dense baseline. This significantly outperformed the independent baseline's 31.9x compression.
- Iterative Efficiency: The compression rate increases steadily over iterations as the BO controller refines the pruning thresholds, demonstrating the power of the joint optimization loop.
- Automated Layer Prioritization: The BO controller automatically identified that fully connected layers (
fc6andfc7) contained the most redundancy for these specialized tasks, pruning them by over 99%.
Discussion and Future Work
Fine-Pruning effectively discovers the "compatibility" between a pre-trained model and a new domain, discarding unnecessary knowledge. However, the current implementation focuses on unstructured sparsity, where individual weights are removed. While this reduces the total number of parameters, it does not always translate to immediate speedups on standard GPU hardware.
Future research could extend this joint optimization logic to structured sparsity (e.g., removing entire filters or channels) to achieve better real-world performance on generic hardware or leverage specialized sparse-inference engines.
Summary updated