arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2007.00811cs.LGstat.ML
收藏

先宽后窄:深度瘦网络的有效训练

Go Wide, Then Narrow: Efficient Training of Deep Thin Networks

Google Brain(谷歌大脑);The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Denny Zhou, Mao Ye, Chen Chen, Tianjian Meng, Mingxing Tan, Xiaodan Song, Quoc Le, Qiang Liu, Dale Schuurmans

摘要:

为了将深度学习模型部署到生产环境中,它需要既准确又紧凑,以满足延迟和内存限制。这通常会导致网络深度(以确保性能)和瘦(以提高计算效率)。本文提出了一种有效的训练深度细网络的方法,并给出了理论保证。我们的方法是由模型压缩。它包括三个阶段。首先,我们充分加宽深细网络并对其进行训练,直到收敛。然后,我们使用这个经过良好训练的深度宽网络来预热(或初始化)原始的深度瘦网络。这是通过逐层模仿来实现的,也就是说,迫使瘦网络逐层模仿宽网络的中间输出。最后,我们进一步微调这个已经初始化良好的深度瘦网络。利用神经平均场分析方法为该方法的应用提供了理论保证。它证明了我们的分层模仿方法优于反向传播。我们还进行了大规模的实证实验,以验证所提出的方法。通过使用我们的方法进行训练,当ResNet101和BERT Large在文献中的标准训练程序下训练时,ResNet50可以优于ResNet101,并且BERT Base可以与BERT Large相媲美。

英文摘要:

For deploying a deep learning model into production, it needs to be both accurate and compact to meet the latency and memory constraints. This usually results in a network that is deep (to ensure performance) and yet thin (to improve computational efficiency). In this paper, we propose an efficient method to train a deep thin network with a theoretic guarantee. Our method is motivated by model compression. It consists of three stages. First, we sufficiently widen the deep thin network and train it until convergence. Then, we use this well-trained deep wide network to warm up (or initialize) the original deep thin network. This is achieved by layerwise imitation, that is, forcing the thin network to mimic the intermediate outputs of the wide network from layer to layer. Finally, we further fine tune this already well-initialized deep thin network. The theoretical guarantee is established by using the neural mean field analysis. It demonstrates the advantage of our layerwise imitation approach over backpropagation. We also conduct large-scale empirical experiments to validate the proposed method. By training with our method, ResNet50 can outperform ResNet101, and BERT Base can be comparable with BERT Large, when ResNet101 and BERT Large are trained under the standard training procedures as in the literature.

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

↑