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

无批归一化:如何以最小内存需求跨实例归一化激活值

Batchless Normalization: How to Normalize Activations Across Instances with Minimal Memory Requirements

Leibniz Universität Hannover(莱布尼茨汉诺威大学);Universidad Autónoma de Yucatán(尤卡坦自治大学)

Benjamin Berger, Victor Uc Cetina

AI总结:

本文提出一种无批归一化方法,通过在损失函数中添加项以最小化高斯分布的负对数似然来跨实例归一化激活值,从而降低内存消耗并简化实现,助力AI研究民主化。

摘要:

在训练神经网络时,批归一化有许多好处,但并非所有好处都已被完全理解。然而它也有一些缺点。其中最突出的可能就是内存消耗,因为计算批统计量要求批内的所有实例同时被处理,而如果没有批归一化,则可以在累积权重梯度的同时逐个处理这些实例。另一个缺点是,分布参数(均值和标准差)与所有其他模型参数不同,它们不使用梯度下降进行训练,而是需要特殊处理,这使实现变得复杂。在本文中,我展示了一种简单直接的方法来解决这些问题。简而言之,其核心思想是在损失函数中添加一些项,使得对于每个激活值,这些项会促使最小化用于归一化该激活值的高斯分布的负对数似然。在其他好处中,这有望通过降低训练更大模型的硬件需求,来推动人工智能研究的民主化。

英文摘要:

In training neural networks, batch normalization has many benefits, not all of them entirely understood. But it also has some drawbacks. Foremost is arguably memory consumption, as computing the batch statistics requires all instances within the batch to be processed simultaneously, whereas without batch normalization it would be possible to process them one by one while accumulating the weight gradients. Another drawback is that that distribution parameters (mean and standard deviation) are unlike all other model parameters in that they are not trained using gradient descent but require special treatment, complicating implementation. In this paper, I show a simple and straightforward way to address these issues. The idea, in short, is to add terms to the loss that, for each activation, cause the minimization of the negative log likelihood of a Gaussian distribution that is used to normalize the activation. Among other benefits, this will hopefully contribute to the democratization of AI research by means of lowering the hardware requirements for training larger models.

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

↑