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

自适应随机权重平均

Adaptive Stochastic Weight Averaging

Paderborn University(帕德博恩大学)

Caglar Demir, Arnab Sharma, Axel-Cyrille Ngonga Ngomo

AI总结:

本文提出自适应随机权重平均(ASWA)技术,仅在验证集泛化性能提升时更新模型参数运行平均值,结合SWA与早停技术,在11个数据集和7个基线模型上实现更优泛化。

摘要:

集成模型通常能在具有挑战性的任务中提升泛化性能。然而,基于预测平均的传统技术存在三个众所周知的缺点:训练多个模型带来的计算开销、测试时增加的延迟以及内存需求。为了解决这些问题,随机权重平均(SWA)技术从特定轮次开始维护模型参数的运行平均值。尽管具有潜在优势,但维护参数的运行平均值可能会阻碍泛化,因为底层运行模型开始过拟合。相反,如果起点选择不当,与底层运行模型相比,SWA 会更容易出现欠拟合。在这项工作中,我们提出了自适应随机权重平均(ASWA)技术,该技术仅在验证数据集上的泛化性能得到提升时,才更新模型参数的运行平均值。因此,ASWA 可以看作是 SWA 与早停技术的结合,前者接受对参数集成模型的所有更新,而后者拒绝任何对底层运行模型的更新。我们进行了广泛的实验,涵盖从图像分类到知识图谱上的多跳推理。我们在 11 个基准数据集上使用 7 个基线模型进行的实验表明,ASWA 在不同模型和数据集上均实现了统计学上更优的泛化能力。

英文摘要:

Ensemble models often improve generalization performances in challenging tasks. Yet, traditional techniques based on prediction averaging incur three well-known disadvantages: the computational overhead of training multiple models, increased latency, and memory requirements at test time. To address these issues, the Stochastic Weight Averaging (SWA) technique maintains a running average of model parameters from a specific epoch onward. Despite its potential benefits, maintaining a running average of parameters can hinder generalization, as an underlying running model begins to overfit. Conversely, an inadequately chosen starting point can render SWA more susceptible to underfitting compared to an underlying running model. In this work, we propose Adaptive Stochastic Weight Averaging (ASWA) technique that updates a running average of model parameters, only when generalization performance is improved on the validation dataset. Hence, ASWA can be seen as a combination of SWA with the early stopping technique, where the former accepts all updates on a parameter ensemble model and the latter rejects any update on an underlying running model. We conducted extensive experiments ranging from image classification to multi-hop reasoning over knowledge graphs. Our experiments over 11 benchmark datasets with 7 baseline models suggest that ASWA leads to a statistically better generalization across models and datasets

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

↑