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

温度平衡、逐层权重分析与神经网络训练

Temperature Balancing, Layer-wise Weight Analysis, and Neural Network Training

Dartmouth College(达特茅斯学院);Nanjing University(南京大学);National Center for Applied Mathematics(国家应用数学中心);Calculation Consulting(计算咨询公司);University of California at Berkeley(加州大学伯克利分校);International Computer Science Institute(国际计算机科学研究所);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室)

Yefan Zhou, Tianyu Pang, Keqin Liu, Charles H. Martin, Michael W. Mahoney, Yaoqing Yang

AI总结:

本文提出基于重尾自正则化理论的逐层学习率方法 TempBalance,通过平衡各层温度改进训练,在多个数据集和网络结构上显著优于 SGD、谱范数正则化及多种先进优化器与学习率调度器。

摘要:

现代机器学习中的正则化至关重要,并且在算法设计中可以采取多种形式:训练集、模型族、误差函数、正则化项以及优化方法。特别是学习率,在学习的统计力学中可以被解释为一个类似温度的参数,在神经网络训练中起着关键作用。事实上,许多被广泛采用的训练策略基本上只是定义了学习率随时间的衰减过程。这一过程可以被解释为降低温度,既可以使用全局学习率(针对整个模型),也可以使用对每个参数都不同的学习率。本文提出了 TempBalance,一种简单而有效的逐层学习率方法。TempBalance 基于重尾自正则化(Heavy-Tailed Self-Regularization,HT-SR)理论,该方法刻画了已训练模型中不同层的隐式自正则化特性。我们证明了使用以 HT-SR 为动机的度量来指导模型训练期间所有网络层温度的调度与平衡是有效的,从而在测试阶段获得更好的性能。我们在 CIFAR10、CIFAR100、SVHN 和 TinyImageNet 数据集上,使用不同深度和宽度的 ResNets、VGGs 和 WideResNets 实现了 TempBalance。结果表明,TempBalance 显著优于普通 SGD 和经过仔细调参的谱范数正则化。我们还表明,TempBalance 优于多种最先进的优化器和学习率调度器。

英文摘要:

Regularization in modern machine learning is crucial, and it can take various forms in algorithmic design: training set, model family, error function, regularization terms, and optimizations. In particular, the learning rate, which can be interpreted as a temperature-like parameter within the statistical mechanics of learning, plays a crucial role in neural network training. Indeed, many widely adopted training strategies basically just define the decay of the learning rate over time. This process can be interpreted as decreasing a temperature, using either a global learning rate (for the entire model) or a learning rate that varies for each parameter. This paper proposes TempBalance, a straightforward yet effective layer-wise learning rate method. TempBalance is based on Heavy-Tailed Self-Regularization (HT-SR) Theory, an approach which characterizes the implicit self-regularization of different layers in trained models. We demonstrate the efficacy of using HT-SR-motivated metrics to guide the scheduling and balancing of temperature across all network layers during model training, resulting in improved performance during testing. We implement TempBalance on CIFAR10, CIFAR100, SVHN, and TinyImageNet datasets using ResNets, VGGs, and WideResNets with various depths and widths. Our results show that TempBalance significantly outperforms ordinary SGD and carefully-tuned spectral norm regularization. We also show that TempBalance outperforms a number of state-of-the-art optimizers and learning rate schedulers.

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

↑