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

面向深度神经网络的分层权重平均

Hierarchical Weight Averaging for Deep Neural Networks

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Pengcheng Laboratory(鹏城实验室);Institute of High Performance Computing, Agency for Science, Technology and Research(新加坡科技研究局高性能计算研究所)

Xiaozhe Gu, Zixun Zhang, Yuncheng Jiang, Tao Luo, Ruimao Zhang, Shuguang Cui, Zhen Li

AI总结:

本文提出 Hierarchical Weight Averaging(HWA)框架,首次融合在线与离线权重平均,在无需特殊学习率调整的情况下提升 DNN 收敛速度与泛化性能,并显著优于现有方法。

摘要:

尽管随机梯度下降(SGD)类算法形式简单,但它们在训练深度神经网络(DNN)方面取得了成功。在改进 SGD 的各种尝试中,对多个模型的权重进行平均的权重平均(WA)方法近来在文献中受到广泛关注。概括而言,WA 分为两类:1)在线 WA,对并行训练的多个模型的权重进行平均,旨在降低并行小批量 SGD 的梯度通信开销;2)离线 WA,对同一模型在不同检查点处的权重进行平均,通常用于提升 DNN 的泛化能力。虽然在线 WA 与离线 WA 在形式上相似,却很少被相互联系起来。此外,这些方法通常只执行离线参数平均或在线参数平均,而不会同时采用二者。在本工作中,我们首次尝试将在线 WA 和离线 WA 纳入一个名为 Hierarchical Weight Averaging(HWA,分层权重平均)的通用训练框架。通过同时利用在线和离线两种平均方式,HWA 无需任何精巧的学习率调整,即可实现更快的收敛速度和更优的泛化性能。此外,我们还分析了现有 WA 方法面临的问题,并通过实验说明 HWA 如何解决这些问题。最后,大量实验验证,HWA 显著优于最先进的方法。

英文摘要:

Despite the simplicity, stochastic gradient descent (SGD)-like algorithms are successful in training deep neural networks (DNNs). Among various attempts to improve SGD, weight averaging (WA), which averages the weights of multiple models, has recently received much attention in the literature. Broadly, WA falls into two categories: 1) online WA, which averages the weights of multiple models trained in parallel, is designed for reducing the gradient communication overhead of parallel mini-batch SGD, and 2) offline WA, which averages the weights of one model at different checkpoints, is typically used to improve the generalization ability of DNNs. Though online and offline WA are similar in form, they are seldom associated with each other. Besides, these methods typically perform either offline parameter averaging or online parameter averaging, but not both. In this work, we firstly attempt to incorporate online and offline WA into a general training framework termed Hierarchical Weight Averaging (HWA). By leveraging both the online and offline averaging manners, HWA is able to achieve both faster convergence speed and superior generalization performance without any fancy learning rate adjustment. Besides, we also analyze the issues faced by existing WA methods, and how our HWA address them, empirically. Finally, extensive experiments verify that HWA outperforms the state-of-the-art methods significantly.

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

↑