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

贪心对齐原则用于优化器选择

Greedy Alignment Principle for Optimizer Hyperparameter Selection

Computer Vision Lab, ASRI, Seoul National University(计算机视觉实验室,ASRI,首尔国立大学)

Jaerin Lee, Kyoung Mu Lee

AI总结:

本文提出基于梯度更新对齐的贪心原则,用于优化器选择与调参,通过数学建模证明该原则能最大化损失下降率,并在多种任务中验证动态动量规则的有效性。

摘要:

近期研究表明,梯度更新对齐是调节优化器更新的强大信号,通常能加快训练速度。本文将此启发式方法推广为数学上严谨的原则,用于选择和调整优化器超参数。通过将梯度和更新视为信号,优化器视为因果滤波器,将优化器选择建模为在给定优化器家族中最大化损失下降率的期望。证明该目标是优化器滤波器与梯度自相关函数的内积,并证明在估计梯度统计量扰动下存在贪心最优解且具有稳定性界。针对动量类优化器,理论推导出SGD+Momentum和Adam/AdamW的简单动态动量选择规则。在图像分类、语言模型微调和视觉变换器微调中实验表明,所得动态动量规则匹配或优于手动扫描找到的最佳固定超参数,减少对全面动量扫描的需求。代码可在https://github.com/ironjr/gap获取。

英文摘要:

Recent works have shown that gradient-update alignment is a powerful signal for modulating optimizer updates, often leading to faster training. We promote this update-wise heuristic as a mathematically grounded principle for selecting and tuning optimizer hyperparameters. By treating gradients and updates as signals and an optimizer as a causal filter that maps between them, we formulate optimizer selection as maximizing the expected drop rate in loss over a prescribed family of optimizers. We show that this objective is exactly the inner product between the optimizer filter and the gradient autocorrelation, and prove that a greedy optimum exists and has a stability bound under perturbations of the estimated gradient statistics. Specializing in momentum-based optimizers, the theory yields simple dynamic momentum selection rules for both SGD+Momentum and Adam/AdamW. Experiments across image classification, language model fine-tuning, and vision transformer fine-tuning show that the resulting dynamic momentum rules match or improve upon the best fixed hyperparameters found via manual sweeps, reducing the need for exhaustive momentum sweeps. Code is available at https://github.com/ironjr/gap

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

↑