arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.12818cs.LG
收藏

BatchNorm中位移和尺度参数的实证分析

An Empirical Analysis of the Shift and Scale Parameters in BatchNorm

San Jose State University(圣何塞州立大学)

Yashna Peerthum, Mark Stamp

摘要:

批量归一化(BatchNorm)是一种改进深度神经网络(尤其是卷积神经网络(CNN))训练的技术。经验证明,BatchNorm提高了性能、稳定性和准确性,尽管这种改进的原因尚不清楚。BatchNorm包括一个标准化步骤以及可训练的移位和缩放参数。在本文中,我们经验性地研究了归一化步骤对BatchNorm成功的相对贡献,与通过移位和缩放进行的重新参数化相比。为了进行我们的实验,我们在PyTorch中实现了两个新的优化器,即我们称为AffineLayer的BatchNorm版本,其中包括没有归一化的重新参数化步骤,以及仅具有归一化步骤的版本,我们称之为BatchNorm-minus。我们将AffineLayer和BatchNorm-minus实现的性能与标准BatchNorm进行了比较,并将其与未使用批量归一化的情况进行了比较。我们在标准图像数据集和多个批量大小上使用四种ResNet架构(ResNet 18,ResNet 34,ResNet 50和ResNet 101)进行实验。在其他研究结果中,我们提供了经验证据表明,BatchNorm的成功可能主要来自于改进的权重初始化。

英文摘要:

Batch Normalization (BatchNorm) is a technique that improves the training of deep neural networks, especially Convolutional Neural Networks (CNN). It has been empirically demonstrated that BatchNorm increases performance, stability, and accuracy, although the reasons for such improvements are unclear. BatchNorm includes a normalization step as well as trainable shift and scale parameters. In this paper, we empirically examine the relative contribution to the success of BatchNorm of the normalization step, as compared to the re-parameterization via shifting and scaling. To conduct our experiments, we implement two new optimizers in PyTorch, namely, a version of BatchNorm that we refer to as AffineLayer, which includes the re-parameterization step without normalization, and a version with just the normalization step, that we call BatchNorm-minus. We compare the performance of our AffineLayer and BatchNorm-minus implementations to standard BatchNorm, and we also compare these to the case where no batch normalization is used. We experiment with four ResNet architectures (ResNet18, ResNet34, ResNet50, and ResNet101) over a standard image dataset and multiple batch sizes. Among other findings, we provide empirical evidence that the success of BatchNorm may derive primarily from improved weight initialization.

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

↑