[Paper Review] Hessian-Aware Pruning and Optimal Neural Implant
This paper proposes Hessian-Aware Pruning (HAP), a second-order structured pruning method that uses the Hessian trace to identify and prune insensitive neural network components, while replacing moderately sensitive components with low-rank Neural Implants to preserve accuracy. HAP achieves state-of-the-art performance, including <0.1% accuracy degradation on PreResNet29 (CIFAR-10) with 70% parameter pruning and up to 2% higher accuracy than HRank on ResNet50 (ImageNet) at 50% parameter reduction.
Pruning is an effective method to reduce the memory footprint and FLOPs associated with neural network models. However, existing structured-pruning methods often result in significant accuracy degradation for moderate pruning levels. To address this problem, we introduce a new Hessian Aware Pruning (HAP) method coupled with a Neural Implant approach that uses second-order sensitivity as a metric for structured pruning. The basic idea is to prune insensitive components and to use a Neural Implant for moderately sensitive components, instead of completely pruning them. For the latter approach, the moderately sensitive components are replaced with with a low rank implant that is smaller and less computationally expensive than the original component. We use the relative Hessian trace to measure sensitivity, as opposed to the magnitude based sensitivity metric commonly used in the literature. We test HAP for both computer vision tasks and natural language tasks, and we achieve new state-of-the-art results. Specifically, HAP achieves less than $0.1\%$/$0.5\%$ degradation on PreResNet29/ResNet50 (CIFAR-10/ImageNet) with more than 70\%/50\% of parameters pruned. Meanwhile, HAP also achieves significantly better performance (up to 0.8\% with 60\% of parameters pruned) as compared to gradient based method for head pruning on transformer-based models. The framework has been open sourced and available online.
Motivation & Objective
- Address the significant accuracy degradation common in structured pruning at moderate to high pruning ratios.
- Develop a fast, scalable second-order sensitivity metric to identify insensitive neural components for pruning.
- Introduce a Neural Implant mechanism to replace moderately sensitive components instead of pruning them entirely.
- Improve model efficiency by reducing parameters and FLOPs while maintaining high accuracy on vision and NLP tasks.
- Demonstrate superiority over existing magnitude-based and gradient-based pruning methods through extensive empirical evaluation.
Proposed method
- Use the Hessian trace as a second-order sensitivity metric to rank and prioritize pruning of neural network channels based on their impact on loss landscape flatness.
- Apply structured pruning by removing entire channels ranked lowest in Hessian trace sensitivity, enabling efficient, group-based pruning instead of per-parameter analysis.
- For moderately sensitive components, replace them with a low-rank Neural Implant that is computationally cheaper and smaller than the original layer.
- Fine-tune the pruned model with implants to recover and improve accuracy, leveraging the Hessian trace to guide where implants are applied.
- Combine Hessian-based sensitivity analysis with low-rank approximation to selectively apply implants only to sensitive layers, improving efficiency and performance.
- Ensure fair comparison by matching FLOPs between HAP and magnitude-based baselines, enabling direct performance evaluation on parameter efficiency.
Experimental results
Research questions
- RQ1Can second-order sensitivity, measured via Hessian trace, outperform magnitude-based metrics in structured neural network pruning?
- RQ2Does replacing moderately sensitive components with low-rank Neural Implants mitigate accuracy degradation during high-ratio pruning?
- RQ3How does HAP compare to state-of-the-art pruning methods like EigenDamage and HRank in terms of accuracy, parameter count, and FLOPs?
- RQ4To what extent does Hessian-aware implant placement improve performance over naive low-rank approximation applied to the full model?
- RQ5Can HAP maintain high accuracy across diverse architectures, including vision models (e.g., ResNet) and NLP models (e.g., RoBERTa)?
Key findings
- HAP achieves 94.3% accuracy on PreResNet29 (CIFAR-10) with only 31% of the original parameters remaining, corresponding to less than 0.1% accuracy degradation.
- On ResNet50 (ImageNet), HAP achieves 75.1% top-1 accuracy after pruning nearly 50% of the parameters, with only 0.5% accuracy degradation.
- Compared to the prior state-of-the-art HRank method, HAP achieves up to 2% higher accuracy on ResNet50 while using fewer parameters and FLOPs.
- For head pruning in RoBERTa on MRPC and QNLI, HAP improves accuracy by up to 0.89% compared to a gradient-based baseline at 60% head pruning.
- HAP outperforms magnitude-based pruning by achieving comparable accuracy (92.06%) with 21.01% of parameters remaining, versus 38.25% for magnitude-based methods at the same FLOP level.
- Ablation studies confirm that Hessian-based sensitivity ordering is significantly more effective than random or reversed ordering, with HAP achieving over 3% higher accuracy than R-HAP at 35.5% remaining parameters.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.