バッチグループ正規化
Batch Group Normalization
Batch Group Normalization
@misc{zhou2020batch,
title = {Batch Group Normalization},
author = {Xiao-Yun Zhou and Jiacheng Sun and Nanyang Ye and Xu Lan and Qijun Luo and Bo-Lin Lai and Pedro Esperanca and Guang-Zhong Yang and Zhenguo Li},
year = {2020},
eprint = {2012.02782},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2012.02782}
}
Zhou, X.-Y., Sun, J., Ye, N., Lan, X., Luo, Q., Lai, B.-L., Esperanca, P., Yang, G.-Z., & Li, Z. (2020). Batch Group Normalization [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.02782
ZHOU XY, SUN J, YE N, et al. Batch Group Normalization[EB/OL]. (2020-12-04)[2026-11-30]. https://arxiv.org/abs/2012.02782.
要旨
深層学習における畳み込みニューラルネットワーク(DCNN)の訓練は困難かつ時間がかかる。正規化は有効な解決策の一つであり、従来の正規化手法の中でバッチ正規化(BN)は中規模から大規模なバッチサイズにおいて良好な性能を示し、複数の視覚タスクへの汎用性も高い。しかし、BN は小規模なバッチサイズにおいて性能が著しく低下する。本稿では、BN が極大のバッチサイズ(例えば、128 画像あたりのワーカー数、すなわち GPU 単位)においても飽和する傾向があることを発見し、BN の小規模および極大バッチサイズにおける性能低下・飽和はノイズや混乱した統計量の計算に起因すると提案する。新たな学習可能なパラメータを追加せず、多層或多回帰の情報を利用し、追加の計算を導入することなく、バッチサイズにおける BN の統計量計算のノイズ・混乱を解決するために、バッチグループ正規化(BGN)を提案する。BGN はグループ正規化(GN)のグループ化手法を採用し、統計量計算に用いられる特徴量インスタンスの数を制御するハイパーパラメータ G を導入することで、異なるバッチサイズに対してノイズや混乱した統計量を排除する。我々は、画像分類、ニューラルアーキテクチャ検索(NAS)、敵対的学習、少ショット学習(FSL)、無教師学習ドメイン適応(UDA)を含む広範な視覚タスクにおいて、BGN が BN、インスタンス正規化(IN)、レイヤー正規化(LN)、GN、位置正規化(PN)を常に凌駕することを実証的に示した。これは BGN の優れた性能、バッチサイズに対する頑健な安定性、および広範な汎用性を示している。例えば、ImageNet で ResNet-50 をバッチサイズ 2 で訓練する場合、BN の Top1 精度は 66.512% であるのに対し、BGN は 76.096% を達成し、顕著な改善が見られる。
Deep Convolutional Neural Networks (DCNNs) are hard and time-consuming to train. Normalization is one of the effective solutions. Among previous normalization methods, Batch Normalization (BN) performs well at medium and large batch sizes and is with good generalizability to multiple vision tasks, while its performance degrades significantly at small batch sizes. In this paper, we find that BN saturates at extreme large batch sizes, i.e., 128 images per worker, i.e., GPU, as well and propose that the degradation/saturation of BN at small/extreme large batch sizes is caused by noisy/confused statistic calculation. Hence without adding new trainable parameters, using multiple-layer or multi-iteration information, or introducing extra computation, Batch Group Normalization (BGN) is proposed to solve the noisy/confused statistic calculation of BN at small/extreme large batch sizes with introducing the channel, height and width dimension to compensate. The group technique in Group Normalization (GN) is used and a hyper-parameter G is used to control the number of feature instances used for statistic calculation, hence to offer neither noisy nor confused statistic for different batch sizes. We empirically demonstrate that BGN consistently outperforms BN, Instance Normalization (IN), Layer Normalization (LN), GN, and Positional Normalization (PN), across a wide spectrum of vision tasks, including image classification, Neural Architecture Search (NAS), adversarial learning, Few Shot Learning (FSL) and Unsupervised Domain Adaptation (UDA), indicating its good performance, robust stability to batch size and wide generalizability. For example, for training ResNet-50 on ImageNet with a batch size of 2, BN achieves Top1 accuracy of 66.512% while BGN achieves 76.096% with notable improvement.