TL;DR
This paper introduces a computationally efficient method to transfer knowledge from a pre-trained face recognition network to other face-related tasks (like age, gender, or pose estimation) without traditional, resource-intensive transfer learning. By analyzing which filters in the network encode information about these other tasks, they can effectively prune the network, leading to significant reductions in size and computation while maintaining performance.
What Problem Does This Paper Address?
Deep neural networks, particularly for face recognition, learn powerful feature representations. However, understanding what these learned features represent and how they can be repurposed for related tasks is challenging. Traditional transfer learning often involves fine-tuning large portions of a pre-trained network, which can be computationally expensive and time-consuming, especially when dealing with limited data for the target task. This paper addresses the need for a more efficient way to leverage existing, powerful face recognition models for a variety of other face-related tasks, aiming to reduce computational overhead and data requirements.
Methods
The core of the paper's methodology lies in analyzing the internal representations of a pre-trained face recognition network (specifically VGG-Face). Instead of traditional fine-tuning, they propose a "low-cost transfer learning" approach:
- Filter Analysis: They hypothesize that individual filters within the convolutional layers of a face recognition network encode information about various face attributes (e.g., age, gender, pose).
- Linear Regression for Transfer: For a given satellite task (e.g., age estimation), they extract the activation maps from a specific convolutional layer of the pre-trained network. These activation maps are then globally averaged to form a feature vector. A simple linear regression model is trained using these feature vectors to predict the labels for the satellite task. This bypasses the need for complex network architectures or extensive fine-tuning.
- Task-Specific Pruning: By analyzing the performance of the linear regression model with varying numbers of filters from each layer, they identify which filters are most informative for a given satellite task. This allows them to prune away redundant filters, creating a smaller, more efficient network tailored to the specific task. They use LASSO (L1-regularized regression) to select a subset of filters.
Datasets
The paper utilizes several datasets:
- CelebA: Used for training and evaluating identity, gender, facial hair, and accessories tasks.
- IMDB-WIKI: Used to generate ground truth for age estimation.
- FER2013: Used for emotion (valence) prediction.
- Annotated Facial Landmarks in the Wild (AFLW): Used for head pose (yaw) estimation.
- AgeDB: Used for age prediction.
- AFEW-VA: Used for emotion (valence) estimation.
Key Insights and Ideas
- Filters Encode Diverse Information: A single face recognition network, trained on a large dataset, implicitly learns filters that capture information relevant to a wide range of other face-related tasks, even those it wasn't explicitly trained for.
- Linear Models Suffice for Transfer: Surprisingly, simple linear regression models applied to the activation maps of pre-trained convolutional layers can achieve performance comparable to traditional transfer learning methods for related tasks.
- Information is Concentrated: Crucially, the information for many satellite tasks is encoded in a relatively small subset of filters within each layer. This sparsity is key to enabling significant network pruning.
- Task Relationships Vary: Not all face tasks are equally transferable. Face recognition models are good at predicting gender, facial hair, and accessories. However, emotion detection appears to be more independent, with models trained on it being less useful for transferring to other tasks.
- Pruning is Effective: By identifying and removing filters that are not informative for a specific satellite task, the network can be drastically compressed without a significant loss in performance.
Key Results
- Speed-up: The proposed low-cost transfer learning method is significantly faster than traditional transfer learning, achieving a speed-up of up to 78X (10 seconds vs. 780 seconds for a single task).
- Compression: Pruning based on filter importance leads to substantial reductions in network size (up to 98%) and computational complexity (up to 60-78%).
- Performance: The pruned networks achieve accuracies comparable to networks trained from scratch or using traditional transfer learning, with only a slight reduction in performance (e.g., a 1.93% RMSE increase for valence with VGG-Face).
- Generalizability: The method demonstrates effectiveness across different tasks (gender, age, pose, emotion, facial hair, accessories) and even different architectures (VGG-Face and LightCNN).
Limitations and Future Work
- Threshold Selection: The paper notes that selecting the optimal threshold for pruning (to balance compression and accuracy) is an important consideration, and they found 0.01 to be a good general trade-off.
- Layer Importance Varies: The best layer for extracting features for transfer varies depending on the satellite task. For example, head pose and gender are best learned from later layers (like layer 13), while emotion might be better represented in earlier layers (like layer 10).
- Future Directions: The authors suggest that this filter-level understanding can be used for more targeted network design, such as creating identity-agnostic emotion recognition models by removing identity-specific filters. They also highlight the potential for this approach in scenarios with very limited data for the target task.
Summary updated