2025-03-03 · 专家 · 机器学习 · 计算机视觉

Optimal Brain Apoptosis

该论文提出了Optimal Brain Apoptosis (OBA)方法,通过直接计算Hessian矩阵与参数向量的乘积来优化神经网络剪枝过程,有效提升计算效率和性能。

更新于 2025-03-03。作者:Mingyuan Sun、Zheng Fang、Jiaxu Wang、Junjie Jiang、Delei Kong、Chenming Hu、Yuetong Fang、Renjing Xu。

中文摘要

卷积神经网络(CNNs)和Transformer的复杂性和参数数量不断增加,这给计算效率和资源需求带来了挑战。剪枝已被证明是一种有效的策略,通过移除冗余元素,如神经元、通道或连接,从而在不严重损害性能的情况下提高计算效率。本文在最优脑损伤(OBD)的基础工作之上,通过改进使用Hessian矩阵进行参数重要性估计的方法,提出了新的研究。与依赖近似值的前期方法不同,我们引入了最优脑凋亡(OBA),这是一种新颖的剪枝方法,它直接为每个参数计算Hessian-向量积的值。通过将Hessian矩阵分解到网络层,并确定在哪些条件下层间Hessian子矩阵不为零,我们提出了一种高度有效的方法来计算参数的二阶泰勒展开。这种方法允许进行更精确的剪枝过程,特别是在CNNs和Transformers的背景下,这在我们的实验中得到了验证,包括在CIFAR10、CIFAR100和ImageNet数据集上对VGG19、ResNet32、ResNet50和ViT-B/16的实验。我们的代码可在https://github.com/NEU-REAL/OBA找到。

英文摘要

The increasing complexity and parameter count of Convolutional Neural Networks (CNNs) and Transformers pose challenges in terms of computational efficiency and resource demands. Pruning has been identified as an effective strategy to address these challenges by removing redundant elements such as neurons, channels, or connections, thereby enhancing computational efficiency without heavily compromising performance. This paper builds on the foundational work of Optimal Brain Damage (OBD) by advancing the methodology of parameter importance estimation using the Hessian matrix. Unlike previous approaches that rely on approximations, we introduce Optimal Brain Apoptosis (OBA), a novel pruning method that calculates the Hessian-vector product value directly for each parameter. By decomposing the Hessian matrix across network layers and identifying conditions under which inter-layer Hessian submatrices are non-zero, we propose a highly efficient technique for computing the second-order Taylor expansion of parameters. This approach allows for a more precise pruning process, particularly in the context of CNNs and Transformers, as validated in our experiments including VGG19, ResNet32, ResNet50, and ViT-B/16 on CIFAR10, CIFAR100 and Imagenet datasets. Our code is available at https://github.com/NEU-REAL/OBA.

解读

一句话总结

该论文提出了Optimal Brain Apoptosis (OBA)方法,通过直接计算Hessian矩阵与参数向量的乘积来优化神经网络剪枝过程,有效提升计算效率和性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源