FastFace:面向单GPU大规模人脸识别训练的快速收敛调度器
FastFace: Fast-converging Scheduler for Large-scale Face Recognition Training with One GPU
AI总结:
针对大规模人脸识别训练需多GPU、学习率未及时调度会致损失曲线平稳子序列拖慢收敛的问题,提出时间复杂度为O(1)的FastFace调度器,单GPU即可将训练加速至原时长四分之一且精度损失超不过1%。
摘要:
在深度学习领域,算力已成为基础性且不可或缺的资源,尤其是在大规模数据集上的人脸识别(Face Recognition, FR)模型训练这类任务中,多GPU通常是必备条件。意识到这一挑战后,部分人脸识别方法已开始探索压缩FR模型全连接层的途径。与其他方法不同,我们的观察表明:若在FR模型训练过程中不对学习率(learning rate, LR)进行及时调度,损失曲线往往会出现大量平稳子序列。为解决该问题,我们提出了一种基于指数移动平均(Exponential Moving Average, EMA)和哈尔卷积核(Haar Convolutional Kernel, HCK)的新型学习率调度器,可消除平稳子序列,大幅缩短收敛时间。但该调度器因时间复杂度问题会产生可观的计算开销。为克服这一局限,我们提出FastFace——一种训练期间时间复杂度可忽略不计(即每次迭代为O(1))的快速收敛调度器。实际应用中,FastFace可将FR模型训练时间加速至原时长的四分之一,且精度损失不超过1%,从时间和空间复杂度两方面让仅用单GPU开展大规模FR训练成为可能。大量实验验证了FastFace的效率与有效性。代码已公开于:https://github.com/amoonfana/FastFace
英文摘要:
Computing power has evolved into a foundational and indispensable resource in the area of deep learning, particularly in tasks such as Face Recognition (FR) model training on large-scale datasets, where multiple GPUs are often a necessity. Recognizing this challenge, some FR methods have started exploring ways to compress the fully-connected layer in FR models. Unlike other approaches, our observations reveal that without prompt scheduling of the learning rate (LR) during FR model training, the loss curve tends to exhibit numerous stationary subsequences. To address this issue, we introduce a novel LR scheduler leveraging Exponential Moving Average (EMA) and Haar Convolutional Kernel (HCK) to eliminate stationary subsequences, resulting in a significant reduction in converging time. However, the proposed scheduler incurs a considerable computational overhead due to its time complexity. To overcome this limitation, we propose FastFace, a fast-converging scheduler with negligible time complexity, i.e. O(1) per iteration, during training. In practice, FastFace is able to accelerate FR model training to a quarter of its original time without sacrificing more than 1% accuracy, making large-scale FR training feasible even with just one single GPU in terms of both time and space complexity. Extensive experiments validate the efficiency and effectiveness of FastFace. The code is publicly available at: https://github.com/amoonfana/FastFace
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。