Abstract
Estimating age and gender from real-world, "unconstrained" face images is a computationally demanding task, often requiring large neural networks that are unsuitable for mobile deployment. This paper introduces the Lightweight Multi-task CNN (LMTCNN), a streamlined architecture that performs simultaneous age and gender estimation. By integrating multi-task learning with depthwise separable convolutions, the LMTCNN achieves state-of-the-art accuracy while being approximately 9x smaller and over 20x faster on mobile hardware compared to standard baseline models.
Introduction
In real-world scenarios, face analysis must contend with varying lighting, poses, and resolutions. While deep learning has significantly advanced accuracy in these "unconstrained" environments, high-performing models typically demand significant memory and processing power. For mobile devices and smart robots, running separate large networks for age and gender estimation is often impractical due to high latency and memory consumption. The LMTCNN addresses this by providing a single, optimized model designed specifically for real-time inference on edge devices.
Methodology
The LMTCNN architecture relies on two core strategies to achieve efficiency without sacrificing performance:
- Multi-task Learning (Hard Parameter Sharing): Instead of utilizing two independent networks, the LMTCNN uses a shared "backbone" to extract general facial features. This backbone then branches into two specialized "heads" for age and gender classification. This approach reduces the total parameter count and encourages the model to learn more robust, generalized features.
- Depthwise Separable Convolutions: The model replaces standard convolutional layers with depthwise separable convolutions. This technique decomposes a standard convolution into a spatial (depthwise) filter and a 1x1 (pointwise) mixer, drastically reducing mathematical operations and model size.
The final inference pipeline employs an over-sampling strategy, where five crops are taken from the input image to ensure robustness against alignment errors, with the final prediction being an average of these crops.
Experimental Setup and Datasets
The model was evaluated using the Adience dataset, a benchmark for face analysis in the wild. The dataset contains 26,580 images of 2,284 subjects, featuring extreme blur, low resolution, and varied occlusions. Age is categorized into eight groups (0-2, 4-6, 8-13, 15-20, 25-32, 38-43, 48-53, 60+), and gender is binary (Male/Female).
Key Results and Discussion
The LMTCNN was benchmarked against the popular Levi-Hassner CNN baseline on actual mobile hardware, including the Asus Zenfone 3 and the Zenbo robot.
- Efficiency: The LMTCNN-1-1 variant is only 8.7 MB, a 9x reduction from the baseline's 70.8 MB. On a Zenfone 3, inference time dropped from ~4800ms (baseline) to ~205ms, enabling near real-time interaction.
- Accuracy: Despite its smaller size, the LMTCNN-2-1 variant outperformed the baseline in gender classification (85.16% vs. 82.52%) and maintained comparable accuracy in age estimation (44.26% vs. 44.14%).
These results demonstrate that "hard parameter sharing" effectively prevents overfitting and that smarter architectural design can surpass the performance of much larger, traditional networks.
Conclusion and Future Work
The LMTCNN provides a viable path for deploying sophisticated face analysis on resource-constrained devices. Future research will focus on expanding the multi-task framework to include additional facial attributes such as emotion or accessories, and exploring further compression techniques for extremely low-power IoT sensors.
Summary updated