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

梯度中心化:一种新的深度神经网络优化技术

Gradient Centralization: A New Optimization Technique for Deep Neural Networks

The Hong Kong Polytechnic University(香港理工大学);DAMO Academy, Alibaba Group(阿里巴巴集团达摩院)

Hongwei Yong, Jianqiang Huang, Xiansheng Hua, Lei Zhang

摘要:

优化技术对于有效且高效地训练深度神经网络(DNN)非常重要。已经表明,使用一阶和二阶统计量(例如,均值和方差)对网络激活或权重向量执行Z分数标准化(例如,批量归一化(BN)和权重标准化(WS))可以提高训练性能。不同于这些现有的方法,主要是对激活或权重操作,我们提出了一种新的优化技术,即梯度中心化(GC),它通过集中梯度向量具有零均值直接对梯度进行操作。GC可以被看作是一个带有约束损失函数的投影梯度下降方法。我们证明了GC可以正则化权重空间和输出特征空间,从而提高DNN的泛化性能。此外,GC改善了损失函数及其梯度的Lipschitz性,使得训练过程变得更加有效和稳定。GC实现起来非常简单,并且可以很容易地嵌入到现有的基于梯度的DNN优化器中,只需一行代码。它也可以直接用于微调预训练的DNN。我们对各种应用程序的实验,包括一般图像分类,细粒度图像分类,检测和分割,证明GC可以持续提高DNN学习的性能。GC的代码可以在https://github.com/Yonghongwei/Gradient-Centralization上找到。

英文摘要:

Optimization techniques are of great importance to effectively and efficiently train a deep neural network (DNN). It has been shown that using the first and second order statistics (e.g., mean and variance) to perform Z-score standardization on network activations or weight vectors, such as batch normalization (BN) and weight standardization (WS), can improve the training performance. Different from these existing methods that mostly operate on activations or weights, we present a new optimization technique, namely gradient centralization (GC), which operates directly on gradients by centralizing the gradient vectors to have zero mean. GC can be viewed as a projected gradient descent method with a constrained loss function. We show that GC can regularize both the weight space and output feature space so that it can boost the generalization performance of DNNs. Moreover, GC improves the Lipschitzness of the loss function and its gradient so that the training process becomes more efficient and stable. GC is very simple to implement and can be easily embedded into existing gradient based DNN optimizers with only one line of code. It can also be directly used to fine-tune the pre-trained DNNs. Our experiments on various applications, including general image classification, fine-grained image classification, detection and segmentation, demonstrate that GC can consistently improve the performance of DNN learning. The code of GC can be found at https://github.com/Yonghongwei/Gradient-Centralization.

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

↑