TL;DR
This paper investigates the optimal time to prune deep learning models during training, discovering an "early pruning period" where models can be compressed significantly with minimal accuracy loss. They show this period correlates with a shift in the model's training dynamics, specifically the transition from memorization to forgetting, and propose an efficient metric to identify it.
What Problem Does This Paper Address?
Modern deep learning models are massive, requiring substantial computational resources for training and inference. Parameter pruning is a common technique to reduce model size and improve efficiency by removing redundant weights. However, this is typically done after a model has been fully trained. The authors question whether a model's large capacity is truly needed for the entire training duration. They hypothesize that a model might only need its full capacity during an initial transient phase to navigate the complex loss landscape, after which it can be compressed without sacrificing performance. The core problem is identifying when during training a model becomes amenable to pruning to achieve computational savings earlier.
Methods
The paper explores "early pruning periods" by training models, pruning them at various checkpoints, and then fine-tuning them. They investigate the relationship between this early pruning period and the model's internal training dynamics. Specifically, they draw inspiration from prior work identifying two phases in neural network training: a "memorization" phase (where weights store more information about the data) and a "forgetting" phase (where weights learn more efficient representations).
To quantify these phases, they use the trace of the Fisher Information Matrix (tr(F)). This metric indicates how much a perturbation to the model's weights affects its predicted output distribution. A high tr(F) suggests weights are influential, while a low tr(F) suggests they are less so. They observe that the early pruning period often coincides with the transition from the memorization to the forgetting phase, marked by a peak in tr(F).
Recognizing that computing tr(F) can be computationally expensive, they propose a gradient-free metric called KLUniform. This metric measures the divergence between the model's predicted output distribution and a uniform distribution over class labels. They find that KLUniform also correlates with the early pruning period, offering a more efficient way to identify the optimal pruning time.
Datasets
The authors conducted experiments on the following datasets:
- CIFAR-10
- CIFAR-100
Key Insights and Ideas
- Early Pruning is Effective: Models can be pruned significantly (up to 90% sparsity) early in training, often yielding better or comparable performance to models pruned after full convergence. This challenges the conventional wisdom of pruning only post-training.
- Training Dynamics Matter: The "early pruning period" is strongly linked to the model's internal training dynamics, specifically the transition between the "memorization" and "forgetting" phases. This suggests that a model's capacity is most critical during the initial phase of learning the data's intricacies.
- Fisher Information as a Signal: The trace of the Fisher Information Matrix (tr(F)) serves as a valuable indicator of when a model is most amenable to pruning, peaking around the memorization/forgetting phase shift.
- Efficient Gradient-Free Metric: The proposed KLUniform metric offers a computationally cheaper alternative to tr(F) for identifying the early pruning period, making it more practical for real-time application during training.
- Capacity is Transient: A large model capacity is primarily needed for the initial, transient phase of training to navigate the loss landscape. Once this phase is complete, the model's capacity can be reduced without significant performance degradation.
Key Results
- 90% Sparsity Achieved: ResNet models trained on CIFAR datasets were compressed by up to 90% early in training, with only minor accuracy degradation (e.g., ~0.2% on CIFAR-10 for ResNet18).
- Correlation with tr(F): The optimal time for pruning consistently occurred around the peak of the tr(F) curve, indicating the transition from memorization to forgetting.
- KLUniform Effectiveness: The KLUniform metric showed a strong correlation with tr(F) and the early pruning period, demonstrating its utility as an efficient proxy.
- Ablation Studies: The findings held across various model sizes (ResNet18, ResNet20/32/44/56), compression levels (80%, 90%, 95%), learning rate schedules (exponential, cosine, linear), and regularization strengths.
Limitations and Future Work
- Computational Constraints: The experiments were conducted on relatively small-scale models and datasets (CIFAR-10/100). The authors acknowledge that validating these findings on larger-scale models and datasets is crucial for practical applications.
- Generalization to Other Tasks: While the study focused on discriminative computer vision tasks, future work could explore these findings in other domains like natural language processing.
- Pruning Granularity: The paper primarily focuses on unstructured pruning. Investigating the interplay of early pruning periods with structured pruning methods could be a valuable extension.
- Understanding the "Why": While the paper identifies when early pruning is effective and correlates it with training dynamics, further theoretical work could delve deeper into why this specific transition point is optimal for compression.
Summary updated