Revisiting Loss Modelling for Unstructured Pruning

César Laurent, Camille Ballas, Thomas George, Nicolas Ballas, Pascal Vincent

Abstract

Unstructured pruning is a critical technique for deploying deep neural networks on resource-constrained hardware. While researchers often rely on Taylor expansions to estimate the impact of weight removal on loss, the validity of these local approximations is frequently overlooked. This paper investigates the effectiveness of linear and quadratic loss models, demonstrating that while they excel at preserving loss during the pruning step through locality enforcement, this advantage often vanishes after fine-tuning. Our findings challenge the current reliance on static loss preservation as a proxy for final model performance.

Introduction: The Combinatorial Nightmare of Pruning

Deep learning models are increasingly deployed on edge devices, necessitating efficient compression techniques like unstructured pruning. The core challenge lies in identifying which individual weights can be zeroed out with minimal impact on performance. Because evaluating every possible combination is computationally infeasible, researchers use Taylor expansions—such as the first-order Linear Model (LM) or the second-order Quadratic Model (QM)—to estimate the change in loss ($\Delta L$).

Methodology: Enforcing Locality

Taylor approximations are inherently local. Pruning a large percentage of weights in a single step often violates the "trust region" where these approximations are valid. To address this, the authors employ two primary strategies:

  1. Iterative Pruning: Distributing the pruning process over $n$ steps.
  2. Step Size Regularization ($\lambda$): Adding a penalty to the pruning saliency score to discourage removing weights that are too large, effectively keeping the pruning step within a trust region.
Figure 1: Loss preservation for the Quadratic Model (QM) across different iterations (n) and regularization strengths (λ). Legend: MP (dashed), n=1 (blue), n=14 (orange), n=140 (green).

Key Insights

The Locality Law

As shown in Figure 1, increasing the number of iterations ($n$) or the regularization penalty ($\lambda$) drastically reduces the observed change in loss ($\Delta L$). Without these constraints, even sophisticated quadratic models fail to outperform simple Magnitude Pruning (MP). This confirms that Taylor approximations are only useful when the pruning step is sufficiently small.

Linear is "Good Enough"

A significant finding is that the Linear Model (LM) performs nearly as well as the Quadratic Model (QM) once locality is enforced. This suggests that first-order gradient information captures the essential signal for effective pruning, potentially allowing practitioners to avoid the high computational cost of Hessian-based second-order methods.

Figure 3: The Linear Model (LM) demonstrates loss preservation capabilities comparable to the more complex Quadratic Model when iterations and regularization are applied.

The Convergence Myth

By retaining the gradient term in the QM, the authors demonstrate that models can be pruned effectively even before they have fully converged. This relaxes a major constraint of older methods like Optimal Brain Damage (OBD), which assume the gradient is zero at the point of pruning.

Results: The Fine-Tuning Paradox

While LM and QM are superior at preserving loss immediately after pruning, this advantage largely disappears after the model is fine-tuned—the standard final step in pruning pipelines. On architectures like PreActResNet18, the final validation error for all methods converges to within a narrow margin (0.1-0.2%).

Furthermore, the study found a weak correlation ($\rho \approx 0.20 - 0.27$) between the loss preserved during pruning and the final accuracy after fine-tuning. This implies that a "gentle" pruning step that minimizes immediate loss does not necessarily result in a model that is easier to optimize later.

Conclusion

The results indicate that while we can model the local loss landscape with high precision, this precision does not guarantee a better final model. The authors suggest that future research should shift focus from static loss preservation to understanding how pruning affects the trainability and optimization path of the remaining weights.

Summary updated

BibTeX
@misc{laurent2020revisiting,
  author = {César Laurent and Camille Ballas and Thomas George and Nicolas Ballas and Pascal Vincent},
  title = {{Revisiting Loss Modelling for Unstructured Pruning}},
  year = {2020},
  eprint = {2006.12279},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.12279},
}
Figure