arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.13575cs.LGcs.AI
收藏

概率权重固定:面向量化的神经网络权重不确定性大规模训练

Probabilistic Weight Fixing: Large-scale training of neural network weight uncertainties for quantization

School of Electronics & Computer Science(电子与计算机科学学院);University of Southampton(南安普顿大学)

Christopher Subia-Waud, Srinandan Dasmahapatra

AI总结:

针对现有权重量化共享方法忽略权重位置作用的问题,提出基于贝叶斯神经网络的概率框架与变分松弛方法,结合新初始化设置和正则化项,提升了模型抗噪性与可压缩性,在多个架构上准确率和压缩效果均优于现有最优方法。

摘要:

权重量化共享是一种通过将大型神经网络的权重约束到有限值集合,来降低推理阶段能耗的技术。然而,现有权重量化共享方法往往仅基于权重值来假设处理方式,忽略了权重位置所起的独特作用。本文提出了一个基于贝叶斯神经网络(Bayesian neural networks, BNNs)的概率框架和一种变分松弛方法,可根据每个权重位置特定的已学习不确定性分布,确定哪些权重可以移动到哪个聚类中心,以及移动的程度。我们引入了一种新的初始化设置和一个正则化项,使得能够在复杂的数据集-模型组合下训练BNNs。通过利用概率分布捕获的权重值灵活性,我们提升了抗噪性和下游可压缩性。我们的迭代聚类流程在ResNet模型和更复杂的基于transformer的架构上,均展现出优于现有最优方法的可压缩性和更高的准确率。具体而言,在ImageNet数据集上使用DeiT-Tiny模型时,我们的方法比现有最优量化方法的top-1准确率高出1.6%,其500多万个权重现在仅用296个唯一值即可表示。

英文摘要:

Weight-sharing quantization has emerged as a technique to reduce energy expenditure during inference in large neural networks by constraining their weights to a limited set of values. However, existing methods for weight-sharing quantization often make assumptions about the treatment of weights based on value alone that neglect the unique role weight position plays. This paper proposes a probabilistic framework based on Bayesian neural networks (BNNs) and a variational relaxation to identify which weights can be moved to which cluster centre and to what degree based on their individual position-specific learned uncertainty distributions. We introduce a new initialisation setting and a regularisation term which allow for the training of BNNs under complex dataset-model combinations. By leveraging the flexibility of weight values captured through a probability distribution, we enhance noise resilience and downstream compressibility. Our iterative clustering procedure demonstrates superior compressibility and higher accuracy compared to state-of-the-art methods on both ResNet models and the more complex transformer-based architectures. In particular, our method outperforms the state-of-the-art quantization method top-1 accuracy by 1.6% on ImageNet using DeiT-Tiny, with its 5 million+ weights now represented by only 296 unique values.

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

↑