arXiv:2502.11450cs.LGcs.AI2025-02被引 1

用可扩展的二阶信息提升模型初始化时的剪枝精度。

What Scalable Second-Order Information Knows for Pruning at Initialization

  • 用经验费舍尔和哈钦森对角线近似二阶信息,保持线性复杂度。
  • 在多个模型和数据集上优于或媲美现有剪枝方法。
  • 预热批量归一化能缓解层坍缩,提升数据依赖型剪枝效果。

剪枝仍是降低大型神经网络部署成本与环境影响的有效策略,同时保持性能。经典方法如OBD(LeCun et al., 1989)和OBS(Hassibi et al., 1992)表明,利用曲率信息能显著改善网络复杂度与性能间的平衡。然而,海塞矩阵的计算与存储开销使其难以应用于现代神经网络,促使人们采用近似方法。近期研究(Gur et al., 2018;Karakida et al., 2019)指出,最大特征值能引导小子空间中的优化,早期即可识别且训练过程中保持稳定。受此启发,我们重新考察初始化剪枝(PaI),评估可扩展、无偏的二阶近似方法,如经验费舍尔和哈钦森对角线。实验表明,这些方法在保持线性复杂度的同时,捕捉到足够曲率信息,相比一阶基线能更准确识别关键参数。此外,我们实证发现,将批量归一化统计量更新作为预热阶段,可提升数据依赖型准则性能,并缓解层坍缩问题。值得注意的是,基于哈钦森的方法在多种模型(包括VGG、ResNet和ViT)与数据集(如CIFAR-10/100、TinyImageNet和ImageNet)上始终表现优异或持平于现有PaI算法。结果表明,可扩展的二阶近似在计算效率与准确性之间取得了良好平衡,是剪枝工具箱中值得添加的重要方法。代码已开源。

原文摘要 · Abstract (English)

Pruning remains an effective strategy for reducing both the costs and environmental impact associated with deploying large neural networks (NNs) while maintaining performance. Classical methods, such as OBD (LeCun et al., 1989) and OBS (Hassibi et al., 1992), demonstrate that utilizing curvature information can significantly enhance the balance between network complexity and performance. However, the computation and storage of the Hessian matrix make it impractical for modern NNs, motivating the use of approximations. Recent research (Gur et al., 2018; Karakida et al., 2019) suggests that the top eigenvalues guide optimization in a small subspace, are identifiable early, and remain consistent during training. Motivated by these findings, we revisit pruning at initialization (PaI) to evaluate scalable, unbiased second-order approximations, such as the Empirical Fisher and Hutchinson diagonals. Our experiments show that these methods capture sufficient curvature information to improve the identification of critical parameters compared to first-order baselines, while maintaining linear complexity. Additionally, we empirically demonstrate that updating batch normalization statistics as a warmup phase improves the performance of data-dependent criteria and mitigates the issue of layer collapse. Notably, Hutchinson-based criteria consistently outperformed or matched existing PaI algorithms across various models (including VGG, ResNet, and ViT) and datasets (such as CIFAR-10/100, TinyImageNet, and ImageNet). Our findings suggest that scalable second-order approximations strike an effective balance between computational efficiency and accuracy, making them a valuable addition to the pruning toolkit. We make our code available.

模型剪枝二阶信息初始化剪枝可扩展性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。