배치 그룹 정규화
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 이 극단적으로 큰 배치 크기 (예: 작업자당 128 이미지, 즉 GPU) 에서 포화 상태에 도달함을 발견하고, 작은/극단적으로 큰 배치 크기에서의 BN 성능 저하/포화는 잡음이나 혼란스러운 통계량 계산에 의해 발생한다고 제안한다. 따라서 새로운 학습 가능한 파라미터를 추가하거나 다층 또는 다반회 정보를 활용하거나 추가적인 계산을 도입하지 않고도, 채널, 높이, 너비 차원을 보상하기 위해 배치 그룹 정규화 (BGN) 를 제안한다. 그룹 정규화 (GN) 의 그룹 기법을 활용하고, 통계량 계산에 사용되는 특징 인스턴스 수를 제어하기 위해 하이퍼파라미터 G 를 도입함으로써 다양한 배치 크기에 대해 잡음이나 혼란스러운 통계량을 제공하지 않는다. 우리는 BGN 이 이미지 분류, 신경망 구조 탐색 (NAS), 적대적 학습, 소수 학습 (FSL), 비지도 도메인 적응 (UDA) 등 광범위한 컴퓨터 비전 작업에서 배치 정규화 (BN), 인스턴스 정규화 (IN), 레이어 정규화 (LN), 그룹 정규화 (GN), 위치 정규화 (PN) 를 일관되게 능가함을 실험적으로 증명한다. 이는 BGN 의 우수한 성능, 배치 크기에 대한 견고한 안정성, 그리고 넓은 일반화 능력을 시사한다. 예를 들어, 배치 크기가 2 인 ImageNet 에서 ResNet-50 을 학습시킬 때 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.