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
尽管随机梯度下降(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.
Revisiting SGD with Increasingly Weighted Averaging: Optimization and Generalization Perspectives
The University of Iowa(爱荷华大学)
随机梯度下降(SGD)已经在文献中从不同角度进行了广泛的研究,并且通常用于解决许多大数据机器学习问题。然而,将所有迭代解组合成单个解的平均技术仍然未被探索。虽然一些越来越加权平均计划已被认为在文献中,现有的工作大多限于强凸的目标函数和优化误差的收敛性。对于{\bf非强凸目标,包括非凸问题},这些平均方案如何影响{\it优化误差和泛化误差}(测试误差的两个同等重要的分量)的收敛性仍然不清楚。本文从优化误差和泛化误差两个方面综合分析了凸、强凸和非凸目标函数上的递增加权平均算法,{ \it fill the gap}.特别是,我们分析了一个家庭的日益加权平均,在迭代$t$的解决方案的权重是成比例的$t^α$($α> 0$)。我们展示了$α$如何影响优化误差和泛化误差,并展示了由$α$引起的权衡。实验已经证明了这种权衡和多项式增加加权平均的有效性,与其他平均方案相比,适用于包括深度学习在内的各种问题。
SeWA: Selective Weight Average via Probabilistic Masking
Huazhong University of Science and Technology(华中科技大学);Shanghai Jiao Tong University(上海交通大学);RIKEN Center for Advanced Intelligence Project(理化学研究所先进智能项目中心);Baidu Inc.(百度公司);Sun Yat-sen University(中山大学);Nanyang Technological University(南洋理工大学)
Iterate averaging as regularization for stochastic gradient descent
Universitat Pompeu Fabra(庞培法布拉大学);Massachusetts Institute of Technology(麻省理工学院);Istituto Italiano di Tecnologia(意大利理工学院);Università degli Studi di Genova(热那亚大学)
Averaging Weights Leads to Wider Optima and Better Generalization
Cornell University(康奈尔大学);Higher School of Economics(高等经济学院);Samsung-HSE Laboratory(三星-高等经济学院实验室);Samsung AI Center in Moscow(莫斯科三星人工智能中心);Lomonosov Moscow State University(莫斯科国立大学(罗蒙诺索夫莫斯科国立大学))
School of Mathematics and Statistics, Huazhong University of Science and Technology(华中科技大学数学与统计学院);School of Computer and Data Science, Nanyang Technological University(南洋理工大学计算机与数据科学学院);School of Cyber Science & Technology, Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区网络空间科学与技术学院);RIKEN Center for Advanced Intelligence Project(理化学研究所先进智能项目中心);Faculty of Engineering, the University of Sydney(悉尼大学工程学院)
Trainable Weight Averaging: Accelerating Training and Improving Generalization
Shanghai Jiao Tong University(上海交通大学);KU Leuven(鲁汶大学);National Taiwan University(台湾大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
A Novel Hierarchical Integration Method for Efficient Model Merging in Medical LLMs
Deakin Cyber Research(德肯网络研究);Innovation Centre Deakin University / Universal Higher Education Melbourne, Australia(德肯大学创新中心/通用高等教育墨尔本,澳大利亚);School of IT(信息科技学院);Engineering Melbourne Institute of Technology Melbourne, Australia(工程墨尔本技术学院墨尔本,澳大利亚);Innovation Centre Deakin University Geelong, Australia(德肯大学创新中心吉朗,澳大利亚)
WASH: Train your Ensemble with Communication-Efficient Weight Shuffling, then Average
ISIR - Sorbonne Université(ISIR - 索邦大学);Mila(米拉研究所);Concordia University(康考迪亚大学);École de technologie supérieure(高等技术学院);Center for Computational Mathematics(计算数学中心);Flatiron Institute(弗拉特iron研究所)