Abstract
Pruning pre-trained vision models using data from a single "source" task surprisingly preserves—and can even enhance—performance on unseen "target" tasks. This research suggests that the loss landscapes of foundation models are highly aligned across different applications, allowing for efficient, task-agnostic compression before fine-tuning.
Introduction
Large-scale "foundation" models like CLIP or DINO offer immense power but at significant computational and storage costs. Pruning-at-Initialization (PaI) aims to compress these models before task-specific training. However, a critical question remains: does pruning a model for one task (e.g., Bird Classification) destroy its ability to learn another (e.g., Car Classification)? This paper investigates the transferability of pruned pre-trained models to unknown downstream tasks.
Methodology: A Second-Order Perspective
The authors evaluate weight importance using the Hessian matrix (the second derivative of the loss function). To manage the computational complexity of millions of parameters, three approximations are compared:
- Isotropic (Magnitude Pruning): Assumes weights are independent and the loss landscape is a perfect bowl, cutting the smallest weights.
- Diagonal Hessian: Acknowledges varying "steepness" in different directions while maintaining the independence assumption.
- Block-Diagonal (Kronecker-factored): Captures correlations between weights within the same layer for a more nuanced importance measure.
The study employs a "Source-Target" protocol, pruning on source data and evaluating feature quality on target tasks using frozen linear classifiers across benchmarks like ImageNet-10.
Key Insights and Landscape Alignment
The research reveals that extensive pre-training aligns the loss landscapes of diverse downstream tasks. This alignment leads to several key observations:
- Shared Redundancy: Parameters unimportant for a source task are generally redundant for target tasks, suggesting a universal set of weights can be removed.
- The Fine-tuning "Rising Tide": Fine-tuning a pruned model on the source task often improves target task performance. This is visualized as the model moving into a locally convex basin favorable for all related tasks.
- Architectural Sensitivity: ResNets are robust to simple magnitude pruning, whereas Vision Transformers (ViTs) require more sophisticated Hessian-based methods to maintain transferability.
Results and Performance
Empirical tests show that ResNet-50 models (pre-trained with MoCoV2 or DINO) can achieve up to 66.42% sparsity with minimal impact on zero-shot accuracy. Furthermore, performance drops from pruning are often recovered through brief source-task fine-tuning. While ViTs are more sensitive at high sparsities, they still benefit from the aligned landscape properties.
Conclusion and Future Work
This work demonstrates that foundation models possess a high degree of task-agnostic redundancy. While the study focuses on semantically related ImageNet subsets, future research should explore "out-of-distribution" transfers and develop theoretical frameworks to predict optimal sparsity thresholds.
Summary updated