NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Influence Function Based Second-Order Channel Pruning-Evaluating True Loss Changes For Pruning Is Possible Without Retraining

Hongrong Cheng, Miao Zhang, Javen Qinfeng ShiIEEE TPAMI 2023 · DOI

Abstract

A fundamental challenge in channel pruning is the design of efficient criteria for selecting channels to remove. A common approach is to minimize performance degradation; however, accurately evaluating this degradation typically requires retraining the model to convergence, a process that is computationally prohibitive. Consequently, existing methods often rely on original weights to estimate loss changes, a proxy that frequently fails to reflect post-retraining performance. We introduce IFSO (Influence Function based Second-Order pruning), a novel algorithm that utilizes influence functions from robust statistics to estimate true loss changes without the need for retraining. By deriving a closed-form estimator using second-order optimization theory, IFSO identifies redundant channels globally and outperforms state-of-the-art methods across various benchmarks.

The "Catch-22" of Neural Network Pruning

Neural network pruning is essential for deploying deep models on resource-constrained edge devices. However, practitioners face a significant dilemma: to know which channels are safe to remove, one must know how the model performs after it has been retrained to recover from the pruning. Retraining for every possible channel combination is impossible, leading most existing methods to use a "lazy" proxy—evaluating loss change using the original weights ($W^*$).

Conceptual gap between existing pruning evaluation and ground truth.

As illustrated in the conceptual framework above, there is a significant "gap" between the loss change measured before retraining ($\Delta L_{ex}$) and the true ground-truth loss change after retraining ($\Delta L_{gt}$). This discrepancy often leads to suboptimal pruning decisions, particularly at high compression rates, as the immediate damage to a network is not a reliable predictor of its final recovered state.

Methodology: The IFSO Algorithm

The core innovation of IFSO is bridging the gap between immediate and final damage using second-order optimization. The method consists of several key components:

  1. Repurposing Influence Functions: Traditionally used to measure how training samples affect predictions, influence functions are here repurposed to estimate how changes in the pruning mask $\hat{M}$ affect optimal weights $\hat{W}^*$.
  2. Closed-Form Estimation: We derived a mathematical formula that estimates the "true" loss change by utilizing the Hessian matrix (second-order derivatives). This accounts for how remaining weights naturally shift to compensate for missing channels during retraining.
  3. Global Sensitivity Scoring: Instead of evaluating channels individually, IFSO develops a sensitivity score for all channels across the entire network simultaneously. This allows the algorithm to automatically determine optimal pruning ratios for each layer.
  4. Hessian-Free Approximation: To avoid the massive computational cost of inverting the Hessian matrix, we found that a "Hessian-free" assumption—replacing the Hessian with an identity matrix—maintains high accuracy while significantly accelerating the pruning process.

Experimental Results

We validated IFSO on standard benchmarks including CIFAR-10/100, ImageNet (ResNet-50), and MS COCO (RetinaNet). The results consistently demonstrate that IFSO outperforms competing methods like Group Fisher Pruning (GFP) and ThiNet.

Layer-wise channel distribution and accuracy comparison for VGG-16 on CIFAR-10.

Key Findings:

  • Accuracy Improvement: On VGG-16 with CIFAR-10, IFSO achieved a 70% FLOPs reduction while actually increasing Top-1 accuracy to 93.56%, compared to the unpruned model's 93.34%.
  • Automatic Layer-Wise Pruning: As shown in the layer distribution chart, IFSO automatically identifies that deeper layers in certain architectures can be pruned more aggressively, while others require more channels to maintain spatial information.
  • Large-Scale Performance: On ImageNet with ResNet-50, IFSO maintained significantly higher accuracy at 40% FLOPs reduction compared to other second-order methods, which saw nearly double the accuracy loss.

Conclusion

IFSO is the first method to demonstrate that evaluating true post-retraining loss changes is possible without actually performing the retraining. By leveraging second-order information to "foresee" weight compensation, IFSO provides a more reliable and automated paradigm for model compression. This finding opens new opportunities for applying influence functions to other areas of model optimization, such as neural architecture search and quantization.

Summary updated

BibTeX
@article{cheng2023influence,
  author = {Hongrong Cheng and Miao Zhang and Javen Qinfeng Shi},
  title = {{Influence Function Based Second-Order Channel Pruning-Evaluating True Loss Changes For Pruning Is Possible Without Retraining}},
  journal = {IEEE TPAMI},
  year = {2023},
  doi = {10.1109/tpami.2024.3416316},
}
Figure