一石二鸟:部分FC用于人脸识别CNN的高效和鲁棒训练
Killing Two Birds with One Stone:Efficient and Robust Training of Face Recognition CNNs by Partial FC
摘要:
通过使用百万级野外数据集和基于边缘的softmax损失来学习区分性深度特征嵌入是当前最先进的人脸识别方法。然而,全连接(FC)层的内存和计算成本线性地扩展到训练集中的身份数量。此外,大规模的训练数据不可避免地存在类间冲突和长尾分布。在本文中,我们提出了一个稀疏更新的FC层的变种,名为部分FC(PFC)。在每次迭代中,选择正类中心和负类中心的随机子集来计算基于边缘的softmax损失。在整个训练过程中,所有的类中心仍然保持不变,但在每次迭代中只选择和更新一个子集。因此,计算需求,类间冲突的概率,和被动更新的尾类中心的频率,显着降低。在不同的训练数据和骨干(例如CNN和ViT)上进行的大量实验证实了所提出的PFC的有效性、鲁棒性和效率。源代码可在\https://www.example.com上获得。github.com/deepinsight/insightface/tree/master/recognition
英文摘要:
Learning discriminative deep feature embeddings by using million-scale in-the-wild datasets and margin-based softmax loss is the current state-of-the-art approach for face recognition. However, the memory and computing cost of the Fully Connected (FC) layer linearly scales up to the number of identities in the training set. Besides, the large-scale training data inevitably suffers from inter-class conflict and long-tailed distribution. In this paper, we propose a sparsely updating variant of the FC layer, named Partial FC (PFC). In each iteration, positive class centers and a random subset of negative class centers are selected to compute the margin-based softmax loss. All class centers are still maintained throughout the whole training process, but only a subset is selected and updated in each iteration. Therefore, the computing requirement, the probability of inter-class conflict, and the frequency of passive update on tail class centers, are dramatically reduced. Extensive experiments across different training data and backbones (e.g. CNN and ViT) confirm the effectiveness, robustness and efficiency of the proposed PFC. The source code is available at \https://github.com/deepinsight/insightface/tree/master/recognition.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。