VarGFaceNet: An Efficient Variable Group Convolutional Neural Network for Lightweight Face Recognition

Mengjia Yan, Mengao Zhao, Zining Xu, Qian Zhang, Guoli Wang, Zhizhong SuWorkshops @ ICCV 2019

Abstract

VarGFaceNet is a highly efficient convolutional neural network designed specifically for large-scale face recognition on resource-constrained embedded systems. By leveraging variable group convolutions and a novel recursive knowledge distillation technique, the authors won the DeepGlint-light track of the 2019 Lightweight Face Recognition (LFR) challenge, achieving state-of-the-art accuracy within a strict 1G FLOP and 20MB memory budget.

Introduction

Deploying deep learning for face recognition on mobile and embedded devices is a significant challenge. While general-purpose efficient models like MobileNet and ShuffleNet exist, they often struggle with the high discriminative requirements of face recognition, which involves identifying individuals among millions of potential identities.

The authors identify three specific hurdles in current lightweight face recognition:

  1. Computational Imbalance: Standard depthwise separable convolutions often create a "MAdds gap," where the $1 \times 1$ pointwise convolutions consume the vast majority of compute time, leading to inefficient hardware utilization.
  2. Information Loss: General-purpose lightweight networks often downsample images too early in the network's "head," discarding fine-grained facial details essential for recognition.
  3. The Teacher-Student Gap: Knowledge distillation often fails when the capacity gap between a massive teacher model and a tiny student model is too wide.

Methodology

The core of the proposed architecture is VarGFaceNet, which builds upon the Variable Group Convolution (VarGConv) concept.

Variable Group Convolution

Unlike standard group convolutions where the number of groups is fixed, VarGConv keeps the number of channels per group constant. This ensures a more balanced computational intensity across different layers, which is more compatible with embedded hardware and compilers.

Architectural Enhancements

To preserve spatial information, the authors modified the head of the network by removing the initial downsampling step. For the final embedding, they replaced the traditional, parameter-heavy Fully Connected (FC) layer with a specialized block. This block expands channels and then uses VarGConv to shrink the spatial dimensions to $1 \times 1$, drastically reducing the total number of parameters.

Architectural components of VarGFaceNet: (a) Normal block, (b) Down sampling block, (c) Head setting, and (d) Embedding setting.

Knowledge Distillation Strategies

The authors introduced two key distillation techniques:

  • Angular Distillation Loss: This adapts knowledge distillation to focus on the angles between feature vectors rather than absolute values, aligning better with angular margin losses (like ArcFace) commonly used in face recognition.
  • Recursive Knowledge Distillation: This multi-generational training strategy involves training a student model to mimic a teacher, then using that student to initialize a new student of the same architecture for a second round of training. This "self-improvement" helps the lightweight model bridge the performance gap with the heavy teacher.

Experiments and Results

The models were trained on a cleaned version of the MS1M dataset (5.1M images, 93K identities) and evaluated on benchmarks including LFW, CFP-FP, and AgeDB-30. Final testing was conducted on the Trillion-pairs dataset and the DeepGlint-light track of the LFR2019 Challenge.

VarGFaceNet demonstrated superior efficiency and accuracy compared to existing lightweight models like MobileFaceNet:

  • Challenge Success: VarGFaceNet won the DeepGlint-light track of the LFR 2019 challenge.
  • Accuracy: On the DeepGlint-light test set, it achieved a TPR@FPR=1e-8 of 0.855, significantly outperforming the MobileFaceNet baseline (0.803).
  • Efficiency: The model maintains a tiny footprint, staying under 20MB (float32) and approximately 1G FLOPs, making it ideal for real-time deployment on edge devices.
  • Distillation Impact: Recursive distillation improved the DeepGlint-light score from 0.883 to 0.887, validating the multi-stage approach.

Conclusion

VarGFaceNet provides a robust solution for efficient face recognition by balancing hardware-centric design with specialized architectural choices for facial feature extraction. The introduction of recursive distillation further pushes the boundaries of what lightweight models can achieve. Future work may involve using Neural Architecture Search (NAS) to further optimize these configurations and exploring the generalization of these techniques to other fine-grained classification tasks.

Summary updated

BibTeX
@misc{yan2019vargfacenet,
  author = {Mengjia Yan and Mengao Zhao and Zining Xu and Qian Zhang and Guoli Wang and Zhizhong Su},
  title = {{VarGFaceNet: An Efficient Variable Group Convolutional Neural Network for Lightweight Face Recognition}},
  year = {2019},
  eprint = {1910.04985},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.04985},
}
Figure