arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.02328cs.LG
收藏

使用 FishLeg 的高效模型压缩技术

Efficient Model Compression Techniques with FishLeg

MediaTek Research(联发科研究院);University College London(伦敦大学学院);University of Cambridge(剑桥大学)

Jamie McGowan, Wei Sheng Lai, Weibin Chen, Henry Aldridge, Jools Clarke, Jezabel Garcia, Rui Xia, Yilei Liang, Guillaume Hennequin, Alberto Bernacchia

AI总结:

提出基于 FishLeg 优化器的二阶剪枝方法 FLS,通过元学习分摊逆 FIM 并支持张量分解与渐进曲率融合,在高稀疏度 ResNet18/CIFAR-10 和 TinyIM 上优于 OBS。

摘要:

在许多领域中,最成功的 AI 模型往往也是规模最大的,事实上,它们常常大到计算资源有限的 AI 参与者无法处理。为缓解这一问题,人们已经开发了多种压缩方法,其中包括将网络剪枝到高稀疏度同时保持性能的方法。表现最好的剪枝技术通常是那些使用二阶梯度曲率信息(例如 Fisher 信息矩阵的估计)来评估每个权重重要性并预测权重删除的最佳补偿的方法。然而,如果不进行大量近似,这些方法很难扩展到高维参数空间。在此,我们提出 FishLeg surgeon(FLS),这是一种基于 Fisher-Legendre(FishLeg)优化器的新型二阶剪枝方法。FishLeg 的核心是一种用于分摊逆 FIM 作用的元学习方法,它带来了若干优势。首先,该参数化使得可以使用灵活的张量分解技术,在不过多牺牲准确性的情况下提高计算和内存效率,从而缓解与大多数二阶剪枝方法可扩展性相关的挑战。其次,直接估计逆 FIM 会降低对求逆过程中随机性放大的敏感性,从而得到更精确的估计。第三,我们的方法还允许将曲率逐步融入参数化中。在渐进剪枝机制下,与重新估计相比,这会带来更高效的估计细化。我们发现,FishLeg 相对于该领域两个常用基线取得了更高或相当的性能,最显著的是在高稀疏度情形下:在 CIFAR-10 上考虑 ResNet18 模型时(95% 稀疏度下准确率为 84%,而 OBS 为 60%),以及在 TinyIM 上(80% 稀疏度下准确率为 53%,而 OBS 为 48%)。

英文摘要:

In many domains, the most successful AI models tend to be the largest, indeed often too large to be handled by AI players with limited computational resources. To mitigate this, a number of compression methods have been developed, including methods that prune the network down to high sparsity whilst retaining performance. The best-performing pruning techniques are often those that use second-order curvature information (such as an estimate of the Fisher information matrix) to score the importance of each weight and to predict the optimal compensation for weight deletion. However, these methods are difficult to scale to high-dimensional parameter spaces without making heavy approximations. Here, we propose the FishLeg surgeon (FLS), a new second-order pruning method based on the Fisher-Legendre (FishLeg) optimizer. At the heart of FishLeg is a meta-learning approach to amortising the action of the inverse FIM, which brings a number of advantages. Firstly, the parameterisation enables the use of flexible tensor factorisation techniques to improve computational and memory efficiency without sacrificing much accuracy, alleviating challenges associated with scalability of most second-order pruning methods. Secondly, directly estimating the inverse FIM leads to less sensitivity to the amplification of stochasticity during inversion, thereby resulting in more precise estimates. Thirdly, our approach also allows for progressive assimilation of the curvature into the parameterisation. In the gradual pruning regime, this results in a more efficient estimate refinement as opposed to re-estimation. We find that FishLeg achieves higher or comparable performance against two common baselines in the area, most notably in the high sparsity regime when considering a ResNet18 model on CIFAR-10 (84% accuracy at 95% sparsity vs 60% for OBS) and TinyIM (53% accuracy at 80% sparsity vs 48% for OBS).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑