Abstract
This work is motivated by the engineering task of achieving a near state-of-the-art face recognition on a minimal computing budget running on an embedded system. Our main technical contribution centers around a novel training method, called Multibatch, for similarity learning, i.e., for the task of generating an invariant "face signature" through training pairs of "same" and "not-same" face images. The Multibatch method first generates signatures for a mini-batch of $k$ face images and then constructs an unbiased estimate of the full gradient by relying on all $k^2-k$ pairs from the mini-batch. We prove that the variance of the Multibatch estimator is bounded by $O(1/k^2)$, under some mild conditions. In contrast, the standard gradient estimator that relies on random $k/2$ pairs has a variance of order $1/k$. The smaller variance of the Multibatch estimator significantly speeds up the convergence rate of stochastic gradient descent. Using the Multibatch method we train a deep convolutional neural network that achieves an accuracy of $98.2\%$ on the LFW benchmark, while its prediction runtime takes only $30$msec on a single ARM Cortex A9 core. Furthermore, the entire training process took only 12 hours on a single Titan X GPU.
Introduction
State-of-the-art face recognition typically requires massive computational resources—both for training (thousands of GPU hours) and inference (large ensembles of deep networks). This is a significant barrier for embedded systems, such as wearable assistive devices, which have strict power and latency constraints. The authors identify a specific bottleneck in "metric learning": the process of teaching a network to map faces into a "signature" space where the same people are close together and different people are far apart. Standard methods sample random pairs or triplets, leading to high-variance gradients and slow convergence.
The Multibatch Method
The paper's core contribution is the Multibatch estimator for Stochastic Gradient Descent (SGD). In a mini-batch of $k$ images, instead of picking $k/2$ random pairs, the method calculates the signatures for all $k$ images and then evaluates the loss for all $k^2 - k$ possible pairs.
This approach offers a "computational free lunch." The most expensive part of training is the forward and backward passes through the deep network for each image. Once the signatures for a batch are generated, calculating the loss for all pairs is computationally negligible. The authors mathematically prove that this approach reduces the variance of the gradient estimate to $O(1/k^2)$, compared to $O(1/k)$ for standard pair sampling, allowing for faster and more stable convergence.
System Architecture
To meet embedded performance targets, the authors designed a lightweight, end-to-end pipeline. This includes integrating face alignment (2D similarity transformation) directly into the neural network, replacing heavy pre-processing steps with a lightweight ConvNet.
The model uses "Network-in-Network" (NIN) blocks—spatial convolutions followed by $1 \times 1$ convolutions—to keep the parameter count low (1.3M) while maintaining representational power. The entire network uses only 41M FLOPs, making it orders of magnitude smaller than contemporaries like VGG or FaceNet.
Key Insights and Results
- Training Efficiency: The model was trained in only 12 hours on a single NVIDIA Titan X GPU using a custom dataset of 2.6 million face images covering 12,000 identities.
- Embedded Performance: The entire inference pipeline (alignment + signature generation) takes only 30ms on a single ARM Cortex A9 core (1GHz).
- Accuracy: Despite its small size, the model achieved 98.2% on the LFW benchmark.
- Optimization Complexity: The authors demonstrate that metric learning is a more difficult optimization problem than multiclass classification, justifying the need for variance-reduction techniques like Multibatch.
- Global Thresholding: Unlike triplet loss, which focuses on relative distances, this method optimizes for a global threshold. This is crucial for real-world "open-dictionary" scenarios where the system must decide if a face belongs to any known person or is a stranger.
Conclusion
The Multibatch method demonstrates that high-accuracy face recognition is achievable on a minimal computing budget. By reducing gradient variance and optimizing the network architecture for low FLOP counts, this work enables sophisticated computer vision applications on low-power embedded and wearable devices.
Summary updated