arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1810.10962cs.LGstat.ML
收藏

批量归一化抽样

Batch Normalization Sampling

Tsinghua University(清华大学);University of California Santa Barbara(加州大学圣巴巴拉分校)

Zhaodong Chen, Lei Deng, Guoqi Li, Jiawei Sun, Xing Hu, Xin Ma, Yuan Xie

摘要:

近年来,深度神经网络(DNN)蓬勃发展,其中批量归一化(BN)起着不可或缺的作用。然而,已经观察到BN由于还原操作而成本高。在本文中,我们建议通过在每次迭代中只对一小部分数据进行采样进行归一化来缓解这个问题。具体来说,我们将其建模为统计抽样问题,并确定通过对相关性较低的数据进行抽样,可以大大减少BN中统计估计所需的数据数量,从而直接简化了约简操作。基于这一结论,本文提出了两种采样策略:“批量采样”(从每批样本中随机抽取若干个样本)和“特征采样”(从所有样本的每个特征图中随机抽取一个小块),兼顾了计算效率和样本相关性。此外,我们引入了一个非常简单的BN的变体,称为虚拟数据集归一化(VDN),它可以用很少的合成随机样本很好地归一化激活。所有提出的方法都在各种数据集和网络上进行了评估,其中GPU上的整体训练加速高达20%,而无需任何专业库的支持,并且准确性和收敛速度的损失可以忽略不计。最后,我们将我们的工作扩展到“微批量归一化“问题,并在小批量的情况下产生与现有方法相当的性能。

英文摘要:

Deep Neural Networks (DNNs) thrive in recent years in which Batch Normalization (BN) plays an indispensable role. However, it has been observed that BN is costly due to the reduction operations. In this paper, we propose alleviating this problem through sampling only a small fraction of data for normalization at each iteration. Specifically, we model it as a statistical sampling problem and identify that by sampling less correlated data, we can largely reduce the requirement of the number of data for statistics estimation in BN, which directly simplifies the reduction operations. Based on this conclusion, we propose two sampling strategies, "Batch Sampling" (randomly select several samples from each batch) and "Feature Sampling" (randomly select a small patch from each feature map of all samples), that take both computational efficiency and sample correlation into consideration. Furthermore, we introduce an extremely simple variant of BN, termed as Virtual Dataset Normalization (VDN), that can normalize the activations well with few synthetical random samples. All the proposed methods are evaluated on various datasets and networks, where an overall training speedup by up to 20% on GPU is practically achieved without the support of any specialized libraries, and the loss on accuracy and convergence rate are negligible. Finally, we extend our work to the "micro-batch normalization" problem and yield comparable performance with existing approaches at the case of tiny batch size.

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

↑