arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.05532cs.LGcs.CV
收藏

Twin: 无需验证的深度同质分类器学习率和权重衰减调优

Twin: Tuning Learning Rate and Weight Decay of Deep Homogeneous Classifiers without Validation

ARTORG Center, University of Bern(伯恩大学ARTORG中心)

Lorenzo Brigato, Stavroula Mougiakakou

AI总结:

提出Twin方法,利用同质网络的边界最大化动态和训练-测试损失间的经验缩放定律,实现无需验证集的学习率和权重衰减调优,在37个图像分类配置上达到与Oracle基线1.28%的平均绝对误差。

摘要:

我们介绍了Tune without Validation (Twin),一种简单有效的管道,用于调优同质分类器的学习率和权重衰减,无需验证集,消除了保留数据的需求并避免了两步过程。Twin利用了同质网络的边界最大化动态以及连接超参数配置下训练和测试损失的经验缩放定律。这种数学建模产生了一个依赖于区域的、无需验证的选择规则:在不可分离区域,训练损失在测试损失中是单调的,因此可以预测泛化;而在可分离区域,由于边界最大化,参数的范数成为泛化的可靠指标。在37个图像分类的数据集-架构配置中,我们证明Twin与使用测试准确率选择超参数的Oracle基线相比,平均绝对误差为1.28%。我们展示了Twin在验证数据稀缺的场景(如小数据 regime)或难以且昂贵收集的场景(如医学成像)中的优势。代码可在 https://github.com/lorenzobrigato/twin 获取。

英文摘要:

We introduce Tune without Validation (Twin), a simple and effective pipeline for tuning learning rate and weight decay of homogeneous classifiers without validation sets, eliminating the need to hold out data and avoiding the two-step process. Twin leverages the margin-maximization dynamics of homogeneous networks and an empirical scaling law that links training and test losses across hyper-parameter configurations. This mathematical modeling yields a regime-dependent, validation-free selection rule: in the non-separable regime, training loss is monotonic in test loss and therefore predictive of generalization, whereas in the separable regime, the parameters' norm becomes a reliable indicator of generalization due to margin maximization. Across 37 dataset-architecture configurations for image classification, we demonstrate that Twin achieves a mean absolute error of 1.28% compared to an Oracle baseline that selects HPs using test accuracy. We demonstrate Twin's benefits in scenarios where validation data is scarce, such as small-data regimes, or difficult and costly to collect, as in medical imaging. Code available at https://github.com/lorenzobrigato/twin.

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

↑