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

实例依赖的早停

Instance-dependent Early Stopping

Sydney AI Centre, The University of Sydney(悉尼人工智能中心,悉尼大学);Southeast University(东南大学);Hong Kong Baptist University(香港浸会大学)

Suqin Yuan, Runqi Lin, Lei Feng, Bo Han, Tongliang Liu

AI总结:

针对传统早停未考虑实例个体学习状态导致冗余计算的问题,提出实例依赖的早停(IES)方法,基于损失二阶差分判断实例是否掌握并停止训练,可减少10%-50%反向传播实例且保持或提升模型性能。

摘要:

在机器学习实践中,早停被广泛用于正则化模型,当模型在验证集上的性能停止提升时,通过终止训练过程可节省计算成本。然而,传统早停对所有实例应用相同的停止准则,未考虑其个体学习状态,导致对已充分学习的实例进行冗余计算。为进一步提高效率,我们提出实例依赖的早停(IES)方法,基于“模型掌握实例后应停止对其训练”的核心原则,将早停机制从整个训练集适配到实例层面。若实例损失的二阶差分保持在零附近的小范围内,IES则认为该实例已被掌握。与直接使用损失值相比,这提供了更一致的实例学习状态衡量标准,因此允许统一阈值确定实例何时可被排除在进一步反向传播之外。我们证明,排除已掌握实例可增大梯度范数,从而加速训练损失的下降并加快训练过程。基准测试的大量实验表明,IES方法可减少10%-50%的反向传播实例,同时保持甚至略微提升模型的测试精度和迁移学习性能。

英文摘要:

In machine learning practice, early stopping has been widely used to regularize models and can save computational costs by halting the training process when the model's performance on a validation set stops improving. However, conventional early stopping applies the same stopping criterion to all instances without considering their individual learning statuses, which leads to redundant computations on instances that are already well-learned. To further improve the efficiency, we propose an Instance-dependent Early Stopping (IES) method that adapts the early stopping mechanism from the entire training set to the instance level, based on the core principle that once the model has mastered an instance, the training on it should stop. IES considers an instance as mastered if the second-order differences of its loss value remain within a small range around zero. This offers a more consistent measure of an instance's learning status compared with directly using the loss value, and thus allows for a unified threshold to determine when an instance can be excluded from further backpropagation. We show that excluding mastered instances from backpropagation can increase the gradient norms, thereby accelerating the decrease of the training loss and speeding up the training process. Extensive experiments on benchmarks demonstrate that IES method can reduce backpropagation instances by 10%-50% while maintaining or even slightly improving the test accuracy and transfer learning performance of a model.

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

↑