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

用奥卡姆剃刀削减权重:基于边际似然的贝叶斯稀疏化方法用于神经网络

Shaving Weights with Occam's Razor: Bayesian Sparsification for Neural Networks Using the Marginal Likelihood

Technical University of Munich(慕尼黑工业大学);Munich Center for Machine Learning(慕尼黑机器学习中心);ETH Zürich(苏黎世联邦理工学院);Max Planck Institute for Intelligent Systems, Tübingen(马克斯·普朗克智能系统研究所(蒂宾根));Pruna AI(Pruna AI公司);Helmholtz AI, Munich(亥姆霍兹人工智能研究所(慕尼黑))

Rayen Dhahri, Alexander Immer, Betrand Charpentier, Stephan Günnemann, Vincent Fortuin

AI总结:

提出SpaM框架,利用贝叶斯边际似然和稀疏先验实现自动奥卡姆剃刀,选择可稀疏且解释数据的模型,并重用后验Hessian近似作为廉价剪枝标准,在高稀疏度下优于现有方法。

摘要:

神经网络稀疏化是一种节省计算时间和内存成本的有前景的途径,尤其是在许多成功的人工智能模型变得过大而难以在消费级硬件上直接部署的时代。尽管许多工作聚焦于不同的权重剪枝标准,但网络的整体可稀疏性,即其在不损失质量的情况下被剪枝的能力,常常被忽视。我们提出了基于边际似然的可稀疏性(SpaM),一个剪枝框架,它强调了使用贝叶斯边际似然结合稀疏诱导先验在使神经网络更具可稀疏性方面的有效性。我们的方法实现了一种自动的奥卡姆剃刀,选择最能解释数据且最可稀疏的模型,既适用于结构化也适用于非结构化稀疏化。此外,我们证明了在拉普拉斯近似中使用的预计算后验Hessian近似可以被重用,以定义一个廉价的剪枝标准,该标准优于许多现有的(更昂贵的)方法。我们展示了我们的框架在不同神经网络架构和数据集上的有效性,尤其是在高稀疏度水平下。

英文摘要:

Neural network sparsification is a promising avenue to save computational time and memory costs, especially in an age where many successful AI models are becoming too large to naïvely deploy on consumer hardware. While much work has focused on different weight pruning criteria, the overall sparsifiability of the network, i.e., its capacity to be pruned without quality loss, has often been overlooked. We present Sparsifiability via the Marginal likelihood (SpaM), a pruning framework that highlights the effectiveness of using the Bayesian marginal likelihood in conjunction with sparsity-inducing priors for making neural networks more sparsifiable. Our approach implements an automatic Occam's razor that selects the most sparsifiable model that still explains the data well, both for structured and unstructured sparsification. In addition, we demonstrate that the pre-computed posterior Hessian approximation used in the Laplace approximation can be re-used to define a cheap pruning criterion, which outperforms many existing (more expensive) approaches. We demonstrate the effectiveness of our framework, especially at high sparsity levels, across a range of different neural network architectures and datasets.

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

↑