arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.16720cs.LGcs.CV
收藏

SmartFRZ:一种使用基于注意力的层冻结的高效训练框架

SmartFRZ: An Efficient Training Framework using Attention-Based Layer Freezing

University of Pittsburgh(匹兹堡大学);Northeastern University(东北大学)

Sheng Li, Geng Yuan, Yue Dai, Youtao Zhang, Yanzhi Wang, Xulong Tang

AI总结:

针对现有层冻结训练方法泛化性差、易损失准确率的问题,提出通用高效训练框架SmartFRZ,采用注意力引导的层冻结技术自动选层冻结,在保证准确率的同时提升训练效率,效果优于现有方法。

摘要:

人工智能应用数量激增,模型训练是为这些应用提供高质量服务的关键。然而,模型训练过程既耗时又耗能,不可避免地影响用户对应用效率的需求。层冻结作为一种高效的模型训练技术被提出,用于提升训练效率。尽管现有层冻结方法在降低模型训练成本方面展现出巨大潜力,但仍存在泛化性不足、准确率受损等缺陷。例如,现有层冻结方法要么需要在训练前手动定义冻结配置,无法适用于不同网络;要么采用启发式冻结准则,难以在不同场景下保证良好的准确率。因此,目前缺乏一种通用且智能的层冻结方法,能够在训练过程中为不同网络自动执行“适配场景的”层冻结。为此,我们提出了一种通用且高效的训练框架SmartFRZ。SmartFRZ的核心技术是注意力引导的层冻结,它能自动选择合适的层进行冻结,且不会降低准确率。实验结果表明,SmartFRZ有效减少了训练计算量,实现了显著的训练加速,且性能优于当前最先进的层冻结方法。

英文摘要:

There has been a proliferation of artificial intelligence applications, where model training is key to promising high-quality services for these applications. However, the model training process is both time-intensive and energy-intensive, inevitably affecting the user's demand for application efficiency. Layer freezing, an efficient model training technique, has been proposed to improve training efficiency. Although existing layer freezing methods demonstrate the great potential to reduce model training costs, they still remain shortcomings such as lacking generalizability and compromised accuracy. For instance, existing layer freezing methods either require the freeze configurations to be manually defined before training, which does not apply to different networks, or use heuristic freezing criteria that is hard to guarantee decent accuracy in different scenarios. Therefore, there lacks a generic and smart layer freezing method that can automatically perform ``in-situation'' layer freezing for different networks during training processes. To this end, we propose a generic and efficient training framework (SmartFRZ). The core proposed technique in SmartFRZ is attention-guided layer freezing, which can automatically select the appropriate layers to freeze without compromising accuracy. Experimental results show that SmartFRZ effectively reduces the amount of computation in training and achieves significant training acceleration, and outperforms the state-of-the-art layer freezing approaches.

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

↑